diff options
author | Eike Rathke <er@openoffice.org> | 2002-12-05 15:00:12 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2002-12-05 15:00:12 +0000 |
commit | a57235d6ff2173edcc482581a8764b6f3af1700a (patch) | |
tree | 12db9a1cf543669eb39a88cbb2c97a07f5ae18ee /sc/inc/stlsheet.hxx | |
parent | ee8f2faf2f6de222651b2bf2d775eba0e2a54dd8 (diff) |
#98454# performance: cache style sheet usage
Diffstat (limited to 'sc/inc/stlsheet.hxx')
-rw-r--r-- | sc/inc/stlsheet.hxx | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/sc/inc/stlsheet.hxx b/sc/inc/stlsheet.hxx index 534dc8bfea3a..6f4d468959b1 100644 --- a/sc/inc/stlsheet.hxx +++ b/sc/inc/stlsheet.hxx @@ -2,9 +2,9 @@ * * $RCSfile: stlsheet.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:44:50 $ + * last change: $Author: er $ $Date: 2002-12-05 16:00:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -77,6 +77,19 @@ class ScStyleSheetPool; class ScStyleSheet : public SfxStyleSheet { friend class ScStyleSheetPool; + +public: + + enum Usage + { + UNKNOWN, + USED, + NOTUSED + }; + +private: + mutable ScStyleSheet::Usage eUsage; + public: TYPEINFO(); virtual ~ScStyleSheet(); @@ -95,6 +108,11 @@ public: virtual BOOL SetName( const String& ); + void SetUsage( ScStyleSheet::Usage eUse ) const + { eUsage = eUse; } + ScStyleSheet::Usage GetUsage() const + { return eUsage; } + protected: ScStyleSheet( const String& rName, ScStyleSheetPool& rPool, |