diff options
author | Frank Schönheit <fs@openoffice.org> | 2002-04-08 15:23:21 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2002-04-08 15:23:21 +0000 |
commit | ffe4c6d44a68283afbd212b35509bdc20adb848c (patch) | |
tree | 3367a5a0ea39a6a80f081e09b4340fadd82c3f53 /connectivity/inc | |
parent | 073fb19d1b0648f18ed79c02ef9378890470d85d (diff) |
#98181# +OParseContext::getPreferredLocale/::setDefaultLocale
Diffstat (limited to 'connectivity/inc')
-rw-r--r-- | connectivity/inc/connectivity/sqlparse.hxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/connectivity/inc/connectivity/sqlparse.hxx b/connectivity/inc/connectivity/sqlparse.hxx index fca7574badf1..9d31ba727710 100644 --- a/connectivity/inc/connectivity/sqlparse.hxx +++ b/connectivity/inc/connectivity/sqlparse.hxx @@ -2,9 +2,9 @@ * * $RCSfile: sqlparse.hxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: hjs $ $Date: 2002-03-06 12:56:01 $ + * last change: $Author: fs $ $Date: 2002-04-08 16:23:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -167,6 +167,19 @@ namespace connectivity // determines the default international setting static const ::com::sun::star::lang::Locale& getDefaultLocale(); + + /** set's the default locale which should be used when analyzing strings + <p>If no locale is set, and any method which needs a locale is called, a default + (en-US) is used.</p> + <p>If, while parsing, the locale can be obtained from other sources (such as the number format + set for a table column), the preferred locale is ignored.</p> + */ + static void setDefaultLocale( const ::com::sun::star::lang::Locale& _rLocale ); + + /** get's a locale instance which should be used when parsing in the context specified by this instance + <p>if this is not overridden by derived classes, it returns the static default locale.</p> + */ + virtual ::com::sun::star::lang::Locale getPreferredLocale( ) const; }; //========================================================================== @@ -197,6 +210,7 @@ namespace connectivity ::com::sun::star::lang::Locale* m_pLocale; // current locale settings for parsing ::rtl::OUString m_sFieldName; // current field name for a predicate ::rtl::OUString m_sErrorMessage;// current error msg + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xField; // current field ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > |