LCOV - code coverage report
Current view: top level - sw/inc - unotxdoc.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 7 0.0 %
Date: 2014-04-14 Functions: 0 13 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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/beans/PropertyValues.hpp>
      26             : #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
      27             : #include <com/sun/star/style/XAutoStylesSupplier.hpp>
      28             : #include <com/sun/star/document/XLinkTargetSupplier.hpp>
      29             : #include <com/sun/star/document/XRedlinesSupplier.hpp>
      30             : #include <com/sun/star/text/XNumberingRulesSupplier.hpp>
      31             : #include <com/sun/star/text/XFootnotesSupplier.hpp>
      32             : #include <com/sun/star/text/XEndnotesSupplier.hpp>
      33             : #include <com/sun/star/text/XEndnotesSettingsSupplier.hpp>
      34             : #include <com/sun/star/text/XTextSectionsSupplier.hpp>
      35             : #include <com/sun/star/text/XLineNumberingProperties.hpp>
      36             : #include <com/sun/star/text/XChapterNumberingSupplier.hpp>
      37             : #include <com/sun/star/text/XPagePrintable.hpp>
      38             : #include <com/sun/star/text/XTextFieldsSupplier.hpp>
      39             : #include <com/sun/star/text/XTextGraphicObjectsSupplier.hpp>
      40             : #include <com/sun/star/text/XTextTablesSupplier.hpp>
      41             : #include <com/sun/star/text/XDocumentIndexesSupplier.hpp>
      42             : #include <com/sun/star/text/XBookmarksSupplier.hpp>
      43             : #include <com/sun/star/text/XTextDocument.hpp>
      44             : #include <com/sun/star/text/XTextEmbeddedObjectsSupplier.hpp>
      45             : #include <com/sun/star/text/XReferenceMarksSupplier.hpp>
      46             : #include <com/sun/star/text/XTextFramesSupplier.hpp>
      47             : #include <com/sun/star/drawing/XDrawPageSupplier.hpp>
      48             : #include <com/sun/star/util/XReplaceable.hpp>
      49             : #include <com/sun/star/util/XReplaceDescriptor.hpp>
      50             : #include <com/sun/star/util/XRefreshable.hpp>
      51             : #include <com/sun/star/util/XLinkUpdate.hpp>
      52             : #include <com/sun/star/view/XRenderable.hpp>
      53             : #include <com/sun/star/lang/XServiceInfo.hpp>
      54             : #include <com/sun/star/frame/XController.hpp>
      55             : #include <com/sun/star/beans/XPropertySet.hpp>
      56             : #include <com/sun/star/beans/XPropertyState.hpp>
      57             : #include <com/sun/star/i18n/XForbiddenCharacters.hpp>
      58             : #include <com/sun/star/lang/Locale.hpp>
      59             : #include <com/sun/star/xforms/XFormsSupplier.hpp>
      60             : #include <com/sun/star/container/XNameContainer.hpp>
      61             : #include <com/sun/star/text/XFlatParagraphIteratorProvider.hpp>
      62             : #include <com/sun/star/document/XDocumentLanguages.hpp>
      63             : #include <com/sun/star/util/XCloneable.hpp>
      64             : #include <svl/itemprop.hxx>
      65             : #include <svx/fmdmod.hxx>
      66             : #include <editeng/UnoForbiddenCharsTable.hxx>
      67             : #include <cppuhelper/weak.hxx>
      68             : #include <cppuhelper/implbase2.hxx>
      69             : #include <cppuhelper/implbase4.hxx>
      70             : 
      71             : #include <unobaseclass.hxx>
      72             : #include <viewopt.hxx>
      73             : 
      74             : #define __IFC32 Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12, Ifc13, Ifc14, Ifc15, Ifc16, \
      75             : Ifc17, Ifc18, Ifc19, Ifc20, Ifc21, Ifc22, Ifc23, Ifc24, Ifc25, Ifc26, Ifc27, Ifc28, Ifc29, Ifc30, Ifc31, Ifc32
      76             : 
      77             : #define __CLASS_IFC32 class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, \
      78             : class Ifc8, class Ifc9, class Ifc10, class Ifc11, class Ifc12, class Ifc13, class Ifc14, class Ifc15, class Ifc16, \
      79             : class Ifc17, class Ifc18, class Ifc19, class Ifc20, class Ifc21, class Ifc22, class Ifc23, class Ifc24,\
      80             : class Ifc25, class Ifc26, class Ifc27, class Ifc28, class Ifc29, class Ifc30, class Ifc31 , class Ifc32
      81             : 
      82             : #define __PUBLIC_IFC32 public Ifc1, public Ifc2, public Ifc3, public Ifc4, public Ifc5, public Ifc6, public Ifc7, public Ifc8, public Ifc9, public Ifc10, public Ifc11, public Ifc12, \
      83             : public Ifc13, public Ifc14, public Ifc15, public Ifc16, public Ifc17, public Ifc18, \
      84             : public Ifc19, public Ifc20, public Ifc21, public Ifc22, public Ifc23, public Ifc24, \
      85             : public Ifc25, public Ifc26, public Ifc27, public Ifc28, public Ifc29, public Ifc30, \
      86             : public Ifc31, public Ifc32
      87             : #include <cppuhelper/implbase_ex.hxx>
      88             : #include <cppuhelper/implbase_ex_pre.hxx>
      89             : #define __IFC_EX_TYPE_INIT32( class_cast ) \
      90             :     __IFC_EX_TYPE_INIT( class_cast, 1 ), __IFC_EX_TYPE_INIT( class_cast, 2 ), \
      91             :     __IFC_EX_TYPE_INIT( class_cast, 3 ), __IFC_EX_TYPE_INIT( class_cast, 4 ), \
      92             :     __IFC_EX_TYPE_INIT( class_cast, 5 ), __IFC_EX_TYPE_INIT( class_cast, 6 ), \
      93             :     __IFC_EX_TYPE_INIT( class_cast, 7 ), __IFC_EX_TYPE_INIT( class_cast, 8 ), \
      94             :     __IFC_EX_TYPE_INIT( class_cast, 9 ), __IFC_EX_TYPE_INIT( class_cast, 10 ), \
      95             :     __IFC_EX_TYPE_INIT( class_cast, 11 ), __IFC_EX_TYPE_INIT( class_cast, 12 ), \
      96             :     __IFC_EX_TYPE_INIT( class_cast, 13 ), __IFC_EX_TYPE_INIT( class_cast, 14 ), \
      97             :     __IFC_EX_TYPE_INIT( class_cast, 15 ), __IFC_EX_TYPE_INIT( class_cast, 16 ), \
      98             :     __IFC_EX_TYPE_INIT( class_cast, 17 ), __IFC_EX_TYPE_INIT( class_cast, 18 ), \
      99             :     __IFC_EX_TYPE_INIT( class_cast, 19 ), __IFC_EX_TYPE_INIT( class_cast, 20 ), \
     100             :     __IFC_EX_TYPE_INIT( class_cast, 21 ), __IFC_EX_TYPE_INIT( class_cast, 22 ), \
     101             :     __IFC_EX_TYPE_INIT( class_cast, 23 ), __IFC_EX_TYPE_INIT( class_cast, 24 ), \
     102             :     __IFC_EX_TYPE_INIT( class_cast, 25 ), __IFC_EX_TYPE_INIT( class_cast, 26 ), \
     103             :     __IFC_EX_TYPE_INIT( class_cast, 27 ), __IFC_EX_TYPE_INIT( class_cast, 28 ), \
     104             :     __IFC_EX_TYPE_INIT( class_cast, 29 ), __IFC_EX_TYPE_INIT( class_cast, 30 ), \
     105             :     __IFC_EX_TYPE_INIT( class_cast, 31 ), __IFC_EX_TYPE_INIT( class_cast, 32)
     106             : #include <cppuhelper/implbase_ex_post.hxx>
     107             : 
     108           0 : __DEF_IMPLHELPER_EX( 32 )
     109             : 
     110             : class SwDoc;
     111             : class SwDocShell;
     112             : class UnoActionContext;
     113             : class SwXBodyText;
     114             : class SwXDrawPage;
     115             : class SwUnoCrsr;
     116             : class SwXDocumentPropertyHelper;
     117             : class SfxViewFrame;
     118             : class SwPrintUIOptions;
     119             : class SwPrintData;
     120             : class SwRenderData;
     121             : class SwViewShell;
     122             : 
     123             : typedef std::deque<UnoActionContext*> ActionContextArr;
     124             : 
     125             : typedef cppu::WeakImplHelper32
     126             : <
     127             :     css::text::XTextDocument,
     128             :     css::text::XLineNumberingProperties,
     129             :     css::text::XChapterNumberingSupplier,
     130             :     css::text::XNumberingRulesSupplier,
     131             :     css::text::XFootnotesSupplier,
     132             :     css::text::XEndnotesSupplier,
     133             :     css::util::XReplaceable,
     134             :     css::text::XPagePrintable,
     135             :     css::text::XReferenceMarksSupplier,
     136             :     css::text::XTextTablesSupplier,
     137             :     css::text::XTextFramesSupplier,
     138             :     css::text::XBookmarksSupplier,
     139             :     css::text::XTextSectionsSupplier,
     140             :     css::text::XTextGraphicObjectsSupplier,
     141             :     css::text::XTextEmbeddedObjectsSupplier,
     142             :     css::text::XTextFieldsSupplier,
     143             :     css::style::XStyleFamiliesSupplier,
     144             :     css::style::XAutoStylesSupplier,
     145             :     css::lang::XServiceInfo,
     146             :     css::drawing::XDrawPageSupplier,
     147             :     css::text::XDocumentIndexesSupplier,
     148             :     css::beans::XPropertySet,
     149             :     css::beans::XPropertyState,
     150             :     css::document::XLinkTargetSupplier,
     151             :     css::document::XRedlinesSupplier,
     152             :     css::util::XRefreshable,
     153             :     css::util::XLinkUpdate,
     154             :     css::view::XRenderable,
     155             :     css::xforms::XFormsSupplier,
     156             :     css::text::XFlatParagraphIteratorProvider,
     157             :     css::document::XDocumentLanguages,
     158             :     css::util::XCloneable
     159             : >
     160             : SwXTextDocumentBaseClass;
     161             : 
     162             : class SW_DLLPUBLIC SwXTextDocument : public SwXTextDocumentBaseClass,
     163             :     public SvxFmMSFactory,
     164             :     public SfxBaseModel
     165             : {
     166             : private:
     167             :     class Impl;
     168             :     ::sw::UnoImplPtr<Impl> m_pImpl;
     169             : 
     170             :     ActionContextArr        aActionArr;
     171             : 
     172             :     const SfxItemPropertySet* pPropSet;
     173             : 
     174             :     SwDocShell*             pDocShell;
     175             :     sal_Bool                    bObjectValid;
     176             : 
     177             :     SwXDrawPage*            pDrawPage;
     178             :     css::uno::Reference< css::drawing::XDrawPage > *            pxXDrawPage;
     179             : 
     180             :     css::uno::Reference< css::text::XText >                 xBodyText;
     181             :     SwXBodyText*            pBodyText;
     182             :     css::uno::Reference< css::uno::XAggregation >           xNumFmtAgg;
     183             : 
     184             :     css::uno::Reference< css::container::XIndexAccess > *     pxXNumberingRules;
     185             :     css::uno::Reference< css::container::XIndexAccess > *     pxXFootnotes;
     186             :     css::uno::Reference< css::beans::XPropertySet > *        pxXFootnoteSettings;
     187             :     css::uno::Reference< css::container::XIndexAccess > *       pxXEndnotes;
     188             :     css::uno::Reference< css::beans::XPropertySet > *        pxXEndnoteSettings;
     189             :     css::uno::Reference< css::container::XNameAccess > *            pxXReferenceMarks;
     190             :     css::uno::Reference< css::container::XEnumerationAccess > * pxXTextFieldTypes;
     191             :     css::uno::Reference< css::container::XNameAccess > *            pxXTextFieldMasters;
     192             :     css::uno::Reference< css::container::XNameAccess > *            pxXTextSections;
     193             :     css::uno::Reference< css::container::XNameAccess > *            pxXBookmarks;
     194             :     css::uno::Reference< css::container::XNameAccess > *            pxXTextTables;
     195             :     css::uno::Reference< css::container::XNameAccess > *            pxXTextFrames;
     196             :     css::uno::Reference< css::container::XNameAccess > *            pxXGraphicObjects;
     197             :     css::uno::Reference< css::container::XNameAccess > *            pxXEmbeddedObjects;
     198             :     css::uno::Reference< css::container::XNameAccess > *            pxXStyleFamilies;
     199             :     mutable css::uno::Reference< css::style::XAutoStyles > *  pxXAutoStyles;
     200             :     css::uno::Reference< css::container::XIndexReplace > *        pxXChapterNumbering;
     201             :     css::uno::Reference< css::container::XIndexAccess > *       pxXDocumentIndexes;
     202             : 
     203             :     css::uno::Reference< css::beans::XPropertySet > *       pxXLineNumberingProperties;
     204             :     css::uno::Reference< css::container::XNameAccess > *            pxLinkTargetSupplier;
     205             :     css::uno::Reference< css::container::XEnumerationAccess >*  pxXRedlines;
     206             :     css::uno::Reference< css::container::XNameContainer>        xXFormsContainer;
     207             : 
     208             :     //temporary frame to enable PDF export if no valid view is available
     209             :     SfxViewFrame*                                   m_pHiddenViewFrame;
     210             :     css::uno::Reference< css::uno::XInterface>      xPropertyHelper;
     211             :     SwXDocumentPropertyHelper*                      pPropertyHelper;
     212             : 
     213             :     SwPrintUIOptions *                              m_pPrintUIOptions;
     214             :     SwRenderData *                               m_pRenderData;
     215             : 
     216             :     void                    GetBodyText();
     217             :     void                    GetNumberFormatter();
     218             : 
     219             :     css::uno::Reference<css::uno::XInterface> create(
     220             :         OUString const & rServiceName,
     221             :         css::uno::Sequence<css::uno::Any> const * arguments);
     222             : 
     223             :     // used for XRenderable implementation
     224             :     SfxViewShell *  GuessViewShell( /* out */ bool &rbIsSwSrcView, const css::uno::Reference< css::frame::XController > xController = css::uno::Reference< css::frame::XController >() );
     225             :     SwDoc *         GetRenderDoc( SfxViewShell *&rpView, const css::uno::Any& rSelection, bool bIsPDFExport );
     226             :     SfxViewShell *  GetRenderView( bool &rbIsSwSrcView, const css::uno::Sequence< css::beans::PropertyValue >& rxOptions, bool bIsPDFExport );
     227             : 
     228             :     OUString           maBuildId;
     229             : 
     230             :     // boolean for XPagePrintable
     231             :     // set in XPagePrintable::printPages(..) to indicate that the PagePrintSettings
     232             :     // has to be applied in XRenderable::getRenderer(..) through which the printing
     233             :     // is implemented.
     234             :     sal_Bool bApplyPagePrintSettingsFromXPagePrintable;
     235             : 
     236             :     using SfxBaseModel::addEventListener;
     237             :     using SfxBaseModel::removeEventListener;
     238             : 
     239             : protected:
     240             :     virtual ~SwXTextDocument();
     241             : public:
     242             :     SwXTextDocument(SwDocShell* pShell);
     243             : 
     244             :     void NotifyRefreshListeners();
     245             :     virtual     css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     246             :     virtual void SAL_CALL acquire(  ) throw() SAL_OVERRIDE;
     247             :     virtual void SAL_CALL release(  ) throw() SAL_OVERRIDE;
     248             : 
     249             :     //XWeak
     250             :     virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     251             : 
     252             :     virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     253             : 
     254             :     static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId();
     255             : 
     256             :     //XUnoTunnel
     257             :     virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     258             : 
     259             :     //XTextDocument
     260             :     virtual css::uno::Reference< css::text::XText >  SAL_CALL getText(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     261             :     virtual void SAL_CALL reformat(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     262             : 
     263             :     //XModel
     264             :     virtual sal_Bool SAL_CALL attachResource( const OUString& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     265             :     virtual OUString SAL_CALL getURL(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     266             :     virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getArgs(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     267             :     virtual void SAL_CALL connectController( const css::uno::Reference< css::frame::XController >& xController ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     268             :     virtual void SAL_CALL disconnectController( const css::uno::Reference< css::frame::XController >& xController ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     269             :     virtual void SAL_CALL lockControllers(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     270             :     virtual void SAL_CALL unlockControllers(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     271             :     virtual sal_Bool SAL_CALL hasControllersLocked(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     272             :     virtual css::uno::Reference< css::frame::XController > SAL_CALL getCurrentController(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     273             :     virtual void SAL_CALL setCurrentController( const css::uno::Reference< css::frame::XController >& xController ) throw(css::container::NoSuchElementException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     274             :     virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getCurrentSelection(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     275             : 
     276             :     //XComponent
     277             :     virtual void SAL_CALL dispose(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     278             :     virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > & aListener) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     279             :     virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > & aListener) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     280             : 
     281             :     //XCloseable
     282             :     virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) throw (css::util::CloseVetoException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     283             : 
     284             :     //XLineNumberingProperties
     285             :     virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getLineNumberingProperties(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     286             : 
     287             :     //XChapterNumberingSupplier
     288             :     virtual css::uno::Reference< css::container::XIndexReplace >  SAL_CALL getChapterNumberingRules(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     289             : 
     290             :     //XNumberingRulesSupplier
     291             :     virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getNumberingRules() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     292             : 
     293             :     //XFootnotesSupplier
     294             :     virtual css::uno::Reference< css::container::XIndexAccess >  SAL_CALL getFootnotes(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     295             :     virtual css::uno::Reference< css::beans::XPropertySet >  SAL_CALL getFootnoteSettings(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     296             : 
     297             :     //XEndnotesSupplier
     298             :     virtual css::uno::Reference< css::container::XIndexAccess >  SAL_CALL getEndnotes(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     299             :     virtual css::uno::Reference< css::beans::XPropertySet >  SAL_CALL getEndnoteSettings(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     300             : 
     301             :     //XReplaceable
     302             :     virtual css::uno::Reference< css::util::XReplaceDescriptor >  SAL_CALL createReplaceDescriptor(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     303             :     virtual sal_Int32 SAL_CALL replaceAll(const css::uno::Reference< css::util::XSearchDescriptor > & xDesc) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     304             : 
     305             :     //XSearchable
     306             :     virtual css::uno::Reference< css::util::XSearchDescriptor >  SAL_CALL createSearchDescriptor(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     307             :     virtual css::uno::Reference< css::container::XIndexAccess >  SAL_CALL findAll(const css::uno::Reference< css::util::XSearchDescriptor > & xDesc) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     308             :     virtual css::uno::Reference< css::uno::XInterface >  SAL_CALL findFirst(const css::uno::Reference< css::util::XSearchDescriptor > & xDesc) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     309             :     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) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     310             : 
     311             :     //XPagePrintable
     312             :     virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPagePrintSettings(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     313             :     virtual void SAL_CALL setPagePrintSettings(const css::uno::Sequence< css::beans::PropertyValue >& aSettings) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     314             :     virtual void SAL_CALL printPages(const css::uno::Sequence< css::beans::PropertyValue >& xOptions) throw( css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     315             : 
     316             :     //XReferenceMarksSupplier
     317             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getReferenceMarks(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     318             : 
     319             :     // css::text::XTextFieldsSupplier
     320             :     virtual css::uno::Reference< css::container::XEnumerationAccess >  SAL_CALL getTextFields(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     321             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getTextFieldMasters(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     322             : 
     323             :     // css::text::XTextEmbeddedObjectsSupplier
     324             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getEmbeddedObjects(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     325             : 
     326             :     // css::text::XBookmarksSupplier
     327             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getBookmarks(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     328             : 
     329             :     // css::text::XTextSectionsSupplier
     330             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getTextSections(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     331             : 
     332             :     // css::text::XTextTablesSupplier
     333             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getTextTables(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     334             : 
     335             :     // css::text::XTextGraphicObjectsSupplier
     336             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getGraphicObjects(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     337             : 
     338             :     // css::text::XTextFramesSupplier
     339             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getTextFrames(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     340             : 
     341             :     //XStyleFamiliesSupplier
     342             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getStyleFamilies(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     343             : 
     344             :     //XAutoStylesSupplier
     345             :     virtual css::uno::Reference< css::style::XAutoStyles > SAL_CALL getAutoStyles(  ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     346             : 
     347             :     //XMultiServiceFactory
     348             :     virtual css::uno::Reference< css::uno::XInterface >  SAL_CALL createInstance(const OUString& ServiceSpecifier)
     349             :                 throw( css::uno::Exception, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     350             :     virtual css::uno::Reference< css::uno::XInterface >  SAL_CALL createInstanceWithArguments(const OUString& ServiceSpecifier,
     351             :                 const css::uno::Sequence< css::uno::Any >& Arguments)
     352             :                 throw( css::uno::Exception, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     353             :     virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames(void)
     354             :                 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     355             : 
     356             :     //XServiceInfo
     357             :     virtual OUString SAL_CALL getImplementationName(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     358             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     359             :     virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     360             : 
     361             :     // css::drawing::XDrawPageSupplier
     362             :     virtual css::uno::Reference< css::drawing::XDrawPage >  SAL_CALL getDrawPage(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     363             : 
     364             :     // css::text::XDocumentIndexesSupplier
     365             :     virtual css::uno::Reference< css::container::XIndexAccess >  SAL_CALL getDocumentIndexes(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     366             : 
     367             :     //XPropertySet
     368             :     virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     369             :     virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue )
     370             :         throw (css::beans::UnknownPropertyException,
     371             :                css::beans::PropertyVetoException,
     372             :                css::lang::IllegalArgumentException,
     373             :                css::lang::WrappedTargetException,
     374             :                css::uno::RuntimeException,
     375             :                std::exception) SAL_OVERRIDE;
     376             :     virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     377             :     virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     378             :     virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     379             :     virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     380             :     virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     381             : 
     382             :     //XPropertyState
     383             :     virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& rPropertyName ) throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     384             :     virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& rPropertyNames ) throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     385             :     virtual void SAL_CALL setPropertyToDefault( const OUString& rPropertyName ) throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     386             :     virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& rPropertyName ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     387             : 
     388             :     //XLinkTargetSupplier
     389             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getLinks(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     390             : 
     391             :     //XRedlinesSupplier
     392             :     virtual css::uno::Reference< css::container::XEnumerationAccess > SAL_CALL getRedlines(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     393             : 
     394             :     // css::util::XRefreshable
     395             :     virtual void SAL_CALL refresh(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     396             :     virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener > & l) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     397             :     virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener > & l) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     398             : 
     399             :     // css::util::XLinkUpdate,
     400             :     virtual void SAL_CALL updateLinks(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     401             : 
     402             :     // css::view::XRenderable
     403             :     virtual sal_Int32 SAL_CALL getRendererCount( const css::uno::Any& aSelection, const css::uno::Sequence< css::beans::PropertyValue >& xOptions )
     404             :         throw (css::lang::IllegalArgumentException,
     405             :                css::uno::RuntimeException,
     406             :                std::exception) SAL_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 )
     408             :         throw (css::lang::IllegalArgumentException,
     409             :                css::uno::RuntimeException,
     410             :                std::exception) SAL_OVERRIDE;
     411             :     virtual void SAL_CALL render( sal_Int32 nRenderer, const css::uno::Any& aSelection, const css::uno::Sequence< css::beans::PropertyValue >& xOptions )
     412             :         throw (css::lang::IllegalArgumentException,
     413             :                css::uno::RuntimeException,
     414             :                std::exception) SAL_OVERRIDE;
     415             : 
     416             :     // css::xforms::XFormsSupplier
     417             :     virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getXForms(  ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     418             : 
     419             :     // css::document::XDocumentLanguages
     420             :     virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getDocumentLanguages( ::sal_Int16 nScriptTypes, ::sal_Int16 nCount )
     421             :         throw (css::lang::IllegalArgumentException,
     422             :                css::uno::RuntimeException,
     423             :                std::exception) SAL_OVERRIDE;
     424             : 
     425             :     // css::text::XFlatParagraphIteratorProvider:
     426             :     virtual css::uno::Reference< css::text::XFlatParagraphIterator > SAL_CALL getFlatParagraphIterator(::sal_Int32 nTextMarkupType, sal_Bool bAutomatic ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     427             : 
     428             :     // ::com::sun::star::util::XCloneable
     429             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     430             : 
     431             :     void                        Invalidate();
     432             :     void                        Reactivate(SwDocShell* pNewDocShell);
     433             :     SwXDocumentPropertyHelper * GetPropertyHelper ();
     434           0 :     sal_Bool                    IsValid() const {return bObjectValid;}
     435             : 
     436             :     void                        InitNewDoc();
     437             : 
     438             :     SwUnoCrsr*                  CreateCursorForSearch(css::uno::Reference< css::text::XTextCursor > & xCrsr);
     439             :     SwUnoCrsr*                  FindAny(const css::uno::Reference< css::util::XSearchDescriptor > & xDesc,
     440             :                                             css::uno::Reference< css::text::XTextCursor > & xCrsr, sal_Bool bAll,
     441             :                                             sal_Int32& nResult,
     442             :                                             css::uno::Reference< css::uno::XInterface >  xLastResult);
     443             : 
     444             :     SwXDrawPage*                GetDrawPage();
     445           0 :     SwDocShell*                 GetDocShell() {return pDocShell;}
     446             : 
     447             :     void * SAL_CALL operator new( size_t ) throw();
     448             :     void SAL_CALL operator delete( void * ) throw();
     449             : 
     450             : };
     451             : 
     452             : class SwXLinkTargetSupplier : public cppu::WeakImplHelper2
     453             : <
     454             :     css::container::XNameAccess,
     455             :     css::lang::XServiceInfo
     456             : >
     457             : {
     458             :     SwXTextDocument* pxDoc;
     459             :     OUString sTables;
     460             :     OUString sFrames;
     461             :     OUString sGraphics;
     462             :     OUString sOLEs;
     463             :     OUString sSections;
     464             :     OUString sOutlines;
     465             :     OUString sBookmarks;
     466             : 
     467             : public:
     468             :     SwXLinkTargetSupplier(SwXTextDocument& rxDoc);
     469             :     virtual ~SwXLinkTargetSupplier();
     470             : 
     471             :     //XNameAccess
     472             :     virtual css::uno::Any SAL_CALL getByName(const OUString& Name)  throw( css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     473             :     virtual css::uno::Sequence< OUString > SAL_CALL getElementNames(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     474             :     virtual sal_Bool SAL_CALL hasByName(const OUString& Name) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     475             : 
     476             :     //XElementAccess
     477             :     virtual css::uno::Type SAL_CALL getElementType(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     478             :     virtual sal_Bool SAL_CALL hasElements(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     479             : 
     480             :     //XServiceInfo
     481             :     virtual OUString SAL_CALL getImplementationName(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     482             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     483             :     virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     484             : 
     485           0 :     void    Invalidate() {pxDoc = 0;}
     486             : };
     487             : 
     488             : class SwXLinkNameAccessWrapper : public cppu::WeakImplHelper4
     489             : <
     490             :     css::beans::XPropertySet,
     491             :     css::container::XNameAccess,
     492             :     css::lang::XServiceInfo,
     493             :     css::document::XLinkTargetSupplier
     494             : >
     495             : {
     496             :     css::uno::Reference< css::container::XNameAccess >    xRealAccess;
     497             :     const SfxItemPropertySet*                                                       pPropSet;
     498             :     const OUString                                                                    sLinkSuffix;
     499             :     const OUString                                                                    sLinkDisplayName;
     500             :     css::uno::Reference< css::text::XTextDocument >         xDoc;
     501             :     SwXTextDocument*                                                                pxDoc;
     502             : 
     503             : public:
     504             :     SwXLinkNameAccessWrapper(css::uno::Reference< css::container::XNameAccess >  xAccess,
     505             :             const OUString& rLinkDisplayName, const OUString& sSuffix);
     506             :     SwXLinkNameAccessWrapper(SwXTextDocument& rxDoc,
     507             :             const OUString& rLinkDisplayName, const OUString& sSuffix);
     508             :     virtual ~SwXLinkNameAccessWrapper();
     509             : 
     510             :     //XNameAccess
     511             :     virtual css::uno::Any SAL_CALL getByName(const OUString& Name)  throw( css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     512             :     virtual css::uno::Sequence< OUString > SAL_CALL getElementNames(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     513             :     virtual sal_Bool SAL_CALL hasByName(const OUString& Name) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     514             : 
     515             :     //XElementAccess
     516             :     virtual css::uno::Type SAL_CALL getElementType(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     517             :     virtual sal_Bool SAL_CALL hasElements(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     518             : 
     519             :     //XPropertySet
     520             :     virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     521             :     virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     522             :     virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     523             :     virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     524             :     virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     525             :     virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     526             :     virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     527             : 
     528             :     //XLinkTargetSupplier
     529             :     virtual css::uno::Reference< css::container::XNameAccess >  SAL_CALL getLinks(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     530             : 
     531             :     //XServiceInfo
     532             :     virtual OUString SAL_CALL getImplementationName(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     533             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     534             :     virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     535             : 
     536             : };
     537             : 
     538             : class SwXOutlineTarget : public cppu::WeakImplHelper2
     539             : <
     540             :     css::beans::XPropertySet,
     541             :     css::lang::XServiceInfo
     542             : >
     543             : {
     544             :     const SfxItemPropertySet*   pPropSet;
     545             :     OUString                      sOutlineText;
     546             : 
     547             : public:
     548             :     SwXOutlineTarget(const OUString& rOutlineText);
     549             :     virtual ~SwXOutlineTarget();
     550             : 
     551             :     //XPropertySet
     552             :     virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     553             :     virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     554             :     virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     555             :     virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     556             :     virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     557             :     virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     558             :     virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     559             : 
     560             :     //XServiceInfo
     561             :     virtual OUString SAL_CALL getImplementationName(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     562             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     563             :     virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     564             : };
     565             : 
     566             : class SwXDocumentPropertyHelper : public SvxUnoForbiddenCharsTable
     567             : {
     568             :     css::uno::Reference < css::uno::XInterface > xDashTable;
     569             :     css::uno::Reference < css::uno::XInterface > xGradientTable;
     570             :     css::uno::Reference < css::uno::XInterface > xHatchTable;
     571             :     css::uno::Reference < css::uno::XInterface > xBitmapTable;
     572             :     css::uno::Reference < css::uno::XInterface > xTransGradientTable;
     573             :     css::uno::Reference < css::uno::XInterface > xMarkerTable;
     574             :     css::uno::Reference < css::uno::XInterface > xDrawDefaults;
     575             : 
     576             :     SwDoc*  m_pDoc;
     577             : public:
     578             :     SwXDocumentPropertyHelper(SwDoc& rDoc);
     579             :     virtual ~SwXDocumentPropertyHelper();
     580             :     css::uno::Reference<css::uno::XInterface> GetDrawTable(short nWhich);
     581             :     void Invalidate();
     582             : 
     583             :     virtual void onChange() SAL_OVERRIDE;
     584             : };
     585             : 
     586             : /*  The class SwViewOptionAdjust_Impl is used to adjust the SwViewOption of
     587             :     the current SwViewShell so that fields are not printed as commands and
     588             :     hidden characters are always invisible. Hidden text and place holders
     589             :     should be printed according to the current print options.
     590             :     After printing the view options are restored
     591             :   -----------------------------------------------------------------------*/
     592             : class SwViewOptionAdjust_Impl
     593             : {
     594             :     SwViewShell *     m_pShell;
     595             :     SwViewOption    m_aOldViewOptions;
     596             : 
     597             : public:
     598             :     SwViewOptionAdjust_Impl( SwViewShell& rSh, const SwViewOption &rViewOptions );
     599             :     ~SwViewOptionAdjust_Impl();
     600             :     void AdjustViewOptions( SwPrintData const* const pPrtOptions );
     601           0 :     bool checkShell( const SwViewShell& rCompare ) const
     602           0 :     { return &rCompare == m_pShell; }
     603           0 :     void DontTouchThatViewShellItSmellsFunny() { m_pShell = 0; }
     604             : };
     605             : 
     606             : #endif
     607             : 
     608             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10