Kaydet (Commit) 76d5440a authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS impress115 (1.51.62); FILE MERGED

2007/01/10 11:12:31 sj 1.51.62.2: fixed typo
2007/01/05 10:35:51 cl 1.51.62.1: #i72375# added support for font-face-decls in impress/draw
üst 3b7435a4
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: sdxmlimp.cxx,v $ * $RCSfile: sdxmlimp.cxx,v $
* *
* $Revision: 1.51 $ * $Revision: 1.52 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 10:28:50 $ * last change: $Author: obo $ $Date: 2007-01-23 08:51:56 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
// MARKER(update_precomp.py): autogen include statement, do not remove // MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_xmloff.hxx" #include "precompiled_xmloff.hxx"
#include <tools/string.hxx>
#ifndef _XMLOFF_XMLMETAI_HXX #ifndef _XMLOFF_XMLMETAI_HXX
#include "xmlscripti.hxx" #include "xmlscripti.hxx"
#endif #endif
...@@ -116,6 +118,8 @@ ...@@ -116,6 +118,8 @@
#include <com/sun/star/style/XStyle.hpp> #include <com/sun/star/style/XStyle.hpp>
#endif #endif
#include "XMLFontStylesContext.hxx"
using namespace ::rtl; using namespace ::rtl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::xmloff::token; using namespace ::xmloff::token;
...@@ -124,6 +128,7 @@ using namespace ::xmloff::token; ...@@ -124,6 +128,7 @@ using namespace ::xmloff::token;
static __FAR_DATA SvXMLTokenMapEntry aDocElemTokenMap[] = static __FAR_DATA SvXMLTokenMapEntry aDocElemTokenMap[] =
{ {
{ XML_NAMESPACE_OFFICE, XML_FONT_FACE_DECLS, XML_TOK_DOC_FONTDECLS },
{ XML_NAMESPACE_OFFICE, XML_STYLES, XML_TOK_DOC_STYLES }, { XML_NAMESPACE_OFFICE, XML_STYLES, XML_TOK_DOC_STYLES },
{ XML_NAMESPACE_OFFICE, XML_AUTOMATIC_STYLES, XML_TOK_DOC_AUTOSTYLES }, { XML_NAMESPACE_OFFICE, XML_AUTOMATIC_STYLES, XML_TOK_DOC_AUTOSTYLES },
{ XML_NAMESPACE_OFFICE, XML_MASTER_STYLES, XML_TOK_DOC_MASTERSTYLES }, { XML_NAMESPACE_OFFICE, XML_MASTER_STYLES, XML_TOK_DOC_MASTERSTYLES },
...@@ -316,6 +321,11 @@ SvXMLImportContext *SdXMLDocContext_Impl::CreateChildContext( ...@@ -316,6 +321,11 @@ SvXMLImportContext *SdXMLDocContext_Impl::CreateChildContext(
const SvXMLTokenMap& rTokenMap = GetSdImport().GetDocElemTokenMap(); const SvXMLTokenMap& rTokenMap = GetSdImport().GetDocElemTokenMap();
switch(rTokenMap.Get(nPrefix, rLocalName)) switch(rTokenMap.Get(nPrefix, rLocalName))
{ {
case XML_TOK_DOC_FONTDECLS:
{
pContext = GetSdImport().CreateFontDeclsContext( rLocalName, xAttrList );
break;
}
case XML_TOK_DOC_SETTINGS: case XML_TOK_DOC_SETTINGS:
{ {
if( GetImport().getImportFlags() & IMPORT_SETTINGS ) if( GetImport().getImportFlags() & IMPORT_SETTINGS )
...@@ -770,6 +780,19 @@ SvXMLImportContext* SdXMLImport::CreateMasterStylesContext(const OUString& rLoca ...@@ -770,6 +780,19 @@ SvXMLImportContext* SdXMLImport::CreateMasterStylesContext(const OUString& rLoca
return mpMasterStylesContext; return mpMasterStylesContext;
} }
//////////////////////////////////////////////////////////////////////////////
SvXMLImportContext *SdXMLImport::CreateFontDeclsContext(const OUString& rLocalName,
const uno::Reference< xml::sax::XAttributeList > & xAttrList )
{
XMLFontStylesContext *pFSContext =
new XMLFontStylesContext( *this, XML_NAMESPACE_OFFICE,
rLocalName, xAttrList,
gsl_getSystemTextEncoding() );
SetFontDecls( pFSContext );
return pFSContext;
}
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// import pool defaults. Parameter contains pool defaults read // import pool defaults. Parameter contains pool defaults read
// from input data. These data needs to be set at the model. // from input data. These data needs to be set at the model.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment