summaryrefslogtreecommitdiff
path: root/sc/inc/global.hxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-12-19 17:00:23 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-12-19 17:00:23 +0000
commit4e6f7e8166fcf7aeca1d45a016d0a3ae708bc170 (patch)
tree6caed1bd2b92fec36c4a39ca2c42e2ff86e1a5c0 /sc/inc/global.hxx
parentdc78d60508b8ef1a52259db46e1f82fe58456f77 (diff)
INTEGRATION: CWS caloc (1.46.74); FILE MERGED
2006/11/08 18:51:13 er 1.46.74.1: #i47233# fill cells taking OrdinalSuffix into account; contributed by Muthu Subramanian <muthusuba@ooo>
Diffstat (limited to 'sc/inc/global.hxx')
-rw-r--r--sc/inc/global.hxx25
1 files changed, 20 insertions, 5 deletions
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index a04b9160ba0d..160037d9fcc1 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: global.hxx,v $
*
- * $Revision: 1.46 $
+ * $Revision: 1.47 $
*
- * last change: $Author: ihi $ $Date: 2006-08-04 12:11:05 $
+ * last change: $Author: ihi $ $Date: 2006-12-19 18:00:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -50,6 +50,10 @@
#include <osl/endian.h>
#endif
+#ifndef _COM_SUN_STAR_UNO_REFERENCE_HXX_
+#include <com/sun/star/uno/Reference.hxx>
+#endif
+
#ifndef INCLUDED_SCDLLAPI_H
#include "scdllapi.h"
#endif
@@ -508,9 +512,14 @@ class CollatorWrapper;
class IntlWrapper;
class OutputDevice;
-namespace com { namespace sun { namespace star { namespace lang {
- struct Locale;
-}}}}
+namespace com { namespace sun { namespace star {
+ namespace lang {
+ struct Locale;
+ }
+ namespace i18n {
+ class XOrdinalSuffix;
+ }
+}}}
namespace utl {
class TransliterationWrapper;
}
@@ -545,6 +554,8 @@ class ScGlobal
static SvNumberFormatter* pEnglishFormatter; // for UNO / XML export
+ static ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XOrdinalSuffix> xOrdinalSuffix;
+
public:
static ::com::sun::star::lang::Locale* pLocale;
static SvtSysLocale* pSysLocale;
@@ -565,6 +576,7 @@ SC_DLLPUBLIC static ::utl::TransliterationWrapper* GetpTransliteration(); //C
static IntlWrapper* pScIntlWrapper;
static LanguageType eLnge;
static sal_Unicode cListDelimiter;
+
static const String& GetClipDocName();
static void SetClipDocName( const String& rNew );
static const SvxSearchItem& GetSearchItem();
@@ -678,6 +690,9 @@ SC_DLLPUBLIC static void EraseQuotes( String& rString, sal_Unicod
/** Adds a language item to the item set, if the number format item contains
a language that differs from its parent's language. */
static void AddLanguage( SfxItemSet& rSet, SvNumberFormatter& rFormatter );
+
+ /** Obtain the ordinal suffix for a number according to the system locale */
+ static String GetOrdinalSuffix( sal_Int32 nNumber);
};
#endif