/** Add a listener to react on config changes whicharebroadcastedinaSfxSimpleHint @return <TRUE/>ifadded <FALSE/>ifnotadded
*/
/** Block broadcasts and accumulate hints. This may be useful if, for example,thelocaleandcurrencyarechangedandthecurrencywas emptybefore,sincechangingthelocalewithanemptycurrencydoes alsobroadcastachangehintforthecurrencywhichwouldresultin twocurrencychangesbroadcasted.
/// The config string may be empty to denote the SYSTEM locale void SetLocaleConfigString( const OUString& rStr ); /** Get locale set, not resolved to the real locale. */
LanguageTag GetLanguageTag() const; /** Get locale set, always resolved to the real locale. */ const LanguageTag& GetRealLanguageTag() const;
/// The config string may be empty to denote the SYSTEM locale void SetUILocaleConfigString( const OUString& rStr ); /** Get UI locale set, always resolved to the real locale. */ const LanguageTag& GetRealUILanguageTag() const;
/// The config string may be empty to denote the default currency of the locale const OUString& GetCurrencyConfigString() const; void SetCurrencyConfigString( const OUString& rStr );
/** The config string may be empty to denote the default
DateAcceptancePatterns of the locale */ const OUString& GetDatePatternsConfigString() const; void SetDatePatternsConfigString( const OUString& rStr );
// determine whether the decimal separator defined in the keyboard layout is used // or the one appropriate to the locale bool IsDecimalSeparatorAsLocale() const; void SetDecimalSeparatorAsLocale( bool bSet);
// determine whether to ignore changes to the system keyboard/locale/language when // determining the language for newly entered text bool IsIgnoreLanguageChange() const; void SetIgnoreLanguageChange( bool bSet);
// convenience methods
/// Get currency abbreviation and locale from an USD-en-US or EUR-de-DE string staticvoid GetCurrencyAbbrevAndLanguage(
OUString& rAbbrev,
LanguageType& eLang, const OUString& rConfigString );
/// Create an USD-en-US or EUR-de-DE string static OUString CreateCurrencyConfigString( const OUString& rAbbrev,
LanguageType eLang );
/** Set a link to a method to be called whenever the default currency changes.Thiscanbeonlyonemethod,andnormallyitisthestatic linkmethodwhichcallsSvNumberFormatter::SetDefaultSystemCurrency(). Thisisneededbecausethenumberformatterisn'tpartofthesvllight library,otherwisewecouldcallSetDefaultSystemCurrency()directly.
*/ staticvoid SetCurrencyChangeLink( const Link<LinkParamNone*,void>& rLink ); staticconst Link<LinkParamNone*,void>& GetCurrencyChangeLink();
/** return the readonly state of the queried option. */ bool IsReadOnly( EOption eOption ) const;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.