diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-23 17:30:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-24 07:59:16 +0100 |
commit | a1c0e999b271ac4c6ecb163a1cd2a310b87e9dec (patch) | |
tree | 4ef50e0aec9dd0dc6db0d9927cebe71a512bf5c8 /sc/inc | |
parent | 35f5274ece0fcbb70753a71619b526ed0d4cbd6b (diff) |
consistently use sal_uInt32 for number formats in sc
instead of a mix of short/sal_uLong/sal_uInt32
Change-Id: Ie5bd26e1a6f716c0c4e174a6d560827084b3f421
Reviewed-on: https://gerrit.libreoffice.org/45159
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/cellform.hxx | 6 | ||||
-rw-r--r-- | sc/inc/conditio.hxx | 2 | ||||
-rw-r--r-- | sc/inc/dociter.hxx | 14 | ||||
-rw-r--r-- | sc/inc/document.hxx | 4 | ||||
-rw-r--r-- | sc/inc/dpgroup.hxx | 2 | ||||
-rw-r--r-- | sc/inc/dpshttab.hxx | 2 | ||||
-rw-r--r-- | sc/inc/dptabdat.hxx | 2 | ||||
-rw-r--r-- | sc/inc/global.hxx | 2 | ||||
-rw-r--r-- | sc/inc/patattr.hxx | 6 |
9 files changed, 20 insertions, 20 deletions
diff --git a/sc/inc/cellform.hxx b/sc/inc/cellform.hxx index ff2bb8ae328b..37a2cebea216 100644 --- a/sc/inc/cellform.hxx +++ b/sc/inc/cellform.hxx @@ -35,17 +35,17 @@ class SC_DLLPUBLIC ScCellFormat public: static void GetString( - ScRefCellValue& rCell, sal_uLong nFormat, OUString& rString, + ScRefCellValue& rCell, sal_uInt32 nFormat, OUString& rString, Color** ppColor, SvNumberFormatter& rFormatter, const ScDocument* pDoc, bool bNullVals = true, bool bFormula = false, bool bUseStarFormat = false ); static OUString GetString( - ScDocument& rDoc, const ScAddress& rPos, sal_uLong nFormat, + ScDocument& rDoc, const ScAddress& rPos, sal_uInt32 nFormat, Color** ppColor, SvNumberFormatter& rFormatter, bool bNullVals = true, bool bFormula = false ); static void GetInputString( - ScRefCellValue& rCell, sal_uLong nFormat, OUString& rString, SvNumberFormatter& rFormatter, + ScRefCellValue& rCell, sal_uInt32 nFormat, OUString& rString, SvNumberFormatter& rFormatter, const ScDocument* pDoc ); static OUString GetOutputString( diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx index 27acc6e0d668..79554b1a8d67 100644 --- a/sc/inc/conditio.hxx +++ b/sc/inc/conditio.hxx @@ -250,7 +250,7 @@ public: void SetFormula1( const ScTokenArray& rArray ); void SetFormula2( const ScTokenArray& rArray ); - OUString GetExpression( const ScAddress& rCursor, sal_uInt16 nPos, sal_uLong nNumFmt = 0, + OUString GetExpression( const ScAddress& rCursor, sal_uInt16 nPos, sal_uInt32 nNumFmt = 0, const formula::FormulaGrammar::Grammar eGrammar = formula::FormulaGrammar::GRAM_DEFAULT ) const; /** Create a flat copy using ScTokenArray copy-ctor with diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx index 904f471c3c4f..6e8011438d73 100644 --- a/sc/inc/dociter.hxx +++ b/sc/inc/dociter.hxx @@ -53,8 +53,8 @@ class ScValueIterator // walk through all values in an area ScDocument* pDoc; const ScAttrArray* pAttrArray; - sal_uLong nNumFormat; // for CalcAsShown - sal_uLong nNumFmtIndex; + sal_uInt32 nNumFormat; // for CalcAsShown + sal_uInt32 nNumFmtIndex; ScAddress maStartPos; ScAddress maEndPos; SCCOL mnCol; @@ -85,7 +85,7 @@ public: ScDocument* pDocument, const ScRange& rRange, SubtotalFlags nSubTotalFlags = SubtotalFlags::NONE, bool bTextAsZero = false ); - void GetCurNumFmtInfo( const ScInterpreterContext& rContext, short& nType, sal_uLong& nIndex ); + void GetCurNumFmtInfo( const ScInterpreterContext& rContext, sal_uInt32& nType, sal_uInt32& nIndex ); /// Does NOT reset rValue if no value found! bool GetFirst( double& rValue, FormulaError& rErr ); @@ -142,13 +142,13 @@ private: ScDocument* mpDoc; const ScInterpreterContext& mrContext; const ScAttrArray* pAttrArray; - sal_uLong nNumFormat; // for CalcAsShown - sal_uLong nNumFmtIndex; + sal_uInt32 nNumFormat; // for CalcAsShown + sal_uInt32 nNumFmtIndex; SCCOL nCol; SCROW nRow; SCROW nAttrEndRow; SCTAB nTab; - short nNumFmtType; + sal_uInt32 nNumFmtType; bool bCalcAsShown; }; @@ -454,7 +454,7 @@ private: const ScAttrArray *pAttrArray; std::unique_ptr<ScHorizontalCellIterator> pCellIter; - sal_uLong nNumFormat; // for CalcAsShown + sal_uInt32 nNumFormat; // for CalcAsShown SCTAB nEndTab; SCCOL nCurCol; SCROW nCurRow; diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index bb7bad7652b2..321f4ebbc8e3 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1122,7 +1122,7 @@ public: SC_DLLPUBLIC sal_uInt32 GetNumberFormat( const ScInterpreterContext& rContext, const ScAddress& ) const; void SetNumberFormat( const ScAddress& rPos, sal_uInt32 nNumberFormat ); - void GetNumberFormatInfo( const ScInterpreterContext& rContext, short& nType, sal_uLong& nIndex, const ScAddress& rPos ) const; + void GetNumberFormatInfo( const ScInterpreterContext& rContext, sal_uInt32& nType, sal_uInt32& nIndex, const ScAddress& rPos ) const; SC_DLLPUBLIC const ScFormulaCell* GetFormulaCell( const ScAddress& rPos ) const; SC_DLLPUBLIC ScFormulaCell* GetFormulaCell( const ScAddress& rPos ); SC_DLLPUBLIC void GetFormula( SCCOL nCol, SCROW nRow, SCTAB nTab, OUString& rFormula ) const; @@ -1628,7 +1628,7 @@ public: SC_DLLPUBLIC const css::uno::Reference< css::i18n::XBreakIterator >& GetBreakIterator(); bool HasStringWeakCharacters( const OUString& rString ); SC_DLLPUBLIC SvtScriptType GetStringScriptType( const OUString& rString ); - SC_DLLPUBLIC SvtScriptType GetCellScriptType( const ScAddress& rPos, sal_uLong nNumberFormat ); + SC_DLLPUBLIC SvtScriptType GetCellScriptType( const ScAddress& rPos, sal_uInt32 nNumberFormat ); SC_DLLPUBLIC SvtScriptType GetScriptType( SCCOL nCol, SCROW nRow, SCTAB nTab ); SvtScriptType GetRangeScriptType( sc::ColumnBlockPosition& rBlockPos, const ScAddress& rPos, SCROW nLength ); SvtScriptType GetRangeScriptType( const ScRangeList& rRanges ); diff --git a/sc/inc/dpgroup.hxx b/sc/inc/dpgroup.hxx index 421d61f2b3e9..4c294b66aa5e 100644 --- a/sc/inc/dpgroup.hxx +++ b/sc/inc/dpgroup.hxx @@ -157,7 +157,7 @@ public: virtual OUString getDimensionName(long nColumn) override; virtual bool getIsDataLayoutDimension(long nColumn) override; virtual bool IsDateDimension(long nDim) override; - virtual sal_uLong GetNumberFormat(long nDim) override; + virtual sal_uInt32 GetNumberFormat(long nDim) override; virtual void DisposeData() override; virtual void SetEmptyFlags( bool bIgnoreEmptyRows, bool bRepeatIfEmpty ) override; diff --git a/sc/inc/dpshttab.hxx b/sc/inc/dpshttab.hxx index 03653d36208e..899de85ccf13 100644 --- a/sc/inc/dpshttab.hxx +++ b/sc/inc/dpshttab.hxx @@ -105,7 +105,7 @@ public: virtual OUString getDimensionName(long nColumn) override; virtual bool getIsDataLayoutDimension(long nColumn) override; virtual bool IsDateDimension(long nDim) override; - virtual sal_uLong GetNumberFormat(long nDim) override; + virtual sal_uInt32 GetNumberFormat(long nDim) override; virtual void DisposeData() override; virtual void SetEmptyFlags( bool bIgnoreEmptyRows, bool bRepeatIfEmpty ) override; diff --git a/sc/inc/dptabdat.hxx b/sc/inc/dptabdat.hxx index d9682c437181..2c5870940b21 100644 --- a/sc/inc/dptabdat.hxx +++ b/sc/inc/dptabdat.hxx @@ -111,7 +111,7 @@ public: virtual OUString getDimensionName(long nColumn) = 0; virtual bool getIsDataLayoutDimension(long nColumn) = 0; virtual bool IsDateDimension(long nDim) = 0; - virtual sal_uLong GetNumberFormat(long nDim); + virtual sal_uInt32 GetNumberFormat(long nDim); sal_uInt32 GetNumberFormatByIdx( NfIndexTableOffset ); virtual void DisposeData() = 0; virtual void SetEmptyFlags( bool bIgnoreEmptyRows, bool bRepeatIfEmpty ) = 0; diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx index 66633f53e4da..879902d5758f 100644 --- a/sc/inc/global.hxx +++ b/sc/inc/global.hxx @@ -812,7 +812,7 @@ public: */ static double ConvertStringToValue( const OUString& rStr, const ScCalcConfig& rConfig, FormulaError & rError, FormulaError nStringNoValueError, - SvNumberFormatter* pFormatter, short & rCurFmtType ); + SvNumberFormatter* pFormatter, sal_uInt32 & rCurFmtType ); }; diff --git a/sc/inc/patattr.hxx b/sc/inc/patattr.hxx index 115072b863f5..8abfdd8ae278 100644 --- a/sc/inc/patattr.hxx +++ b/sc/inc/patattr.hxx @@ -135,9 +135,9 @@ public: with text encoding RTL_TEXTENC_SYMBOL */ bool IsSymbolFont() const; - sal_uLong GetNumberFormat( SvNumberFormatter* ) const; - sal_uLong GetNumberFormat( SvNumberFormatter* pFormatter, - const SfxItemSet* pCondSet ) const; + sal_uInt32 GetNumberFormat( SvNumberFormatter* ) const; + sal_uInt32 GetNumberFormat( SvNumberFormatter* pFormatter, + const SfxItemSet* pCondSet ) const; long GetRotateVal( const SfxItemSet* pCondSet ) const; ScRotateDir GetRotateDir( const SfxItemSet* pCondSet ) const; |