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