xref: /AOO41X/main/offapi/com/sun/star/drawing/SlideSorter.idl (revision d1766043198e81d0bcfc626e12893e7b4d7e31ca)
1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_drawing_SlideSorter_idl__
25cdf0e10cSrcweir#define __com_sun_star_drawing_SlideSorter_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_drawing_framework_XView_idl__
28cdf0e10cSrcweir#include <com/sun/star/drawing/framework/XView.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir#ifndef __com_sun_star_drawing_XDrawView_idl__
31cdf0e10cSrcweir#include <com/sun/star/drawing/XDrawView.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir#ifndef __com_sun_star_awt_XWindow_idl__
34cdf0e10cSrcweir#include <com/sun/star/awt/XWindow.idl>
35cdf0e10cSrcweir#endif
36cdf0e10cSrcweir#ifndef __com_sun_star_container_XIndexAccess_idl__
37cdf0e10cSrcweir#include <com/sun/star/container/XIndexAccess.idl>
38cdf0e10cSrcweir#endif
39cdf0e10cSrcweir#ifndef __com_sun_star_frame_XController_idl__
40cdf0e10cSrcweir#include <com/sun/star/frame/XController.idl>
41cdf0e10cSrcweir#endif
42cdf0e10cSrcweir#ifndef __com_sun_star_util_Color_idl__
43cdf0e10cSrcweir#include <com/sun/star/util/Color.idl>
44cdf0e10cSrcweir#endif
45cdf0e10cSrcweir
46cdf0e10cSrcweirmodule com {  module sun {  module star {  module drawing {
47cdf0e10cSrcweir
48cdf0e10cSrcweir/** This interface exists only because services do not directly support
49cdf0e10cSrcweir    multiple inheritance and attributes.
50cdf0e10cSrcweir    <p>It provides the interfaces and attributes that every object that
51cdf0e10cSrcweir    implements the <type>SlideSorter</type> service.</p>
52cdf0e10cSrcweir*/
53cdf0e10cSrcweirinterface XSlideSorterBase
54cdf0e10cSrcweir{
55cdf0e10cSrcweir    /** This interface is included to mark a <type>SlideSorter</type> object
56cdf0e10cSrcweir        as view of the drawing framework and to provide a
57cdf0e10cSrcweir        <type>ResourceId</type>.
58cdf0e10cSrcweir    */
59cdf0e10cSrcweir    interface ::com::sun::star::drawing::framework::XView;
60cdf0e10cSrcweir
61cdf0e10cSrcweir    /** The <type>XDrawView</type> interface is included to provide access
62cdf0e10cSrcweir        to the current slide (especially write access).
63cdf0e10cSrcweir    */
64cdf0e10cSrcweir    interface ::com::sun::star::drawing::XDrawView;
65cdf0e10cSrcweir
66cdf0e10cSrcweir    /** The set of slides that are displayed by the implementing object.
67cdf0e10cSrcweir        <p>The default value is the set of all slides of the document for
68cdf0e10cSrcweir        which a slide sorter is created.</p>
69cdf0e10cSrcweir    */
70cdf0e10cSrcweir    [attribute] ::com::sun::star::container::XIndexAccess DocumentSlides;
71cdf0e10cSrcweir
72cdf0e10cSrcweir    /** Set this flag to <TRUE/> in order to have the current slide
73cdf0e10cSrcweir        highlighted.
74cdf0e10cSrcweir        <p>The default value is <FALSE/>.</p>
75cdf0e10cSrcweir    */
76cdf0e10cSrcweir    [attribute] boolean IsHighlightCurrentSlide;
77cdf0e10cSrcweir
78cdf0e10cSrcweir    /** Set this flag to <TRUE/> in order to visualize the selection of
79cdf0e10cSrcweir        slides (typically a bold frame around the selected slides).
80cdf0e10cSrcweir        <p>The default value is <TRUE/>.</p>
81cdf0e10cSrcweir    */
82cdf0e10cSrcweir    [attribute] boolean IsShowSelection;
83cdf0e10cSrcweir
84cdf0e10cSrcweir    /** Set this flag to <TRUE/> to visualize to where the focus is by
85cdf0e10cSrcweir        showing a dotted rectangle around the focused slide.
86cdf0e10cSrcweir        <p>The default value is <TRUE/>.</p>
87cdf0e10cSrcweir    */
88cdf0e10cSrcweir    [attribute] boolean IsShowFocus;
89cdf0e10cSrcweir
90cdf0e10cSrcweir    /** When this flag has the value <TRUE/> then every time the current
91cdf0e10cSrcweir        slide is changed the visual area is shifted so that the new current
92cdf0e10cSrcweir        slide is display in the center of the slide sorter window.
93cdf0e10cSrcweir        <p>It is not always possible to move the current slide into the
94cdf0e10cSrcweir        exact center of the window, for example when slides are located near
95cdf0e10cSrcweir        the start or end of a document.</p>
96cdf0e10cSrcweir        <p>The default value is <FALSE/>.
97cdf0e10cSrcweir    */
98cdf0e10cSrcweir    [attribute] boolean IsCenterSelection;
99cdf0e10cSrcweir
100cdf0e10cSrcweir    /** This flag controls whether updates of previews are created during
101cdf0e10cSrcweir        full screen presentations (<FALSE/>) or not (<TRUE/>).  The
102cdf0e10cSrcweir        suspension of preview creations is an optimization for not slowing
103cdf0e10cSrcweir        down a running presentation.
104cdf0e10cSrcweir        <p>The default value is <TRUE/>.</p>
105cdf0e10cSrcweir    */
106cdf0e10cSrcweir    [attribute] boolean IsSuspendPreviewUpdatesDuringFullScreenPresentation;
107cdf0e10cSrcweir
108cdf0e10cSrcweir    /** The orientation of a slide sorter can be either vertical (<TRUE/>)
109cdf0e10cSrcweir        or horizontal (<FALSE/>).
110cdf0e10cSrcweir    */
111cdf0e10cSrcweir    [attribute] boolean IsOrientationVertical;
112cdf0e10cSrcweir
113cdf0e10cSrcweir    /** This flag is a hint to make scrolling look smooth.
114cdf0e10cSrcweir    */
115cdf0e10cSrcweir    [attribute] boolean IsSmoothScrolling;
116cdf0e10cSrcweir
117cdf0e10cSrcweir    [attribute] ::com::sun::star::util::Color BackgroundColor;
118cdf0e10cSrcweir    [attribute] ::com::sun::star::util::Color TextColor;
119cdf0e10cSrcweir    [attribute] ::com::sun::star::util::Color SelectionColor;
120cdf0e10cSrcweir    [attribute] ::com::sun::star::util::Color HighlightColor;
121cdf0e10cSrcweir
122cdf0e10cSrcweir    /** This flag controls whether the model can be modified by using
123cdf0e10cSrcweir        keyboard or mouse.
124cdf0e10cSrcweir        <p>The default value is <TRUE/>.</p>
125cdf0e10cSrcweir    */
126cdf0e10cSrcweir    [attribute] boolean IsUIReadOnly;
127cdf0e10cSrcweir};
128cdf0e10cSrcweir
129cdf0e10cSrcweir
130cdf0e10cSrcweir
131cdf0e10cSrcweir
132cdf0e10cSrcweir/** A slide sorter shows previews for a set of slides, typically all slides
133cdf0e10cSrcweir    in a document, and allows the selection, reordering, creation, and
134cdf0e10cSrcweir    deletion of slides.
135cdf0e10cSrcweir    <p>In the drawing framework a slide sorter is regarded as a view.</p>
136cdf0e10cSrcweir*/
137cdf0e10cSrcweirservice SlideSorter : XSlideSorterBase
138cdf0e10cSrcweir{
139cdf0e10cSrcweir    /** Create a new slide sorter object.
140cdf0e10cSrcweir        @param xViewId
141cdf0e10cSrcweir            The resource id of the new slide sorter.
142cdf0e10cSrcweir        @param xController
143cdf0e10cSrcweir            The access point to an impress document.
144cdf0e10cSrcweir        @param xParentWindow
145cdf0e10cSrcweir            The parent window which will be completely covered by the new
146cdf0e10cSrcweir            slide sorter.
147cdf0e10cSrcweir    */
148cdf0e10cSrcweir    create (
149cdf0e10cSrcweir        [in] framework::XResourceId xViewId,
150cdf0e10cSrcweir        [in] ::com::sun::star::frame::XController xController,
151cdf0e10cSrcweir        [in] ::com::sun::star::awt::XWindow xParentWindow);
152cdf0e10cSrcweir};
153cdf0e10cSrcweir
154cdf0e10cSrcweir}; }; }; };
155cdf0e10cSrcweir
156cdf0e10cSrcweir#endif
157