2000-09-18 16:07:07 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 21:13:44 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 21:13:44 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 21:13:44 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 21:13:44 +00:00
|
|
|
* $RCSfile: xmlmetae.cxx,v $
|
|
|
|
* $Revision: 1.27 $
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 21:13:44 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 21:13:44 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 21:13:44 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 21:13:44 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 09:40:04 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_xmloff.hxx"
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <tools/debug.hxx>
|
|
|
|
#include <tools/inetdef.hxx>
|
2006-04-07 13:54:29 +00:00
|
|
|
#include <i18npool/mslangid.hxx>
|
2001-06-27 06:38:11 +00:00
|
|
|
#include <tools/urlobj.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 <tools/time.hxx>
|
|
|
|
#include <rtl/ustrbuf.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2007-06-27 14:19:24 +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>
|
2007-06-27 14:19:24 +00:00
|
|
|
#include <xmloff/xmluconv.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/nmspmap.hxx>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "xmlnmspe.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 <com/sun/star/beans/XPropertyAccess.hpp>
|
|
|
|
#include <com/sun/star/beans/StringPair.hpp>
|
|
|
|
#include <com/sun/star/xml/dom/XDocument.hpp>
|
|
|
|
#include <com/sun/star/xml/sax/XSAXSerializable.hpp>
|
2001-10-19 17:43:58 +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 <comphelper/sequenceasvector.hxx>
|
|
|
|
#include <unotools/docinfohelper.hxx>
|
2004-11-26 12:02:14 +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 <string.h>
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2008-01-04 15:12:38 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
using namespace com::sun::star;
|
2001-06-29 20:07:26 +00:00
|
|
|
using namespace ::xmloff::token;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
void lcl_AddTwoDigits( rtl::OUStringBuffer& rStr, sal_Int32 nVal )
|
|
|
|
{
|
|
|
|
if ( nVal < 10 )
|
|
|
|
rStr.append( sal_Unicode('0') );
|
|
|
|
rStr.append( nVal );
|
|
|
|
}
|
|
|
|
|
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
|
|
|
rtl::OUString
|
|
|
|
SvXMLMetaExport::GetISODateTimeString( const util::DateTime& rDateTime )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
// return ISO date string "YYYY-MM-DDThh:mm:ss"
|
|
|
|
|
|
|
|
rtl::OUStringBuffer sTmp;
|
|
|
|
sTmp.append( (sal_Int32) rDateTime.Year );
|
|
|
|
sTmp.append( sal_Unicode('-') );
|
|
|
|
lcl_AddTwoDigits( sTmp, rDateTime.Month );
|
|
|
|
sTmp.append( sal_Unicode('-') );
|
|
|
|
lcl_AddTwoDigits( sTmp, rDateTime.Day );
|
|
|
|
sTmp.append( sal_Unicode('T') );
|
|
|
|
lcl_AddTwoDigits( sTmp, rDateTime.Hours );
|
|
|
|
sTmp.append( sal_Unicode(':') );
|
|
|
|
lcl_AddTwoDigits( sTmp, rDateTime.Minutes );
|
|
|
|
sTmp.append( sal_Unicode(':') );
|
|
|
|
lcl_AddTwoDigits( sTmp, rDateTime.Seconds );
|
|
|
|
|
|
|
|
return sTmp.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
|
|
|
void SvXMLMetaExport::SimpleStringElement( const rtl::OUString& rText,
|
|
|
|
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 ( rText.getLength() ) {
|
|
|
|
SvXMLElementExport aElem( mrExport, nNamespace, eElementName,
|
|
|
|
sal_True, sal_False );
|
|
|
|
mrExport.Characters( rText );
|
2006-11-01 13:51:15 +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
|
|
|
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
|
|
|
|
rtl::OUString sValue = GetISODateTimeString( rDate );
|
|
|
|
if ( sValue.getLength() ) {
|
|
|
|
SvXMLElementExport aElem( mrExport, nNamespace, eElementName,
|
2001-10-19 17:43:58 +00:00
|
|
|
sal_True, sal_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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-12-09 08:43:20 +00:00
|
|
|
void SvXMLMetaExport::_MExport()
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2004-07-13 07:15:46 +00:00
|
|
|
// generator
|
2001-10-19 17:43:58 +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_GENERATOR,
|
2001-10-19 17:43:58 +00:00
|
|
|
sal_True, 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
|
|
|
mrExport.Characters( ::utl::DocInfoHelper::GetGeneratorString() );
|
2001-10-19 17:43:58 +00:00
|
|
|
}
|
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(),
|
2001-06-29 20:07:26 +00:00
|
|
|
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(),
|
2001-06-29 20:07:26 +00:00
|
|
|
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(),
|
2001-06-29 20:07:26 +00:00
|
|
|
XML_NAMESPACE_META, XML_PRINT_DATE );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// keywords
|
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< ::rtl::OUString > keywords = mxDocProps->getKeywords();
|
|
|
|
for (sal_Int32 i = 0; i < keywords.getLength(); ++i) {
|
|
|
|
SvXMLElementExport aKwElem( mrExport, XML_NAMESPACE_META, XML_KEYWORD,
|
|
|
|
sal_True, sal_False );
|
|
|
|
mrExport.Characters( keywords[i] );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// document language
|
|
|
|
{
|
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 lang::Locale aLocale = mxDocProps->getLanguage();
|
|
|
|
::rtl::OUString sValue = aLocale.Language;
|
|
|
|
if (sValue.getLength()) {
|
|
|
|
if ( aLocale.Country.getLength() )
|
|
|
|
{
|
|
|
|
sValue += rtl::OUString::valueOf((sal_Unicode)'-');
|
|
|
|
sValue += aLocale.Country;
|
|
|
|
}
|
|
|
|
SvXMLElementExport aElem( mrExport, XML_NAMESPACE_DC, XML_LANGUAGE,
|
2001-10-19 17:43:58 +00:00
|
|
|
sal_True, sal_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,
|
2001-10-19 17:43:58 +00:00
|
|
|
XML_NAMESPACE_META, XML_EDITING_CYCLES,
|
|
|
|
sal_True, sal_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( ::rtl::OUString::valueOf(
|
|
|
|
static_cast<sal_Int32>(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,
|
2001-10-19 17:43:58 +00:00
|
|
|
XML_NAMESPACE_META, XML_EDITING_DURATION,
|
|
|
|
sal_True, sal_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( SvXMLUnitConverter::convertTimeDuration(
|
|
|
|
Time(secs/3600, (secs%3600)/60, secs%60)) );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// default target
|
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 ::rtl::OUString sDefTarget = mxDocProps->getDefaultTarget();
|
2001-05-11 09:55:16 +00:00
|
|
|
if ( sDefTarget.getLength() )
|
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
|
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 XMLTokenEnum eShow =
|
2001-10-19 17:43:58 +00:00
|
|
|
sDefTarget.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("_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 );
|
2001-10-19 17:43:58 +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,
|
2001-10-19 17:43:58 +00:00
|
|
|
XML_NAMESPACE_META,XML_HYPERLINK_BEHAVIOUR,
|
|
|
|
sal_True, sal_False );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// auto-reload
|
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 ::rtl::OUString sReloadURL = mxDocProps->getAutoloadURL();
|
|
|
|
const sal_Int32 sReloadDelay = mxDocProps->getAutoloadSecs();
|
|
|
|
if (sReloadDelay != 0 || sReloadURL.getLength() != 0)
|
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
|
|
|
|
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,
|
|
|
|
SvXMLUnitConverter::convertTimeDuration(
|
|
|
|
Time(sReloadDelay/3600, (sReloadDelay%3600)/60,
|
|
|
|
sReloadDelay%60 )) );
|
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,
|
2001-10-19 17:43:58 +00:00
|
|
|
sal_True, sal_False );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// template
|
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 rtl::OUString sTplPath = mxDocProps->getTemplateURL();
|
2001-05-11 09:55:16 +00:00
|
|
|
if ( sTplPath.getLength() )
|
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,
|
2001-10-19 17:43:58 +00:00
|
|
|
sal_True, sal_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) {
|
2006-06-19 17:21:42 +00:00
|
|
|
::rtl::OUStringBuffer sValueBuffer;
|
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
|
|
|
::rtl::OUStringBuffer sType;
|
|
|
|
if (!SvXMLUnitConverter::convertAny(
|
|
|
|
sValueBuffer, sType, props[i].Value)) {
|
2004-11-17 12:04:45 +00:00
|
|
|
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,
|
2004-11-17 12:04:45 +00:00
|
|
|
XML_USER_DEFINED, sal_True, sal_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() );
|
2004-11-17 12:04:45 +00:00
|
|
|
}
|
2006-11-01 13:51:15 +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
|
|
|
const uno::Sequence< beans::NamedValue > aDocStatistic =
|
|
|
|
mxDocProps->getDocumentStatistics();
|
2006-11-01 13:51:15 +00:00
|
|
|
// 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 )
|
|
|
|
{
|
|
|
|
::rtl::OUString aValue = rtl::OUString::valueOf( nValue );
|
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 ( aDocStatistic[nInd].Name.equals( ::rtl::OUString(
|
|
|
|
RTL_CONSTASCII_USTRINGPARAM( "TableCount" ) ) ) )
|
|
|
|
mrExport.AddAttribute(
|
|
|
|
XML_NAMESPACE_META, XML_TABLE_COUNT, aValue );
|
|
|
|
else if ( aDocStatistic[nInd].Name.equals( ::rtl::OUString(
|
|
|
|
RTL_CONSTASCII_USTRINGPARAM( "ObjectCount" ) ) ) )
|
|
|
|
mrExport.AddAttribute(
|
|
|
|
XML_NAMESPACE_META, XML_OBJECT_COUNT, aValue );
|
|
|
|
else if ( aDocStatistic[nInd].Name.equals( ::rtl::OUString(
|
|
|
|
RTL_CONSTASCII_USTRINGPARAM( "ImageCount" ) ) ) )
|
|
|
|
mrExport.AddAttribute(
|
|
|
|
XML_NAMESPACE_META, XML_IMAGE_COUNT, aValue );
|
|
|
|
else if ( aDocStatistic[nInd].Name.equals( ::rtl::OUString(
|
|
|
|
RTL_CONSTASCII_USTRINGPARAM( "PageCount" ) ) ) )
|
|
|
|
mrExport.AddAttribute(
|
|
|
|
XML_NAMESPACE_META, XML_PAGE_COUNT, aValue );
|
|
|
|
else if ( aDocStatistic[nInd].Name.equals( ::rtl::OUString(
|
|
|
|
RTL_CONSTASCII_USTRINGPARAM( "ParagraphCount" ) ) ) )
|
|
|
|
mrExport.AddAttribute(
|
|
|
|
XML_NAMESPACE_META, XML_PARAGRAPH_COUNT, aValue );
|
|
|
|
else if ( aDocStatistic[nInd].Name.equals( ::rtl::OUString(
|
|
|
|
RTL_CONSTASCII_USTRINGPARAM( "WordCount" ) ) ) )
|
|
|
|
mrExport.AddAttribute(
|
|
|
|
XML_NAMESPACE_META, XML_WORD_COUNT, aValue );
|
|
|
|
else if ( aDocStatistic[nInd].Name.equals( ::rtl::OUString(
|
|
|
|
RTL_CONSTASCII_USTRINGPARAM( "CharacterCount" ) ) ) )
|
|
|
|
mrExport.AddAttribute(
|
|
|
|
XML_NAMESPACE_META, XML_CHARACTER_COUNT, aValue );
|
|
|
|
else if ( aDocStatistic[nInd].Name.equals( ::rtl::OUString(
|
|
|
|
RTL_CONSTASCII_USTRINGPARAM( "CellCount" ) ) ) )
|
|
|
|
mrExport.AddAttribute(
|
|
|
|
XML_NAMESPACE_META, XML_CELL_COUNT, aValue );
|
2006-11-01 13:51:15 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
DBG_ASSERT( sal_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, sal_True, sal_True );
|
2006-11-01 13:51:15 +00:00
|
|
|
}
|
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()
|
|
|
|
{
|
|
|
|
// exportDom(xDOM, mrExport); // this would not work (root node, namespaces)
|
|
|
|
uno::Reference< xml::sax::XSAXSerializable> xSAXable(mxDocProps,
|
|
|
|
uno::UNO_QUERY);
|
|
|
|
if (xSAXable.is()) {
|
|
|
|
::comphelper::SequenceAsVector< beans::StringPair > namespaces;
|
|
|
|
const SvXMLNamespaceMap & rNsMap(mrExport.GetNamespaceMap());
|
|
|
|
for (sal_uInt16 key = rNsMap.GetFirstKey();
|
|
|
|
key != USHRT_MAX; key = rNsMap.GetNextKey(key)) {
|
|
|
|
beans::StringPair ns;
|
|
|
|
const ::rtl::OUString attrname = rNsMap.GetAttrNameByKey(key);
|
|
|
|
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 {
|
|
|
|
DBG_ERROR("namespace attribute not starting with xmlns unexpected");
|
|
|
|
}
|
|
|
|
ns.Second = rNsMap.GetNameByKey(key);
|
|
|
|
namespaces.push_back(ns);
|
|
|
|
}
|
|
|
|
xSAXable->serialize(this, namespaces.getAsConstList());
|
|
|
|
} else {
|
|
|
|
// office:meta
|
|
|
|
SvXMLElementExport aElem( mrExport, XML_NAMESPACE_OFFICE, XML_META,
|
|
|
|
sal_True, sal_True );
|
|
|
|
// fall back to using public interface of XDocumentProperties
|
2008-12-09 08:43:20 +00:00
|
|
|
_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)
|
|
|
|
{
|
|
|
|
// 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)
|
|
|
|
{
|
|
|
|
// 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 ::rtl::OUString & i_rName,
|
|
|
|
const uno::Reference< xml::sax::XAttributeList > & i_xAttribs)
|
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException)
|
|
|
|
{
|
|
|
|
|
|
|
|
if (m_level == 0) {
|
|
|
|
// namepace decls: default ones have been written at the root element
|
|
|
|
// non-default ones must be preserved here
|
|
|
|
for (sal_Int16 i = 0; i < i_xAttribs->getLength(); ++i) {
|
|
|
|
const ::rtl::OUString name(i_xAttribs->getNameByIndex(i));
|
|
|
|
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 ::rtl::OUString ns(iter->First);
|
|
|
|
bool found(false);
|
|
|
|
// but only if it is not already there
|
|
|
|
for (sal_Int16 i = 0; i < i_xAttribs->getLength(); ++i) {
|
|
|
|
const ::rtl::OUString name(i_xAttribs->getNameByIndex(i));
|
|
|
|
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
|
|
|
|
for (sal_Int16 i = 0; i < i_xAttribs->getLength(); ++i) {
|
|
|
|
const ::rtl::OUString name (i_xAttribs->getNameByIndex (i));
|
|
|
|
::rtl::OUString value(i_xAttribs->getValueByIndex(i));
|
|
|
|
if (name.matchAsciiL(s_href, strlen(s_href))) {
|
|
|
|
value = mrExport.GetRelativeReference(value);
|
|
|
|
}
|
|
|
|
mrExport.AddAttribute(name, value);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
for (sal_Int16 i = 0; i < i_xAttribs->getLength(); ++i) {
|
|
|
|
const ::rtl::OUString name (i_xAttribs->getNameByIndex(i));
|
|
|
|
const ::rtl::OUString value (i_xAttribs->getValueByIndex(i));
|
|
|
|
mrExport.AddAttribute(name, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// finally, start the element
|
|
|
|
mrExport.StartElement(i_rName, sal_True); //FIXME:whitespace?
|
|
|
|
++m_level;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL
|
|
|
|
SvXMLMetaExport::endElement(const ::rtl::OUString & i_rName)
|
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException)
|
|
|
|
{
|
|
|
|
--m_level;
|
|
|
|
if (m_level == 0) {
|
|
|
|
// ignore the root; see startElement
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
DBG_ASSERT( m_level >= 0, "SvXMLMetaExport: level error" );
|
|
|
|
mrExport.EndElement(i_rName, sal_False);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL
|
|
|
|
SvXMLMetaExport::characters(const ::rtl::OUString & i_rChars)
|
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException)
|
|
|
|
{
|
|
|
|
mrExport.Characters(i_rChars);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL
|
|
|
|
SvXMLMetaExport::ignorableWhitespace(const ::rtl::OUString & /*i_rWhitespaces*/)
|
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException)
|
|
|
|
{
|
|
|
|
mrExport.IgnorableWhitespace(/*i_rWhitespaces*/);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SAL_CALL
|
|
|
|
SvXMLMetaExport::processingInstruction(const ::rtl::OUString & i_rTarget,
|
|
|
|
const ::rtl::OUString & i_rData)
|
|
|
|
throw (uno::RuntimeException, xml::sax::SAXException)
|
|
|
|
{
|
|
|
|
// 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)
|
|
|
|
{
|
|
|
|
// nothing to do here, move along...
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|