Files
libreoffice/sfx2/source/doc/SfxDocumentMetaData.cxx

2314 lines
88 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
#include <sal/config.h>
#include <boost/noncopyable.hpp>
#include <cppuhelper/compbase6.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/util/XCloneable.hpp>
#include <com/sun/star/util/XModifiable.hpp>
#include <com/sun/star/xml/sax/XSAXSerializable.hpp>
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/lang/EventObject.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/task/ErrorCodeIOException.hpp>
#include <com/sun/star/embed/XStorage.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/io/XActiveDataControl.hpp>
#include <com/sun/star/io/XActiveDataSource.hpp>
#include <com/sun/star/io/XStream.hpp>
#include <com/sun/star/document/XImporter.hpp>
#include <com/sun/star/document/XExporter.hpp>
#include <com/sun/star/document/XFilter.hpp>
#include <com/sun/star/xml/sax/Parser.hpp>
#include <com/sun/star/xml/sax/Writer.hpp>
#include <com/sun/star/xml/dom/XDocument.hpp>
#include <com/sun/star/xml/dom/XElement.hpp>
#include <com/sun/star/xml/dom/DocumentBuilder.hpp>
#include <com/sun/star/xml/dom/XSAXDocumentBuilder.hpp>
#include <com/sun/star/xml/dom/NodeType.hpp>
#include <com/sun/star/xml/xpath/XPathAPI.hpp>
#include <com/sun/star/util/Date.hpp>
#include <com/sun/star/util/Time.hpp>
#include <com/sun/star/util/DateWithTimezone.hpp>
#include <com/sun/star/util/DateTimeWithTimezone.hpp>
#include <com/sun/star/util/Duration.hpp>
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
#include <tools/debug.hxx>
#include <tools/datetime.hxx>
#include <osl/mutex.hxx>
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <comphelper/storagehelper.hxx>
#include <unotools/mediadescriptor.hxx>
#include <comphelper/sequence.hxx>
#include <sot/storage.hxx>
#include <sfx2/docfile.hxx>
#include <sax/tools/converter.hxx>
#include <i18nlangtag/languagetag.hxx>
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
#include <utility>
#include <vector>
#include <map>
#include <cstring>
#include <limits>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/document/XCompatWriterDocProperties.hpp>
#include <com/sun/star/beans/PropertyBag.hpp>
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
/**
* This file contains the implementation of the service
* com.sun.star.document.DocumentProperties.
* This service enables access to the meta-data stored in documents.
* Currently, this service only handles documents in ODF format.
*
* The implementation uses an XML DOM to store the properties.
* This approach was taken because it allows for preserving arbitrary XML data
* in loaded documents, which will be stored unmodified when saving the
* document again.
*
* Upon access, some properties are directly read from and updated in the DOM.
* Exception: it seems impossible to get notified upon addition of a property
* to a com.sun.star.beans.PropertyBag, which is used for storing user-defined
* properties; because of this, user-defined properties are updated in the
* XML DOM only when storing the document.
* Exception 2: when setting certain properties which correspond to attributes
* in the XML DOM, we want to remove the corresponding XML element. Detecting
* this condition can get messy, so we store all such properties as members,
* and update the DOM tree only when storing the document (in
* <method>updateUserDefinedAndAttributes</method>).
*
*/
/// anonymous implementation namespace
namespace {
/// a list of attribute-lists, where attribute means name and content
typedef std::vector<std::vector<std::pair<const char*, OUString> > >
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
AttrVector;
typedef ::cppu::WeakComponentImplHelper6<
css::lang::XServiceInfo,
css::document::XDocumentProperties,
css::lang::XInitialization,
css::util::XCloneable,
css::util::XModifiable,
css::xml::sax::XSAXSerializable>
SfxDocumentMetaData_Base;
class SfxDocumentMetaData:
private ::cppu::BaseMutex,
public SfxDocumentMetaData_Base,
private boost::noncopyable
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
public:
explicit SfxDocumentMetaData(
css::uno::Reference< css::uno::XComponentContext > const & context);
// ::com::sun::star::lang::XServiceInfo:
virtual OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Bool SAL_CALL supportsService(
const OUString & ServiceName) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Sequence< OUString > SAL_CALL
getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ::com::sun::star::lang::XComponent:
virtual void SAL_CALL dispose() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ::com::sun::star::document::XDocumentProperties:
virtual OUString SAL_CALL getAuthor()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setAuthor(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getGenerator()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setGenerator(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual css::util::DateTime SAL_CALL getCreationDate()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setCreationDate(const css::util::DateTime & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getTitle()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setTitle(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getSubject()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setSubject(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getDescription()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setDescription(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Sequence< OUString > SAL_CALL getKeywords()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setKeywords(
const css::uno::Sequence< OUString > & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual css::lang::Locale SAL_CALL getLanguage()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setLanguage(const css::lang::Locale & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getModifiedBy()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setModifiedBy(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual css::util::DateTime SAL_CALL getModificationDate()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setModificationDate(
const css::util::DateTime & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getPrintedBy()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setPrintedBy(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual css::util::DateTime SAL_CALL getPrintDate()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setPrintDate(const css::util::DateTime & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getTemplateName()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setTemplateName(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getTemplateURL()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setTemplateURL(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual css::util::DateTime SAL_CALL getTemplateDate()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setTemplateDate(const css::util::DateTime & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getAutoloadURL()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setAutoloadURL(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual ::sal_Int32 SAL_CALL getAutoloadSecs()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setAutoloadSecs(::sal_Int32 the_value)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) SAL_OVERRIDE;
virtual OUString SAL_CALL getDefaultTarget()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setDefaultTarget(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL
getDocumentStatistics() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setDocumentStatistics(
const css::uno::Sequence< css::beans::NamedValue > & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual ::sal_Int16 SAL_CALL getEditingCycles()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setEditingCycles(::sal_Int16 the_value)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual ::sal_Int32 SAL_CALL getEditingDuration()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL setEditingDuration(::sal_Int32 the_value)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL resetUserData(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual css::uno::Reference< css::beans::XPropertyContainer > SAL_CALL
getUserDefinedProperties() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL loadFromStorage(
const css::uno::Reference< css::embed::XStorage > & Storage,
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException,
css::io::WrongFormatException,
css::lang::WrappedTargetException, css::io::IOException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL loadFromMedium(const OUString & URL,
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
throw (css::uno::RuntimeException,
css::io::WrongFormatException,
css::lang::WrappedTargetException, css::io::IOException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL storeToStorage(
const css::uno::Reference< css::embed::XStorage > & Storage,
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException,
css::lang::WrappedTargetException, css::io::IOException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL storeToMedium(const OUString & URL,
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
throw (css::uno::RuntimeException,
css::lang::WrappedTargetException, css::io::IOException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ::com::sun::star::lang::XInitialization:
virtual void SAL_CALL initialize(
const css::uno::Sequence< css::uno::Any > & aArguments)
throw (css::uno::RuntimeException, css::uno::Exception, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ::com::sun::star::util::XCloneable:
virtual css::uno::Reference<css::util::XCloneable> SAL_CALL createClone()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ::com::sun::star::util::XModifiable:
virtual sal_Bool SAL_CALL isModified( )
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setModified( sal_Bool bModified )
throw (css::beans::PropertyVetoException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ::com::sun::star::util::XModifyBroadcaster:
virtual void SAL_CALL addModifyListener(
const css::uno::Reference< css::util::XModifyListener > & xListener)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual void SAL_CALL removeModifyListener(
const css::uno::Reference< css::util::XModifyListener > & xListener)
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ::com::sun::star::xml::sax::XSAXSerializable
virtual void SAL_CALL serialize(
const css::uno::Reference<css::xml::sax::XDocumentHandler>& i_xHandler,
const css::uno::Sequence< css::beans::StringPair >& i_rNamespaces)
throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) SAL_OVERRIDE;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
protected:
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
virtual ~SfxDocumentMetaData() {}
virtual SfxDocumentMetaData* createMe( css::uno::Reference< css::uno::XComponentContext > const & context ) { return new SfxDocumentMetaData( context ); };
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
const css::uno::Reference< css::uno::XComponentContext > m_xContext;
/// for notification
::cppu::OInterfaceContainerHelper m_NotifyListeners;
/// flag: false means not initialized yet, or disposed
bool m_isInitialized;
/// flag
bool m_isModified;
/// meta-data DOM tree
css::uno::Reference< css::xml::dom::XDocument > m_xDoc;
/// meta-data super node in the meta-data DOM tree
css::uno::Reference< css::xml::dom::XNode> m_xParent;
/// standard meta data (single occurrence)
std::map< OUString, css::uno::Reference<css::xml::dom::XNode> >
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
m_meta;
/// standard meta data (multiple occurrences)
std::map< OUString,
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
std::vector<css::uno::Reference<css::xml::dom::XNode> > > m_metaList;
/// user-defined meta data (meta:user-defined) @ATTENTION may be null!
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::beans::XPropertyContainer> m_xUserDefined;
// now for some meta-data attributes; these are not updated directly in the
// DOM because updates (detecting "empty" elements) would be quite messy
OUString m_TemplateName;
OUString m_TemplateURL;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::util::DateTime m_TemplateDate;
OUString m_AutoloadURL;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
sal_Int32 m_AutoloadSecs;
OUString m_DefaultTarget;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
/// check if we are initialized properly
void SAL_CALL checkInit() const;
/// initialize state from given DOM tree
void SAL_CALL init(css::uno::Reference<css::xml::dom::XDocument> i_xDom);
/// update element in DOM tree
void SAL_CALL updateElement(const char *i_name,
std::vector<std::pair<const char *, OUString> >* i_pAttrs = 0);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
/// update user-defined meta data and attributes in DOM tree
void SAL_CALL updateUserDefinedAndAttributes();
/// create empty DOM tree (XDocument)
css::uno::Reference<css::xml::dom::XDocument> SAL_CALL createDOM() const;
/// extract base URL (necessary for converting relative links)
css::uno::Reference<css::beans::XPropertySet> SAL_CALL getURLProperties(
const css::uno::Sequence<css::beans::PropertyValue> & i_rMedium) const;
/// get text of standard meta data element
OUString SAL_CALL getMetaText(const char* i_name) const;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
/// set text of standard meta data element iff not equal to existing text
bool SAL_CALL setMetaText(const char* i_name,
const OUString & i_rValue);
/// set text of standard meta data element iff not equal to existing text
void SAL_CALL setMetaTextAndNotify(const char* i_name,
const OUString & i_rValue);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
/// get text of standard meta data element's attribute
OUString SAL_CALL getMetaAttr(const char* i_name,
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
const char* i_attr) const;
/// get text of a list of standard meta data elements (multiple occ.)
css::uno::Sequence< OUString > SAL_CALL getMetaList(
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
const char* i_name) const;
/// set text of a list of standard meta data elements (multiple occ.)
bool SAL_CALL setMetaList(const char* i_name,
const css::uno::Sequence< OUString > & i_rValue,
AttrVector const* = 0);
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
void createUserDefined();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
};
typedef ::cppu::ImplInheritanceHelper1< SfxDocumentMetaData, css::document::XCompatWriterDocProperties > CompatWriterDocPropsImpl_BASE;
class CompatWriterDocPropsImpl : public CompatWriterDocPropsImpl_BASE
{
OUString msManager;
OUString msCategory;
OUString msCompany;
protected:
virtual SfxDocumentMetaData* createMe( css::uno::Reference< css::uno::XComponentContext > const & context ) SAL_OVERRIDE { return new CompatWriterDocPropsImpl( context ); };
public:
CompatWriterDocPropsImpl( css::uno::Reference< css::uno::XComponentContext > const & context) : CompatWriterDocPropsImpl_BASE( context ) {}
// XCompatWriterDocPropsImpl
virtual OUString SAL_CALL getManager() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { return msManager; }
virtual void SAL_CALL setManager( const OUString& _manager ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { msManager = _manager; }
virtual OUString SAL_CALL getCategory() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { return msCategory; }
virtual void SAL_CALL setCategory( const OUString& _category ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { msCategory = _category; }
virtual OUString SAL_CALL getCompany() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { return msCompany; }
virtual void SAL_CALL setCompany( const OUString& _company ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { msCompany = _company; }
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
{
return OUString("CompatWriterDocPropsImpl");
}
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
{
return cppu::supportsService(this, ServiceName);
}
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
{
css::uno::Sequence< OUString > aServiceNames(1);
aServiceNames[ 0 ] = "com.sun.star.writer.DocumentProperties";
return aServiceNames;
}
};
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
bool operator== (const css::util::DateTime &i_rLeft,
const css::util::DateTime &i_rRight)
{
return i_rLeft.Year == i_rRight.Year
&& i_rLeft.Month == i_rRight.Month
&& i_rLeft.Day == i_rRight.Day
&& i_rLeft.Hours == i_rRight.Hours
&& i_rLeft.Minutes == i_rRight.Minutes
&& i_rLeft.Seconds == i_rRight.Seconds
&& i_rLeft.NanoSeconds == i_rRight.NanoSeconds
&& i_rLeft.IsUTC == i_rRight.IsUTC;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
// NB: keep these two arrays in sync!
const char* s_stdStatAttrs[] = {
"meta:page-count",
"meta:table-count",
"meta:draw-count",
"meta:image-count",
"meta:object-count",
"meta:ole-object-count",
"meta:paragraph-count",
"meta:word-count",
"meta:character-count",
"meta:row-count",
"meta:frame-count",
"meta:sentence-count",
"meta:syllable-count",
"meta:non-whitespace-character-count",
"meta:cell-count",
0
};
// NB: keep these two arrays in sync!
const char* s_stdStats[] = {
"PageCount",
"TableCount",
"DrawCount",
"ImageCount",
"ObjectCount",
"OLEObjectCount",
"ParagraphCount",
"WordCount",
"CharacterCount",
"RowCount",
"FrameCount",
"SentenceCount",
"SyllableCount",
"NonWhitespaceCharacterCount",
"CellCount",
0
};
const char* s_stdMeta[] = {
"meta:generator", // string
"dc:title", // string
"dc:description", // string
"dc:subject", // string
"meta:initial-creator", // string
"dc:creator", // string
"meta:printed-by", // string
"meta:creation-date", // dateTime
"dc:date", // dateTime
"meta:print-date", // dateTime
"meta:template", // XLink
"meta:auto-reload",
"meta:hyperlink-behaviour",
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
"dc:language", // language
"meta:editing-cycles", // nonNegativeInteger
"meta:editing-duration", // duration
"meta:document-statistic", // ... // note: statistic is singular, no s!
0
};
const char* s_stdMetaList[] = {
"meta:keyword", // string*
"meta:user-defined", // ...*
0
};
const char* s_nsXLink = "http://www.w3.org/1999/xlink";
const char* s_nsDC = "http://purl.org/dc/elements/1.1/";
const char* s_nsODF = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
const char* s_nsODFMeta = "urn:oasis:names:tc:opendocument:xmlns:meta:1.0";
// const char* s_nsOOo = "http://openoffice.org/2004/office"; // not used (yet?)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
2011-08-15 10:01:10 +01:00
static const char s_meta [] = "meta.xml";
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
bool isValidDate(const css::util::Date & i_rDate)
{
return i_rDate.Month > 0;
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
bool isValidDateTime(const css::util::DateTime & i_rDateTime)
{
return i_rDateTime.Month > 0;
}
std::pair< OUString, OUString > SAL_CALL
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
getQualifier(const char* i_name) {
OUString nm = OUString::createFromAscii(i_name);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
sal_Int32 ix = nm.indexOf(static_cast<sal_Unicode> (':'));
if (ix == -1) {
return std::make_pair(OUString(), nm);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else {
return std::make_pair(nm.copy(0,ix), nm.copy(ix+1));
}
}
// get namespace for standard qualified names
// NB: only call this with statically known strings!
OUString SAL_CALL getNameSpace(const char* i_qname) throw ()
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
DBG_ASSERT(i_qname, "SfxDocumentMetaData: getNameSpace: argument is null");
const char * ns = "";
OUString n = getQualifier(i_qname).first;
if ( n == "xlink" ) ns = s_nsXLink;
if ( n == "dc" ) ns = s_nsDC;
if ( n == "office" ) ns = s_nsODF;
if ( n == "meta" ) ns = s_nsODFMeta;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
DBG_ASSERT(*ns, "SfxDocumentMetaData: unknown namespace prefix");
return OUString::createFromAscii(ns);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
bool SAL_CALL
textToDateOrDateTime(css::util::Date & io_rd, css::util::DateTime & io_rdt,
bool & o_rIsDateTime, boost::optional<sal_Int16> & o_rTimeZone,
const OUString& i_text) throw ()
{
if (::sax::Converter::parseDateOrDateTime(
&io_rd, io_rdt, o_rIsDateTime, &o_rTimeZone, i_text)) {
return true;
} else {
SAL_WARN_IF(!i_text.isEmpty(), "sfx.doc", "Invalid date: " << i_text);
return false;
}
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// convert string to date/time
bool SAL_CALL
textToDateTime(css::util::DateTime & io_rdt, const OUString& i_text) throw ()
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
if (::sax::Converter::parseDateTime(io_rdt, 0, i_text)) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
return true;
} else {
SAL_WARN_IF(!i_text.isEmpty(), "sfx.doc", "Invalid date: " << i_text);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
return false;
}
}
// convert string to date/time with default return value
css::util::DateTime SAL_CALL
textToDateTimeDefault(const OUString& i_text) throw ()
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
css::util::DateTime dt;
static_cast<void> (textToDateTime(dt, i_text));
// on conversion error: return default value (unchanged)
return dt;
}
// convert date to string
OUString SAL_CALL
dateToText(css::util::Date const& i_rd,
sal_Int16 const*const pTimeZone = 0) throw ()
{
if (isValidDate(i_rd)) {
OUStringBuffer buf;
::sax::Converter::convertDate(buf, i_rd, pTimeZone);
return buf.makeStringAndClear();
} else {
return OUString();
}
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// convert date/time to string
OUString SAL_CALL
dateTimeToText(css::util::DateTime const& i_rdt,
sal_Int16 const*const pTimeZone = 0) throw ()
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
if (isValidDateTime(i_rdt)) {
OUStringBuffer buf;
::sax::Converter::convertDateTime(buf, i_rdt, pTimeZone, true);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
return buf.makeStringAndClear();
} else {
return OUString();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
}
// convert string to duration
bool
textToDuration(css::util::Duration& io_rDur, OUString const& i_rText)
throw ()
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
if (::sax::Converter::convertDuration(io_rDur, i_rText)) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
return true;
} else {
SAL_WARN_IF(!i_rText.isEmpty(), "sfx.doc", "Invalid duration: " << i_rText);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
return false;
}
}
sal_Int32 textToDuration(OUString const& i_rText) throw ()
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
css::util::Duration d;
if (textToDuration(d, i_rText)) {
// #i107372#: approximate years/months
const sal_Int32 days( (d.Years * 365) + (d.Months * 30) + d.Days );
return (days * (24*3600))
+ (d.Hours * 3600) + (d.Minutes * 60) + d.Seconds;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else {
return 0; // default
}
}
// convert duration to string
OUString durationToText(css::util::Duration const& i_rDur) throw ()
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
OUStringBuffer buf;
::sax::Converter::convertDuration(buf, i_rDur);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
return buf.makeStringAndClear();
}
// convert duration to string
OUString SAL_CALL durationToText(sal_Int32 i_value) throw ()
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
css::util::Duration ud;
ud.Days = static_cast<sal_Int16>(i_value / (24 * 3600));
ud.Hours = static_cast<sal_Int16>((i_value % (24 * 3600)) / 3600);
ud.Minutes = static_cast<sal_Int16>((i_value % 3600) / 60);
ud.Seconds = static_cast<sal_Int16>(i_value % 60);
ud.NanoSeconds = 0;
return durationToText(ud);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
// extract base URL (necessary for converting relative links)
css::uno::Reference< css::beans::XPropertySet > SAL_CALL
SfxDocumentMetaData::getURLProperties(
const css::uno::Sequence< css::beans::PropertyValue > & i_rMedium) const
{
css::uno::Reference< css::beans::XPropertyBag> xPropArg = css::beans::PropertyBag::createDefault( m_xContext );
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
try {
css::uno::Any baseUri;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
for (sal_Int32 i = 0; i < i_rMedium.getLength(); ++i) {
if (i_rMedium[i].Name == "DocumentBaseURL") {
baseUri = i_rMedium[i].Value;
} else if (i_rMedium[i].Name == "URL") {
if (!baseUri.hasValue()) {
baseUri = i_rMedium[i].Value;
}
} else if (i_rMedium[i].Name == "HierarchicalDocumentName") {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
xPropArg->addProperty(
OUString("StreamRelPath"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::beans::PropertyAttribute::MAYBEVOID,
i_rMedium[i].Value);
}
}
if (baseUri.hasValue()) {
xPropArg->addProperty(
"BaseURI", css::beans::PropertyAttribute::MAYBEVOID,
baseUri);
}
xPropArg->addProperty(OUString("StreamName"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::beans::PropertyAttribute::MAYBEVOID,
css::uno::makeAny(OUString(s_meta)));
2011-08-15 10:03:25 +01:00
} catch (const css::uno::Exception &) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ignore
}
return css::uno::Reference< css::beans::XPropertySet>(xPropArg,
css::uno::UNO_QUERY_THROW);
}
// return the text of the (hopefully unique, i.e., normalize first!) text
// node _below_ the given node
OUString SAL_CALL
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
getNodeText(css::uno::Reference<css::xml::dom::XNode> i_xNode)
throw (css::uno::RuntimeException)
{
if (!i_xNode.is()) throw css::uno::RuntimeException(
OUString("SfxDocumentMetaData::getNodeText: argument is null"), i_xNode);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
for (css::uno::Reference<css::xml::dom::XNode> c = i_xNode->getFirstChild();
c.is();
c = c->getNextSibling()) {
if (c->getNodeType() == css::xml::dom::NodeType_TEXT_NODE) {
try {
return c->getNodeValue();
2011-08-15 10:03:25 +01:00
} catch (const css::xml::dom::DOMException &) { // too big?
return OUString();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
}
}
return OUString();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
OUString SAL_CALL
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
SfxDocumentMetaData::getMetaText(const char* i_name) const
// throw (css::uno::RuntimeException)
{
checkInit();
const OUString name( OUString::createFromAscii(i_name) );
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
DBG_ASSERT(m_meta.find(name) != m_meta.end(),
"SfxDocumentMetaData::getMetaText: not found");
css::uno::Reference<css::xml::dom::XNode> xNode = m_meta.find(name)->second;
return (xNode.is()) ? getNodeText(xNode) : OUString();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
bool SAL_CALL
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
SfxDocumentMetaData::setMetaText(const char* i_name,
const OUString & i_rValue)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// throw (css::uno::RuntimeException)
{
checkInit();
const OUString name( OUString::createFromAscii(i_name) );
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
DBG_ASSERT(m_meta.find(name) != m_meta.end(),
"SfxDocumentMetaData::setMetaText: not found");
css::uno::Reference<css::xml::dom::XNode> xNode = m_meta.find(name)->second;
try {
if (i_rValue.isEmpty()) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
if (xNode.is()) { // delete
m_xParent->removeChild(xNode);
xNode.clear();
m_meta[name] = xNode;
return true;
} else {
return false;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
} else {
if (xNode.is()) { // update
for (css::uno::Reference<css::xml::dom::XNode> c =
xNode->getFirstChild();
c.is();
c = c->getNextSibling()) {
if (c->getNodeType() == css::xml::dom::NodeType_TEXT_NODE) {
if (!c->getNodeValue().equals(i_rValue)) {
c->setNodeValue(i_rValue);
return true;
} else {
return false;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
}
}
} else { // insert
xNode.set(m_xDoc->createElementNS(getNameSpace(i_name), name),
css::uno::UNO_QUERY_THROW);
m_xParent->appendChild(xNode);
m_meta[name] = xNode;
}
css::uno::Reference<css::xml::dom::XNode> xTextNode(
m_xDoc->createTextNode(i_rValue), css::uno::UNO_QUERY_THROW);
xNode->appendChild(xTextNode);
return true;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
2011-08-15 10:03:25 +01:00
} catch (const css::xml::dom::DOMException & e) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Any a(e);
throw css::lang::WrappedTargetRuntimeException(
OUString("SfxDocumentMetaData::setMetaText: DOM exception"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::uno::XInterface>(*this), a);
}
}
void SAL_CALL
SfxDocumentMetaData::setMetaTextAndNotify(const char* i_name,
const OUString & i_rValue)
// throw (css::uno::RuntimeException)
{
::osl::ClearableMutexGuard g(m_aMutex);
if (setMetaText(i_name, i_rValue)) {
g.clear();
setModified(true);
}
}
OUString SAL_CALL
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
SfxDocumentMetaData::getMetaAttr(const char* i_name, const char* i_attr) const
// throw (css::uno::RuntimeException)
{
OUString name = OUString::createFromAscii(i_name);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
DBG_ASSERT(m_meta.find(name) != m_meta.end(),
"SfxDocumentMetaData::getMetaAttr: not found");
css::uno::Reference<css::xml::dom::XNode> xNode = m_meta.find(name)->second;
if (xNode.is()) {
css::uno::Reference<css::xml::dom::XElement> xElem(xNode,
css::uno::UNO_QUERY_THROW);
return xElem->getAttributeNS(getNameSpace(i_attr),
getQualifier(i_attr).second);
} else {
return OUString();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
}
css::uno::Sequence< OUString> SAL_CALL
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
SfxDocumentMetaData::getMetaList(const char* i_name) const
// throw (css::uno::RuntimeException)
{
checkInit();
OUString name = OUString::createFromAscii(i_name);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
DBG_ASSERT(m_metaList.find(name) != m_metaList.end(),
"SfxDocumentMetaData::getMetaList: not found");
std::vector<css::uno::Reference<css::xml::dom::XNode> > const & vec =
m_metaList.find(name)->second;
css::uno::Sequence< OUString> ret(vec.size());
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
for (size_t i = 0; i < vec.size(); ++i) {
ret[i] = getNodeText(vec.at(i));
}
return ret;
}
bool SAL_CALL
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
SfxDocumentMetaData::setMetaList(const char* i_name,
const css::uno::Sequence< OUString> & i_rValue,
AttrVector const* i_pAttrs)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// throw (css::uno::RuntimeException)
{
checkInit();
DBG_ASSERT((i_pAttrs == 0) ||
(static_cast<size_t>(i_rValue.getLength()) == i_pAttrs->size()),
"SfxDocumentMetaData::setMetaList: invalid args");
try {
OUString name = OUString::createFromAscii(i_name);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
DBG_ASSERT(m_metaList.find(name) != m_metaList.end(),
"SfxDocumentMetaData::setMetaList: not found");
std::vector<css::uno::Reference<css::xml::dom::XNode> > & vec =
m_metaList[name];
// if nothing changed, do nothing
// alas, this does not check for permutations, or attributes...
if ((0 == i_pAttrs)) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
if (static_cast<size_t>(i_rValue.getLength()) == vec.size()) {
bool isEqual(true);
for (sal_Int32 i = 0; i < i_rValue.getLength(); ++i) {
css::uno::Reference<css::xml::dom::XNode> xNode(vec.at(i));
if (xNode.is()) {
OUString val = getNodeText(xNode);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
if (!val.equals(i_rValue[i])) {
isEqual = false;
break;
}
}
}
if (isEqual) return false;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
}
// remove old meta data nodes
{
std::vector<css::uno::Reference<css::xml::dom::XNode> >
::reverse_iterator it(vec.rbegin());
try {
for ( ;it != vec.rend(); ++it)
{
m_xParent->removeChild(*it);
}
}
catch (...)
{
// Clean up already removed nodes
vec.erase(it.base(), vec.end());
throw;
}
vec.clear();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
// insert new meta data nodes into DOM tree
for (sal_Int32 i = 0; i < i_rValue.getLength(); ++i) {
css::uno::Reference<css::xml::dom::XElement> xElem(
m_xDoc->createElementNS(getNameSpace(i_name), name),
css::uno::UNO_QUERY_THROW);
css::uno::Reference<css::xml::dom::XNode> xNode(xElem,
css::uno::UNO_QUERY_THROW);
css::uno::Reference<css::xml::dom::XNode> xTextNode(
m_xDoc->createTextNode(i_rValue[i]), css::uno::UNO_QUERY_THROW);
// set attributes
if (i_pAttrs != 0) {
for (std::vector<std::pair<const char*, OUString> >
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
::const_iterator it = (*i_pAttrs)[i].begin();
it != (*i_pAttrs)[i].end(); ++it) {
xElem->setAttributeNS(getNameSpace(it->first),
OUString::createFromAscii(it->first),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
it->second);
}
}
xNode->appendChild(xTextNode);
m_xParent->appendChild(xNode);
vec.push_back(xNode);
}
return true;
2011-08-15 10:03:25 +01:00
} catch (const css::xml::dom::DOMException & e) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Any a(e);
throw css::lang::WrappedTargetRuntimeException(
OUString("SfxDocumentMetaData::setMetaList: DOM exception"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::uno::XInterface>(*this), a);
}
}
// convert property list to string list and attribute list
std::pair<css::uno::Sequence< OUString>, AttrVector> SAL_CALL
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
propsToStrings(css::uno::Reference<css::beans::XPropertySet> const & i_xPropSet)
{
::std::vector< OUString > values;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
AttrVector attrs;
css::uno::Reference<css::beans::XPropertySetInfo> xSetInfo
= i_xPropSet->getPropertySetInfo();
css::uno::Sequence<css::beans::Property> props = xSetInfo->getProperties();
for (sal_Int32 i = 0; i < props.getLength(); ++i) {
if (props[i].Attributes & css::beans::PropertyAttribute::TRANSIENT) {
continue;
}
const OUString name = props[i].Name;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Any any;
try {
any = i_xPropSet->getPropertyValue(name);
2011-08-15 10:03:25 +01:00
} catch (const css::uno::Exception &) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ignore
}
const css::uno::Type & type = any.getValueType();
std::vector<std::pair<const char*, OUString> > as;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
as.push_back(std::make_pair(static_cast<const char*>("meta:name"),
name));
const char* vt = "meta:value-type";
// convert according to type
if (type == ::cppu::UnoType<bool>::get()) {
bool b = false;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
any >>= b;
OUStringBuffer buf;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
::sax::Converter::convertBool(buf, b);
values.push_back(buf.makeStringAndClear());
as.push_back(std::make_pair(vt,
OUString("boolean")));
} else if (type == ::cppu::UnoType< OUString>::get()) {
OUString s;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
any >>= s;
values.push_back(s);
// #i90847# OOo 2.x does stupid things if value-type="string";
// fortunately string is default anyway, so we can just omit it
// #i107502#: however, OOo 2.x only reads 4 user-defined without @value-type
// => best backward compatibility: first 4 without @value-type, rest with
if (4 <= i)
{
as.push_back(std::make_pair(vt,
OUString("string")));
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else if (type == ::cppu::UnoType<css::util::DateTime>::get()) {
css::util::DateTime dt;
any >>= dt;
values.push_back(dateTimeToText(dt));
as.push_back(std::make_pair(vt,
OUString("date")));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else if (type == ::cppu::UnoType<css::util::Date>::get()) {
css::util::Date d;
any >>= d;
values.push_back(dateToText(d));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
as.push_back(std::make_pair(vt,
OUString("date")));
} else if (type == ::cppu::UnoType<css::util::DateTimeWithTimezone>::get()) {
css::util::DateTimeWithTimezone dttz;
any >>= dttz;
values.push_back(dateTimeToText(dttz.DateTimeInTZ, &dttz.Timezone));
as.push_back(std::make_pair(vt,
OUString("date")));
} else if (type == ::cppu::UnoType<css::util::DateWithTimezone>::get()) {
css::util::DateWithTimezone dtz;
any >>= dtz;
values.push_back(dateToText(dtz.DateInTZ, &dtz.Timezone));
as.push_back(std::make_pair(vt,
OUString("date")));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else if (type == ::cppu::UnoType<css::util::Time>::get()) {
// #i97029#: replaced by Duration
// Time is supported for backward compatibility with OOo 3.x, x<=2
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::util::Time ut;
any >>= ut;
css::util::Duration ud;
ud.Hours = ut.Hours;
ud.Minutes = ut.Minutes;
ud.Seconds = ut.Seconds;
ud.NanoSeconds = ut.NanoSeconds;
values.push_back(durationToText(ud));
as.push_back(std::make_pair(vt,
OUString("time")));
} else if (type == ::cppu::UnoType<css::util::Duration>::get()) {
css::util::Duration ud;
any >>= ud;
values.push_back(durationToText(ud));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
as.push_back(std::make_pair(vt,
OUString("time")));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else if (::cppu::UnoType<double>::get().isAssignableFrom(type)) {
// support not just double, but anything that can be converted
double d = 0;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
any >>= d;
OUStringBuffer buf;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
::sax::Converter::convertDouble(buf, d);
values.push_back(buf.makeStringAndClear());
as.push_back(std::make_pair(vt,
OUString("float")));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else {
SAL_WARN("sfx.doc", "Unsupported property type: " << any.getValueTypeName() );
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
continue;
}
attrs.push_back(as);
}
return std::make_pair(comphelper::containerToSequence(values), attrs);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
// remove the given element from the DOM, and iff i_pAttrs != 0 insert new one
void SAL_CALL
SfxDocumentMetaData::updateElement(const char *i_name,
std::vector<std::pair<const char *, OUString> >* i_pAttrs)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
OUString name = OUString::createFromAscii(i_name);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
try {
// remove old element
css::uno::Reference<css::xml::dom::XNode> xNode =
m_meta.find(name)->second;
if (xNode.is()) {
m_xParent->removeChild(xNode);
xNode.clear();
}
// add new element
if (0 != i_pAttrs) {
css::uno::Reference<css::xml::dom::XElement> xElem(
m_xDoc->createElementNS(getNameSpace(i_name), name),
css::uno::UNO_QUERY_THROW);
xNode.set(xElem, css::uno::UNO_QUERY_THROW);
// set attributes
for (std::vector<std::pair<const char *, OUString> >
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
::const_iterator it = i_pAttrs->begin();
it != i_pAttrs->end(); ++it) {
xElem->setAttributeNS(getNameSpace(it->first),
OUString::createFromAscii(it->first), it->second);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
m_xParent->appendChild(xNode);
}
m_meta[name] = xNode;
2011-08-15 10:03:25 +01:00
} catch (const css::xml::dom::DOMException & e) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Any a(e);
throw css::lang::WrappedTargetRuntimeException(
OUString("SfxDocumentMetaData::updateElement: DOM exception"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::uno::XInterface>(*this), a);
}
}
// update user-defined meta data in DOM tree
void SAL_CALL SfxDocumentMetaData::updateUserDefinedAndAttributes()
{
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
createUserDefined();
const css::uno::Reference<css::beans::XPropertySet> xPSet(m_xUserDefined,
css::uno::UNO_QUERY_THROW);
const std::pair<css::uno::Sequence< OUString>, AttrVector>
udStringsAttrs( propsToStrings(xPSet) );
(void) setMetaList("meta:user-defined", udStringsAttrs.first,
&udStringsAttrs.second);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// update elements with attributes
std::vector<std::pair<const char *, OUString> > attributes;
if (!m_TemplateName.isEmpty() || !m_TemplateURL.isEmpty()
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
|| isValidDateTime(m_TemplateDate)) {
attributes.push_back(std::make_pair(
static_cast<const char*>("xlink:type"),
OUString("simple")));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
attributes.push_back(std::make_pair(
static_cast<const char*>("xlink:actuate"),
OUString("onRequest")));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
attributes.push_back(std::make_pair(
static_cast<const char*>("xlink:title"), m_TemplateName));
attributes.push_back(std::make_pair(
static_cast<const char*>("xlink:href" ), m_TemplateURL ));
if (isValidDateTime(m_TemplateDate)) {
attributes.push_back(std::make_pair(
static_cast<const char*>("meta:date" ),
dateTimeToText(m_TemplateDate)));
}
updateElement("meta:template", &attributes);
} else {
updateElement("meta:template");
}
attributes.clear();
if (!m_AutoloadURL.isEmpty() || (0 != m_AutoloadSecs)) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
attributes.push_back(std::make_pair(
static_cast<const char*>("xlink:href" ), m_AutoloadURL ));
attributes.push_back(std::make_pair(
static_cast<const char*>("meta:delay" ),
durationToText(m_AutoloadSecs)));
updateElement("meta:auto-reload", &attributes);
} else {
updateElement("meta:auto-reload");
}
attributes.clear();
if (!m_DefaultTarget.isEmpty()) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
attributes.push_back(std::make_pair(
static_cast<const char*>("office:target-frame-name"),
m_DefaultTarget));
// xlink:show: _blank -> new, any other value -> replace
const sal_Char* show = m_DefaultTarget == "_blank" ? "new" : "replace";
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
attributes.push_back(std::make_pair(
static_cast<const char*>("xlink:show"),
OUString::createFromAscii(show)));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
updateElement("meta:hyperlink-behaviour", &attributes);
} else {
updateElement("meta:hyperlink-behaviour");
}
attributes.clear();
}
// create empty DOM tree (XDocument)
css::uno::Reference<css::xml::dom::XDocument> SAL_CALL
SfxDocumentMetaData::createDOM() const // throw (css::uno::RuntimeException)
{
css::uno::Reference<css::lang::XMultiComponentFactory> xMsf ( m_xContext->getServiceManager());
css::uno::Reference<css::xml::dom::XDocumentBuilder> xBuilder( css::xml::dom::DocumentBuilder::create(m_xContext) );
css::uno::Reference<css::xml::dom::XDocument> xDoc = xBuilder->newDocument();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
if (!xDoc.is()) throw css::uno::RuntimeException(
OUString("SfxDocumentMetaData::createDOM: "
"cannot create new document"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
*const_cast<SfxDocumentMetaData*>(this));
return xDoc;
}
void SAL_CALL
SfxDocumentMetaData::checkInit() const // throw (css::uno::RuntimeException)
{
if (!m_isInitialized) {
throw css::uno::RuntimeException(OUString(
"SfxDocumentMetaData::checkInit: not initialized"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
*const_cast<SfxDocumentMetaData*>(this));
}
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
DBG_ASSERT((m_xDoc.is() && m_xParent.is() ),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
"SfxDocumentMetaData::checkInit: reference is null");
}
// initialize state from DOM tree
void SAL_CALL SfxDocumentMetaData::init(
css::uno::Reference<css::xml::dom::XDocument> i_xDoc)
{
if (!i_xDoc.is()) throw css::uno::RuntimeException(
OUString("SfxDocumentMetaData::init: no DOM tree given"), *this);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::xml::xpath::XXPathAPI> xPath = css::xml::xpath::XPathAPI::create(m_xContext);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
m_isInitialized = false;
m_xDoc = i_xDoc;
// select nodes for standard meta data stuff
xPath->registerNS(OUString("xlink"),
OUString::createFromAscii(s_nsXLink));
xPath->registerNS(OUString("dc"),
OUString::createFromAscii(s_nsDC));
xPath->registerNS(OUString("office"),
OUString::createFromAscii(s_nsODF));
xPath->registerNS(OUString("meta"),
OUString::createFromAscii(s_nsODFMeta));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// NB: we do not handle the single-XML-file ODF variant, which would
// have the root element office:document.
// The root of such documents must be converted in the importer!
OUString prefix(
"/child::office:document-meta/child::office:meta");
css::uno::Reference<css::xml::dom::XNode> xDocNode(
m_xDoc, css::uno::UNO_QUERY_THROW);
m_xParent.clear();
try {
2008-03-05 16:10:42 +00:00
m_xParent = xPath->selectSingleNode(xDocNode, prefix);
2011-08-15 10:03:25 +01:00
} catch (const com::sun::star::uno::Exception &) {
2008-03-05 16:10:42 +00:00
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
if (!m_xParent.is()) {
// all this create/append stuff may throw DOMException
try {
css::uno::Reference<css::xml::dom::XElement> xRElem;
css::uno::Reference<css::xml::dom::XNode> xNode(
i_xDoc->getFirstChild());
while (xNode.is()) {
if (css::xml::dom::NodeType_ELEMENT_NODE ==xNode->getNodeType())
{
if ( xNode->getNamespaceURI().equalsAscii(s_nsODF) && xNode->getLocalName() == "document-meta" )
{
xRElem.set(xNode, css::uno::UNO_QUERY_THROW);
break;
}
else
{
OSL_TRACE("SfxDocumentMetaData::init(): "
"deleting unexpected root element: %s",
OUStringToOString(xNode->getLocalName(),
RTL_TEXTENCODING_UTF8).getStr());
i_xDoc->removeChild(xNode);
xNode = i_xDoc->getFirstChild(); // start over
}
} else {
xNode = xNode->getNextSibling();
}
}
if (!xRElem.is()) {
xRElem = i_xDoc->createElementNS(
OUString::createFromAscii(s_nsODF),
OUString("office:document-meta"));
css::uno::Reference<css::xml::dom::XNode> xRNode(xRElem,
css::uno::UNO_QUERY_THROW);
i_xDoc->appendChild(xRNode);
}
xRElem->setAttributeNS(OUString::createFromAscii(s_nsODF),
OUString("office:version"),
OUString("1.0"));
// does not exist, otherwise m_xParent would not be null
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::xml::dom::XNode> xParent (
i_xDoc->createElementNS(
OUString::createFromAscii(s_nsODF),
OUString("office:meta")),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::UNO_QUERY_THROW);
xRElem->appendChild(xParent);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
m_xParent = xParent;
2011-08-15 10:03:25 +01:00
} catch (const css::xml::dom::DOMException & e) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Any a(e);
throw css::lang::WrappedTargetRuntimeException(
OUString("SfxDocumentMetaData::init: DOM exception"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::uno::XInterface>(*this), a);
}
}
// select nodes for elements of which we only handle one occurrence
for (const char **pName = s_stdMeta; *pName != 0; ++pName) {
OUString name = OUString::createFromAscii(*pName);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// NB: If a document contains more than one occurrence of a
// meta-data element, we arbitrarily pick one of them here.
// We do not remove the others, i.e., when we write the
// document, it will contain the duplicates unchanged.
// The ODF spec says that handling multiple occurrences is
// application-specific.
css::uno::Reference<css::xml::dom::XNode> xNode =
xPath->selectSingleNode(m_xParent, "child::" + name);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// Do not create an empty element if it is missing;
// for certain elements, such as dateTime, this would be invalid
m_meta[name] = xNode;
}
// select nodes for elements of which we handle all occurrences
for (const char **pName = s_stdMetaList; *pName != 0; ++pName) {
OUString name = OUString::createFromAscii(*pName);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::xml::dom::XNodeList> nodes =
xPath->selectNodeList(m_xParent, "child::" + name);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
std::vector<css::uno::Reference<css::xml::dom::XNode> > v;
for (sal_Int32 i = 0; i < nodes->getLength(); ++i) {
v.push_back(nodes->item(i));
}
m_metaList[name] = v;
}
// initialize members corresponding to attributes from DOM nodes
m_TemplateName = getMetaAttr("meta:template", "xlink:title");
m_TemplateURL = getMetaAttr("meta:template", "xlink:href");
m_TemplateDate =
textToDateTimeDefault(getMetaAttr("meta:template", "meta:date"));
m_AutoloadURL = getMetaAttr("meta:auto-reload", "xlink:href");
m_AutoloadSecs =
textToDuration(getMetaAttr("meta:auto-reload", "meta:delay"));
m_DefaultTarget =
getMetaAttr("meta:hyperlink-behaviour", "office:target-frame-name");
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
std::vector<css::uno::Reference<css::xml::dom::XNode> > & vec =
m_metaList[OUString("meta:user-defined")];
m_xUserDefined.clear(); // #i105826#: reset (may be re-initialization)
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
if ( !vec.empty() )
{
createUserDefined();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
// user-defined meta data: initialize PropertySet from DOM nodes
for (std::vector<css::uno::Reference<css::xml::dom::XNode> >::iterator
it = vec.begin(); it != vec.end(); ++it) {
css::uno::Reference<css::xml::dom::XElement> xElem(*it,
css::uno::UNO_QUERY_THROW);
css::uno::Any any;
OUString name = xElem->getAttributeNS(
OUString::createFromAscii(s_nsODFMeta),
OUString("name"));
OUString type = xElem->getAttributeNS(
OUString::createFromAscii(s_nsODFMeta),
OUString("value-type"));
OUString text = getNodeText(*it);
if ( type == "float" ) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
double d;
if (::sax::Converter::convertDouble(d, text)) {
any <<= d;
} else {
SAL_WARN("sfx.doc", "Invalid float: " << text);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
continue;
}
} else if ( type == "date" ) {
bool isDateTime;
css::util::Date d;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::util::DateTime dt;
boost::optional<sal_Int16> nTimeZone;
if (textToDateOrDateTime(d, dt, isDateTime, nTimeZone, text)) {
if (isDateTime) {
if (nTimeZone.is_initialized()) {
any <<= css::util::DateTimeWithTimezone(dt,
nTimeZone.get());
} else {
any <<= dt;
}
} else {
if (nTimeZone.is_initialized()) {
any <<= css::util::DateWithTimezone(d, nTimeZone.get());
} else {
any <<= d;
}
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else {
SAL_WARN("sfx.doc", "Invalid date: " << text);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
continue;
}
} else if ( type == "time" ) {
css::util::Duration ud;
if (textToDuration(ud, text)) {
any <<= ud;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else {
SAL_WARN("sfx.doc", "Invalid time: " << text);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
continue;
}
} else if ( type == "boolean" ) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
bool b;
if (::sax::Converter::convertBool(b, text)) {
any <<= b;
} else {
SAL_WARN("sfx.doc", "Invalid boolean: " << text);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
continue;
}
} else if ( type == "string" || true) { // default
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
any <<= text;
}
try {
m_xUserDefined->addProperty(name,
css::beans::PropertyAttribute::REMOVABLE, any);
2011-08-15 10:03:25 +01:00
} catch (const css::beans::PropertyExistException &) {
SAL_WARN("sfx.doc", "Duplicate: " << name);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ignore; duplicate
2011-08-15 10:03:25 +01:00
} catch (const css::beans::IllegalTypeException &) {
2011-03-04 21:31:42 +01:00
OSL_TRACE("SfxDocumentMetaData: illegal type: %s",
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
OUStringToOString(name, RTL_TEXTENCODING_UTF8).getStr());
2011-08-15 10:03:25 +01:00
} catch (const css::lang::IllegalArgumentException &) {
2011-03-04 21:31:42 +01:00
OSL_TRACE("SfxDocumentMetaData: illegal arg: %s",
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
OUStringToOString(name, RTL_TEXTENCODING_UTF8).getStr());
}
}
m_isModified = false;
m_isInitialized = true;
}
SfxDocumentMetaData::SfxDocumentMetaData(
css::uno::Reference< css::uno::XComponentContext > const & context)
: BaseMutex()
, SfxDocumentMetaData_Base(m_aMutex)
, m_xContext(context)
, m_NotifyListeners(m_aMutex)
, m_isInitialized(false)
, m_isModified(false)
, m_AutoloadSecs(0)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
DBG_ASSERT(context.is(), "SfxDocumentMetaData: context is null");
DBG_ASSERT(context->getServiceManager().is(),
"SfxDocumentMetaData: context has no service manager");
init(createDOM());
}
// com.sun.star.uno.XServiceInfo:
OUString SAL_CALL
SfxDocumentMetaData::getImplementationName() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
return OUString("SfxDocumentMetaData");
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
sal_Bool SAL_CALL
SfxDocumentMetaData::supportsService(OUString const & serviceName)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
return cppu::supportsService(this, serviceName);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
css::uno::Sequence< OUString > SAL_CALL
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
SfxDocumentMetaData::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
css::uno::Sequence< OUString > s(1);
s[0] = "com.sun.star.document.DocumentProperties";
return s;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
// ::com::sun::star::lang::XComponent:
void SAL_CALL SfxDocumentMetaData::dispose() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
if (!m_isInitialized) {
return;
}
WeakComponentImplHelperBase::dispose(); // superclass
m_NotifyListeners.disposeAndClear(css::lang::EventObject(
static_cast< ::cppu::OWeakObject* >(this)));
m_isInitialized = false;
m_meta.clear();
m_metaList.clear();
m_xParent.clear();
m_xDoc.clear();
m_xUserDefined.clear();
}
// ::com::sun::star::document::XDocumentProperties:
OUString SAL_CALL
SfxDocumentMetaData::getAuthor() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("meta:initial-creator");
}
void SAL_CALL SfxDocumentMetaData::setAuthor(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("meta:initial-creator", the_value);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
OUString SAL_CALL
SfxDocumentMetaData::getGenerator() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("meta:generator");
}
void SAL_CALL
SfxDocumentMetaData::setGenerator(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("meta:generator", the_value);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
css::util::DateTime SAL_CALL
SfxDocumentMetaData::getCreationDate() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return textToDateTimeDefault(getMetaText("meta:creation-date"));
}
void SAL_CALL
SfxDocumentMetaData::setCreationDate(const css::util::DateTime & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("meta:creation-date", dateTimeToText(the_value));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
OUString SAL_CALL
SfxDocumentMetaData::getTitle() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("dc:title");
}
void SAL_CALL SfxDocumentMetaData::setTitle(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("dc:title", the_value);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
OUString SAL_CALL
SfxDocumentMetaData::getSubject() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("dc:subject");
}
void SAL_CALL
SfxDocumentMetaData::setSubject(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("dc:subject", the_value);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
OUString SAL_CALL
SfxDocumentMetaData::getDescription() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("dc:description");
}
void SAL_CALL
SfxDocumentMetaData::setDescription(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("dc:description", the_value);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
css::uno::Sequence< OUString >
SAL_CALL SfxDocumentMetaData::getKeywords() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return getMetaList("meta:keyword");
}
void SAL_CALL
SfxDocumentMetaData::setKeywords(
const css::uno::Sequence< OUString > & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::ClearableMutexGuard g(m_aMutex);
if (setMetaList("meta:keyword", the_value)) {
g.clear();
setModified(true);
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
css::lang::Locale SAL_CALL
SfxDocumentMetaData::getLanguage() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
css::lang::Locale loc( LanguageTag( getMetaText("dc:language")).getLocale( false));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
return loc;
}
void SAL_CALL
SfxDocumentMetaData::setLanguage(const css::lang::Locale & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
OUString text( LanguageTag::convertToBcp47( the_value, false));
setMetaTextAndNotify("dc:language", text);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
OUString SAL_CALL
SfxDocumentMetaData::getModifiedBy() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("dc:creator");
}
void SAL_CALL
SfxDocumentMetaData::setModifiedBy(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("dc:creator", the_value);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
css::util::DateTime SAL_CALL
SfxDocumentMetaData::getModificationDate() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return textToDateTimeDefault(getMetaText("dc:date"));
}
void SAL_CALL
SfxDocumentMetaData::setModificationDate(const css::util::DateTime & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("dc:date", dateTimeToText(the_value));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
OUString SAL_CALL
SfxDocumentMetaData::getPrintedBy() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("meta:printed-by");
}
void SAL_CALL
SfxDocumentMetaData::setPrintedBy(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("meta:printed-by", the_value);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
css::util::DateTime SAL_CALL
SfxDocumentMetaData::getPrintDate() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return textToDateTimeDefault(getMetaText("meta:print-date"));
}
void SAL_CALL
SfxDocumentMetaData::setPrintDate(const css::util::DateTime & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
setMetaTextAndNotify("meta:print-date", dateTimeToText(the_value));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
OUString SAL_CALL
SfxDocumentMetaData::getTemplateName() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
return m_TemplateName;
}
void SAL_CALL
SfxDocumentMetaData::setTemplateName(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::ClearableMutexGuard g(m_aMutex);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
checkInit();
if (m_TemplateName != the_value) {
m_TemplateName = the_value;
g.clear();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
setModified(true);
}
}
OUString SAL_CALL
SfxDocumentMetaData::getTemplateURL() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
return m_TemplateURL;
}
void SAL_CALL
SfxDocumentMetaData::setTemplateURL(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::ClearableMutexGuard g(m_aMutex);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
checkInit();
if (m_TemplateURL != the_value) {
m_TemplateURL = the_value;
g.clear();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
setModified(true);
}
}
css::util::DateTime SAL_CALL
SfxDocumentMetaData::getTemplateDate() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
return m_TemplateDate;
}
void SAL_CALL
SfxDocumentMetaData::setTemplateDate(const css::util::DateTime & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::ClearableMutexGuard g(m_aMutex);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
checkInit();
if (!(m_TemplateDate == the_value)) {
m_TemplateDate = the_value;
g.clear();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
setModified(true);
}
}
OUString SAL_CALL
SfxDocumentMetaData::getAutoloadURL() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
return m_AutoloadURL;
}
void SAL_CALL
SfxDocumentMetaData::setAutoloadURL(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::ClearableMutexGuard g(m_aMutex);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
checkInit();
if (m_AutoloadURL != the_value) {
m_AutoloadURL = the_value;
g.clear();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
setModified(true);
}
}
::sal_Int32 SAL_CALL
SfxDocumentMetaData::getAutoloadSecs() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
return m_AutoloadSecs;
}
void SAL_CALL
SfxDocumentMetaData::setAutoloadSecs(::sal_Int32 the_value)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
if (the_value < 0) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::setAutoloadSecs: argument is negative"),
*this, 0);
::osl::ClearableMutexGuard g(m_aMutex);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
checkInit();
if (m_AutoloadSecs != the_value) {
m_AutoloadSecs = the_value;
g.clear();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
setModified(true);
}
}
OUString SAL_CALL
SfxDocumentMetaData::getDefaultTarget() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
return m_DefaultTarget;
}
void SAL_CALL
SfxDocumentMetaData::setDefaultTarget(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::ClearableMutexGuard g(m_aMutex);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
checkInit();
if (m_DefaultTarget != the_value) {
m_DefaultTarget = the_value;
g.clear();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
setModified(true);
}
}
css::uno::Sequence< css::beans::NamedValue > SAL_CALL
SfxDocumentMetaData::getDocumentStatistics() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
::std::vector<css::beans::NamedValue> stats;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
for (size_t i = 0; s_stdStats[i] != 0; ++i) {
const char * aName = s_stdStatAttrs[i];
OUString text = getMetaAttr("meta:document-statistic", aName);
if (text.isEmpty()) continue;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::beans::NamedValue stat;
stat.Name = OUString::createFromAscii(s_stdStats[i]);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
sal_Int32 val;
css::uno::Any any;
if (!::sax::Converter::convertNumber(val, text, 0,
std::numeric_limits<sal_Int32>::max()) || (val < 0)) {
val = 0;
SAL_WARN("sfx.doc", "Invalid number: " << text);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
any <<= val;
stat.Value = any;
stats.push_back(stat);
}
return ::comphelper::containerToSequence(stats);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
void SAL_CALL
SfxDocumentMetaData::setDocumentStatistics(
const css::uno::Sequence< css::beans::NamedValue > & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::ClearableMutexGuard g(m_aMutex);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
checkInit();
std::vector<std::pair<const char *, OUString> > attributes;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
for (sal_Int32 i = 0; i < the_value.getLength(); ++i) {
const OUString name = the_value[i].Name;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// inefficently search for matching attribute
for (size_t j = 0; s_stdStats[j] != 0; ++j) {
if (name.equalsAscii(s_stdStats[j])) {
const css::uno::Any any = the_value[i].Value;
sal_Int32 val = 0;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
if (any >>= val) {
OUStringBuffer buf;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
::sax::Converter::convertNumber(buf, val);
attributes.push_back(std::make_pair(s_stdStatAttrs[j],
buf.makeStringAndClear()));
} else {
SAL_WARN("sfx.doc", "Invalid statistic: " << name);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
break;
}
}
}
updateElement("meta:document-statistic", &attributes);
g.clear();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
setModified(true);
}
::sal_Int16 SAL_CALL
SfxDocumentMetaData::getEditingCycles() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
OUString text = getMetaText("meta:editing-cycles");
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
sal_Int32 ret;
if (::sax::Converter::convertNumber(ret, text,
0, std::numeric_limits<sal_Int16>::max())) {
return static_cast<sal_Int16>(ret);
} else {
return 0;
}
}
void SAL_CALL
SfxDocumentMetaData::setEditingCycles(::sal_Int16 the_value)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
if (the_value < 0) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::setEditingCycles: argument is negative"),
*this, 0);
OUStringBuffer buf;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
::sax::Converter::convertNumber(buf, the_value);
setMetaTextAndNotify("meta:editing-cycles", buf.makeStringAndClear());
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
::sal_Int32 SAL_CALL
SfxDocumentMetaData::getEditingDuration() throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
return textToDuration(getMetaText("meta:editing-duration"));
}
void SAL_CALL
SfxDocumentMetaData::setEditingDuration(::sal_Int32 the_value)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
if (the_value < 0) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::setEditingDuration: argument is negative"),
*this, 0);
setMetaTextAndNotify("meta:editing-duration", durationToText(the_value));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
void SAL_CALL
SfxDocumentMetaData::resetUserData(const OUString & the_value)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::ClearableMutexGuard g(m_aMutex);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
bool bModified( false );
bModified |= setMetaText("meta:initial-creator", the_value);
::DateTime now( ::DateTime::SYSTEM );
css::util::DateTime uDT(now.GetUNODateTime());
bModified |= setMetaText("meta:creation-date", dateTimeToText(uDT));
bModified |= setMetaText("dc:creator", OUString());
bModified |= setMetaText("meta:printed-by", OUString());
bModified |= setMetaText("dc:date", dateTimeToText(css::util::DateTime()));
bModified |= setMetaText("meta:print-date",
dateTimeToText(css::util::DateTime()));
bModified |= setMetaText("meta:editing-duration", durationToText(0));
bModified |= setMetaText("meta:editing-cycles",
OUString("1"));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
if (bModified) {
g.clear();
setModified(true);
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
css::uno::Reference< css::beans::XPropertyContainer > SAL_CALL
SfxDocumentMetaData::getUserDefinedProperties()
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
createUserDefined();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
return m_xUserDefined;
}
void SAL_CALL
SfxDocumentMetaData::loadFromStorage(
const css::uno::Reference< css::embed::XStorage > & xStorage,
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException,
css::io::WrongFormatException,
css::lang::WrappedTargetException, css::io::IOException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
if (!xStorage.is()) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::loadFromStorage: argument is null"), *this, 0);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
::osl::MutexGuard g(m_aMutex);
// open meta data file
css::uno::Reference<css::io::XStream> xStream(
xStorage->openStreamElement(
OUString(s_meta),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::embed::ElementModes::READ) );
if (!xStream.is()) throw css::uno::RuntimeException();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::io::XInputStream> xInStream =
xStream->getInputStream();
if (!xInStream.is()) throw css::uno::RuntimeException();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// create DOM parser service
css::uno::Reference<css::lang::XMultiComponentFactory> xMsf (
m_xContext->getServiceManager());
css::uno::Reference<css::xml::sax::XParser> xParser = css::xml::sax::Parser::create(m_xContext);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::xml::sax::InputSource input;
input.aInputStream = xInStream;
sal_uInt64 version = SotStorage::GetVersion( xStorage );
// Oasis is also the default (0)
bool bOasis = ( version > SOFFICE_FILEFORMAT_60 || version == 0 );
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
const sal_Char *pServiceName = bOasis
? "com.sun.star.document.XMLOasisMetaImporter"
: "com.sun.star.document.XMLMetaImporter";
// set base URL
css::uno::Reference<css::beans::XPropertySet> xPropArg =
getURLProperties(Medium);
try {
xPropArg->getPropertyValue("BaseURI")
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
>>= input.sSystemId;
input.sSystemId += OUStringLiteral("/") + s_meta;
2011-08-15 10:03:25 +01:00
} catch (const css::uno::Exception &) {
input.sSystemId = s_meta;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
css::uno::Sequence< css::uno::Any > args(1);
args[0] <<= xPropArg;
css::uno::Reference<css::xml::sax::XDocumentHandler> xDocHandler (
xMsf->createInstanceWithArgumentsAndContext(
OUString::createFromAscii(pServiceName), args, m_xContext),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::UNO_QUERY_THROW);
if (!xDocHandler.is()) throw css::uno::RuntimeException(
OUString("SfxDocumentMetaData::loadFromStorage:"
" cannot create XMLOasisMetaImporter service"), *this);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::document::XImporter> xImp (xDocHandler,
css::uno::UNO_QUERY_THROW);
xImp->setTargetDocument(css::uno::Reference<css::lang::XComponent>(this));
xParser->setDocumentHandler(xDocHandler);
try {
xParser->parseStream(input);
2011-08-15 10:03:25 +01:00
} catch (const css::xml::sax::SAXException &) {
throw css::io::WrongFormatException(OUString(
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
"SfxDocumentMetaData::loadFromStorage:"
" XML parsing exception"), *this);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
// NB: the implementation of XMLOasisMetaImporter calls initialize
checkInit();
}
void SAL_CALL
SfxDocumentMetaData::storeToStorage(
const css::uno::Reference< css::embed::XStorage > & xStorage,
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException,
css::lang::WrappedTargetException, css::io::IOException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
if (!xStorage.is()) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::storeToStorage:"
" argument is null"), *this, 0);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
::osl::MutexGuard g(m_aMutex);
checkInit();
// update user-defined meta data in DOM tree
// updateUserDefinedAndAttributes(); // this will be done in serialize!
// write into storage
css::uno::Reference<css::io::XStream> xStream =
xStorage->openStreamElement(OUString(s_meta),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::embed::ElementModes::WRITE
| css::embed::ElementModes::TRUNCATE);
if (!xStream.is()) throw css::uno::RuntimeException();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference< css::beans::XPropertySet > xStreamProps(xStream,
css::uno::UNO_QUERY_THROW);
xStreamProps->setPropertyValue(
OUString("MediaType"),
css::uno::makeAny(OUString("text/xml")));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
xStreamProps->setPropertyValue(
OUString("Compressed"),
css::uno::makeAny(false));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
xStreamProps->setPropertyValue(
OUString("UseCommonStoragePasswordEncryption"),
css::uno::makeAny(false));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::io::XOutputStream> xOutStream =
xStream->getOutputStream();
if (!xOutStream.is()) throw css::uno::RuntimeException();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::lang::XMultiComponentFactory> xMsf (
m_xContext->getServiceManager());
css::uno::Reference<css::xml::sax::XWriter> xSaxWriter(
css::xml::sax::Writer::create(m_xContext));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
xSaxWriter->setOutputStream(xOutStream);
const sal_uInt64 version = SotStorage::GetVersion( xStorage );
// Oasis is also the default (0)
const bool bOasis = ( version > SOFFICE_FILEFORMAT_60 || version == 0 );
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
const sal_Char *pServiceName = bOasis
? "com.sun.star.document.XMLOasisMetaExporter"
: "com.sun.star.document.XMLMetaExporter";
// set base URL
css::uno::Reference<css::beans::XPropertySet> xPropArg =
getURLProperties(Medium);
css::uno::Sequence< css::uno::Any > args(2);
args[0] <<= xSaxWriter;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
args[1] <<= xPropArg;
css::uno::Reference<css::document::XExporter> xExp(
xMsf->createInstanceWithArgumentsAndContext(
OUString::createFromAscii(pServiceName), args, m_xContext),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::UNO_QUERY_THROW);
xExp->setSourceDocument(css::uno::Reference<css::lang::XComponent>(this));
css::uno::Reference<css::document::XFilter> xFilter(xExp,
css::uno::UNO_QUERY_THROW);
if (xFilter->filter(css::uno::Sequence< css::beans::PropertyValue >())) {
css::uno::Reference<css::embed::XTransactedObject> xTransaction(
xStorage, css::uno::UNO_QUERY);
if (xTransaction.is()) {
xTransaction->commit();
}
} else {
throw css::io::IOException(OUString(
"SfxDocumentMetaData::storeToStorage: cannot filter"), *this);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
}
void SAL_CALL
SfxDocumentMetaData::loadFromMedium(const OUString & URL,
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
throw (css::uno::RuntimeException, css::io::WrongFormatException,
css::lang::WrappedTargetException, css::io::IOException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
css::uno::Reference<css::io::XInputStream> xIn;
utl::MediaDescriptor md(Medium);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// if we have an URL parameter, it replaces the one in the media descriptor
if (!URL.isEmpty()) {
md[ utl::MediaDescriptor::PROP_URL() ] <<= URL;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
if (md.addInputStream()) {
md[ utl::MediaDescriptor::PROP_INPUTSTREAM() ] >>= xIn;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
css::uno::Reference<css::embed::XStorage> xStorage;
try {
if (xIn.is()) {
xStorage = ::comphelper::OStorageHelper::GetStorageFromInputStream(
xIn, m_xContext);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} else { // fallback to url parameter
xStorage = ::comphelper::OStorageHelper::GetStorageFromURL(
URL, css::embed::ElementModes::READ, m_xContext);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
2011-08-15 10:03:25 +01:00
} catch (const css::uno::RuntimeException &) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
throw;
2011-08-15 10:03:25 +01:00
} catch (const css::io::IOException &) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
throw;
2011-08-15 10:03:25 +01:00
} catch (const css::uno::Exception & e) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
throw css::lang::WrappedTargetException(
OUString("SfxDocumentMetaData::loadFromMedium: exception"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::uno::XInterface>(*this),
css::uno::makeAny(e));
}
if (!xStorage.is()) {
throw css::uno::RuntimeException(OUString(
"SfxDocumentMetaData::loadFromMedium: cannot get Storage"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
*this);
}
loadFromStorage(xStorage, md.getAsConstPropertyValueList());
}
void SAL_CALL
SfxDocumentMetaData::storeToMedium(const OUString & URL,
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
throw (css::uno::RuntimeException,
css::lang::WrappedTargetException, css::io::IOException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
utl::MediaDescriptor md(Medium);
if (!URL.isEmpty()) {
md[ utl::MediaDescriptor::PROP_URL() ] <<= URL;
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
SfxMedium aMedium(md.getAsConstPropertyValueList());
css::uno::Reference<css::embed::XStorage> xStorage
= aMedium.GetOutputStorage();
if (!xStorage.is()) {
throw css::uno::RuntimeException(OUString(
"SfxDocumentMetaData::storeToMedium: cannot get Storage"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
*this);
}
// set MIME type of the storage
utl::MediaDescriptor::const_iterator iter
= md.find(utl::MediaDescriptor::PROP_MEDIATYPE());
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
if (iter != md.end()) {
css::uno::Reference< css::beans::XPropertySet > xProps(xStorage,
css::uno::UNO_QUERY_THROW);
xProps->setPropertyValue(
utl::MediaDescriptor::PROP_MEDIATYPE(),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
iter->second);
}
storeToStorage(xStorage, md.getAsConstPropertyValueList());
const bool bOk = aMedium.Commit();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
aMedium.Close();
if ( !bOk ) {
sal_uInt32 nError = aMedium.GetError();
if ( nError == ERRCODE_NONE ) {
nError = ERRCODE_IO_GENERAL;
}
throw css::task::ErrorCodeIOException(
("SfxDocumentMetaData::storeToMedium <" + URL + "> Commit failed: "
"0x" + OUString::number(nError, 16)),
css::uno::Reference< css::uno::XInterface >(), nError);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
}
// ::com::sun::star::lang::XInitialization:
void SAL_CALL
SfxDocumentMetaData::initialize(
const css::uno::Sequence< ::com::sun::star::uno::Any > & aArguments)
throw (css::uno::RuntimeException, css::uno::Exception, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
// possible arguments:
// - no argument: default initialization (empty DOM)
// - 1 argument, XDocument: initialize with given DOM and empty base URL
// NB: links in document must be absolute
::osl::MutexGuard g(m_aMutex);
css::uno::Reference<css::xml::dom::XDocument> xDoc;
for (sal_Int32 i = 0; i < aArguments.getLength(); ++i) {
const css::uno::Any any = aArguments[i];
if (any >>= xDoc) {
if (!xDoc.is()) {
throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::"
"initialize: argument is null"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
*this, static_cast<sal_Int16>(i));
}
} else {
throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::"
"initialize: argument must be XDocument"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
*this, static_cast<sal_Int16>(i));
}
}
if (!xDoc.is()) {
// For a new document, we create a new DOM tree here.
xDoc = createDOM();
}
init(xDoc);
}
// ::com::sun::star::util::XCloneable:
css::uno::Reference<css::util::XCloneable> SAL_CALL
SfxDocumentMetaData::createClone()
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
SfxDocumentMetaData *pNew = createMe(m_xContext);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// NB: do not copy the modification listeners, only DOM
css::uno::Reference<css::xml::dom::XDocument> xDoc = createDOM();
try {
updateUserDefinedAndAttributes();
// deep copy of root node
css::uno::Reference<css::xml::dom::XNode> xRoot(
m_xDoc->getDocumentElement(), css::uno::UNO_QUERY_THROW);
css::uno::Reference<css::xml::dom::XNode> xRootNew(
xDoc->importNode(xRoot, true));
xDoc->appendChild(xRootNew);
pNew->init(xDoc);
2011-08-15 10:03:25 +01:00
} catch (const css::uno::RuntimeException &) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
throw;
2011-08-15 10:03:25 +01:00
} catch (const css::uno::Exception & e) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Any a(e);
throw css::lang::WrappedTargetRuntimeException(
OUString("SfxDocumentMetaData::createClone: exception"),
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::uno::XInterface>(*this), a);
}
return css::uno::Reference<css::util::XCloneable> (pNew);
}
// ::com::sun::star::util::XModifiable:
sal_Bool SAL_CALL SfxDocumentMetaData::isModified( )
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
css::uno::Reference<css::util::XModifiable> xMB(m_xUserDefined,
css::uno::UNO_QUERY);
return m_isModified || (xMB.is() ? xMB->isModified() : false);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
void SAL_CALL SfxDocumentMetaData::setModified( sal_Bool bModified )
throw (css::beans::PropertyVetoException, css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
css::uno::Reference<css::util::XModifiable> xMB;
{ // do not lock mutex while notifying (#i93514#) to prevent deadlock
::osl::MutexGuard g(m_aMutex);
checkInit();
m_isModified = bModified;
if ( !bModified && m_xUserDefined.is() )
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
{
xMB.set(m_xUserDefined, css::uno::UNO_QUERY);
DBG_ASSERT(xMB.is(),
"SfxDocumentMetaData::setModified: PropertyBag not Modifiable?");
}
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
if (bModified) {
try {
css::uno::Reference<css::uno::XInterface> xThis(*this);
css::lang::EventObject event(xThis);
m_NotifyListeners.notifyEach(&css::util::XModifyListener::modified,
event);
2011-08-15 10:03:25 +01:00
} catch (const css::uno::RuntimeException &) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
throw;
2011-08-15 10:03:25 +01:00
} catch (const css::uno::Exception & e) {
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
// ignore
SAL_WARN("sfx.doc", "setModified: exception: " << e.Message);
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
} else {
if (xMB.is()) {
xMB->setModified(false);
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
}
// ::com::sun::star::util::XModifyBroadcaster:
void SAL_CALL SfxDocumentMetaData::addModifyListener(
const css::uno::Reference< css::util::XModifyListener > & xListener)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
m_NotifyListeners.addInterface(xListener);
css::uno::Reference<css::util::XModifyBroadcaster> xMB(m_xUserDefined,
css::uno::UNO_QUERY);
if (xMB.is()) {
xMB->addModifyListener(xListener);
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
void SAL_CALL SfxDocumentMetaData::removeModifyListener(
const css::uno::Reference< css::util::XModifyListener > & xListener)
throw (css::uno::RuntimeException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
m_NotifyListeners.removeInterface(xListener);
css::uno::Reference<css::util::XModifyBroadcaster> xMB(m_xUserDefined,
css::uno::UNO_QUERY);
if (xMB.is()) {
xMB->removeModifyListener(xListener);
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
// ::com::sun::star::xml::sax::XSAXSerializable
void SAL_CALL SfxDocumentMetaData::serialize(
const css::uno::Reference<css::xml::sax::XDocumentHandler>& i_xHandler,
const css::uno::Sequence< css::beans::StringPair >& i_rNamespaces)
throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
::osl::MutexGuard g(m_aMutex);
checkInit();
updateUserDefinedAndAttributes();
css::uno::Reference<css::xml::sax::XSAXSerializable> xSAXable(m_xDoc,
css::uno::UNO_QUERY_THROW);
xSAXable->serialize(i_xHandler, i_rNamespaces);
}
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
void SfxDocumentMetaData::createUserDefined()
{
// user-defined meta data: create PropertyBag which only accepts property
// values of allowed types
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
if ( !m_xUserDefined.is() )
{
css::uno::Sequence<css::uno::Type> types(13);
types[ 0] = ::cppu::UnoType<bool>::get();
types[ 1] = ::cppu::UnoType< OUString>::get();
types[ 2] = ::cppu::UnoType<css::util::DateTime>::get();
types[ 3] = ::cppu::UnoType<css::util::Date>::get();
types[ 4] = ::cppu::UnoType<css::util::DateTimeWithTimezone>::get();
types[ 5] = ::cppu::UnoType<css::util::DateWithTimezone>::get();
types[ 6] = ::cppu::UnoType<css::util::Duration>::get();
types[ 7] = ::cppu::UnoType<float>::get();
types[ 8] = ::cppu::UnoType<double>::get();
types[ 9] = ::cppu::UnoType<sal_Int16>::get();
types[10] = ::cppu::UnoType<sal_Int32>::get();
types[11] = ::cppu::UnoType<sal_Int64>::get();
// Time is supported for backward compatibility with OOo 3.x, x<=2
types[12] = ::cppu::UnoType<css::util::Time>::get();
// #i94175#: ODF allows empty user-defined property names!
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
m_xUserDefined.set(
css::beans::PropertyBag::createWithTypes( m_xContext, types, sal_True/*AllowEmptyPropertyName*/, sal_False/*AutomaticAddition*/ ),
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
css::uno::UNO_QUERY_THROW);
const css::uno::Reference<css::util::XModifyBroadcaster> xMB(
m_xUserDefined, css::uno::UNO_QUERY);
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
if (xMB.is())
{
const css::uno::Sequence<css::uno::Reference<css::uno::XInterface> >
listeners(m_NotifyListeners.getElements());
for (css::uno::Reference< css::uno::XInterface > const * iter = listeners.begin(); iter != listeners.end(); ++iter) {
xMB->addModifyListener(
css::uno::Reference< css::util::XModifyListener >(*iter,
css::uno::UNO_QUERY));
}
CWS-TOOLING: integrate CWS oj18 2009-08-21 15:08:49 +0200 oj r275263 : wrong check 2009-08-21 08:56:01 +0200 oj r275215 : missing not 2009-08-20 07:27:13 +0200 oj r275164 : use new method from global 2009-08-19 10:22:35 +0200 oj r275138 : call GetLocale instead of pLocale 2009-08-18 10:39:32 +0200 oj r275082 : missing header include 2009-08-18 10:09:44 +0200 oj r275081 : new methods at global 2009-08-18 10:09:00 +0200 oj r275080 : unused var 2009-08-18 08:59:04 +0200 oj r275078 : move files from classes to xml 2009-08-17 14:58:16 +0200 oj r275056 : CWS-TOOLING: rebase CWS oj18 to trunk@275001 (milestone: DEV300:m55) 2009-08-17 13:29:44 +0200 oj r275047 : compile error 2009-08-17 13:27:47 +0200 oj r275045 : compile error 2009-08-17 11:44:54 +0200 oj r275040 : add dep 2009-07-22 14:26:05 +0200 oj r274240 : move unused services into fwl 2009-07-22 14:25:35 +0200 oj r274239 : move unused services into fwl 2009-07-22 13:47:45 +0200 oj r274233 : remove some unused code 2009-07-22 09:06:20 +0200 oj r274219 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 08:48:58 +0200 oj r274218 : create NumberFormatter on demand 2009-07-22 08:39:23 +0200 oj r274217 : change char to sal_Char 2009-07-22 07:33:34 +0200 oj r274214 : export dbtoolsclient dbcharsethelper for sc 2009-07-22 07:30:04 +0200 oj r274213 : late init of numberformatter and breakiterator 2009-07-22 07:28:55 +0200 oj r274212 : export dbtoolsclient dbcharsethelper for sc 2009-07-21 13:43:28 +0200 oj r274196 : check if quick start is enbaled 2009-07-21 13:40:09 +0200 oj r274195 : check config entry for UiEventsLogger 2009-07-21 13:37:40 +0200 oj r274194 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:35:38 +0200 oj r274193 : code refactoring, remove of duplicate code and some late inits and removale of not needed files 2009-07-21 13:33:41 +0200 oj r274192 : doc meta data will now be created on demand 2009-07-21 13:13:40 +0200 oj r274187 : load ldap functions on demand 2009-07-21 13:03:17 +0200 oj r274183 : late init of TransliterationImpl 2009-07-21 12:36:10 +0200 oj r274180 : late init of charClass
2009-09-08 04:57:32 +00:00
}
}
}
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
} // closing anonymous implementation namespace
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
CompatWriterDocPropsImpl_get_implementation(
css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
return cppu::acquire(new CompatWriterDocPropsImpl(context));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
SfxDocumentMetaData_get_implementation(
css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &)
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
{
return cppu::acquire(new SfxDocumentMetaData(context));
INTEGRATION: CWS custommeta (1.1.2); FILE ADDED 2008/02/07 15:08:05 mst 1.1.2.13: - sfx2/source/doc/SfxDocumentMetaData.cxx: + fix setModified(false) + remove dead code - sfx2/qa/complex/DocumentMetaData.java: + use getOfficeTemp instead of getOfficeTempDir 2008/02/04 17:36:43 mst 1.1.2.12: fix issue #i82777# - source/doc/REMOVEME.cxx: + remove, finally! - sfx2/source/doc/SfxDocumentMetaData.cxx: + use sax/converter.hxx (finally arrived on master) - sfx2/util/makefile.mk: + link libsfx2 against libsax - sfx2/prj/build.lst: + add sax to build dependencies 2008/02/04 17:05:07 mst 1.1.2.11: - sfx2/source/doc/SfxDocumentMetaData.cxx: + remove obsolete class UserDefinedPropertiesListener + take advantage of PropertyBag's new XModifyBroadcaster implementation, finally giving a complete implementation of that interface for SfxDocumentMetaData itself 2008/01/31 16:42:48 mst 1.1.2.10: - sfx2/source/doc/SfxDocumentMetaData.cxx: + use undocumented feature of PropertyBag to limit allowed types of property values - sfx2/qa/complex/Attic/DocumentMetaData.java: + test for inserting properties of invalid type + test for notifications via XModifyListener 2008/01/23 14:31:41 mst 1.1.2.9: - sfx2/source/doc/SfxDocumentMetaData.cxx: + implement new method resetUserData 2008/01/18 13:11:25 mst 1.1.2.8: - sfx2/source/doc/SfxDocumentMetaData.cxx: + do not store user-defined properties that have the TRANSIENT attribute 2008/01/16 14:25:27 mst 1.1.2.7: - sfx2/source/doc/SfxDocumentMetaData.cxx: + all elements that have attributes are now no longer updated directly in the DOM tree; they are stored as members instead, and updated only when storing + ensure that we do not write elements that do not contain any text + handle the media descriptor parameter in storeToMedium and loadFromMedium - sfx2/qa/complex/DocumentMetaData.java: + test media descriptor parameters, and use proper URLs for file names 2007/12/18 16:24:08 mst 1.1.2.6: - sfx2/source/doc/SfxDocumentMetaData.cxx, sfx2/qa/complex/DocumentMetaData.java: + remove XMaterialHolder interface; replaced by XSAXWritable + implement dispose() + loadFromStorage does no longer resolve relative URLs; this is done in the importer now also, members m_BaseURL and GetAbsoluteReference removed + loadFromStorage and storeToStorage pass an additional argument containing the base URL to the filter + fix duplicate modification notification in some cases + portably encode umlauts in unit test 2007/12/11 11:58:04 mst 1.1.2.5: - sfx2/source/doc/SfxDocumentMetaData.cxx: msci10 warning fixes 2007/12/11 09:55:51 mst 1.1.2.4: - sfx2/source/doc/{SfxDocumentMetaData.cxx,objuno.cxx}: gcc compile fixes 2007/12/07 14:46:37 mst 1.1.2.3: - sfx2/source/doc/SfxDocumentMetaData.cxx: + service implements additional interfaces: XComponent, XCloneable, XModifiable, XMaterialHolder, XSAXSerializable + refactor initialization: now sole responsibility of init() + add GetAbsoluteReference method (from SvXMLImport) + loadFromStorage, storeToStorage: use xmloff services + other refactorings 2007/11/01 14:45:16 mst 1.1.2.2: - source/doc/SfxDocumentMetaData.cxx: remove dead code; improve exception handling 2007/10/31 12:50:45 mst 1.1.2.1: - inc/SfxDocumentMetaData.hxx, source/doc/SfxDocumentMetaData.cxx: added implementation of service css.document.DocumentProperties - source/doc/REMOVEME.cxx: temporary stuff from CWS xmlfilter02 - source/appl/appuno.cxx, source/doc/makefile.mk: build/register new service
2008-02-26 14:07:47 +00:00
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */