summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-24 20:26:11 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-24 22:48:49 +0100
commit2be64297ad73b2e8d83e3ef17641dc8445f37372 (patch)
treeebd9a9694fe89ee75e7f71fe68dd62a2a69932cd /include/svl
parent035f87f7ed8775c30c6f84d7d02bc72a66182c63 (diff)
fix CppunitTest_sc_subsequent_filters_test4 intermittent failure
Change-Id: Ieb532183fd07915f8e0f2ec0cc3983a390024522 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165257 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/zformat.hxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx
index ed13abfcb63c..2b50daf944ac 100644
--- a/include/svl/zformat.hxx
+++ b/include/svl/zformat.hxx
@@ -247,7 +247,7 @@ public:
bool GetOutputString( double fNumber, sal_uInt16 nCharCount, OUString& rOutString, const NativeNumberWrapper* pNatNum ) const;
// bStarFlag: Take *n format as ESC n
- bool GetOutputString( double fNumber, OUString& OutString, const Color** ppColor, const NativeNumberWrapper* pNatNum, bool bStarFlag = false) const;
+ bool GetOutputString( double fNumber, OUString& OutString, const Color** ppColor, const NativeNumberWrapper* pNatNum, const SvNFLanguageData& rCurrentLang, bool bStarFlag = false) const;
void GetOutputString( std::u16string_view sString, OUString& OutString, const Color** ppColor, bool bStarFlag = false) const;
// True if type text
@@ -471,13 +471,13 @@ public:
/** Switches to the first non-"gregorian" calendar, but only if the current
calendar is "gregorian"; original calendar name and date/time returned,
but only if calendar switched and rOrgCalendar was empty. */
- void SwitchToOtherCalendar( OUString& rOrgCalendar, double& fOrgDateTime ) const;
+ void SwitchToOtherCalendar( OUString& rOrgCalendar, double& fOrgDateTime, CalendarWrapper& rCal ) const;
/** Switches to the "gregorian" calendar, but only if the current calendar
is non-"gregorian" and rOrgCalendar is not empty. Thus a preceding
ImpSwitchToOtherCalendar() call should have been placed prior to
calling this method. */
- void SwitchToGregorianCalendar( std::u16string_view rOrgCalendar, double fOrgDateTime ) const;
+ void SwitchToGregorianCalendar( std::u16string_view rOrgCalendar, double fOrgDateTime, CalendarWrapper& rCal ) const;
#ifdef THE_FUTURE
/** Switches to the first specified calendar, if any, in subformat nNumFor
@@ -523,8 +523,6 @@ private:
SVL_DLLPRIVATE sal_uInt16 ImpGetNumForStringElementCount( sal_uInt16 nNumFor ) const;
- SVL_DLLPRIVATE bool ImpIsOtherCalendar( const ImpSvNumFor& rNumFor ) const;
-
#ifdef THE_FUTURE
SVL_DLLPRIVATE bool ImpSwitchToSpecifiedCalendar( OUString& rOrgCalendar,
double& fOrgDateTime,
@@ -556,7 +554,6 @@ private:
const CharClass& rChrCls() const;
const LocaleDataWrapper& rLoc() const;
- CalendarWrapper& GetCal() const;
const SvNFLanguageData& GetCurrentLanguageData() const;
// divide in substrings and color conditions
@@ -699,16 +696,19 @@ private:
sal_uInt16 nIx,
bool bStarFlag,
const NativeNumberWrapper* pNatNum,
+ const SvNFLanguageData& rCurrentLang,
OUStringBuffer& OutString ) const;
SVL_DLLPRIVATE bool ImpGetTimeOutput( double fNumber,
sal_uInt16 nIx,
bool bStarFlag,
const NativeNumberWrapper* pNatNum,
+ const SvNFLanguageData& rCurrentLang,
OUStringBuffer& OutString ) const;
SVL_DLLPRIVATE bool ImpGetDateTimeOutput( double fNumber,
sal_uInt16 nIx,
bool bStarFlag,
const NativeNumberWrapper* pNatNum,
+ const SvNFLanguageData& rCurrentLang,
OUStringBuffer& OutString ) const;
// Switches to the "gregorian" calendar if the current calendar is
@@ -716,7 +716,9 @@ private:
// know a "before" era (like zh_TW ROC or ja_JP Gengou). If switched and
// rOrgCalendar was "gregorian" the string is emptied. If rOrgCalendar was
// empty the previous calendar name and date/time are returned.
- SVL_DLLPRIVATE bool ImpFallBackToGregorianCalendar(OUString& rOrgCalendar, double& fOrgDateTime) const;
+ SVL_DLLPRIVATE bool ImpFallBackToGregorianCalendar(OUString& rOrgCalendar,
+ double& fOrgDateTime,
+ CalendarWrapper& rCal) const;
// Append a "G" short era string of the given calendar. In the case of a
// Gengou calendar this is a one character abbreviation, for other