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