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