25#include <com/sun/star/view/XSelectionSupplier.hpp>
26#include <com/sun/star/view/XFormLayerAccess.hpp>
27#include <com/sun/star/drawing/XDrawView.hpp>
28#include <com/sun/star/drawing/framework/XControllerManager.hpp>
29#include <com/sun/star/lang/XServiceInfo.hpp>
42namespace osl {
class Mutex; }
49typedef ::cppu::ImplInheritanceHelper <
51 css::view::XSelectionSupplier,
52 css::lang::XServiceInfo,
53 css::drawing::XDrawView,
54 css::view::XSelectionChangeListener,
55 css::view::XFormLayerAccess,
56 css::drawing::framework::XControllerManager
84 PROPERTY_WORKAREA = 0,
85 PROPERTY_SUB_CONTROLLER = 1,
87 PROPERTY_MASTERPAGEMODE = 3,
88 PROPERTY_LAYERMODE = 4,
89 PROPERTY_ACTIVE_LAYER = 5,
90 PROPERTY_ZOOMTYPE = 6,
91 PROPERTY_ZOOMVALUE = 7,
92 PROPERTY_VIEWOFFSET = 8,
93 PROPERTY_DRAWVIEWMODE = 9
94 ,PROPERTY_UPDATEACC = 10
95 ,PROPERTY_PAGE_CHANGE = 11
114 void SetSubController (
115 const css::
uno::Reference<css::drawing::XDrawSubController>& rxSubController);
119 void FireVisAreaChanged (const ::
tools::Rectangle& rVisArea) noexcept;
123 void FireSelectionChangeListener() noexcept;
127 void FireChangeEditMode (
bool bMasterPageMode) noexcept;
131 void FireChangeLayerMode (
bool bLayerMode) noexcept;
135 void FireSwitchCurrentPage (
SdPage* pCurrentPage) noexcept;
140 void BroadcastContextChange() const;
141 void NotifyAccUpdate();
142 void fireChangeLayer( css::
uno::Reference< css::drawing::XLayer>* pCurrentLayer ) noexcept;
145 void fireSwitchCurrentPage( sal_Int32 pageIndex) noexcept;
146 bool IsDisposing()
const {
return mbDisposing; }
161 void ReleaseViewShellBase();
164 DECLARE_XTYPEPROVIDER()
167 virtual
void SAL_CALL dispose() override;
168 virtual
void SAL_CALL addEventListener( const css::
uno::Reference< css::lang::XEventListener >& xListener ) override;
169 virtual
void SAL_CALL removeEventListener( const css::
uno::Reference< css::lang::XEventListener >& aListener ) override;
175 virtual OUString SAL_CALL getImplementationName() override;
176 virtual
sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
177 virtual css::
uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
180 virtual
sal_Bool SAL_CALL select( const css::
uno::Any& aSelection ) override;
181 virtual css::
uno::Any SAL_CALL getSelection( ) override;
182 virtual
void SAL_CALL addSelectionChangeListener( const css::
uno::Reference< css::view::XSelectionChangeListener >& xListener ) override;
183 virtual
void SAL_CALL removeSelectionChangeListener( const css::
uno::Reference< css::view::XSelectionChangeListener >& xListener ) override;
186 virtual css::
uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
189 virtual css::
uno::Reference< css::form::runtime::XFormController > SAL_CALL getFormController( const css::
uno::Reference< css::form::XForm >& Form ) override;
190 virtual
sal_Bool SAL_CALL isFormDesignMode( ) override;
191 virtual
void SAL_CALL setFormDesignMode(
sal_Bool DesignMode ) override;
194 virtual css::
uno::Reference< css::awt::XControl > SAL_CALL getControl( const css::
uno::Reference< css::awt::XControlModel >& xModel ) override;
197 virtual
void SAL_CALL
199 const css::
uno::Reference<
200 css::drawing::XDrawPage >& xPage) override;
202 virtual css::
uno::Reference<
203 css::drawing::XDrawPage > SAL_CALL
204 getCurrentPage() override;
207 virtual
void SAL_CALL
208 disposing (const css::lang::EventObject& rEventObject) override;
211 virtual
void SAL_CALL
212 selectionChanged (const css::lang::EventObject& rEvent) override;
216 virtual css::
uno::Reference<css::drawing::
framework::XConfigurationController> SAL_CALL
217 getConfigurationController() override;
219 virtual css::
uno::Reference<css::drawing::
framework::XModuleController> SAL_CALL
220 getModuleController() override;
226 virtual ::
cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
228 static
void FillPropertyTable (
229 ::
std::vector< css::beans::Property>& rProperties);
235 virtual
void SAL_CALL getFastPropertyValue(
236 css::
uno::Any& rValue,
237 sal_Int32 nHandle ) const override;
253 virtual
sal_Bool SAL_CALL convertFastPropertyValue(
254 css::
uno::Any & rConvertedValue,
255 css::
uno::Any & rOldValue,
257 const css::
uno::Any& rValue ) override;
262 virtual
void SAL_CALL setFastPropertyValue_NoBroadcast(
264 const css::
uno::Any& rValue ) override;
271 void ThrowIfDisposed() const;
273 using
cppu::OPropertySetHelper::disposing;
274 using
cppu::OPropertySetHelper::getFastPropertyValue;
276 css::
uno::Reference< css::drawing::XLayer>* mpCurrentLayer;
278 const css::
uno::
Type m_aSelectionTypeIdentifier;
287 bool mbMasterPageMode;
295 ::
std::unique_ptr< ::
cppu::IPropertyArrayHelper> mpPropertyArrayHelper;
299 css::
uno::Reference<css::drawing::XDrawSubController> mxSubController;
301 rtl::Reference<
sd::
framework::ConfigurationController> mxConfigurationController;
309 void FirePropertyChange (
311 const css::
uno::Any& rNewValue,
312 const css::
uno::Any& rOldValue);
314 void ProvideFrameworkControllers();
315 void DisposeFrameworkControllers();
BroadcastHelperOwner(::osl::Mutex &rMutex)
::cppu::OBroadcastHelper maBroadcastHelper
The DrawController is the UNO controller for Impress and Draw.
ViewShellBase * GetViewShellBase()
Return a pointer to the ViewShellBase object that the DrawController is connected to.
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
::cppu::ImplInheritanceHelper< SfxBaseController, css::view::XSelectionSupplier, css::lang::XServiceInfo, css::drawing::XDrawView, css::view::XSelectionChangeListener, css::view::XFormLayerAccess, css::drawing::framework::XControllerManager > DrawControllerInterfaceBase
#define DECLARE_XINTERFACE()