Files
libreoffice/xmloff/source/meta/xmlmetae.cxx

495 lines
18 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patches contributed by: Armin Le Grand. #118558# Correcting OLE attributes of LO3.4 at load time by loading as OOo3.3, details see task. http://svn.apache.org/viewvc?view=revision&revision=1195906 #118485# - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles http://svn.apache.org/viewvc?view=revision&revision=1293316 #119337# Solves the wrong get/setPropertyValue calls in SvxShapeText (and thus in SvxOle2Shape) http://svn.apache.org/viewvc?view=revision&revision=1344156 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 cws mba34issues01: #i117717#: remove wrong assertion http://svn.apache.org/viewvc?view=revision&revision=1172349 Patch contributed by Herbert Duerr goodbye Registration and License dialogs, don't let the door hit you http://svn.apache.org/viewvc?view=revision&revision=1172613 help gcc 4.6.0 on 32bit ubuntu 11.10" http://svn.apache.org/viewvc?view=revision&revision=1245357 Do not add targets for junit tests when junit is disabled. Patch contributed by Andre Fischer http://svn.apache.org/viewvc?view=revision&revision=1241508 Revert "sb140: #i117082# avoid unncessary static class data members commit 21d97438e2944861e26e4984195f959a0cce1e41. remove obsolete FreeBSD visibility special case. retain consolidated BSD bridge code, remove OS/2 pieces.
2012-11-12 17:21:24 +00:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2000-09-18 16:07:07 +00:00
#include <tools/debug.hxx>
#include <i18nlangtag/languagetag.hxx>
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
#include <rtl/ustrbuf.hxx>
2000-09-18 16:07:07 +00:00
#include <xmloff/xmlmetae.hxx>
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
#include <xmloff/xmlexp.hxx>
#include <xmloff/nmspmap.hxx>
#include <xmloff/xmlnmspe.hxx>
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
#include <com/sun/star/beans/XPropertyAccess.hpp>
#include <com/sun/star/beans/StringPair.hpp>
#include <com/sun/star/util/Duration.hpp>
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
#include <com/sun/star/xml/dom/XDocument.hpp>
#include <com/sun/star/xml/sax/XSAXSerializable.hpp>
#include <sax/tools/converter.hxx>
#include <comphelper/sequence.hxx>
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
#include <unotools/docinfohelper.hxx>
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
#include <string.h>
2000-09-18 16:07:07 +00:00
using namespace com::sun::star;
using namespace ::xmloff::token;
2000-09-18 16:07:07 +00:00
static void lcl_AddTwoDigits( OUStringBuffer& rStr, sal_Int32 nVal )
2000-09-18 16:07:07 +00:00
{
if ( nVal < 10 )
rStr.append( '0' );
2000-09-18 16:07:07 +00:00
rStr.append( nVal );
}
OUString
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLMetaExport::GetISODateTimeString( const util::DateTime& rDateTime )
2000-09-18 16:07:07 +00:00
{
// return ISO date string "YYYY-MM-DDThh:mm:ss"
OUStringBuffer sTmp;
2000-09-18 16:07:07 +00:00
sTmp.append( (sal_Int32) rDateTime.Year );
sTmp.append( '-' );
2000-09-18 16:07:07 +00:00
lcl_AddTwoDigits( sTmp, rDateTime.Month );
sTmp.append( '-' );
2000-09-18 16:07:07 +00:00
lcl_AddTwoDigits( sTmp, rDateTime.Day );
sTmp.append( 'T' );
2000-09-18 16:07:07 +00:00
lcl_AddTwoDigits( sTmp, rDateTime.Hours );
sTmp.append( ':' );
2000-09-18 16:07:07 +00:00
lcl_AddTwoDigits( sTmp, rDateTime.Minutes );
sTmp.append( ':' );
2000-09-18 16:07:07 +00:00
lcl_AddTwoDigits( sTmp, rDateTime.Seconds );
return sTmp.makeStringAndClear();
}
void SvXMLMetaExport::SimpleStringElement( const OUString& rText,
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
sal_uInt16 nNamespace, enum XMLTokenEnum eElementName )
2000-09-18 16:07:07 +00:00
{
if ( !rText.isEmpty() ) {
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLElementExport aElem( mrExport, nNamespace, eElementName,
true, false );
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.Characters( rText );
}
}
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
void SvXMLMetaExport::SimpleDateTimeElement( const util::DateTime & rDate,
sal_uInt16 nNamespace, enum XMLTokenEnum eElementName )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
if (rDate.Month != 0) { // invalid dates are 0-0-0
OUString sValue = GetISODateTimeString( rDate );
if ( !sValue.isEmpty() ) {
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLElementExport aElem( mrExport, nNamespace, eElementName,
true, false );
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.Characters( sValue );
2000-09-18 16:07:07 +00:00
}
}
}
void SvXMLMetaExport::_MExport()
2000-09-18 16:07:07 +00:00
{
// generator
{
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLElementExport aElem( mrExport, XML_NAMESPACE_META, XML_GENERATOR,
true, true );
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.Characters( ::utl::DocInfoHelper::GetGeneratorString() );
}
2000-09-18 16:07:07 +00:00
// document title
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SimpleStringElement ( mxDocProps->getTitle(),
XML_NAMESPACE_DC, XML_TITLE );
2000-09-18 16:07:07 +00:00
// description
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SimpleStringElement ( mxDocProps->getDescription(),
XML_NAMESPACE_DC, XML_DESCRIPTION );
2000-09-18 16:07:07 +00:00
// subject
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SimpleStringElement ( mxDocProps->getSubject(),
XML_NAMESPACE_DC, XML_SUBJECT );
2000-09-18 16:07:07 +00:00
// created...
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SimpleStringElement ( mxDocProps->getAuthor(),
XML_NAMESPACE_META, XML_INITIAL_CREATOR );
SimpleDateTimeElement( mxDocProps->getCreationDate(),
XML_NAMESPACE_META, XML_CREATION_DATE );
2000-09-18 16:07:07 +00:00
// modified...
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SimpleStringElement ( mxDocProps->getModifiedBy(),
XML_NAMESPACE_DC, XML_CREATOR );
SimpleDateTimeElement( mxDocProps->getModificationDate(),
XML_NAMESPACE_DC, XML_DATE );
2000-09-18 16:07:07 +00:00
// printed...
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SimpleStringElement ( mxDocProps->getPrintedBy(),
XML_NAMESPACE_META, XML_PRINTED_BY );
SimpleDateTimeElement( mxDocProps->getPrintDate(),
XML_NAMESPACE_META, XML_PRINT_DATE );
2000-09-18 16:07:07 +00:00
// keywords
const uno::Sequence< OUString > keywords = mxDocProps->getKeywords();
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
for (sal_Int32 i = 0; i < keywords.getLength(); ++i) {
SvXMLElementExport aKwElem( mrExport, XML_NAMESPACE_META, XML_KEYWORD,
true, false );
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.Characters( keywords[i] );
2000-09-18 16:07:07 +00:00
}
// document language
{
OUString sValue = LanguageTag( mxDocProps->getLanguage()).getBcp47( false);
if (!sValue.isEmpty()) {
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLElementExport aElem( mrExport, XML_NAMESPACE_DC, XML_LANGUAGE,
true, false );
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.Characters( sValue );
2000-09-18 16:07:07 +00:00
}
}
// editing cycles
{
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLElementExport aElem( mrExport,
XML_NAMESPACE_META, XML_EDITING_CYCLES,
true, false );
mrExport.Characters( OUString::number(
mxDocProps->getEditingCycles() ) );
2000-09-18 16:07:07 +00:00
}
// editing duration
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
// property is a int32 (seconds)
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
sal_Int32 secs = mxDocProps->getEditingDuration();
SvXMLElementExport aElem( mrExport,
XML_NAMESPACE_META, XML_EDITING_DURATION,
true, false );
OUStringBuffer buf;
::sax::Converter::convertDuration(buf, util::Duration(
false, 0, 0, 0, secs/3600, (secs%3600)/60, secs%60, 0));
mrExport.Characters(buf.makeStringAndClear());
2000-09-18 16:07:07 +00:00
}
// default target
const OUString sDefTarget = mxDocProps->getDefaultTarget();
if ( !sDefTarget.isEmpty() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute( XML_NAMESPACE_OFFICE, XML_TARGET_FRAME_NAME,
sDefTarget );
2000-09-18 16:07:07 +00:00
//! define strings for xlink:show values
const XMLTokenEnum eShow = sDefTarget == "_blank" ? XML_NEW : XML_REPLACE;
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_SHOW, eShow );
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLElementExport aElem( mrExport,
XML_NAMESPACE_META,XML_HYPERLINK_BEHAVIOUR,
true, false );
2000-09-18 16:07:07 +00:00
}
// auto-reload
const OUString sReloadURL = mxDocProps->getAutoloadURL();
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
const sal_Int32 sReloadDelay = mxDocProps->getAutoloadSecs();
if (sReloadDelay != 0 || !sReloadURL.isEmpty())
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_HREF,
mrExport.GetRelativeReference( sReloadURL ) );
2000-09-18 16:07:07 +00:00
OUStringBuffer buf;
::sax::Converter::convertDuration(buf, util::Duration(false, 0, 0, 0,
sReloadDelay/3600, (sReloadDelay%3600)/60, sReloadDelay%60, 0));
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute( XML_NAMESPACE_META, XML_DELAY,
buf.makeStringAndClear());
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLElementExport aElem( mrExport, XML_NAMESPACE_META, XML_AUTO_RELOAD,
true, false );
2000-09-18 16:07:07 +00:00
}
// template
const OUString sTplPath = mxDocProps->getTemplateURL();
if ( !sTplPath.isEmpty() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE );
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_ACTUATE, XML_ONREQUEST );
2000-09-18 16:07:07 +00:00
// template URL
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_HREF,
mrExport.GetRelativeReference(sTplPath) );
2000-09-18 16:07:07 +00:00
// template name
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_TITLE,
mxDocProps->getTemplateName() );
2000-09-18 16:07:07 +00:00
// template date
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute( XML_NAMESPACE_META, XML_DATE,
GetISODateTimeString( mxDocProps->getTemplateDate() ) );
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLElementExport aElem( mrExport, XML_NAMESPACE_META, XML_TEMPLATE,
true, false );
2000-09-18 16:07:07 +00:00
}
// user defined fields
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
uno::Reference< beans::XPropertyAccess > xUserDefined(
mxDocProps->getUserDefinedProperties(), uno::UNO_QUERY_THROW);
const uno::Sequence< beans::PropertyValue > props =
xUserDefined->getPropertyValues();
for (sal_Int32 i = 0; i < props.getLength(); ++i) {
OUStringBuffer sValueBuffer;
OUStringBuffer sType;
if (!::sax::Converter::convertAny(sValueBuffer, sType, props[i].Value))
{
continue;
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
}
mrExport.AddAttribute( XML_NAMESPACE_META, XML_NAME, props[i].Name );
mrExport.AddAttribute( XML_NAMESPACE_META, XML_VALUE_TYPE,
sType.makeStringAndClear() );
SvXMLElementExport aElem( mrExport, XML_NAMESPACE_META,
XML_USER_DEFINED, true, false );
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.Characters( sValueBuffer.makeStringAndClear() );
}
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
const uno::Sequence< beans::NamedValue > aDocStatistic =
mxDocProps->getDocumentStatistics();
// write document statistic if there is any provided
if ( aDocStatistic.getLength() )
{
for ( sal_Int32 nInd = 0; nInd < aDocStatistic.getLength(); nInd++ )
{
sal_Int32 nValue = 0;
if ( aDocStatistic[nInd].Value >>= nValue )
{
OUString aValue = OUString::number( nValue );
if ( aDocStatistic[nInd].Name == "TableCount" )
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute(
XML_NAMESPACE_META, XML_TABLE_COUNT, aValue );
else if ( aDocStatistic[nInd].Name == "ObjectCount" )
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute(
XML_NAMESPACE_META, XML_OBJECT_COUNT, aValue );
else if ( aDocStatistic[nInd].Name == "ImageCount" )
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute(
XML_NAMESPACE_META, XML_IMAGE_COUNT, aValue );
else if ( aDocStatistic[nInd].Name == "PageCount" )
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute(
XML_NAMESPACE_META, XML_PAGE_COUNT, aValue );
else if ( aDocStatistic[nInd].Name == "ParagraphCount" )
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute(
XML_NAMESPACE_META, XML_PARAGRAPH_COUNT, aValue );
else if ( aDocStatistic[nInd].Name == "WordCount" )
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute(
XML_NAMESPACE_META, XML_WORD_COUNT, aValue );
else if ( aDocStatistic[nInd].Name == "CharacterCount" )
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute(
XML_NAMESPACE_META, XML_CHARACTER_COUNT, aValue );
else if ( aDocStatistic[nInd].Name == "CellCount" )
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute(
XML_NAMESPACE_META, XML_CELL_COUNT, aValue );
else
{
DBG_ASSERT( false, "Unknown statistic value!\n" );
}
}
}
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
SvXMLElementExport aElem( mrExport,
XML_NAMESPACE_META, XML_DOCUMENT_STATISTIC, true, true );
}
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
static const char *s_xmlns = "xmlns";
static const char *s_xmlns2 = "xmlns:";
static const char *s_meta = "meta:";
static const char *s_href = "xlink:href";
SvXMLMetaExport::SvXMLMetaExport(
SvXMLExport& i_rExp,
const uno::Reference<document::XDocumentProperties>& i_rDocProps ) :
mrExport( i_rExp ),
mxDocProps( i_rDocProps ),
m_level( 0 ),
m_preservedNSs()
{
DBG_ASSERT( mxDocProps.is(), "no document properties" );
}
SvXMLMetaExport::~SvXMLMetaExport()
{
}
void SvXMLMetaExport::Export()
{
uno::Reference< xml::sax::XSAXSerializable> xSAXable(mxDocProps,
uno::UNO_QUERY);
if (xSAXable.is()) {
::std::vector< beans::StringPair > namespaces;
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
const SvXMLNamespaceMap & rNsMap(mrExport.GetNamespaceMap());
for (sal_uInt16 key = rNsMap.GetFirstKey();
key != USHRT_MAX; key = rNsMap.GetNextKey(key)) {
beans::StringPair ns;
const OUString attrname = rNsMap.GetAttrNameByKey(key);
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
if (attrname.matchAsciiL(s_xmlns2, strlen(s_xmlns2))) {
ns.First = attrname.copy(strlen(s_xmlns2));
} else if (attrname.equalsAsciiL(s_xmlns, strlen(s_xmlns))) {
// default initialized empty string
} else {
2011-03-01 19:07:44 +01:00
OSL_FAIL("namespace attribute not starting with xmlns unexpected");
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
}
ns.Second = rNsMap.GetNameByKey(key);
namespaces.push_back(ns);
}
xSAXable->serialize(this, comphelper::containerToSequence(namespaces));
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
} else {
// office:meta
SvXMLElementExport aElem( mrExport, XML_NAMESPACE_OFFICE, XML_META,
true, true );
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
// fall back to using public interface of XDocumentProperties
_MExport();
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
}
}
// ::com::sun::star::xml::sax::XDocumentHandler:
void SAL_CALL
SvXMLMetaExport::startDocument()
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
{
// ignore: has already been done by SvXMLExport::exportDoc
DBG_ASSERT( m_level == 0, "SvXMLMetaExport: level error" );
}
void SAL_CALL
SvXMLMetaExport::endDocument()
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
{
// ignore: will be done by SvXMLExport::exportDoc
DBG_ASSERT( m_level == 0, "SvXMLMetaExport: level error" );
}
// unfortunately, this method contains far too much ugly namespace mangling.
void SAL_CALL
SvXMLMetaExport::startElement(const OUString & i_rName,
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
const uno::Reference< xml::sax::XAttributeList > & i_xAttribs)
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
{
if (m_level == 0) {
// namespace decls: default ones have been written at the root element
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
// non-default ones must be preserved here
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
const sal_Int16 nCount = i_xAttribs->getLength();
for (sal_Int16 i = 0; i < nCount; ++i) {
const OUString name(i_xAttribs->getNameByIndex(i));
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
if (name.matchAsciiL(s_xmlns, strlen(s_xmlns))) {
bool found(false);
const SvXMLNamespaceMap & rNsMap(mrExport.GetNamespaceMap());
for (sal_uInt16 key = rNsMap.GetFirstKey();
key != USHRT_MAX; key = rNsMap.GetNextKey(key)) {
if (name.equals(rNsMap.GetAttrNameByKey(key))) {
found = true;
break;
}
}
if (!found) {
m_preservedNSs.push_back(beans::StringPair(name,
i_xAttribs->getValueByIndex(i)));
}
}
}
// ignore the root: it has been written already
++m_level;
return;
}
if (m_level == 1) {
// attach preserved namespace decls from root node here
for (std::vector<beans::StringPair>::const_iterator iter =
m_preservedNSs.begin(); iter != m_preservedNSs.end(); ++iter) {
const OUString ns(iter->First);
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
bool found(false);
// but only if it is not already there
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
const sal_Int16 nCount = i_xAttribs->getLength();
for (sal_Int16 i = 0; i < nCount; ++i) {
const OUString name(i_xAttribs->getNameByIndex(i));
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
if (ns.equals(name)) {
found = true;
break;
}
}
if (!found) {
mrExport.AddAttribute(ns, iter->Second);
}
}
}
// attach the attributes
if (i_rName.matchAsciiL(s_meta, strlen(s_meta))) {
// special handling for all elements that may have
// xlink:href attributes; these must be made relative
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
const sal_Int16 nLength = i_xAttribs->getLength();
for (sal_Int16 i = 0; i < nLength; ++i) {
const OUString name (i_xAttribs->getNameByIndex (i));
OUString value(i_xAttribs->getValueByIndex(i));
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
if (name.matchAsciiL(s_href, strlen(s_href))) {
value = mrExport.GetRelativeReference(value);
}
mrExport.AddAttribute(name, value);
}
} else {
CWS-TOOLING: integrate CWS dbaperf1 2009-04-02 09:12:25 +0200 oj r270372 : CWS-TOOLING: rebase CWS dbaperf1 to trunk@270033 (milestone: DEV300:m45) 2009-03-17 10:20:34 +0100 oj r269577 : add parameter 2009-03-17 10:20:05 +0100 oj r269576 : add parameter 2009-03-12 12:32:24 +0100 oj r269387 : add missing ++ 2009-03-11 12:53:35 +0100 oj r269315 : compile error 2009-03-06 08:52:11 +0100 oj r268968 : #i99264# remove duplicate code 2009-03-06 08:20:08 +0100 oj r268966 : add missingheader 2009-03-06 08:17:41 +0100 oj r268965 : add header 2009-03-06 08:15:07 +0100 oj r268964 : #i99708# remove duplicate code 2009-03-06 07:24:11 +0100 oj r268963 : #i99708# remove duplicate code 2009-03-06 07:22:24 +0100 oj r268962 : #i99708# use tenary operator 2009-03-06 07:19:21 +0100 oj r268961 : remove unused rtl_logs 2009-03-06 07:15:55 +0100 oj r268960 : #i99708# extract getLength from for loop 2009-03-06 07:15:35 +0100 oj r268959 : #i99708# extract getLength from for loop 2009-03-06 07:14:57 +0100 oj r268958 : remove unused rtl_logs 2009-03-06 07:13:01 +0100 oj r268957 : insert DBG_ helper 2009-03-06 07:12:17 +0100 oj r268956 : remove unused rtl_logs 2009-03-06 07:10:26 +0100 oj r268955 : remove unused rtl_logs 2009-03-06 07:04:51 +0100 oj r268954 : #i99708# use tenary operator 2009-03-05 12:04:46 +0100 oj r268895 : comment RTL_LOG out 2009-03-05 09:05:07 +0100 oj r268874 : add rtl logfile 2009-03-04 14:21:18 +0100 oj r268828 : #i99708# make static inplace and some method calls in for loop removed 2009-03-04 14:20:34 +0100 oj r268827 : #i99708# impl double check pattern for getInfohelper 2009-03-02 09:31:42 +0100 oj r268636 : add rtl logfile 2009-03-02 08:18:37 +0100 oj r268633 : add rtl logfile 2009-02-27 11:22:16 +0100 oj r268570 : #i99709# change algorithm for marking objects 2009-02-27 11:17:04 +0100 oj r268568 : #i99708# some improvements to load forms, controls faster and replacement of size() call with !empty() which is much faster 2009-02-24 10:09:35 +0100 sb r268383 : #i99290# no longer care to set a sensible context class loader for native threads attached to the VM 2009-02-23 13:44:04 +0100 oj r268354 : #i76606# seekrow changes 2009-02-23 12:27:30 +0100 oj r268349 : deleted 2009-02-20 15:14:23 +0100 oj r268325 : #i76606# some code changes 2009-02-19 14:15:25 +0100 oj r268284 : #i76606# use of simple prep stmt instead of full blown rowset, when source and dest connection are the same use insert into ... ( select ... ) 2009-02-19 11:27:55 +0100 oj r268265 : #i76606# insert some RTL_LOG and setObject impl 2009-02-18 14:45:37 +0100 oj r268222 : #i99363# insert RTL_LOG 2009-02-18 14:45:18 +0100 oj r268221 : #i99363# insert RTL_LOG 2009-02-18 11:14:54 +0100 oj r268207 : #i99363# call some impl_ methods to avoid duplicate cechCache calls 2009-02-18 11:10:47 +0100 oj r268206 : #i99363# make isCount inline 2009-02-18 10:33:22 +0100 oj r268203 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-18 10:32:57 +0100 oj r268202 : #i99363# use bookmarkable if available and inserted some RTL_LOG 2009-02-17 07:29:05 +0100 oj r267843 : #i96897# remove some dll public 2009-02-16 15:01:04 +0100 oj r267816 : #i96897# remove some dll public 2009-02-16 14:25:53 +0100 oj r267810 : #i99264# remove duplicate code 2009-02-16 14:25:33 +0100 oj r267809 : #i99264# remove duplicate code 2009-02-16 14:24:59 +0100 oj r267808 : #i99264# remove duplicate code 2009-02-13 10:56:17 +0100 oj r267703 : #i99191# comment the contextclassloader 2009-02-13 10:32:40 +0100 oj r267700 : reduce call to resultset meta data 2009-02-13 10:27:31 +0100 oj r267699 : reduce call to resultset meta data 2009-02-13 10:27:08 +0100 oj r267698 : reduce call to resultset meta data
2009-04-23 10:42:05 +00:00
const sal_Int16 nLength = i_xAttribs->getLength();
for (sal_Int16 i = 0; i < nLength; ++i) {
const OUString name (i_xAttribs->getNameByIndex(i));
const OUString value (i_xAttribs->getValueByIndex(i));
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
mrExport.AddAttribute(name, value);
}
}
// finally, start the element
// #i107240# no whitespace here, because the DOM may already contain
// whitespace, which is not cleared when loading and thus accumulates.
mrExport.StartElement(i_rName, (m_level > 1) ? sal_False : sal_True);
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
++m_level;
}
void SAL_CALL
SvXMLMetaExport::endElement(const OUString & i_rName)
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
{
--m_level;
if (m_level == 0) {
// ignore the root; see startElement
return;
}
DBG_ASSERT( m_level >= 0, "SvXMLMetaExport: level error" );
mrExport.EndElement(i_rName, false);
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
}
void SAL_CALL
SvXMLMetaExport::characters(const OUString & i_rChars)
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
{
mrExport.Characters(i_rChars);
}
void SAL_CALL
SvXMLMetaExport::ignorableWhitespace(const OUString & /*i_rWhitespaces*/)
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
{
mrExport.IgnorableWhitespace(/*i_rWhitespaces*/);
}
void SAL_CALL
SvXMLMetaExport::processingInstruction(const OUString & i_rTarget,
const OUString & i_rData)
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
{
// ignore; the exporter cannot handle these
(void) i_rTarget;
(void) i_rData;
}
void SAL_CALL
SvXMLMetaExport::setDocumentLocator(const uno::Reference<xml::sax::XLocator>&)
throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
INTEGRATION: CWS custommeta (1.23.66); FILE MERGED 2008/02/07 15:09:06 mst 1.23.66.8: - xmloff/source/meta/xmlmetae.cxx: + remove debugging printf calls 2008/02/01 10:28:01 mst 1.23.66.7: RESYNC: (1.23-1.25); FILE MERGED 2007/12/21 13:20:44 mst 1.23.66.6: - xmloff/source/meta/xmlmetae.cxx: in SvXMLMetaExport::_Export, only export elements if they actually contain text 2007/12/18 15:53:49 mst 1.23.66.5: - xmloff/inc/xmloff/xmlmetae.hxx, xmloff/source/meta/xmlmetae.cxx, xmloff/source/meta/xmlversion.cxx: + remove class SfxXMLMetaExport; replaced by SvXMLMetaExport + SvXMLMetaExport::_Export replaces SfxXMLMetaExport::Export, uses XDocumentProperties instead of XDocumentInfo 2007/12/11 17:47:29 mst 1.23.66.4: - xmloff/source/core/xmlexp.cxx, xmloff/source/meta/{xmlmetae.cxx,MetaExportComponent.cxx}: note to self: do not allocate uno objects on the stack, idiot! 2007/12/11 10:32:38 mst 1.23.66.3: - xmloff/inc/xmloff/xmlmetai.hxx,xmloff/source/core/ProgressBarHelper.cxx, xmloff/source/meta/xmlmetae.cxx: work around msci10's lack of standard compliance by not using the c++ version of c standard library headers 2007/12/11 09:42:19 mst 1.23.66.2: - xmloff/source/meta/xmlmetae.cxx: gcc build fix 2007/12/07 18:51:48 mst 1.23.66.1: refactoring to use XDocumentProperties instead of XDocumentInfo on document export: - xmloff/inc/xmloff/xmlexp.hxx, xmloff/source/core/xmlexp.cxx: + turn lcl_GetProductName into static method SvXMLExport::GetProductName + updating of Generator string is now done in _ExportMeta - xmloff/inc/MetaExportComponent.hxx, source/meta/MetaExportComponent.cxx: + use XDocumentProperties instead of XDocumentInfo + override _ExportMeta - xmloff/inc/xmloff/xmlmetae.hxx, source/meta/xmlmetae.cxx: + new class SvXMLMetaExport, to eventually replace SfxXMLMetaExport + move lcl_GetProductName to xmlexp.cxx
2008-02-26 12:37:56 +00:00
{
// nothing to do here, move along...
}
2000-09-18 16:07:07 +00:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */