summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc/prcntfld.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-04-04 17:16:23 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-04-04 17:16:23 +0000
commit346866101c07c6073b805305c248c2bf1942db6c (patch)
tree3fbfb9dcbdeebb163f0238b48ad4a55ca2505dfd /sw/source/ui/inc/prcntfld.hxx
parent70d0ff2e125970a541e04cf7bab66774359f4974 (diff)
INTEGRATION: CWS os7 (1.2.162); FILE MERGED
2003/03/26 11:14:51 os 1.2.162.1: #105559# prevent recalculating of width/or height inside of a Reset() or ActivatePage()
Diffstat (limited to 'sw/source/ui/inc/prcntfld.hxx')
-rw-r--r--sw/source/ui/inc/prcntfld.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/ui/inc/prcntfld.hxx b/sw/source/ui/inc/prcntfld.hxx
index 0bc67329ead9..25df5593f830 100644
--- a/sw/source/ui/inc/prcntfld.hxx
+++ b/sw/source/ui/inc/prcntfld.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: prcntfld.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: os $ $Date: 2001-03-15 10:44:52 $
+ * last change: $Author: hr $ $Date: 2003-04-04 18:16:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -72,6 +72,8 @@ class PercentField : public MetricField
long nLastPercent, nLastValue;
USHORT nOldDigits;
FieldUnit eOldUnit;
+ sal_Bool bLockAutoCalculation; //prevent recalcution of percent values when the
+ //reference value is changed
long ImpPower10(USHORT n);
@@ -101,6 +103,8 @@ public:
USHORT GetOldDigits() const {return nOldDigits;}
+ void LockAutoCalculation(sal_Bool bLock) {bLockAutoCalculation = bLock;}
+ sal_Bool IsAutoCalculationLocked()const {return bLockAutoCalculation;}
};
#endif // _PRCNTFLD_HXX