1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SdUnoOutlineView.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SD_UNO_OUTLINE_VIEW_HXX
32 #define SD_UNO_OUTLINE_VIEW_HXX
34 #include "DrawSubController.hxx"
35 #include <cppuhelper/basemutex.hxx>
36 #include <com/sun/star/lang/EventObject.hpp>
41 namespace css
= ::com::sun::star
;
46 class OutlineViewShell
;
50 /** This class implements the OutlineViewShell specific part of the controller.
52 class SdUnoOutlineView
53 : private cppu::BaseMutex
,
54 public DrawSubControllerInterfaceBase
58 DrawController
& rController
,
59 OutlineViewShell
& rViewShell
,
61 virtual ~SdUnoOutlineView (void) throw();
63 virtual void SAL_CALL
disposing (void);
68 virtual sal_Bool SAL_CALL
select (
69 const css::uno::Any
& aSelection
)
70 throw(css::lang::IllegalArgumentException
,
71 css::uno::RuntimeException
);
73 virtual css::uno::Any SAL_CALL
getSelection (void)
74 throw(css::uno::RuntimeException
);
76 virtual void SAL_CALL
addSelectionChangeListener (
77 const css::uno::Reference
<css::view::XSelectionChangeListener
>& rxListener
)
78 throw(css::uno::RuntimeException
);
80 virtual void SAL_CALL
removeSelectionChangeListener (
81 const css::uno::Reference
<css::view::XSelectionChangeListener
>& rxListener
)
82 throw(css::uno::RuntimeException
);
87 virtual void SAL_CALL
setCurrentPage (
88 const css::uno::Reference
<css::drawing::XDrawPage
>& xPage
)
89 throw(css::uno::RuntimeException
);
91 virtual css::uno::Reference
<css::drawing::XDrawPage
> SAL_CALL
getCurrentPage (void)
92 throw(css::uno::RuntimeException
);
97 virtual void SAL_CALL
setFastPropertyValue (
99 const css::uno::Any
& rValue
)
100 throw(css::beans::UnknownPropertyException
,
101 css::beans::PropertyVetoException
,
102 css::lang::IllegalArgumentException
,
103 css::lang::WrappedTargetException
,
104 css::uno::RuntimeException
);
106 virtual css::uno::Any SAL_CALL
getFastPropertyValue (
108 throw(css::beans::UnknownPropertyException
,
109 css::lang::WrappedTargetException
,
110 css::uno::RuntimeException
);
112 // lang::XEventListener
113 virtual void SAL_CALL
114 disposing (const ::com::sun::star::lang::EventObject
& rEventObject
)
115 throw (::com::sun::star::uno::RuntimeException
);
118 DrawController
& mrController
;
119 OutlineViewShell
& mrOutlineViewShell
;
123 } // end of namespace sd