docsh.hxx (26ea3662) docsh.hxx (baef7ff7)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 50 unchanged lines hidden (view full) ---

59class SwDrawModel;
60
61// initialize DrawModel (in form of a SwDrawModel) and DocShell (in form of a SwDocShell)
62// as needed, one or both parameters may be zero
63void SW_DLLPRIVATE InitDrawModelAndDocShell(SwDocShell* pSwDocShell, SwDrawModel* pSwDrawModel);
64
65class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener
66{
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 50 unchanged lines hidden (view full) ---

59class SwDrawModel;
60
61// initialize DrawModel (in form of a SwDrawModel) and DocShell (in form of a SwDocShell)
62// as needed, one or both parameters may be zero
63void SW_DLLPRIVATE InitDrawModelAndDocShell(SwDocShell* pSwDocShell, SwDrawModel* pSwDrawModel);
64
65class SW_DLLPUBLIC SwDocShell: public SfxObjectShell, public SfxListener
66{
67 SwDoc* pDoc; // Document
68 rtl::Reference< SfxStyleSheetBasePool > mxBasePool; // Durchreiche fuer Formate
69 FontList* pFontList; // aktuelle FontListe
67 SwDoc* mpDoc; // Document
70
68
71 // Nix geht ohne die WrtShell (historische Gruende)
72 // RuekwaertsPointer auf die View (historische Gruende)
73 // Dieser gilt solange bis im Activate ein neuer gesetzt wird
74 // oder dieser im Dtor der View geloescht wird
75 //
76 SwView* pView;
77 SwWrtShell* pWrtShell;
69 rtl::Reference< SfxStyleSheetBasePool > mxBasePool; // Durchreiche fuer Formate
78
70
79 Timer aFinishedTimer; // Timer fuers ueberpriefen der
80 // Grafik-Links. Sind alle da,
81 // dann ist Doc voll. geladen
71 FontList* mpFontList; // aktuelle FontListe
72 bool mbInUpdateFontList; //prevent nested calls of UpdateFontList
82
73
83 //SvPersistRef xOLEChildList; // fuers RemoveOLEObjects
84 comphelper::EmbeddedObjectContainer* pOLEChildList;
85 sal_Int16 nUpdateDocMode; // contains the com::sun::star::document::UpdateDocMode
86 bool bInUpdateFontList; //prevent nested calls of UpdateFontList
87 // Methoden fuer den Zugriff aufs Doc
74 // Nix geht ohne die WrtShell (historische Gruende)
75 // RuekwaertsPointer auf die View (historische Gruende)
76 // Dieser gilt solange bis im Activate ein neuer gesetzt wird
77 // oder dieser im Dtor der View geloescht wird
78 //
79 SwView* mpView;
80 SwWrtShell* mpWrtShell;
81
82 Timer aFinishedTimer; // Timer fuers ueberpriefen der
83 // Grafik-Links. Sind alle da,
84 // dann ist Doc voll. geladen
85
86 comphelper::EmbeddedObjectContainer* mpOLEChildList;
87 sal_Int16 mnUpdateDocMode; // contains the com::sun::star::document::UpdateDocMode
88
89 // Methoden fuer den Zugriff aufs Doc
88 SW_DLLPRIVATE void AddLink();
89 SW_DLLPRIVATE void RemoveLink();
90
91 // Hint abfangen fuer DocInfo
92 SW_DLLPRIVATE virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
93
94 // FileIO
95 SW_DLLPRIVATE virtual sal_Bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
96 SW_DLLPRIVATE virtual sal_Bool Load( SfxMedium& rMedium );
97 SW_DLLPRIVATE virtual sal_Bool LoadFrom( SfxMedium& rMedium );
90 SW_DLLPRIVATE void AddLink();
91 SW_DLLPRIVATE void RemoveLink();
92
93 // Hint abfangen fuer DocInfo
94 SW_DLLPRIVATE virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
95
96 // FileIO
97 SW_DLLPRIVATE virtual sal_Bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
98 SW_DLLPRIVATE virtual sal_Bool Load( SfxMedium& rMedium );
99 SW_DLLPRIVATE virtual sal_Bool LoadFrom( SfxMedium& rMedium );
98 SW_DLLPRIVATE virtual sal_Bool ConvertFrom( SfxMedium &rMedium );
99 SW_DLLPRIVATE virtual sal_Bool ConvertTo( SfxMedium &rMedium );
100 SW_DLLPRIVATE virtual sal_Bool ConvertFrom( SfxMedium &rMedium );
101 SW_DLLPRIVATE virtual sal_Bool ConvertTo( SfxMedium &rMedium );
100 SW_DLLPRIVATE virtual sal_Bool SaveAs( SfxMedium& rMedium );
101 SW_DLLPRIVATE virtual sal_Bool SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
102
103 SW_DLLPRIVATE virtual sal_uInt16 PrepareClose( sal_Bool bUI = sal_True, sal_Bool bForBrowsing = sal_False );
104
105 // DocInfo dem Doc melden
106 //
107 SW_DLLPRIVATE virtual SfxDocumentInfoDialog* CreateDocumentInfoDialog(

--- 40 unchanged lines hidden (view full) ---

148
149 using SfxObjectShell::GetVisArea;
150 using SfxObjectShell::GetStyleFamilyBitmap;
151
152protected:
153 /// override to update text fields
154 virtual void DoFlushDocInfo();
155
102 SW_DLLPRIVATE virtual sal_Bool SaveAs( SfxMedium& rMedium );
103 SW_DLLPRIVATE virtual sal_Bool SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
104
105 SW_DLLPRIVATE virtual sal_uInt16 PrepareClose( sal_Bool bUI = sal_True, sal_Bool bForBrowsing = sal_False );
106
107 // DocInfo dem Doc melden
108 //
109 SW_DLLPRIVATE virtual SfxDocumentInfoDialog* CreateDocumentInfoDialog(

--- 40 unchanged lines hidden (view full) ---

150
151 using SfxObjectShell::GetVisArea;
152 using SfxObjectShell::GetStyleFamilyBitmap;
153
154protected:
155 /// override to update text fields
156 virtual void DoFlushDocInfo();
157
158 // override <SfxObjectShell>'s method which is called in <SfxObjectShell::ImportFrom(..)>.
159 // <SfxObjectShell::ImportFrom(..)> is used by current import of Microsoft Word documents in OOXML file format.
160 virtual void BeforeLoading( SfxMedium&, const ::rtl::OUString &, const ::rtl::OUString & );
161
156public:
157 using SotObject::GetInterface;
158
159 // aber selbst implementieren
160 SFX_DECL_INTERFACE(SW_DOCSHELL)
161 SFX_DECL_OBJECTFACTORY()
162 TYPEINFO();
163

--- 26 unchanged lines hidden (view full) ---

190 void ExecStyleSheet(SfxRequest&);
191 void ExecDB(SfxRequest&);
192
193 void GetState(SfxItemSet &);
194 void StateAlways(SfxItemSet &);
195 void StateStyleSheet(SfxItemSet&, SwWrtShell* pSh = 0 );
196
197 // Doc rausreichen aber VORSICHT
162public:
163 using SotObject::GetInterface;
164
165 // aber selbst implementieren
166 SFX_DECL_INTERFACE(SW_DOCSHELL)
167 SFX_DECL_OBJECTFACTORY()
168 TYPEINFO();
169

--- 26 unchanged lines hidden (view full) ---

196 void ExecStyleSheet(SfxRequest&);
197 void ExecDB(SfxRequest&);
198
199 void GetState(SfxItemSet &);
200 void StateAlways(SfxItemSet &);
201 void StateStyleSheet(SfxItemSet&, SwWrtShell* pSh = 0 );
202
203 // Doc rausreichen aber VORSICHT
198 inline SwDoc* GetDoc() { return pDoc; }
199 inline const SwDoc* GetDoc() const { return pDoc; }
204 inline SwDoc* GetDoc() { return mpDoc; }
205 inline const SwDoc* GetDoc() const { return mpDoc; }
200 IDocumentDeviceAccess* getIDocumentDeviceAccess();
201 const IDocumentSettingAccess* getIDocumentSettingAccess() const;
202 IDocumentChartDataProviderAccess* getIDocumentChartDataProviderAccess();
203
204
205 void UpdateFontList();
206 void UpdateChildWindows();
207

--- 16 unchanged lines hidden (view full) ---

224 virtual sal_Bool Remove(sal_uInt16 nIdx1,
225 sal_uInt16 nIdx2 = INDEX_IGNORE,
226 sal_uInt16 nIdx3 = INDEX_IGNORE);
227
228 virtual Bitmap GetStyleFamilyBitmap( SfxStyleFamily eFamily, BmpColorMode eColorMode );
229
230 // View setzen fuer Aktionen ueber Shell
231 void SetView(SwView* pVw);
206 IDocumentDeviceAccess* getIDocumentDeviceAccess();
207 const IDocumentSettingAccess* getIDocumentSettingAccess() const;
208 IDocumentChartDataProviderAccess* getIDocumentChartDataProviderAccess();
209
210
211 void UpdateFontList();
212 void UpdateChildWindows();
213

--- 16 unchanged lines hidden (view full) ---

230 virtual sal_Bool Remove(sal_uInt16 nIdx1,
231 sal_uInt16 nIdx2 = INDEX_IGNORE,
232 sal_uInt16 nIdx3 = INDEX_IGNORE);
233
234 virtual Bitmap GetStyleFamilyBitmap( SfxStyleFamily eFamily, BmpColorMode eColorMode );
235
236 // View setzen fuer Aktionen ueber Shell
237 void SetView(SwView* pVw);
232 const SwView *GetView() const { return pView; }
233 SwView *GetView() { return pView; }
238 const SwView *GetView() const { return mpView; }
239 SwView *GetView() { return mpView; }
234
235 // Zugriff auf die zur SwView gehoerige SwWrtShell
240
241 // Zugriff auf die zur SwView gehoerige SwWrtShell
236 SwWrtShell *GetWrtShell() { return pWrtShell; }
237 const SwWrtShell *GetWrtShell() const { return pWrtShell; }
242 SwWrtShell *GetWrtShell() { return mpWrtShell; }
243 const SwWrtShell *GetWrtShell() const { return mpWrtShell; }
238
239 // fuer die Core - die kennt die DocShell aber keine WrtShell!
240 SwFEShell *GetFEShell();
241 const SwFEShell *GetFEShell() const
242 { return ((SwDocShell*)this)->GetFEShell(); }
243
244
245 // Fuer Einfuegen Dokument

--- 36 unchanged lines hidden (view full) ---

282 // <--
283
284 // eine Uebertragung wird abgebrochen (wird aus dem SFX gerufen)
285 virtual void CancelTransfers();
286
287 // Doc aus Html-Source neu laden
288 void ReloadFromHtml( const String& rStreamName, SwSrcView* pSrcView );
289
244
245 // fuer die Core - die kennt die DocShell aber keine WrtShell!
246 SwFEShell *GetFEShell();
247 const SwFEShell *GetFEShell() const
248 { return ((SwDocShell*)this)->GetFEShell(); }
249
250
251 // Fuer Einfuegen Dokument

--- 36 unchanged lines hidden (view full) ---

288 // <--
289
290 // eine Uebertragung wird abgebrochen (wird aus dem SFX gerufen)
291 virtual void CancelTransfers();
292
293 // Doc aus Html-Source neu laden
294 void ReloadFromHtml( const String& rStreamName, SwSrcView* pSrcView );
295
290 sal_Int16 GetUpdateDocMode() const {return nUpdateDocMode;}
296 sal_Int16 GetUpdateDocMode() const {return mnUpdateDocMode;}
291
292 void ToggleBrowserMode(sal_Bool bOn, SwView* pView);
293
294 sal_uLong LoadStylesFromFile( const String& rURL, SwgReaderOption& rOpt,
295 sal_Bool bUnoCall );
296 void InvalidateModel();
297 void ReactivateModel();
298

--- 37 unchanged lines hidden ---
297
298 void ToggleBrowserMode(sal_Bool bOn, SwView* pView);
299
300 sal_uLong LoadStylesFromFile( const String& rURL, SwgReaderOption& rOpt,
301 sal_Bool bUnoCall );
302 void InvalidateModel();
303 void ReactivateModel();
304

--- 37 unchanged lines hidden ---