summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/misc/ImplHelper.hxx
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-03-09 07:48:25 +0000
committerTino Rachui <tra@openoffice.org>2001-03-09 07:48:25 +0000
commitc10bbac5c52003114f57307a094db1503162d563 (patch)
tree2738f3fd48f22cbaacbda2887d1b705e207c1d19 /dtrans/source/win32/misc/ImplHelper.hxx
parentd31f1064a5c100c650202fd994bcb70d0ecde67e (diff)
*** empty log message ***
Diffstat (limited to 'dtrans/source/win32/misc/ImplHelper.hxx')
-rw-r--r--dtrans/source/win32/misc/ImplHelper.hxx69
1 files changed, 46 insertions, 23 deletions
diff --git a/dtrans/source/win32/misc/ImplHelper.hxx b/dtrans/source/win32/misc/ImplHelper.hxx
index 3db412af15b3..f3226eaed2ee 100644
--- a/dtrans/source/win32/misc/ImplHelper.hxx
+++ b/dtrans/source/win32/misc/ImplHelper.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ImplHelper.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: tra $ $Date: 2001-03-02 12:44:33 $
+ * last change: $Author: tra $ $Date: 2001-03-09 08:48:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -77,21 +77,10 @@
#include <windows.h>
-
-//------------------------------------------------------------------------
-// const
-//------------------------------------------------------------------------
-
-//const sal_Bool SET_HUMANPRESENTABLE_NAME = sal_True;
-
//------------------------------------------------------------------------
// deklarations
//------------------------------------------------------------------------
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// target device and formatetc helper
void SAL_CALL DeleteTargetDevice(DVTARGETDEVICE* ptd);
sal_Bool SAL_CALL CopyFormatEtc(LPFORMATETC petcDest, LPFORMATETC petcSrc);
@@ -99,18 +88,52 @@ sal_Int32 SAL_CALL CompareFormatEtc( const FORMATETC* pFetcLeft, const FORMATETC
sal_Bool SAL_CALL CompareTargetDevice(DVTARGETDEVICE* ptdLeft, DVTARGETDEVICE* ptdRight);
DVTARGETDEVICE* SAL_CALL CopyTargetDevice(DVTARGETDEVICE* ptdSrc);
-#ifdef __cplusplus
-}
-#endif
-
// some codepage helper functions
-sal_Int32 SAL_CALL getWinCodePageFromMimeCharset( const rtl::OUString& charset );
-UINT SAL_CALL GetWinCPFromMime( const rtl::OUString& mimeType );
-sal_Bool SAL_CALL IsOEMCP( UINT codepage );
-rtl::OUString SAL_CALL CodePageToString( sal_Int32 codepage );
+//--------------------------------------------------
+// returns a windows codepage appropriate to the
+// given mime charset parameter value
+//--------------------------------------------------
+
+sal_uInt32 SAL_CALL getWinCPFromMimeCharset(
+ const rtl::OUString& charset );
+
+//--------------------------------------------------
+// returns a windows codepage appropriate to the
+// given locale and locale type
+//--------------------------------------------------
+
+rtl::OUString SAL_CALL getWinCPFromLocaleId(
+ LCID lcid, LCTYPE lctype );
+
+//--------------------------------------------------
+// returns a mime charset parameter value appropriate
+// to the given codepage, optional a prefix can be
+// given, e.g. "windows-" or "cp"
+//--------------------------------------------------
+
+rtl::OUString SAL_CALL getMimeCharsetFromWinCP(
+ sal_uInt32 cp, const rtl::OUString& aPrefix );
+
+//--------------------------------------------------
+// returns a mime charset parameter value appropriate
+// to the given locale id and locale type, optional a
+// prefix can be given, e.g. "windows-" or "cp"
+//--------------------------------------------------
+
+rtl::OUString SAL_CALL getMimeCharsetFromLocaleId(
+ LCID lcid, LCTYPE lctype, const rtl::OUString& aPrefix );
+
+//-----------------------------------------------------
+// returns true, if a given codepage is an oem codepage
+//-----------------------------------------------------
+
+sal_Bool SAL_CALL IsOEMCP( sal_uInt32 codepage );
+
+//--------------------------------------------------
+// converts a codepage into a string representation
+//--------------------------------------------------
-sal_Bool SAL_CALL operator==( const ::com::sun::star::datatransfer::DataFlavor& lhs,
- const ::com::sun::star::datatransfer::DataFlavor& rhs );
+rtl::OUString SAL_CALL cptostr( sal_uInt32 codepage );
#endif \ No newline at end of file