summaryrefslogtreecommitdiff
path: root/sw/inc/unoatxt.hxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2002-01-09 10:57:25 +0000
committerMartin Gallwey <mtg@openoffice.org>2002-01-09 10:57:25 +0000
commitc34b0c845439aa7383973b6dd4ba1e42ad27b9b3 (patch)
tree223eb20af164c4a4d00d614aa54381c3a8337c6e /sw/inc/unoatxt.hxx
parenta830ba69604a77d2684ecf13c750883396ccb2e2 (diff)
#96240# add methods to allow for on-demand creation of a SwDocShell
Diffstat (limited to 'sw/inc/unoatxt.hxx')
-rw-r--r--sw/inc/unoatxt.hxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/sw/inc/unoatxt.hxx b/sw/inc/unoatxt.hxx
index 5d12dc40ec9c..15316c2a3da3 100644
--- a/sw/inc/unoatxt.hxx
+++ b/sw/inc/unoatxt.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoatxt.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: mtg $ $Date: 2001-05-03 14:27:43 $
+ * last change: $Author: mtg $ $Date: 2002-01-09 11:57:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -256,9 +256,15 @@ class SwXAutoTextEntry : public cppu::WeakImplHelper5
String sEntryName;
SwDocShellRef xDocSh;
SwXBodyText* pBodyText;
- sal_Bool bIsModified;
com::sun::star::uno::Reference < com::sun::star::lang::XServiceInfo> xBodyText;
+ void EnsureBodyText ()
+ {
+ if ( !pBodyText )
+ GetBodyText();
+ }
+ void GetBodyText ();
+
public:
SwXAutoTextEntry(SwGlossaries* , const String& rGroupName, const String& rEntryName);
virtual ~SwXAutoTextEntry();