diff options
Diffstat (limited to 'sw/inc/usrfld.hxx')
-rw-r--r-- | sw/inc/usrfld.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sw/inc/usrfld.hxx b/sw/inc/usrfld.hxx index 9d241df8a118..a439a3a7412f 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; @@ -83,6 +91,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; |