diff options
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/calc.hxx | 1 | ||||
-rw-r--r-- | sw/inc/usrfld.hxx | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sw/inc/calc.hxx b/sw/inc/calc.hxx index 6b85dbdf0968..fd68e0708ced 100644 --- a/sw/inc/calc.hxx +++ b/sw/inc/calc.hxx @@ -197,6 +197,7 @@ public: bool Push(const SwUserFieldType* pUserFieldType); void Pop(); + CharClass* GetCharClass(); void SetCalcError( SwCalcError eErr ) { eError = eErr; } bool IsCalcError() const { return 0 != eError; } diff --git a/sw/inc/usrfld.hxx b/sw/inc/usrfld.hxx index 8f57b78c4787..c874a9dea769 100644 --- a/sw/inc/usrfld.hxx +++ b/sw/inc/usrfld.hxx @@ -26,12 +26,20 @@ class SfxPoolItem; class SwCalc; class SwDoc; +/** + * The shared part of a user field. + * + * Tracks the value, but conversion between the float and string representation + * always happens with the system locale. + */ class SW_DLLPUBLIC SwUserFieldType : public SwValueFieldType { bool bValidValue : 1; bool bDeleted : 1; + /// Float value type. double nValue; OUString aName; + /// String value type. OUString aContent; sal_uInt16 nType; @@ -87,6 +95,12 @@ inline void SwUserFieldType::SetType(sal_uInt16 nSub) EnableFormat(!(nSub & nsSwGetSetExpType::GSE_STRING)); } +/** + * The non-shared part of a user field. + * + * Tracks the number format and the language, conversion between the float and + * string representation is independent from the system locale. + */ class SW_DLLPUBLIC SwUserField : public SwValueField { sal_uInt16 nSubType; |