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 101d2dbeb0SAndrew Rist * 111d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 121d2dbeb0SAndrew Rist * 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. 191d2dbeb0SAndrew Rist * 201d2dbeb0SAndrew Rist *************************************************************/ 211d2dbeb0SAndrew Rist 221d2dbeb0SAndrew Rist 23cdf0e10cSrcweir #ifndef _SWDOCSH_HXX 24cdf0e10cSrcweir #define _SWDOCSH_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <rtl/ref.hxx> 27cdf0e10cSrcweir #include <com/sun/star/frame/XController.hpp> 28cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.h> 29cdf0e10cSrcweir #include <vcl/timer.hxx> 30cdf0e10cSrcweir #include <sfx2/docfac.hxx> 31cdf0e10cSrcweir #include <sfx2/objsh.hxx> 32cdf0e10cSrcweir #include "swdllapi.h" 33cdf0e10cSrcweir #include <swdll.hxx> 34cdf0e10cSrcweir #include <shellid.hxx> 35cdf0e10cSrcweir 36cdf0e10cSrcweir #include <svl/lstner.hxx> 37cdf0e10cSrcweir #include <svtools/embedhlp.hxx> 38cdf0e10cSrcweir 39cdf0e10cSrcweir class SwDoc; 40cdf0e10cSrcweir class SfxDocumentInfoDialog; 41cdf0e10cSrcweir class SfxStyleSheetBasePool; 42cdf0e10cSrcweir class SfxInPlaceClient; 43cdf0e10cSrcweir class FontList; 44cdf0e10cSrcweir class SwView; 45cdf0e10cSrcweir class SwWrtShell; 46cdf0e10cSrcweir class SwFEShell; 47cdf0e10cSrcweir class Reader; 48cdf0e10cSrcweir class SwReader; 49cdf0e10cSrcweir class SwCrsrShell; 50cdf0e10cSrcweir class SwSrcView; 51cdf0e10cSrcweir class SwPaM; 52cdf0e10cSrcweir class SwgReaderOption; 53cdf0e10cSrcweir class SwOLEObj; 54cdf0e10cSrcweir class IDocumentDeviceAccess; 55cdf0e10cSrcweir class IDocumentSettingAccess; 56cdf0e10cSrcweir class IDocumentTimerAccess; 57cdf0e10cSrcweir class IDocumentChartDataProviderAccess; 58cdf0e10cSrcweir 59cdf0e10cSrcweir 60cdf0e10cSrcweir class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener 61cdf0e10cSrcweir { 62*86104fa7SOliver-Rainer Wittmann SwDoc* mpDoc; // Document 63*86104fa7SOliver-Rainer Wittmann 64*86104fa7SOliver-Rainer Wittmann rtl::Reference< SfxStyleSheetBasePool > mxBasePool; // Durchreiche fuer Formate 65*86104fa7SOliver-Rainer Wittmann 66*86104fa7SOliver-Rainer Wittmann FontList* mpFontList; // aktuelle FontListe 67*86104fa7SOliver-Rainer Wittmann bool mbInUpdateFontList; //prevent nested calls of UpdateFontList 68*86104fa7SOliver-Rainer Wittmann 69*86104fa7SOliver-Rainer Wittmann // Nix geht ohne die WrtShell (historische Gruende) 70*86104fa7SOliver-Rainer Wittmann // RuekwaertsPointer auf die View (historische Gruende) 71*86104fa7SOliver-Rainer Wittmann // Dieser gilt solange bis im Activate ein neuer gesetzt wird 72*86104fa7SOliver-Rainer Wittmann // oder dieser im Dtor der View geloescht wird 73*86104fa7SOliver-Rainer Wittmann // 74*86104fa7SOliver-Rainer Wittmann SwView* mpView; 75*86104fa7SOliver-Rainer Wittmann SwWrtShell* mpWrtShell; 76*86104fa7SOliver-Rainer Wittmann 77*86104fa7SOliver-Rainer Wittmann Timer aFinishedTimer; // Timer fuers ueberpriefen der 78*86104fa7SOliver-Rainer Wittmann // Grafik-Links. Sind alle da, 79*86104fa7SOliver-Rainer Wittmann // dann ist Doc voll. geladen 80*86104fa7SOliver-Rainer Wittmann 81*86104fa7SOliver-Rainer Wittmann comphelper::EmbeddedObjectContainer* mpOLEChildList; 82*86104fa7SOliver-Rainer Wittmann sal_Int16 mnUpdateDocMode; // contains the com::sun::star::document::UpdateDocMode 83*86104fa7SOliver-Rainer Wittmann 84*86104fa7SOliver-Rainer Wittmann // Methoden fuer den Zugriff aufs Doc 85cdf0e10cSrcweir SW_DLLPRIVATE void AddLink(); 86cdf0e10cSrcweir SW_DLLPRIVATE void RemoveLink(); 87cdf0e10cSrcweir 88cdf0e10cSrcweir // Hint abfangen fuer DocInfo 89cdf0e10cSrcweir SW_DLLPRIVATE virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 90cdf0e10cSrcweir 91cdf0e10cSrcweir // FileIO 92cdf0e10cSrcweir SW_DLLPRIVATE virtual sal_Bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ); 93cdf0e10cSrcweir SW_DLLPRIVATE virtual sal_Bool Load( SfxMedium& rMedium ); 94cdf0e10cSrcweir SW_DLLPRIVATE virtual sal_Bool LoadFrom( SfxMedium& rMedium ); 95*86104fa7SOliver-Rainer Wittmann SW_DLLPRIVATE virtual sal_Bool ConvertFrom( SfxMedium &rMedium ); 96*86104fa7SOliver-Rainer Wittmann SW_DLLPRIVATE virtual sal_Bool ConvertTo( SfxMedium &rMedium ); 97cdf0e10cSrcweir SW_DLLPRIVATE virtual sal_Bool SaveAs( SfxMedium& rMedium ); 98cdf0e10cSrcweir SW_DLLPRIVATE virtual sal_Bool SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ); 99cdf0e10cSrcweir 100cdf0e10cSrcweir SW_DLLPRIVATE virtual sal_uInt16 PrepareClose( sal_Bool bUI = sal_True, sal_Bool bForBrowsing = sal_False ); 101cdf0e10cSrcweir 102cdf0e10cSrcweir // DocInfo dem Doc melden 103cdf0e10cSrcweir // 104cdf0e10cSrcweir SW_DLLPRIVATE virtual SfxDocumentInfoDialog* CreateDocumentInfoDialog( 105cdf0e10cSrcweir Window *pParent, const SfxItemSet &); 106cdf0e10cSrcweir // OLE-Geraffel 107cdf0e10cSrcweir SW_DLLPRIVATE virtual void Draw( OutputDevice*, const JobSetup&, sal_uInt16); 108cdf0e10cSrcweir 109ff0525f2SOliver-Rainer Wittmann // Methoden fuer StyleSheets 110ff0525f2SOliver-Rainer Wittmann 111ff0525f2SOliver-Rainer Wittmann // @param nSlot 112ff0525f2SOliver-Rainer Wittmann // Only used for nFamily == SFX_STYLE_FAMILY_PAGE. Identifies optional Slot by which the edit is triggered. 113ff0525f2SOliver-Rainer Wittmann // Used to activate certain dialog pane 114ff0525f2SOliver-Rainer Wittmann SW_DLLPRIVATE sal_uInt16 Edit( 115ff0525f2SOliver-Rainer Wittmann const String &rName, 116ff0525f2SOliver-Rainer Wittmann const String& rParent, 117ff0525f2SOliver-Rainer Wittmann const sal_uInt16 nFamily, 118ff0525f2SOliver-Rainer Wittmann sal_uInt16 nMask, 119ff0525f2SOliver-Rainer Wittmann const sal_Bool bNew, 120ff0525f2SOliver-Rainer Wittmann const sal_uInt16 nSlot = 0, 121ff0525f2SOliver-Rainer Wittmann SwWrtShell* pActShell = 0, 122ff0525f2SOliver-Rainer Wittmann const sal_Bool bBasic = sal_False ); 123ff0525f2SOliver-Rainer Wittmann 124cdf0e10cSrcweir SW_DLLPRIVATE sal_uInt16 Delete(const String &rName, sal_uInt16 nFamily); 125cdf0e10cSrcweir SW_DLLPRIVATE sal_uInt16 ApplyStyles(const String &rName, sal_uInt16 nFamily, SwWrtShell* pShell = 0, 126cdf0e10cSrcweir sal_uInt16 nMode = 0 ); 127cdf0e10cSrcweir SW_DLLPRIVATE sal_uInt16 DoWaterCan( const String &rName, sal_uInt16 nFamily); 128cdf0e10cSrcweir SW_DLLPRIVATE sal_uInt16 UpdateStyle(const String &rName, sal_uInt16 nFamily, SwWrtShell* pShell = 0); 129cdf0e10cSrcweir SW_DLLPRIVATE sal_uInt16 MakeByExample(const String &rName, 130cdf0e10cSrcweir sal_uInt16 nFamily, sal_uInt16 nMask, SwWrtShell* pShell = 0); 131cdf0e10cSrcweir 132cdf0e10cSrcweir SW_DLLPRIVATE void InitDraw(); 133cdf0e10cSrcweir SW_DLLPRIVATE void SubInitNew(); // fuer InitNew und HtmlSourceModus 134cdf0e10cSrcweir 135cdf0e10cSrcweir SW_DLLPRIVATE void RemoveOLEObjects(); 136cdf0e10cSrcweir SW_DLLPRIVATE void CalcLayoutForOLEObjects(); 137cdf0e10cSrcweir 138cdf0e10cSrcweir SW_DLLPRIVATE void Init_Impl(); 139cdf0e10cSrcweir SW_DLLPRIVATE DECL_STATIC_LINK( SwDocShell, IsLoadFinished, void* ); 140cdf0e10cSrcweir 141cdf0e10cSrcweir 142cdf0e10cSrcweir using SfxObjectShell::GetVisArea; 143cdf0e10cSrcweir using SfxObjectShell::GetStyleFamilyBitmap; 144cdf0e10cSrcweir 145cdf0e10cSrcweir protected: 146cdf0e10cSrcweir /// override to update text fields 147cdf0e10cSrcweir virtual void DoFlushDocInfo(); 148cdf0e10cSrcweir 149*86104fa7SOliver-Rainer Wittmann // override <SfxObjectShell>'s method which is called in <SfxObjectShell::ImportFrom(..)>. 150*86104fa7SOliver-Rainer Wittmann // <SfxObjectShell::ImportFrom(..)> is used by current import of Microsoft Word documents in OOXML file format. 151*86104fa7SOliver-Rainer Wittmann virtual void BeforeLoading( SfxMedium&, const ::rtl::OUString &, const ::rtl::OUString & ); 152*86104fa7SOliver-Rainer Wittmann 153cdf0e10cSrcweir public: 154cdf0e10cSrcweir using SotObject::GetInterface; 155cdf0e10cSrcweir 156cdf0e10cSrcweir // aber selbst implementieren 157cdf0e10cSrcweir SFX_DECL_INTERFACE(SW_DOCSHELL) 158cdf0e10cSrcweir SFX_DECL_OBJECTFACTORY() 159cdf0e10cSrcweir TYPEINFO(); 160cdf0e10cSrcweir _GetInterface()161cdf0e10cSrcweir static SfxInterface *_GetInterface() { return GetStaticInterface(); } 162cdf0e10cSrcweir 163cdf0e10cSrcweir static rtl::OUString GetEventName( sal_Int32 nId ); 164cdf0e10cSrcweir 165cdf0e10cSrcweir //Das Doc wird fuer SO-Datenaustausch benoetigt! 166cdf0e10cSrcweir SwDocShell( SfxObjectCreateMode eMode = SFX_CREATE_MODE_EMBEDDED ); 167cdf0e10cSrcweir SwDocShell( const sal_uInt64 i_nSfxCreationFlags ); 168cdf0e10cSrcweir SwDocShell( SwDoc *pDoc, SfxObjectCreateMode eMode = SFX_CREATE_MODE_STANDARD ); 169cdf0e10cSrcweir ~SwDocShell(); 170cdf0e10cSrcweir 171cdf0e10cSrcweir // OLE 2.0-Benachrichtigung 172cdf0e10cSrcweir DECL_LINK( Ole2ModifiedHdl, void * ); 173cdf0e10cSrcweir 174cdf0e10cSrcweir // OLE-Geraffel 175cdf0e10cSrcweir virtual void SetVisArea( const Rectangle &rRect ); 176cdf0e10cSrcweir virtual Rectangle GetVisArea( sal_uInt16 nAspect ) const; 177cdf0e10cSrcweir virtual Printer *GetDocumentPrinter(); 178cdf0e10cSrcweir virtual OutputDevice* GetDocumentRefDev(); 179cdf0e10cSrcweir virtual void OnDocumentPrinterChanged( Printer * pNewPrinter ); 180cdf0e10cSrcweir virtual sal_uLong GetMiscStatus() const; 181cdf0e10cSrcweir 182cdf0e10cSrcweir virtual void PrepareReload(); 183cdf0e10cSrcweir virtual void SetModified( sal_Bool = sal_True ); 184cdf0e10cSrcweir 185cdf0e10cSrcweir // Dispatcher 186cdf0e10cSrcweir void Execute(SfxRequest &); 187cdf0e10cSrcweir void ExecStyleSheet(SfxRequest&); 188cdf0e10cSrcweir void ExecDB(SfxRequest&); 189cdf0e10cSrcweir 190cdf0e10cSrcweir void GetState(SfxItemSet &); 191cdf0e10cSrcweir void StateAlways(SfxItemSet &); 192cdf0e10cSrcweir void StateStyleSheet(SfxItemSet&, SwWrtShell* pSh = 0 ); 193cdf0e10cSrcweir 194cdf0e10cSrcweir // Doc rausreichen aber VORSICHT GetDoc()195*86104fa7SOliver-Rainer Wittmann inline SwDoc* GetDoc() { return mpDoc; } GetDoc() const196*86104fa7SOliver-Rainer Wittmann inline const SwDoc* GetDoc() const { return mpDoc; } 197cdf0e10cSrcweir IDocumentDeviceAccess* getIDocumentDeviceAccess(); 198cdf0e10cSrcweir const IDocumentSettingAccess* getIDocumentSettingAccess() const; 199cdf0e10cSrcweir IDocumentChartDataProviderAccess* getIDocumentChartDataProviderAccess(); 200cdf0e10cSrcweir 201cdf0e10cSrcweir 202cdf0e10cSrcweir void UpdateFontList(); 203cdf0e10cSrcweir void UpdateChildWindows(); 204cdf0e10cSrcweir 205cdf0e10cSrcweir // globaler IO 206cdf0e10cSrcweir virtual sal_Bool Save(); 207cdf0e10cSrcweir 208cdf0e10cSrcweir // fuer VorlagenPI 209cdf0e10cSrcweir virtual SfxStyleSheetBasePool* GetStyleSheetPool(); 210cdf0e10cSrcweir 211cdf0e10cSrcweir // Fuer Organizer 212cdf0e10cSrcweir virtual sal_Bool Insert(SfxObjectShell &rSource, 213cdf0e10cSrcweir sal_uInt16 nSourceIdx1, 214cdf0e10cSrcweir sal_uInt16 nSourceIdx2, 215cdf0e10cSrcweir sal_uInt16 nSourceIdx3, 216cdf0e10cSrcweir sal_uInt16& nIdx1, 217cdf0e10cSrcweir sal_uInt16& nIdx2, 218cdf0e10cSrcweir sal_uInt16& nIdx3, 219cdf0e10cSrcweir sal_uInt16& nRemovedIdx); 220cdf0e10cSrcweir 221cdf0e10cSrcweir virtual sal_Bool Remove(sal_uInt16 nIdx1, 222cdf0e10cSrcweir sal_uInt16 nIdx2 = INDEX_IGNORE, 223cdf0e10cSrcweir sal_uInt16 nIdx3 = INDEX_IGNORE); 224cdf0e10cSrcweir 225cdf0e10cSrcweir virtual Bitmap GetStyleFamilyBitmap( SfxStyleFamily eFamily, BmpColorMode eColorMode ); 226cdf0e10cSrcweir 227cdf0e10cSrcweir // View setzen fuer Aktionen ueber Shell 228cdf0e10cSrcweir void SetView(SwView* pVw); GetView() const229*86104fa7SOliver-Rainer Wittmann const SwView *GetView() const { return mpView; } GetView()230*86104fa7SOliver-Rainer Wittmann SwView *GetView() { return mpView; } 231cdf0e10cSrcweir 232cdf0e10cSrcweir // Zugriff auf die zur SwView gehoerige SwWrtShell GetWrtShell()233*86104fa7SOliver-Rainer Wittmann SwWrtShell *GetWrtShell() { return mpWrtShell; } GetWrtShell() const234*86104fa7SOliver-Rainer Wittmann const SwWrtShell *GetWrtShell() const { return mpWrtShell; } 235cdf0e10cSrcweir 236cdf0e10cSrcweir // fuer die Core - die kennt die DocShell aber keine WrtShell! 237cdf0e10cSrcweir SwFEShell *GetFEShell(); GetFEShell() const238cdf0e10cSrcweir const SwFEShell *GetFEShell() const 239cdf0e10cSrcweir { return ((SwDocShell*)this)->GetFEShell(); } 240cdf0e10cSrcweir 241cdf0e10cSrcweir 242cdf0e10cSrcweir // Fuer Einfuegen Dokument 243cdf0e10cSrcweir Reader* StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr, 244cdf0e10cSrcweir SwCrsrShell* pCrsrSh = 0, SwPaM* pPaM = 0); 245cdf0e10cSrcweir 246cdf0e10cSrcweir virtual long DdeGetData( const String& rItem, const String& rMimeType, 247cdf0e10cSrcweir ::com::sun::star::uno::Any & rValue ); 248cdf0e10cSrcweir virtual long DdeSetData( const String& rItem, const String& rMimeType, 249cdf0e10cSrcweir const ::com::sun::star::uno::Any & rValue ); 250cdf0e10cSrcweir virtual ::sfx2::SvLinkSource* DdeCreateLinkSource( const String& rItem ); 251cdf0e10cSrcweir virtual void FillClass( SvGlobalName * pClassName, 252cdf0e10cSrcweir sal_uInt32 * pClipFormat, 253cdf0e10cSrcweir String * pAppName, 254cdf0e10cSrcweir String * pLongUserName, 255cdf0e10cSrcweir String * pUserName, 256cdf0e10cSrcweir sal_Int32 nFileFormat, 257cdf0e10cSrcweir sal_Bool bTemplate = sal_False ) const; 258cdf0e10cSrcweir 259cdf0e10cSrcweir virtual void LoadStyles( SfxObjectShell& rSource ); 260cdf0e10cSrcweir 261cdf0e10cSrcweir void _LoadStyles( SfxObjectShell& rSource, sal_Bool bPreserveCurrentDocument ); 262cdf0e10cSrcweir 263ff0525f2SOliver-Rainer Wittmann // Show page style format dialog 264ff0525f2SOliver-Rainer Wittmann // @param nSlot 265ff0525f2SOliver-Rainer Wittmann // Identifies slot by which the dialog is triggered. Used to activate certain dialog pane 266ff0525f2SOliver-Rainer Wittmann void FormatPage( 267ff0525f2SOliver-Rainer Wittmann const String& rPage, 268ff0525f2SOliver-Rainer Wittmann const sal_uInt16 nSlot, 269ff0525f2SOliver-Rainer Wittmann SwWrtShell& rActShell ); 270cdf0e10cSrcweir 271cdf0e10cSrcweir // --> OD 2006-11-07 #i59688# 272cdf0e10cSrcweir // linked graphics are now loaded on demand. 273cdf0e10cSrcweir // Thus, loading of linked graphics no longer needed and necessary for 274cdf0e10cSrcweir // the load of document being finished. 275cdf0e10cSrcweir // // Timer starten fuers ueberpruefen der Grafik-Links. Sind alle 276cdf0e10cSrcweir // // vollstaendig geladen, dann ist das Doc fertig 277cdf0e10cSrcweir // void StartLoadFinishedTimer(); 278cdf0e10cSrcweir void LoadingFinished(); 279cdf0e10cSrcweir // <-- 280cdf0e10cSrcweir 281cdf0e10cSrcweir // eine Uebertragung wird abgebrochen (wird aus dem SFX gerufen) 282cdf0e10cSrcweir virtual void CancelTransfers(); 283cdf0e10cSrcweir 284cdf0e10cSrcweir // Doc aus Html-Source neu laden 285cdf0e10cSrcweir void ReloadFromHtml( const String& rStreamName, SwSrcView* pSrcView ); 286cdf0e10cSrcweir GetUpdateDocMode() const287*86104fa7SOliver-Rainer Wittmann sal_Int16 GetUpdateDocMode() const {return mnUpdateDocMode;} 288cdf0e10cSrcweir 289cdf0e10cSrcweir void ToggleBrowserMode(sal_Bool bOn, SwView* pView); 290cdf0e10cSrcweir 291cdf0e10cSrcweir sal_uLong LoadStylesFromFile( const String& rURL, SwgReaderOption& rOpt, 292cdf0e10cSrcweir sal_Bool bUnoCall ); 293cdf0e10cSrcweir void InvalidateModel(); 294cdf0e10cSrcweir void ReactivateModel(); 295cdf0e10cSrcweir 296cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > GetEventNames(); 297cdf0e10cSrcweir 298cdf0e10cSrcweir // --> FME 2004-08-05 #i20883# Digital Signatures and Encryption 299cdf0e10cSrcweir virtual sal_uInt16 GetHiddenInformationState( sal_uInt16 nStates ); 300cdf0e10cSrcweir // <-- 301cdf0e10cSrcweir 302cdf0e10cSrcweir // --> FME 2005-02-25 #i42634# Overwrites SfxObjectShell::UpdateLinks 303cdf0e10cSrcweir // This new function is necessary to trigger update of links in docs 304cdf0e10cSrcweir // read by the binary filter: 305cdf0e10cSrcweir virtual void UpdateLinks(); 306cdf0e10cSrcweir // <-- 307ca62e2c2SSteve Yin virtual void setDocAccTitle( const String& rTitle ); 308ca62e2c2SSteve Yin virtual const String getDocAccTitle() const; 309cdf0e10cSrcweir 310ca62e2c2SSteve Yin void setDocReadOnly( sal_Bool bReadOnly); 311ca62e2c2SSteve Yin sal_Bool getDocReadOnly() const; 312cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > 313cdf0e10cSrcweir GetController(); 314cdf0e10cSrcweir 315cdf0e10cSrcweir SfxInPlaceClient* GetIPClient( const ::svt::EmbeddedObjectRef& xObjRef ); 316cdf0e10cSrcweir 317cdf0e10cSrcweir virtual const ::sfx2::IXmlIdRegistry* GetXmlIdRegistry() const; 318cdf0e10cSrcweir 319cdf0e10cSrcweir // passwword protection for Writer (derived from SfxObjectShell) 320cdf0e10cSrcweir // see also: FN_REDLINE_ON, FN_REDLINE_ON 321cdf0e10cSrcweir virtual bool IsChangeRecording() const; 322cdf0e10cSrcweir virtual bool HasChangeRecordProtection() const; 323cdf0e10cSrcweir virtual void SetChangeRecording( bool bActivate ); 324cdf0e10cSrcweir virtual bool SetProtectionPassword( const String &rPassword ); 325cdf0e10cSrcweir virtual bool GetProtectionHash( /*out*/ ::com::sun::star::uno::Sequence< sal_Int8 > &rPasswordHash ); 326cdf0e10cSrcweir }; 327cdf0e10cSrcweir 328cdf0e10cSrcweir class Graphic; 329cdf0e10cSrcweir //implemented in source/ui/docvw/romenu.cxx 330cdf0e10cSrcweir String ExportGraphic( const Graphic &rGraphic, const String &rGrfName ); 331cdf0e10cSrcweir 332cdf0e10cSrcweir #endif 333