summaryrefslogtreecommitdiff
path: root/embedserv/source/embed/guid.cxx
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2003-04-02 14:44:52 +0000
committerMikhail Voitenko <mav@openoffice.org>2003-04-02 14:44:52 +0000
commit7410db94bc0672795e85da1443632ce6a781f301 (patch)
tree420c33c7b5fbc51921bf379e73914908184a2029 /embedserv/source/embed/guid.cxx
parentcd4bb6998c35bf7a3786ccd585183d2d663dfe5e (diff)
#i2822# change storage type name
Diffstat (limited to 'embedserv/source/embed/guid.cxx')
-rwxr-xr-xembedserv/source/embed/guid.cxx23
1 files changed, 21 insertions, 2 deletions
diff --git a/embedserv/source/embed/guid.cxx b/embedserv/source/embed/guid.cxx
index b83bea891afb..96c71c42ab27 100755
--- a/embedserv/source/embed/guid.cxx
+++ b/embedserv/source/embed/guid.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: guid.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: mav $ $Date: 2003-03-25 08:23:04 $
+ * last change: $Author: mav $ $Date: 2003-04-02 15:44:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -68,6 +68,25 @@
#include <com/sun/star/container/XNameAccess.hpp>
#endif
+::rtl::OUString getStorageTypeFromGUID_Impl( GUID* guid )
+{
+ if ( *guid == OID_WriterTextServer )
+ return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "soffice.StarWriterDocument.6" ) );
+
+ if ( *guid == OID_CalcServer )
+ return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "soffice.StarCalcDocument.6" ) );
+
+ if ( *guid == OID_DrawingServer )
+ return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "soffice.StarDrawDocument.6" ) );
+
+ if ( *guid == OID_PresentationServer )
+ return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "soffice.StarImpressDocument.6" ) );
+
+ if ( *guid == OID_MathServer )
+ return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "soffice.StarMathDocument.6" ) );
+
+ return ::rtl::OUString();
+}
::rtl::OUString getServiceNameFromGUID_Impl( GUID* guid )
{