xref: /aoo4110/main/sd/source/ui/inc/SdUnoSlideView.hxx (revision b1cdbd2c)
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         throw(::com::sun::star::lang::IllegalArgumentException,
66             ::com::sun::star::uno::RuntimeException);
67 
68     virtual ::com::sun::star::uno::Any SAL_CALL getSelection (void)
69         throw(::com::sun::star::uno::RuntimeException);
70 
71     virtual void SAL_CALL addSelectionChangeListener (
72         const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener)
73         throw(css::uno::RuntimeException);
74 
75     virtual void SAL_CALL removeSelectionChangeListener (
76         const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener)
77         throw(css::uno::RuntimeException);
78 
79 
80 	// XDrawView
81 
82     virtual void SAL_CALL setCurrentPage (
83         const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage)
84         throw(::com::sun::star::uno::RuntimeException);
85 
86     virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL
87         getCurrentPage (void)
88         throw(::com::sun::star::uno::RuntimeException);
89 
90 
91     // XFastPropertySet
92 
93     virtual void SAL_CALL setFastPropertyValue (
94         sal_Int32 nHandle,
95         const css::uno::Any& rValue)
96         throw(css::beans::UnknownPropertyException,
97             css::beans::PropertyVetoException,
98             css::lang::IllegalArgumentException,
99             css::lang::WrappedTargetException,
100             css::uno::RuntimeException);
101 
102     virtual css::uno::Any SAL_CALL getFastPropertyValue (
103         sal_Int32 nHandle)
104         throw(css::beans::UnknownPropertyException,
105             css::lang::WrappedTargetException,
106             css::uno::RuntimeException);
107 
108 	// XServiceInfo
109 	virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
110 	virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
111 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
112 
113 private:
114     DrawController& mrController;
115     slidesorter::SlideSorter& mrSlideSorter;
116     sd::View& mrView;
117     /*
118     virtual void FillPropertyTable (
119         ::std::vector< ::com::sun::star::beans::Property>& rProperties);
120 	virtual sal_Bool SAL_CALL convertFastPropertyValue(
121 		::com::sun::star::uno::Any & rConvertedValue,
122 		::com::sun::star::uno::Any & rOldValue,
123 		sal_Int32 nHandle,
124 		const ::com::sun::star::uno::Any& rValue )
125 		throw (::com::sun::star::lang::IllegalArgumentException);
126 	virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
127 		sal_Int32 nHandle,
128 		const ::com::sun::star::uno::Any& rValue )
129 		throw (::com::sun::star::uno::Exception);
130 	virtual void SAL_CALL getFastPropertyValue(
131 		::com::sun::star::uno::Any& rValue,
132 		sal_Int32 nHandle ) const;
133     */
134 };
135 
136 } // end of namespace sd
137 
138 #endif
139