From 0d8e885e6c953298934719b23fcfd8cafd19e3ea Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Tue, 26 Feb 2008 14:11:18 +0000 Subject: INTEGRATION: CWS custommeta (1.2.66); FILE MERGED 2008/01/23 13:46:55 mst 1.2.66.2: interface change: SaveOlePropertySet - sfx2/source/doc/oleprops.{hxx,cxx}: + new constant PROPTYPE_BLOB + new class SfxOleBlobProperty + new method SfxOleSection::SetBlobValue + class SfxOleThumbnailProperty now stores a Sequence + parameter type of SfxOleSection::SetThumbnailValue changed accordingly - sfx2/inc/sfx2/docinf.hxx, sfx2/source/doc/docinf.cxx: + SaveOlePropertySet: parameter type of thumbnail is now Sequence; new parameters for GUID blob and Hyperlinks blob + SaveOlePropertySet: write _PID_GUID and _PID_HLINKS properties; do not write TRANSIENT user-defined properties + new helper convertMetaFile to convert GDIMetaFile to Sequence 2008/01/16 15:30:42 mst 1.2.66.1: - sfx2/source/doc/oleprops.{hxx,cxx}: + refactor GetFileTimeValue and SetFileTimeValue to work on css::util::DateTime instead of ::DateTime --- sfx2/source/doc/oleprops.hxx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'sfx2/source/doc/oleprops.hxx') diff --git a/sfx2/source/doc/oleprops.hxx b/sfx2/source/doc/oleprops.hxx index c15464e348e8..230a24cfcd6c 100755 --- a/sfx2/source/doc/oleprops.hxx +++ b/sfx2/source/doc/oleprops.hxx @@ -4,9 +4,9 @@ * * $RCSfile: oleprops.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: obo $ $Date: 2007-07-17 13:45:05 $ + * last change: $Author: obo $ $Date: 2008-02-26 15:11:18 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -37,7 +37,9 @@ #include #include #include -#include + +#include + // ============================================================================ @@ -63,6 +65,7 @@ const sal_Int32 PROPTYPE_UINT64 = 21; const sal_Int32 PROPTYPE_STRING8 = 30; const sal_Int32 PROPTYPE_STRING16 = 31; const sal_Int32 PROPTYPE_FILETIME = 64; +const sal_Int32 PROPTYPE_BLOB = 65; const sal_Int32 PROPTYPE_CLIPFMT = 71; // static property IDs @@ -304,7 +307,7 @@ public: bool GetStringValue( String& rValue, sal_Int32 nPropId ) const; /** Returns the value of a time stamp property with the passed ID in rValue. @return true = Property found, rValue is valid; false = Property not found. */ - bool GetFileTimeValue( DateTime& rValue, sal_Int32 nPropId ) const; + bool GetFileTimeValue( ::com::sun::star::util::DateTime& rValue, sal_Int32 nPropId ) const; /** Adds the passed property to the property set. Drops an existing old property. */ void SetProperty( SfxOlePropertyRef xProp ); @@ -318,9 +321,13 @@ public: @return true = Property inserted; false = String was empty, property not inserted. */ bool SetStringValue( sal_Int32 nPropId, const String& rValue, bool bSkipEmpty = true ); /** Inserts a time stamp property with the passed value. */ - void SetFileTimeValue( sal_Int32 nPropId, const DateTime& rValue ); + void SetFileTimeValue( sal_Int32 nPropId, const ::com::sun::star::util::DateTime& rValue ); /** Inserts a thumbnail property from the passed meta file. */ - void SetThumbnailValue( sal_Int32 nPropId, const GDIMetaFile& rMetaFile ); + void SetThumbnailValue( sal_Int32 nPropId, + const ::com::sun::star::uno::Sequence & i_rData); + /** Inserts a BLOB property with the passed data. */ + void SetBlobValue( sal_Int32 nPropId, + const ::com::sun::star::uno::Sequence & i_rData); /** Returns the value of the property with the passed ID in a UNO any. */ com::sun::star::uno::Any GetAnyValue( sal_Int32 nPropId ) const; -- cgit