| 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 | /* |
| 3 | * This file is part of the LibreOffice project. |
| 4 | * |
| 5 | * This Source Code Form is subject to the terms of the Mozilla Public |
| 6 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 8 | * |
| 9 | * This file incorporates work covered by the following license notice: |
| 10 | * |
| 11 | * Licensed to the Apache Software Foundation (ASF) under one or more |
| 12 | * contributor license agreements. See the NOTICE file distributed |
| 13 | * with this work for additional information regarding copyright |
| 14 | * ownership. The ASF licenses this file to you under the Apache |
| 15 | * License, Version 2.0 (the "License"); you may not use this file |
| 16 | * except in compliance with the License. You may obtain a copy of |
| 17 | * the License at http://www.apache.org/licenses/LICENSE-2.0 . |
| 18 | */ |
| 19 | #ifndef INCLUDED_SW_INC_UNOTXDOC_HXX |
| 20 | #define INCLUDED_SW_INC_UNOTXDOC_HXX |
| 21 | |
| 22 | #include "swdllapi.h" |
| 23 | #include <sfx2/sfxbasemodel.hxx> |
| 24 | |
| 25 | #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> |
| 26 | #include <com/sun/star/style/XAutoStylesSupplier.hpp> |
| 27 | #include <com/sun/star/document/XLinkTargetSupplier.hpp> |
| 28 | #include <com/sun/star/document/XRedlinesSupplier.hpp> |
| 29 | #include <com/sun/star/text/XNumberingRulesSupplier.hpp> |
| 30 | #include <com/sun/star/text/XFootnotesSupplier.hpp> |
| 31 | #include <com/sun/star/text/XEndnotesSupplier.hpp> |
| 32 | #include <com/sun/star/text/XContentControlsSupplier.hpp> |
| 33 | #include <com/sun/star/text/XTextSectionsSupplier.hpp> |
| 34 | #include <com/sun/star/text/XLineNumberingProperties.hpp> |
| 35 | #include <com/sun/star/text/XChapterNumberingSupplier.hpp> |
| 36 | #include <com/sun/star/text/XPagePrintable.hpp> |
| 37 | #include <com/sun/star/text/XTextFieldsSupplier.hpp> |
| 38 | #include <com/sun/star/text/XTextGraphicObjectsSupplier.hpp> |
| 39 | #include <com/sun/star/text/XTextTablesSupplier.hpp> |
| 40 | #include <com/sun/star/text/XDocumentIndexesSupplier.hpp> |
| 41 | #include <com/sun/star/text/XBookmarksSupplier.hpp> |
| 42 | #include <com/sun/star/text/XTextDocument.hpp> |
| 43 | #include <com/sun/star/text/XTextEmbeddedObjectsSupplier.hpp> |
| 44 | #include <com/sun/star/text/XReferenceMarksSupplier.hpp> |
| 45 | #include <com/sun/star/text/XTextFramesSupplier.hpp> |
| 46 | #include <com/sun/star/drawing/XDrawPageSupplier.hpp> |
| 47 | #include <com/sun/star/drawing/XDrawPagesSupplier.hpp> |
| 48 | #include <com/sun/star/util/XReplaceable.hpp> |
| 49 | #include <com/sun/star/util/XRefreshable.hpp> |
| 50 | #include <com/sun/star/util/XLinkUpdate.hpp> |
| 51 | #include <com/sun/star/view/XRenderable.hpp> |
| 52 | #include <com/sun/star/lang/XServiceInfo.hpp> |
| 53 | #include <com/sun/star/beans/XPropertySet.hpp> |
| 54 | #include <com/sun/star/beans/XPropertyState.hpp> |
| 55 | #include <com/sun/star/xforms/XFormsSupplier.hpp> |
| 56 | #include <com/sun/star/text/XFlatParagraphIteratorProvider.hpp> |
| 57 | #include <com/sun/star/document/XDocumentLanguages.hpp> |
| 58 | #include <com/sun/star/util/XCloneable.hpp> |
| 59 | #include <o3tl/deleter.hxx> |
| 60 | #include <rtl/ref.hxx> |
| 61 | #include <svx/fmdmod.hxx> |
| 62 | #include <editeng/UnoForbiddenCharsTable.hxx> |
| 63 | #include <cppuhelper/implbase.hxx> |
| 64 | #include <vcl/ITiledRenderable.hxx> |
| 65 | #include <com/sun/star/text/XPasteBroadcaster.hpp> |
| 66 | |
| 67 | #include "unobaseclass.hxx" |
| 68 | #include "viewopt.hxx" |
| 69 | |
| 70 | #include <deque> |
| 71 | |
| 72 | class SwDoc; |
| 73 | class SwDocShell; |
| 74 | class SwXBodyText; |
| 75 | class SwFmDrawPage; |
| 76 | class SwUnoCursor; |
| 77 | class SwXDocumentPropertyHelper; |
| 78 | class SfxViewFrame; |
| 79 | class SfxViewShell; |
| 80 | class SwPrintUIOptions; |
| 81 | class SwPrintData; |
| 82 | class SwRenderData; |
| 83 | class SwViewShell; |
| 84 | class SfxItemPropertySet; |
| 85 | class SwXTextTables; |
| 86 | class SwXTextFrames; |
| 87 | class SwXTextGraphicObjects; |
| 88 | class SwXTextEmbeddedObjects; |
| 89 | class SwXTextFieldTypes; |
| 90 | class SwXTextFieldMasters; |
| 91 | class SwXTextSections; |
| 92 | class SwXNumberingRulesCollection; |
| 93 | class SwXFootnote; |
| 94 | class SwXFootnotes; |
| 95 | class SwXContentControls; |
| 96 | class SwXDocumentIndexes; |
| 97 | class SwXStyleFamilies; |
| 98 | class SwXStyle; |
| 99 | class SwXAutoStyles; |
| 100 | class SwXBookmarks; |
| 101 | class SwXChapterNumbering; |
| 102 | class SwXFootnoteProperties; |
| 103 | class SwXEndnoteProperties; |
| 104 | class SwXLineNumberingProperties; |
| 105 | class SwXReferenceMarks; |
| 106 | class SwXLinkTargetSupplier; |
| 107 | class SwXRedlines; |
| 108 | class SwXDocumentSettings; |
| 109 | class SwXTextDefaults; |
| 110 | class SwXBookmark; |
| 111 | class SwXTextSection; |
| 112 | class SwXTextField; |
| 113 | class SwXLineBreak; |
| 114 | class SwXTextFrame; |
| 115 | class SwXTextGraphicObject; |
| 116 | class SwXPageStyle; |
| 117 | class SwXContentControl; |
| 118 | class SwXTextEmbeddedObject; |
| 119 | class SvXMLEmbeddedObjectHelper; |
| 120 | class SwXFieldmark; |
| 121 | class SwXSection; |
| 122 | class SwXFieldMaster; |
| 123 | class SwXDocumentIndex; |
| 124 | class SvNumberFormatsSupplierObj; |
| 125 | namespace com::sun::star::frame { class XController; } |
| 126 | |
| 127 | typedef cppu::ImplInheritanceHelper |
| 128 | < |
| 129 | SfxBaseModel, |
| 130 | css::text::XTextDocument, |
| 131 | css::text::XLineNumberingProperties, |
| 132 | css::text::XChapterNumberingSupplier, |
| 133 | css::text::XNumberingRulesSupplier, |
| 134 | css::text::XFootnotesSupplier, |
| 135 | css::text::XEndnotesSupplier, |
| 136 | css::text::XContentControlsSupplier, |
| 137 | css::util::XReplaceable, |
| 138 | css::text::XPagePrintable, |
| 139 | css::text::XReferenceMarksSupplier, |
| 140 | css::text::XTextTablesSupplier, |
| 141 | css::text::XTextFramesSupplier, |
| 142 | css::text::XBookmarksSupplier, |
| 143 | css::text::XTextSectionsSupplier, |
| 144 | css::text::XTextGraphicObjectsSupplier, |
| 145 | css::text::XTextEmbeddedObjectsSupplier, |
| 146 | css::text::XTextFieldsSupplier, |
| 147 | css::style::XStyleFamiliesSupplier, |
| 148 | css::style::XAutoStylesSupplier, |
| 149 | css::lang::XServiceInfo, |
| 150 | css::drawing::XDrawPageSupplier, |
| 151 | css::drawing::XDrawPagesSupplier, |
| 152 | css::text::XDocumentIndexesSupplier, |
| 153 | css::beans::XPropertySet, |
| 154 | css::beans::XPropertyState, |
| 155 | css::document::XLinkTargetSupplier, |
| 156 | css::document::XRedlinesSupplier, |
| 157 | css::util::XRefreshable, |
| 158 | css::util::XLinkUpdate, |
| 159 | css::view::XRenderable, |
| 160 | css::xforms::XFormsSupplier, |
| 161 | css::text::XFlatParagraphIteratorProvider, |
| 162 | css::document::XDocumentLanguages, |
| 163 | css::util::XCloneable, |
| 164 | css::text::XPasteBroadcaster |
| 165 | > |
| 166 | SwXTextDocumentBaseClass; |
| 167 | |
| 168 | class SW_DLLPUBLIC SwXTextDocument final : public SwXTextDocumentBaseClass, |
| 169 | public SvxFmMSFactory, |
| 170 | public vcl::ITiledRenderable |
| 171 | { |
| 172 | private: |
| 173 | class Impl; |
| 174 | ::sw::UnoImplPtr<Impl> m_pImpl; |
| 175 | |
| 176 | std::deque<std::unique_ptr<UnoActionContext, o3tl::default_delete<UnoActionContext>>> maActionArr; |
| 177 | |
| 178 | const SfxItemPropertySet* m_pPropSet; |
| 179 | |
| 180 | SwDocShell* m_pDocShell; |
| 181 | |
| 182 | rtl::Reference<SwFmDrawPage> m_xDrawPage; |
| 183 | |
| 184 | rtl::Reference<SwXBodyText> m_xBodyText; |
| 185 | rtl::Reference< SvNumberFormatsSupplierObj > m_xNumFormatAgg; |
| 186 | |
| 187 | rtl::Reference<SwXNumberingRulesCollection> mxXNumberingRules; |
| 188 | rtl::Reference<SwXFootnotes> mxXFootnotes; |
| 189 | rtl::Reference<SwXFootnoteProperties> mxXFootnoteSettings; |
| 190 | rtl::Reference<SwXFootnotes> mxXEndnotes; |
| 191 | rtl::Reference<SwXEndnoteProperties> mxXEndnoteSettings; |
| 192 | rtl::Reference<SwXContentControls> mxXContentControls; |
| 193 | rtl::Reference<SwXReferenceMarks> mxXReferenceMarks; |
| 194 | rtl::Reference<SwXTextFieldTypes> mxXTextFieldTypes; |
| 195 | rtl::Reference<SwXTextFieldMasters> mxXTextFieldMasters; |
| 196 | rtl::Reference<SwXTextSections> mxXTextSections; |
| 197 | rtl::Reference<SwXBookmarks> mxXBookmarks; |
| 198 | rtl::Reference<SwXTextTables> mxXTextTables; |
| 199 | rtl::Reference<SwXTextFrames> mxXTextFrames; |
| 200 | rtl::Reference<SwXTextGraphicObjects> mxXGraphicObjects; |
| 201 | rtl::Reference<SwXTextEmbeddedObjects> mxXEmbeddedObjects; |
| 202 | rtl::Reference<SwXStyleFamilies> mxXStyleFamilies; |
| 203 | mutable rtl::Reference<SwXAutoStyles> mxXAutoStyles; |
| 204 | rtl::Reference<SwXChapterNumbering> mxXChapterNumbering; |
| 205 | rtl::Reference<SwXDocumentIndexes> mxXDocumentIndexes; |
| 206 | |
| 207 | rtl::Reference<SwXLineNumberingProperties> mxXLineNumberingProperties; |
| 208 | rtl::Reference<SwXLinkTargetSupplier> mxLinkTargetSupplier; |
| 209 | rtl::Reference<SwXRedlines> mxXRedlines; |
| 210 | |
| 211 | //temporary frame to enable PDF export if no valid view is available |
| 212 | SfxViewFrame* m_pHiddenViewFrame; |
| 213 | rtl::Reference<SwXDocumentPropertyHelper> mxPropertyHelper; |
| 214 | |
| 215 | std::unique_ptr<SwPrintUIOptions> m_pPrintUIOptions; |
| 216 | std::unique_ptr<SwRenderData> m_pRenderData; |
| 217 | |
| 218 | void GetNumberFormatter(); |
| 219 | |
| 220 | css::uno::Reference<css::uno::XInterface> create( |
| 221 | OUString const & rServiceName, |
| 222 | css::uno::Sequence<css::uno::Any> const * arguments); |
| 223 | |
| 224 | // used for XRenderable implementation |
| 225 | SfxViewShell * GuessViewShell( /* out */ bool &rbIsSwSrcView, const css::uno::Reference< css::frame::XController >& rController = css::uno::Reference< css::frame::XController >() ); |
| 226 | SwDoc * GetRenderDoc( SfxViewShell *&rpView, const css::uno::Any& rSelection, bool bIsPDFExport ); |
| 227 | SfxViewShell * GetRenderView( bool &rbIsSwSrcView, const css::uno::Sequence< css::beans::PropertyValue >& rxOptions, bool bIsPDFExport ); |
| 228 | |
| 229 | OUString maBuildId; |
| 230 | |
| 231 | // boolean for XPagePrintable |
| 232 | // set in XPagePrintable::printPages(..) to indicate that the PagePrintSettings |
| 233 | // has to be applied in XRenderable::getRenderer(..) through which the printing |
| 234 | // is implemented. |
| 235 | bool m_bApplyPagePrintSettingsFromXPagePrintable; |
| 236 | |
| 237 | /** abstract SdrModel provider */ |
| 238 | virtual SdrModel& getSdrModelFromUnoModel() const override; |
| 239 | |
| 240 | virtual ~SwXTextDocument() override; |
| 241 | |
| 242 | void ThrowIfInvalid() const; |
| 243 | SwDoc& GetDocOrThrow() const; |
| 244 | |
| 245 | public: |
| 246 | SwXTextDocument(SwDocShell* pShell); |
| 247 | |
| 248 | void NotifyRefreshListeners(); |
| 249 | virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override; |
| 250 | virtual void SAL_CALL acquire( ) noexcept override; |
| 251 | virtual void SAL_CALL release( ) noexcept override; |
| 252 | |
| 253 | //XWeak |
| 254 | virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override; |
| 255 | |
| 256 | static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId(); |
| 257 | |
| 258 | //XUnoTunnel |
| 259 | virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override; |
| 260 | |
| 261 | //XTextDocument |
| 262 | virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override; |
| 263 | rtl::Reference< SwXBodyText > getBodyText(); |
| 264 | virtual void SAL_CALL reformat() override; |
| 265 | |
| 266 | using SfxBaseModel::addEventListener; |
| 267 | using SfxBaseModel::removeEventListener; |
| 268 | |
| 269 | //XModel |
| 270 | virtual sal_Bool SAL_CALL attachResource( const OUString& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) override; |
| 271 | virtual OUString SAL_CALL getURL( ) override; |
| 272 | virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getArgs( ) override; |
| 273 | virtual void SAL_CALL connectController( const css::uno::Reference< css::frame::XController >& xController ) override; |
| 274 | virtual void SAL_CALL disconnectController( const css::uno::Reference< css::frame::XController >& xController ) override; |
| 275 | virtual void SAL_CALL lockControllers( ) override; |
| 276 | virtual void SAL_CALL unlockControllers( ) override; |
| 277 | virtual sal_Bool SAL_CALL hasControllersLocked( ) override; |
| 278 | virtual css::uno::Reference< css::frame::XController > SAL_CALL getCurrentController( ) override; |
| 279 | virtual void SAL_CALL setCurrentController( const css::uno::Reference< css::frame::XController >& xController ) override; |
| 280 | virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getCurrentSelection( ) override; |
| 281 | |
| 282 | //XComponent |
| 283 | virtual void SAL_CALL dispose() override; |
| 284 | virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > & aListener) override; |
| 285 | virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > & aListener) override; |
| 286 | |
| 287 | //XCloseable |
| 288 | virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) override; |
| 289 | |
| 290 | //XLineNumberingProperties |
| 291 | virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getLineNumberingProperties() override; |
| 292 | |
| 293 | //XChapterNumberingSupplier |
| 294 | virtual css::uno::Reference< css::container::XIndexReplace > SAL_CALL getChapterNumberingRules() override; |
| 295 | |
| 296 | //XNumberingRulesSupplier |
| 297 | virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getNumberingRules() override; |
| 298 | |
| 299 | //XFootnotesSupplier |
| 300 | virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getFootnotes() override; |
| 301 | virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getFootnoteSettings() override; |
| 302 | |
| 303 | //XEndnotesSupplier |
| 304 | virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getEndnotes() override; |
| 305 | virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getEndnoteSettings() override; |
| 306 | |
| 307 | // XContentControlsSupplier |
| 308 | css::uno::Reference<css::container::XIndexAccess> SAL_CALL getContentControls() override; |
| 309 | |
| 310 | //XReplaceable |
| 311 | virtual css::uno::Reference< css::util::XReplaceDescriptor > SAL_CALL createReplaceDescriptor() override; |
| 312 | virtual sal_Int32 SAL_CALL replaceAll(const css::uno::Reference< css::util::XSearchDescriptor > & xDesc) override; |
| 313 | |
| 314 | //XSearchable |
| 315 | virtual css::uno::Reference< css::util::XSearchDescriptor > SAL_CALL createSearchDescriptor() override; |
| 316 | virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL findAll(const css::uno::Reference< css::util::XSearchDescriptor > & xDesc) override; |
| 317 | virtual css::uno::Reference< css::uno::XInterface > SAL_CALL findFirst(const css::uno::Reference< css::util::XSearchDescriptor > & xDesc) override; |
| 318 | virtual css::uno::Reference< css::uno::XInterface > SAL_CALL findNext(const css::uno::Reference< css::uno::XInterface > & xStartAt, const css::uno::Reference< css::util::XSearchDescriptor > & xDesc) override; |
| 319 | |
| 320 | //XPagePrintable |
| 321 | virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPagePrintSettings() override; |
| 322 | virtual void SAL_CALL setPagePrintSettings(const css::uno::Sequence< css::beans::PropertyValue >& aSettings) override; |
| 323 | virtual void SAL_CALL printPages(const css::uno::Sequence< css::beans::PropertyValue >& xOptions) override; |
| 324 | |
| 325 | //XReferenceMarksSupplier |
| 326 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getReferenceMarks() override; |
| 327 | |
| 328 | // css::text::XTextFieldsSupplier |
| 329 | virtual css::uno::Reference< css::container::XEnumerationAccess > SAL_CALL getTextFields() override; |
| 330 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTextFieldMasters() override; |
| 331 | |
| 332 | // css::text::XTextEmbeddedObjectsSupplier |
| 333 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getEmbeddedObjects() override; |
| 334 | |
| 335 | // css::text::XBookmarksSupplier |
| 336 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getBookmarks() override; |
| 337 | |
| 338 | // css::text::XTextSectionsSupplier |
| 339 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTextSections() override; |
| 340 | |
| 341 | // css::text::XTextTablesSupplier |
| 342 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTextTables() override; |
| 343 | |
| 344 | // css::text::XTextGraphicObjectsSupplier |
| 345 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getGraphicObjects() override; |
| 346 | |
| 347 | // css::text::XTextFramesSupplier |
| 348 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTextFrames() override; |
| 349 | |
| 350 | //XStyleFamiliesSupplier |
| 351 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getStyleFamilies() override; |
| 352 | |
| 353 | //XAutoStylesSupplier |
| 354 | virtual css::uno::Reference< css::style::XAutoStyles > SAL_CALL getAutoStyles( ) override; |
| 355 | |
| 356 | //XMultiServiceFactory |
| 357 | virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance(const OUString& ServiceSpecifier) override; |
| 358 | virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments(const OUString& ServiceSpecifier, |
| 359 | const css::uno::Sequence< css::uno::Any >& Arguments) override; |
| 360 | virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override; |
| 361 | |
| 362 | //XServiceInfo |
| 363 | virtual OUString SAL_CALL getImplementationName() override; |
| 364 | virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override; |
| 365 | virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; |
| 366 | |
| 367 | // css::drawing::XDrawPageSupplier |
| 368 | virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getDrawPage() override; |
| 369 | |
| 370 | // css::drawing::XDrawPagesSupplier |
| 371 | virtual css::uno::Reference< css::drawing::XDrawPages > SAL_CALL getDrawPages() override; |
| 372 | |
| 373 | // css::text::XDocumentIndexesSupplier |
| 374 | virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getDocumentIndexes() override; |
| 375 | |
| 376 | //XPropertySet |
| 377 | virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override; |
| 378 | virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override; |
| 379 | virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override; |
| 380 | virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override; |
| 381 | virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override; |
| 382 | virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; |
| 383 | virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; |
| 384 | |
| 385 | //XPropertyState |
| 386 | virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& rPropertyName ) override; |
| 387 | virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& rPropertyNames ) override; |
| 388 | virtual void SAL_CALL setPropertyToDefault( const OUString& rPropertyName ) override; |
| 389 | virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& rPropertyName ) override; |
| 390 | |
| 391 | //XLinkTargetSupplier |
| 392 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getLinks() override; |
| 393 | |
| 394 | //XRedlinesSupplier |
| 395 | virtual css::uno::Reference< css::container::XEnumerationAccess > SAL_CALL getRedlines( ) override; |
| 396 | |
| 397 | // css::util::XRefreshable |
| 398 | virtual void SAL_CALL refresh() override; |
| 399 | virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener > & l) override; |
| 400 | virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener > & l) override; |
| 401 | |
| 402 | // css::util::XLinkUpdate, |
| 403 | virtual void SAL_CALL updateLinks( ) override; |
| 404 | |
| 405 | // css::view::XRenderable |
| 406 | virtual sal_Int32 SAL_CALL getRendererCount( const css::uno::Any& aSelection, const css::uno::Sequence< css::beans::PropertyValue >& xOptions ) override; |
| 407 | 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; |
| 408 | virtual void SAL_CALL render( sal_Int32 nRenderer, const css::uno::Any& aSelection, const css::uno::Sequence< css::beans::PropertyValue >& xOptions ) override; |
| 409 | |
| 410 | // css::xforms::XFormsSupplier |
| 411 | virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getXForms( ) override; |
| 412 | |
| 413 | // css::document::XDocumentLanguages |
| 414 | virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getDocumentLanguages( ::sal_Int16 nScriptTypes, ::sal_Int16 nCount ) override; |
| 415 | |
| 416 | // css::text::XFlatParagraphIteratorProvider: |
| 417 | virtual css::uno::Reference< css::text::XFlatParagraphIterator > SAL_CALL getFlatParagraphIterator(::sal_Int32 nTextMarkupType, sal_Bool bAutomatic ) override; |
| 418 | |
| 419 | // css::util::XCloneable |
| 420 | virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) override; |
| 421 | |
| 422 | // css::text::XPasteBroadcaster |
| 423 | void SAL_CALL addPasteEventListener( |
| 424 | const ::css::uno::Reference<::css::text::XPasteListener>& xListener) override; |
| 425 | void SAL_CALL removePasteEventListener( |
| 426 | const ::css::uno::Reference<::css::text::XPasteListener>& xListener) override; |
| 427 | |
| 428 | /// @see vcl::ITiledRenderable::paintTile(). |
| 429 | virtual void paintTile( VirtualDevice &rDevice, |
| 430 | int nOutputWidth, |
| 431 | int nOutputHeight, |
| 432 | int nTilePosX, |
| 433 | int nTilePosY, |
| 434 | tools::Long nTileWidth, |
| 435 | tools::Long nTileHeight ) override; |
| 436 | /// @see vcl::ITiledRenderable::getDocumentSize(). |
| 437 | virtual Size getDocumentSize() override; |
| 438 | /// @see vcl::ITiledRenderable::setPart(). |
| 439 | virtual void setPart(int nPart, bool bAllowChangeFocus = true) override; |
| 440 | /// @see vcl::ITiledRenderable::getParts(). |
| 441 | virtual int getParts() override; |
| 442 | /// @see vcl::ITiledRenderable::getPart(). |
| 443 | virtual int getPart() override; |
| 444 | /// @see vcl::ITiledRenderable::getPartName(). |
| 445 | virtual OUString getPartName(int nPart) override; |
| 446 | /// @see vcl::ITiledRenderable::getPartHash(). |
| 447 | virtual OUString getPartHash(int nPart) override; |
| 448 | /// @see vcl::ITiledRenderable::getDocWindow(). |
| 449 | virtual VclPtr<vcl::Window> getDocWindow() override; |
| 450 | /// @see vcl::ITiledRenderable::initializeForTiledRendering(). |
| 451 | virtual void initializeForTiledRendering(const css::uno::Sequence<css::beans::PropertyValue>& rArguments) override; |
| 452 | /// @see vcl::ITiledRenderable::postKeyEvent(). |
| 453 | virtual void postKeyEvent(int nType, int nCharCode, int nKeyCode) override; |
| 454 | /// @see vcl::ITiledRenderable::postMouseEvent(). |
| 455 | virtual void postMouseEvent(int nType, int nX, int nY, int nCount, int nButtons, int nModifier) override; |
| 456 | /// @see vcl::ITiledRenderable::setTextSelection(). |
| 457 | virtual void setTextSelection(int nType, int nX, int nY) override; |
| 458 | /// @see vcl::ITiledRenderable::getSelection(). |
| 459 | virtual css::uno::Reference<css::datatransfer::XTransferable> getSelection() override; |
| 460 | /// @see vcl::ITiledRenderable::setGraphicSelection(). |
| 461 | virtual void setGraphicSelection(int nType, int nX, int nY) override; |
| 462 | /// @see vcl::ITiledRenderable::resetSelection(). |
| 463 | virtual void resetSelection() override; |
| 464 | /// @see vcl::ITiledRenderable::getPartPageRectangles(). |
| 465 | virtual OUString getPartPageRectangles() override; |
| 466 | /// @see vcl::ITiledRenderable::setClipboard(). |
| 467 | virtual void setClipboard(const css::uno::Reference<css::datatransfer::clipboard::XClipboard>& xClipboard) override; |
| 468 | /// @see vcl::ITiledRenderable::isMimeTypeSupported(). |
| 469 | virtual bool isMimeTypeSupported() override; |
| 470 | /// @see vcl::ITiledRenderable::setClientVisibleArea(). |
| 471 | virtual void setClientVisibleArea(const tools::Rectangle& rRectangle) override; |
| 472 | /// @see vcl::ITiledRenderable::setClientZoom. |
| 473 | virtual void setClientZoom(int nTilePixelWidth_, int nTilePixelHeight_, int nTileTwipWidth_, int nTileTwipHeight_) override; |
| 474 | /// @see vcl::ITiledRenderable::getPointer(). |
| 475 | virtual PointerStyle getPointer() override; |
| 476 | /// @see vcl::ITiledRenderable::getTrackedChanges(). |
| 477 | void getTrackedChanges(tools::JsonWriter&) override; |
| 478 | /// @see vcl::ITiledRenderable::getTrackedChangeAuthors(). |
| 479 | void getTrackedChangeAuthors(tools::JsonWriter& rJsonWriter) override; |
| 480 | |
| 481 | void getRulerState(tools::JsonWriter& rJsonWriter) override; |
| 482 | /// @see vcl::ITiledRenderable::getPostIts(). |
| 483 | void getPostIts(tools::JsonWriter& rJsonWriter) override; |
| 484 | |
| 485 | /// @see vcl::ITiledRenderable::executeFromFieldEvent(). |
| 486 | virtual void executeFromFieldEvent(const StringMap& aArguments) override; |
| 487 | |
| 488 | /// @see vcl::ITiledRenderable::getSearchResultRectangles(). |
| 489 | std::vector<basegfx::B2DRange> getSearchResultRectangles(const char* pPayload) override; |
| 490 | |
| 491 | /// @see vcl::ITiledRenderable::executeContentControlEvent(). |
| 492 | void executeContentControlEvent(const StringMap& aArguments) override; |
| 493 | |
| 494 | /// @see vcl::ITiledRenderable::getCommandValues(). |
| 495 | void getCommandValues(tools::JsonWriter& rJsonWriter, std::string_view rCommand) override; |
| 496 | |
| 497 | /// @see vcl::ITiledRenderable::getViewRenderState(). |
| 498 | OString getViewRenderState(SfxViewShell* pViewShell = nullptr) override; |
| 499 | |
| 500 | /// @see vcl::ITiledRenderable::supportsCommand(). |
| 501 | bool supportsCommand(std::u16string_view rCommand) override; |
| 502 | |
| 503 | /// @see vcl::ITiledRenderable::getEditMode(). |
| 504 | int getEditMode() override; |
| 505 | /// @see vcl::ITiledRenderable::setEditMode(). |
| 506 | void setEditMode(int nEditMode) override; |
| 507 | /// @see vcl::ITiledRenderable::getPartInfo(). |
| 508 | OUString getPartInfo(int nPart) override; |
| 509 | |
| 510 | void Invalidate(); |
| 511 | void Reactivate(SwDocShell* pNewDocShell); |
| 512 | SwXDocumentPropertyHelper * GetPropertyHelper (); |
| 513 | |
| 514 | void InitNewDoc(); |
| 515 | |
| 516 | SwUnoCursor* CreateCursorForSearch(css::uno::Reference< css::text::XTextCursor > & xCursor); |
| 517 | SwUnoCursor* FindAny(const css::uno::Reference< css::util::XSearchDescriptor > & xDesc, |
| 518 | css::uno::Reference< css::text::XTextCursor > & xCursor, bool bAll, |
| 519 | sal_Int32& nResult, |
| 520 | css::uno::Reference< css::uno::XInterface > const & xLastResult); |
| 521 | |
| 522 | SwDocShell* GetDocShell() {return m_pDocShell;} |
| 523 | |
| 524 | rtl::Reference<SwXDocumentIndexes> getSwDocumentIndexes(); |
| 525 | rtl::Reference<SwXTextTables> getSwTextTables(); |
| 526 | rtl::Reference<SwFmDrawPage> getSwDrawPage(); |
| 527 | rtl::Reference<SwXFootnotes> getSwXFootnotes(); |
| 528 | rtl::Reference<SwXFootnotes> getSwXEndnotes(); |
| 529 | rtl::Reference<SwXTextFieldMasters> getSwXTextFieldMasters(); |
| 530 | rtl::Reference<SwXFieldMaster> createFieldMaster(std::u16string_view sServiceName); |
| 531 | rtl::Reference<SwXTextField> createTextField(std::u16string_view sServiceName); |
| 532 | rtl::Reference<SwXFieldmark> createFieldmark(std::u16string_view sServiceName); |
| 533 | rtl::Reference<SwXDocumentIndex> createDocumentIndex(std::u16string_view sServiceName); |
| 534 | /// returns either SwXDocumentIndex or SwXTextSection |
| 535 | rtl::Reference<SwXSection> createSection(std::u16string_view rObjectType); |
| 536 | rtl::Reference<SwXDocumentSettings> createDocumentSettings(); |
| 537 | rtl::Reference<SwXTextDefaults> createTextDefaults(); |
| 538 | rtl::Reference<SwXBookmark> createBookmark(); |
| 539 | rtl::Reference<SwXFieldmark> createFieldmark(); |
| 540 | rtl::Reference<SwXTextSection> createTextSection(); |
| 541 | rtl::Reference<SwXTextField> createFieldAnnotation(); |
| 542 | rtl::Reference<SwXLineBreak> createLineBreak(); |
| 543 | rtl::Reference<SwXTextFrame> createTextFrame(); |
| 544 | rtl::Reference<SwXTextGraphicObject> createTextGraphicObject(); |
| 545 | rtl::Reference<SwXStyle> createNumberingStyle(); |
| 546 | rtl::Reference<SwXStyle> createCharacterStyle(); |
| 547 | rtl::Reference<SwXStyle> createParagraphStyle(); |
| 548 | rtl::Reference<SwXPageStyle> createPageStyle(); |
| 549 | rtl::Reference<SwXContentControl> createContentControl(); |
| 550 | rtl::Reference<SwXFootnote> createFootnote(); |
| 551 | rtl::Reference<SwXFootnote> createEndnote(); |
| 552 | rtl::Reference<SwXTextEmbeddedObject> createTextEmbeddedObject(); |
| 553 | rtl::Reference<SvXMLEmbeddedObjectHelper> createEmbeddedObjectResolver(); |
| 554 | rtl::Reference< SwXStyleFamilies > getSwStyleFamilies(); |
| 555 | rtl::Reference< SwXRedlines > getSwRedlines(); |
| 556 | rtl::Reference<SwXTextFieldTypes> getSwTextFields(); |
| 557 | rtl::Reference<SwXTextFrames> getSwTextFrames(); |
| 558 | rtl::Reference<SwXTextSections> getSwTextSections(); |
| 559 | rtl::Reference<SwXChapterNumbering> getSwChapterNumberingRules(); |
| 560 | rtl::Reference< SwXLineNumberingProperties > getSwLineNumberingProperties(); |
| 561 | rtl::Reference< SwXBookmarks > getSwBookmarks(); |
| 562 | }; |
| 563 | |
| 564 | class SwXLinkTargetSupplier final : public cppu::WeakImplHelper |
| 565 | < |
| 566 | css::container::XNameAccess, |
| 567 | css::lang::XServiceInfo |
| 568 | > |
| 569 | { |
| 570 | SwXTextDocument* m_pxDoc; |
| 571 | OUString m_sTables; |
| 572 | OUString m_sFrames; |
| 573 | OUString m_sGraphics; |
| 574 | OUString m_sOLEs; |
| 575 | OUString m_sSections; |
| 576 | OUString m_sOutlines; |
| 577 | OUString m_sBookmarks; |
| 578 | OUString m_sDrawingObjects; |
| 579 | |
| 580 | public: |
| 581 | SwXLinkTargetSupplier(SwXTextDocument& rxDoc); |
| 582 | virtual ~SwXLinkTargetSupplier() override; |
| 583 | |
| 584 | //XNameAccess |
| 585 | virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override; |
| 586 | virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override; |
| 587 | virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override; |
| 588 | |
| 589 | //XElementAccess |
| 590 | virtual css::uno::Type SAL_CALL getElementType( ) override; |
| 591 | virtual sal_Bool SAL_CALL hasElements( ) override; |
| 592 | |
| 593 | //XServiceInfo |
| 594 | virtual OUString SAL_CALL getImplementationName() override; |
| 595 | virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override; |
| 596 | virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; |
| 597 | |
| 598 | void Invalidate() {m_pxDoc = nullptr;} |
| 599 | }; |
| 600 | |
| 601 | class SwXLinkNameAccessWrapper final : public cppu::WeakImplHelper |
| 602 | < |
| 603 | css::beans::XPropertySet, |
| 604 | css::container::XNameAccess, |
| 605 | css::lang::XServiceInfo, |
| 606 | css::document::XLinkTargetSupplier |
| 607 | > |
| 608 | { |
| 609 | css::uno::Reference< css::container::XNameAccess > m_xRealAccess; |
| 610 | const SfxItemPropertySet* m_pPropSet; |
| 611 | const OUString m_sLinkSuffix; |
| 612 | const OUString m_sLinkDisplayName; |
| 613 | SwXTextDocument* m_pxDoc; |
| 614 | |
| 615 | public: |
| 616 | SwXLinkNameAccessWrapper(css::uno::Reference< css::container::XNameAccess > const & xAccess, |
| 617 | OUString aLinkDisplayName, OUString sSuffix); |
| 618 | SwXLinkNameAccessWrapper(SwXTextDocument& rxDoc, |
| 619 | OUString aLinkDisplayName, OUString sSuffix); |
| 620 | virtual ~SwXLinkNameAccessWrapper() override; |
| 621 | |
| 622 | //XNameAccess |
| 623 | virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override; |
| 624 | virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override; |
| 625 | virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override; |
| 626 | |
| 627 | //XElementAccess |
| 628 | virtual css::uno::Type SAL_CALL getElementType( ) override; |
| 629 | virtual sal_Bool SAL_CALL hasElements( ) override; |
| 630 | |
| 631 | //XPropertySet |
| 632 | virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override; |
| 633 | virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override; |
| 634 | virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override; |
| 635 | virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override; |
| 636 | virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override; |
| 637 | virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; |
| 638 | virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; |
| 639 | |
| 640 | //XLinkTargetSupplier |
| 641 | virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getLinks() override; |
| 642 | |
| 643 | //XServiceInfo |
| 644 | virtual OUString SAL_CALL getImplementationName() override; |
| 645 | virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override; |
| 646 | virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; |
| 647 | |
| 648 | }; |
| 649 | |
| 650 | class SwXOutlineTarget final : public cppu::WeakImplHelper |
| 651 | < |
| 652 | css::beans::XPropertySet, |
| 653 | css::lang::XServiceInfo |
| 654 | > |
| 655 | { |
| 656 | const SfxItemPropertySet* m_pPropSet; |
| 657 | OUString m_sOutlineText; |
| 658 | OUString m_sActualText; |
| 659 | const sal_Int32 m_nOutlineLevel; |
| 660 | |
| 661 | public: |
| 662 | SwXOutlineTarget(OUString aOutlineText, OUString aActualText, |
| 663 | const sal_Int32 nOutlineLevel); |
| 664 | virtual ~SwXOutlineTarget() override; |
| 665 | |
| 666 | //XPropertySet |
| 667 | virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override; |
| 668 | virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override; |
| 669 | virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override; |
| 670 | virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override; |
| 671 | virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override; |
| 672 | virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; |
| 673 | virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; |
| 674 | |
| 675 | //XServiceInfo |
| 676 | virtual OUString SAL_CALL getImplementationName() override; |
| 677 | virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override; |
| 678 | virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; |
| 679 | }; |
| 680 | |
| 681 | class SwXDrawingObjectTarget final : public cppu::WeakImplHelper |
| 682 | < |
| 683 | css::beans::XPropertySet, |
| 684 | css::lang::XServiceInfo |
| 685 | > |
| 686 | { |
| 687 | const SfxItemPropertySet* m_pPropSet; |
| 688 | OUString m_sDrawingObjectText; |
| 689 | |
| 690 | public: |
| 691 | SwXDrawingObjectTarget(OUString aDrawingObjectText); |
| 692 | virtual ~SwXDrawingObjectTarget() override; |
| 693 | |
| 694 | //XPropertySet |
| 695 | virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override; |
| 696 | virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override; |
| 697 | virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override; |
| 698 | virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override; |
| 699 | virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override; |
| 700 | virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; |
| 701 | virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override; |
| 702 | |
| 703 | //XServiceInfo |
| 704 | virtual OUString SAL_CALL getImplementationName() override; |
| 705 | virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override; |
| 706 | virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; |
| 707 | }; |
| 708 | |
| 709 | |
| 710 | enum class SwCreateDrawTable { |
| 711 | Dash = 1, Gradient, Hatch, Bitmap, TransGradient, Marker, Defaults |
| 712 | }; |
| 713 | |
| 714 | class SwXDocumentPropertyHelper final : public SvxUnoForbiddenCharsTable |
| 715 | { |
| 716 | css::uno::Reference < css::uno::XInterface > m_xDashTable; |
| 717 | css::uno::Reference < css::uno::XInterface > m_xGradientTable; |
| 718 | css::uno::Reference < css::uno::XInterface > m_xHatchTable; |
| 719 | css::uno::Reference < css::uno::XInterface > m_xBitmapTable; |
| 720 | css::uno::Reference < css::uno::XInterface > m_xTransGradientTable; |
| 721 | css::uno::Reference < css::uno::XInterface > m_xMarkerTable; |
| 722 | css::uno::Reference < css::uno::XInterface > m_xDrawDefaults; |
| 723 | |
| 724 | SwDoc* m_pDoc; |
| 725 | public: |
| 726 | SwXDocumentPropertyHelper(SwDoc& rDoc); |
| 727 | virtual ~SwXDocumentPropertyHelper() override; |
| 728 | css::uno::Reference<css::uno::XInterface> GetDrawTable(SwCreateDrawTable nWhich); |
| 729 | void Invalidate(); |
| 730 | |
| 731 | virtual void onChange() override; |
| 732 | }; |
| 733 | |
| 734 | // The class SwViewOptionAdjust_Impl is used to adjust the SwViewOption of |
| 735 | // the current SwViewShell so that fields are not printed as commands and |
| 736 | // hidden characters are always invisible. Hidden text and place holders |
| 737 | // should be printed according to the current print options. |
| 738 | // After printing the view options are restored |
| 739 | class SwViewOptionAdjust_Impl |
| 740 | { |
| 741 | SwViewShell * m_pShell; |
| 742 | SwViewOption m_aOldViewOptions; |
| 743 | public: |
| 744 | SwViewOptionAdjust_Impl( SwViewShell& rSh, const SwViewOption &rViewOptions ); |
| 745 | ~SwViewOptionAdjust_Impl(); |
| 746 | void AdjustViewOptions( SwPrintData const* const pPrtOptions, bool setShowPlaceHoldersInPDF ); |
| 747 | bool checkShell( const SwViewShell& rCompare ) const |
| 748 | { return &rCompare == m_pShell; } |
| 749 | void DontTouchThatViewShellItSmellsFunny() { m_pShell = nullptr; } |
| 750 | }; |
| 751 | |
| 752 | #endif |
| 753 | |
| 754 | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |