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