xref: /trunk/main/sd/source/ui/inc/SdUnoSlideView.hxx (revision 91144cd0085a7583d2099b982122deb2184ab956)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SD_UNO_SLIDE_VIEW_HXX
25 #define SD_UNO_SLIDE_VIEW_HXX
26 
27 #include "DrawSubController.hxx"
28 #include <cppuhelper/basemutex.hxx>
29 #include <com/sun/star/drawing/XDrawPage.hpp>
30 
31 namespace css = ::com::sun::star;
32 
33 namespace sd { namespace slidesorter {
34 class SlideSorter;
35 } }
36 
37 namespace sd { namespace slidesorter { namespace controller {
38 class PageSelector;
39 } } }
40 
41 namespace sd {
42 
43 class DrawController;
44 class SlideViewShell;
45 class View;
46 
47 
48 /** This class implements the SlideSorter specific part of the
49     controller.
50  */
51 class SdUnoSlideView
52     : private cppu::BaseMutex,
53       public DrawSubControllerInterfaceBase
54 {
55 public:
56     SdUnoSlideView (
57         DrawController& rController,
58         slidesorter::SlideSorter& rSlideSorter,
59         View& rView) throw();
60     virtual ~SdUnoSlideView (void) throw();
61 
62     // XSelectionSupplier
63 
64     virtual sal_Bool SAL_CALL select (const ::com::sun::star::uno::Any& aSelection);
65 
66     virtual ::com::sun::star::uno::Any SAL_CALL getSelection (void);
67 
68     virtual void SAL_CALL addSelectionChangeListener (
69         const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener);
70 
71     virtual void SAL_CALL removeSelectionChangeListener (
72         const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener);
73 
74 
75     // XDrawView
76 
77     virtual void SAL_CALL setCurrentPage (
78         const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage);
79 
80     virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL
81         getCurrentPage (void);
82 
83 
84     // XFastPropertySet
85 
86     virtual void SAL_CALL setFastPropertyValue (
87         sal_Int32 nHandle,
88         const css::uno::Any& rValue);
89 
90     virtual css::uno::Any SAL_CALL getFastPropertyValue (
91         sal_Int32 nHandle);
92 
93     // XServiceInfo
94     virtual ::rtl::OUString SAL_CALL getImplementationName(  );
95     virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName );
96     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  );
97 
98 private:
99     DrawController& mrController;
100     slidesorter::SlideSorter& mrSlideSorter;
101     sd::View& mrView;
102     /*
103     virtual void FillPropertyTable (
104         ::std::vector< ::com::sun::star::beans::Property>& rProperties);
105     virtual sal_Bool SAL_CALL convertFastPropertyValue(
106         ::com::sun::star::uno::Any & rConvertedValue,
107         ::com::sun::star::uno::Any & rOldValue,
108         sal_Int32 nHandle,
109         const ::com::sun::star::uno::Any& rValue )
110         throw (::com::sun::star::lang::IllegalArgumentException);
111     virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
112         sal_Int32 nHandle,
113         const ::com::sun::star::uno::Any& rValue )
114         throw (::com::sun::star::uno::Exception);
115     virtual void SAL_CALL getFastPropertyValue(
116         ::com::sun::star::uno::Any& rValue,
117         sal_Int32 nHandle ) const;
118     */
119 };
120 
121 } // end of namespace sd
122 
123 #endif
124