diff options
author | Thomas Lange <tl@openoffice.org> | 2002-01-11 14:36:08 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2002-01-11 14:36:08 +0000 |
commit | c0ad4af9a6583b1dc655778a1724a45374fbdfaf (patch) | |
tree | b282d32ef8b62668c3dfcac2605dc8e531b45950 /starmath/inc/smmod.hxx | |
parent | bae00a13adc6aa9c8ef22d7d23f5574482e04335 (diff) |
#96409# virtual device problem fixed
Diffstat (limited to 'starmath/inc/smmod.hxx')
-rw-r--r-- | starmath/inc/smmod.hxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/starmath/inc/smmod.hxx b/starmath/inc/smmod.hxx index b602c6eada25..a898b23298ef 100644 --- a/starmath/inc/smmod.hxx +++ b/starmath/inc/smmod.hxx @@ -2,9 +2,9 @@ * * $RCSfile: smmod.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: tl $ $Date: 2001-10-08 11:46:08 $ + * last change: $Author: tl $ $Date: 2002-01-11 15:36:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -154,9 +154,11 @@ class SmModule : public SmModuleDummy SmLocalizedSymbolData *pLocSymbolData; SmRectCache *pRectCache; SvtSysLocale *pSysLocale; + VirtualDevice *pVirtualDev; virtual void FillStatusBar(StatusBar &rBar); void _CreateSysLocale() const; + void _CreateVirtualDev() const; public: TYPEINFO(); @@ -182,6 +184,13 @@ public: return *pSysLocale; } + VirtualDevice & GetDefaultVirtualDev() + { + if (!pVirtualDev) + _CreateVirtualDev(); + return *pVirtualDev; + } + //virtuelle Methoden fuer den Optionendialog virtual SfxItemSet* CreateItemSet( USHORT nId ); virtual void ApplyItemSet( USHORT nId, const SfxItemSet& rSet ); |