summaryrefslogtreecommitdiff
path: root/embedserv/source/embed
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
parentcd4bb6998c35bf7a3786ccd585183d2d663dfe5e (diff)
#i2822# change storage type name
Diffstat (limited to 'embedserv/source/embed')
-rwxr-xr-xembedserv/source/embed/ed_ipersiststr.cxx7
-rwxr-xr-xembedserv/source/embed/guid.cxx23
2 files changed, 25 insertions, 5 deletions
diff --git a/embedserv/source/embed/ed_ipersiststr.cxx b/embedserv/source/embed/ed_ipersiststr.cxx
index 2788da831f1e..c7c4a1aabfcb 100755
--- a/embedserv/source/embed/ed_ipersiststr.cxx
+++ b/embedserv/source/embed/ed_ipersiststr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ed_ipersiststr.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: abi $ $Date: 2003-03-26 13:51:22 $
+ * 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
@@ -112,6 +112,7 @@
using namespace ::com::sun::star;
+extern ::rtl::OUString getStorageTypeFromGUID_Impl( GUID* guid );
extern ::rtl::OUString getServiceNameFromGUID_Impl( GUID* );
extern ::rtl::OUString getFilterNameFromGUID_Impl( GUID* );
// extern CLIPFORMAT getClipFormatFromGUID_Impl( GUID* );
@@ -441,7 +442,7 @@ STDMETHODIMP EmbedDocument_Impl::InitNew( IStorage *pStg )
if ( hr == S_OK )
{
- ::rtl::OUString aCurType = getServiceNameFromGUID_Impl( &m_guid ); // ???
+ ::rtl::OUString aCurType = getStorageTypeFromGUID_Impl( &m_guid ); // ???
CLIPFORMAT cf = RegisterClipboardFormatA( "Embedded Object" );
hr = WriteFmtUserTypeStg( pStg,
cf, // ???
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 )
{