diff options
author | Katarina Machalkova <kmachalkova@suse.cz> | 2011-03-02 17:14:16 +0100 |
---|---|---|
committer | Katarina Machalkova <kmachalkova@suse.cz> | 2011-03-03 16:06:40 +0100 |
commit | f0a3dfbffa35737c27ed42769f06c31d656be762 (patch) | |
tree | 63f88ae430ba50ba63163a5f1ee99edd8802e7d3 /svl/inc | |
parent | 3b5fffc4edb37bb159442909305b22ec84154e24 (diff) |
Introducing new number format ( -N => (N) ) -- bnc#659993
+ teaching Calc num. formatting dialog to work with it
+ adding it to ~most locale (certainly I've forgotten some)
Diffstat (limited to 'svl/inc')
-rw-r--r-- | svl/inc/svl/zforlist.hxx | 4 | ||||
-rw-r--r-- | svl/inc/svl/zformat.hxx | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/svl/inc/svl/zforlist.hxx b/svl/inc/svl/zforlist.hxx index f3f7fdfef1e0..a5b516fd8d69 100644 --- a/svl/inc/svl/zforlist.hxx +++ b/svl/inc/svl/zforlist.hxx @@ -114,7 +114,9 @@ enum NfIndexTableOffset NF_NUMBER_1000INT, // #,##0 NF_NUMBER_1000DEC2, // #,##0.00 NF_NUMBER_SYSTEM, // #,##0.00 or whatever is set in System Regional Settings - NF_NUMBER_END = NF_NUMBER_SYSTEM, + NF_NUMBER_NEG_BRACKET, // #,##0_);(#,##0) -42 => (42) + NF_NUMBER_NEG_BRACKET_DEC2, // #,##0.00_);(#,##0.00) -42.00 => (42.00) + NF_NUMBER_END = NF_NUMBER_NEG_BRACKET_DEC2, NF_SCIENTIFIC_START, NF_SCIENTIFIC_000E000 = NF_SCIENTIFIC_START, // 0.00E+000 diff --git a/svl/inc/svl/zformat.hxx b/svl/inc/svl/zformat.hxx index e9790d60f3aa..a4222a4757c9 100644 --- a/svl/inc/svl/zformat.hxx +++ b/svl/inc/svl/zformat.hxx @@ -334,6 +334,10 @@ public: // Whether the negative format is without a sign or not BOOL IsNegativeWithoutSign() const; + BOOL IsNegativeInBracket() const; + + BOOL HasPositiveBracketPlaceholder() const; + // Whether a new SYMBOLTYPE_CURRENCY is contained in the format BOOL HasNewCurrency() const; |