LCOV - code coverage report
Current view: top level - sw/inc - unotxdoc.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 4 7 57.1 %
Date: 2012-08-25 Functions: 8 13 61.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 2 50.0 %

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

Generated by: LCOV version 1.10