21#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
22#include <com/sun/star/document/XLinkTargetSupplier.hpp>
23#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
24#include <com/sun/star/drawing/XDrawPageDuplicator.hpp>
25#include <com/sun/star/drawing/XLayerSupplier.hpp>
26#include <com/sun/star/drawing/XMasterPagesSupplier.hpp>
27#include <com/sun/star/presentation/XPresentationSupplier.hpp>
28#include <com/sun/star/presentation/XCustomPresentationSupplier.hpp>
29#include <com/sun/star/lang/XServiceInfo.hpp>
30#include <com/sun/star/drawing/XDrawPages.hpp>
31#include <com/sun/star/ucb/XAnyCompareFactory.hpp>
32#include <com/sun/star/presentation/XHandoutMasterSupplier.hpp>
33#include <com/sun/star/view/XRenderable.hpp>
34#include <com/sun/star/beans/XPropertySet.hpp>
66 public css::drawing::XDrawPageDuplicator,
67 public css::drawing::XLayerSupplier,
68 public css::drawing::XMasterPagesSupplier,
69 public css::drawing::XDrawPagesSupplier,
70 public css::presentation::XPresentationSupplier,
71 public css::presentation::XCustomPresentationSupplier,
72 public css::document::XLinkTargetSupplier,
73 public css::beans::XPropertySet,
74 public css::style::XStyleFamiliesSupplier,
75 public css::lang::XServiceInfo,
76 public css::ucb::XAnyCompareFactory,
77 public css::presentation::XHandoutMasterSupplier,
78 public css::view::XRenderable,
79 public vcl::ITiledRenderable
90 css::uno::Reference<css::uno::XInterface>
create(
91 OUString
const & aServiceSpecifier, OUString
const & referer);
94 SdPage* InsertSdPage( sal_uInt16 nPage,
bool bDuplicate );
104 css::uno::Reference< css::container::XNameAccess >
mxLinks;
122 void initializeDocument();
144 void SetModified() noexcept;
146 css::
uno::Reference< css::i18n::XForbiddenCharacters > getForbiddenCharsTable();
154 virtual css::
uno::Any SAL_CALL queryInterface( const css::
uno::
Type & rType ) override;
155 virtual
void SAL_CALL acquire() noexcept override;
156 virtual
void SAL_CALL release() noexcept override;
159 virtual
void SAL_CALL lockControllers( ) override;
160 virtual
void SAL_CALL unlockControllers( ) override;
161 virtual
sal_Bool SAL_CALL hasControllersLocked( ) override;
162 virtual css::
uno::Reference < css::container::XIndexAccess > SAL_CALL getViewData() override;
163 virtual
void SAL_CALL setViewData( const css::
uno::Reference < css::container::XIndexAccess >& aData ) override;
166 virtual css::
uno::Sequence< css::
uno::
Type > SAL_CALL getTypes( ) override;
167 virtual css::
uno::Sequence<
sal_Int8 > SAL_CALL getImplementationId( ) override;
170 virtual css::
uno::Reference< css::drawing::XDrawPage > SAL_CALL duplicate( const css::
uno::Reference< css::drawing::XDrawPage >& xPage ) override;
173 virtual css::
uno::Reference< css::drawing::XDrawPages > SAL_CALL getDrawPages( ) override;
176 virtual css::
uno::Reference< css::drawing::XDrawPages > SAL_CALL getMasterPages( ) override;
179 virtual css::
uno::Reference< css::container::XNameAccess > SAL_CALL getLayerManager( ) override;
182 virtual css::
uno::Reference< css::container::XNameContainer > SAL_CALL getCustomPresentations( ) override;
185 virtual css::
uno::Reference< css::drawing::XDrawPage > SAL_CALL getHandoutMasterPage( ) override;
188 virtual css::
uno::Reference< css::presentation::XPresentation > SAL_CALL getPresentation( ) override;
191 virtual css::
uno::Reference< css::
uno::
XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) override;
193 createInstanceWithArguments(
194 OUString const & ServiceSpecifier,
195 css::
uno::Sequence<css::
uno::Any> const & Arguments) override;
196 virtual css::
uno::Sequence< OUString > SAL_CALL getAvailableServiceNames( ) override;
204 virtual css::
uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
205 virtual
void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::
uno::Any& aValue ) override;
206 virtual css::
uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
207 virtual
void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::
uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
208 virtual
void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::
uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
209 virtual
void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::
uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
210 virtual
void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::
uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
213 virtual css::
uno::Reference< css::container::XNameAccess > SAL_CALL getLinks( ) override;
216 virtual css::
uno::Reference< css::container::XNameAccess > SAL_CALL getStyleFamilies( ) override;
219 virtual css::
uno::Reference< css::
ucb::XAnyCompare > SAL_CALL createAnyCompareByName( const OUString& PropertyName ) override;
222 virtual sal_Int32 SAL_CALL getRendererCount( const css::
uno::Any& aSelection, const css::
uno::Sequence< css::beans::PropertyValue >& xOptions ) override;
223 virtual css::
uno::Sequence< css::beans::PropertyValue > SAL_CALL getRenderer( sal_Int32 nRenderer, const css::
uno::Any& aSelection, const css::
uno::Sequence< css::beans::PropertyValue >& xOptions ) override;
224 virtual
void SAL_CALL render( sal_Int32 nRenderer, const css::
uno::Any& aSelection, const css::
uno::Sequence< css::beans::PropertyValue >& xOptions ) override;
234 virtual
Size getDocumentSize() override;
235 virtual
void setPart(
int nPart,
bool bAllowChangeFocus = true ) override;
236 virtual
int getPart() override;
237 virtual
int getParts() override;
238 virtual OUString getPartName(
int nPart ) override;
239 virtual OUString getPartHash(
int nPart ) override;
240 virtual
VclPtr<
vcl::Window> getDocWindow() override;
241 bool isMasterViewMode();
244 virtual
void setPartMode(
int nPartMode ) override;
246 virtual
int getEditMode() override;
248 virtual
void setEditMode(
int) override;
250 virtual
void initializeForTiledRendering(const css::
uno::Sequence<css::beans::PropertyValue>& rArguments) override;
252 virtual
void postKeyEvent(
int nType,
int nCharCode,
int nKeyCode) override;
254 virtual
void postMouseEvent(
int nType,
int nX,
int nY,
int nCount,
int nButtons,
int nModifier) override;
256 virtual
void setTextSelection(
int nType,
int nX,
int nY) override;
258 virtual css::
uno::Reference<css::datatransfer::XTransferable> getSelection() override;
260 virtual
void setGraphicSelection(
int nType,
int nX,
int nY) override;
262 virtual
void resetSelection() override;
264 virtual
void setClientVisibleArea(const
tools::Rectangle& rRectangle) override;
266 virtual
void setClipboard(const css::
uno::Reference<css::datatransfer::clipboard::XClipboard>& xClipboard) override;
268 virtual
bool isMimeTypeSupported() override;
272 virtual
void getPostIts(
tools::JsonWriter& ) override;
274 virtual
void selectPart(
int nPart,
int nSelect) override;
276 virtual
void moveSelectedParts(
int nPosition,
bool bDuplicate) override;
278 virtual OUString getPartInfo(
int nPart) override;
280 virtual
bool isDisposed()
const override
288 OString getViewRenderState()
override;
299 virtual void SAL_CALL
dispose()
override;
306class SdDrawPagesAccess final :
public ::cppu::WeakImplHelper< css::drawing::XDrawPages, css::container::XNameAccess, css::lang::XServiceInfo, css::lang::XComponent >
316 virtual css::
uno::Reference< css::drawing::XDrawPage > SAL_CALL
insertNewByIndex( sal_Int32 nIndex ) override;
317 virtual
void SAL_CALL
remove( const css::
uno::Reference< css::drawing::XDrawPage >& xPage ) override;
320 virtual css::
uno::Any SAL_CALL
getByName( const OUString& aName ) override;
325 virtual sal_Int32 SAL_CALL
getCount() override ;
338 virtual
void SAL_CALL
dispose( ) override;
339 virtual
void SAL_CALL
addEventListener( const css::
uno::Reference< css::lang::XEventListener >& xListener ) override;
340 virtual
void SAL_CALL
removeEventListener( const css::
uno::Reference< css::lang::XEventListener >& aListener ) override;
347class
SdMasterPagesAccess final : public ::
cppu::WeakImplHelper< css::drawing::XDrawPages, css::lang::XServiceInfo, css::lang::XComponent >
357 virtual css::
uno::Reference< css::drawing::XDrawPage > SAL_CALL
insertNewByIndex( sal_Int32 nIndex ) override;
358 virtual
void SAL_CALL
remove( const css::
uno::Reference< css::drawing::XDrawPage >& xPage ) override;
361 virtual sal_Int32 SAL_CALL
getCount() override ;
374 virtual
void SAL_CALL
dispose( ) override;
375 virtual
void SAL_CALL
addEventListener( const css::
uno::Reference< css::lang::XEventListener >& xListener ) override;
376 virtual
void SAL_CALL
removeEventListener( const css::
uno::Reference< css::lang::XEventListener >& aListener ) override;
393 css::lang::XServiceInfo , css::lang::XComponent >
404 virtual css::
uno::Any SAL_CALL
getByName( const OUString& aName ) override;
418 virtual
void SAL_CALL
dispose( ) override;
419 virtual
void SAL_CALL
addEventListener( const css::
uno::Reference< css::lang::XEventListener >& xListener ) override;
420 virtual
void SAL_CALL
removeEventListener( const css::
uno::Reference< css::lang::XEventListener >& aListener ) override;
424 css::beans::XPropertySet,
425 css::lang::XServiceInfo >
435 virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getLinks()
override;
443 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo()
override;
445 const css::uno::Any& aValue)
override;
446 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName)
override;
447 virtual void SAL_CALL addPropertyChangeListener(
const OUString& aPropertyName,
448 const css::uno::Reference< css::beans::XPropertyChangeListener > & xListener)
override;
449 virtual void SAL_CALL removePropertyChangeListener(
const OUString& aPropertyName,
450 const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener)
override;
451 virtual void SAL_CALL addVetoableChangeListener(
const OUString& PropertyName,
452 const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener)
override;
453 virtual void SAL_CALL removeVetoableChangeListener(
const OUString& PropertyName,
454 const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener)
override;
457class SdDocLinkTarget final :
public ::cppu::WeakImplHelper< css::container::XNameAccess,
458 css::lang::XServiceInfo >
468 virtual css::uno::Any SAL_CALL
getByName(
const OUString& aName)
override;
469 virtual css::uno::Sequence< OUString> SAL_CALL
getElementNames()
override;
SdXImpressDocument * mpModel
SdXImpressDocument * mpModel
SdXImpressDocument * mpModel
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual void SAL_CALL dispose() override
virtual sal_Bool SAL_CALL hasElements() override
virtual ~SdDrawPagesAccess() noexcept override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Int32 SAL_CALL getCount() override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
SdDrawPagesAccess(SdXImpressDocument &rMyModel) noexcept
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL insertNewByIndex(sal_Int32 nIndex) override
Creates a new page with model at the specified position.
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XDrawPage > &xPage) override
Removes the specified SdDrawPage from the model and the internal list.
SdXImpressDocument * mpModel
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getImplementationName() override
SdXImpressDocument * mpModel
css::uno::Reference< css::uno::XInterface > mxBitmapTable
css::uno::Reference< css::uno::XInterface > mxTransGradientTable
css::uno::Reference< css::container::XNameAccess > mxLinks
css::uno::Reference< css::uno::XInterface > mxGradientTable
css::uno::WeakReference< css::drawing::XDrawPages > mxMasterPagesAccess
css::uno::Reference< css::uno::XInterface > mxDrawingPool
css::uno::WeakReference< css::container::XNameAccess > mxLayerManager
css::uno::Sequence< css::uno::Type > maTypeSequence
bool operator!=(const SdXImpressDocument &rModel) const
css::uno::Reference< css::uno::XInterface > mxHatchTable
const SvxItemPropertySet * mpPropSet
::sd::DrawDocShell * GetDocShell() const
css::uno::WeakReference< css::drawing::XDrawPages > mxDrawPagesAccess
css::uno::WeakReference< css::i18n::XForbiddenCharacters > mxForbiddenCharacters
SdDrawDocument * GetDoc() const
virtual void setPaintTextEdit(bool bPaint) override
css::uno::WeakReference< css::container::XNameContainer > mxCustomPresentationAccess
::sd::DrawDocShell * mpDocShell
bool IsImpressDocument() const
css::uno::Reference< css::uno::XInterface > mxMarkerTable
css::uno::Reference< css::uno::XInterface > mxDashTable
virtual void SAL_CALL dispose() override
virtual SdrModel & getSdrModelFromUnoModel() const=0
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
css::uno::Reference< css::deployment::XPackageRegistry > create(css::uno::Reference< css::deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, css::uno::Reference< css::uno::XComponentContext > const &xComponentContext)
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
OUString getPageApiNameFromUiName(const OUString &rUIName)
OUString getPageApiName(SdPage const *pPage)