LibreOffice Module sfx2 (master) 1
oleprops.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_SFX2_SOURCE_DOC_OLEPROPS_HXX
21#define INCLUDED_SFX2_SOURCE_DOC_OLEPROPS_HXX
22
23#include <map>
24#include <memory>
25#include <string_view>
26
27#include <osl/thread.h>
28#include <rtl/ustring.hxx>
29#include <sot/storage.hxx>
30
31#include <com/sun/star/util/DateTime.hpp>
32#include <com/sun/star/util/Date.hpp>
33
34
35//namespace {
36
37
38// property type IDs
39const sal_Int32 PROPTYPE_INT16 = 2;
40const sal_Int32 PROPTYPE_INT32 = 3;
41const sal_Int32 PROPTYPE_FLOAT = 4;
42const sal_Int32 PROPTYPE_DOUBLE = 5;
43const sal_Int32 PROPTYPE_DATE = 7;
44const sal_Int32 PROPTYPE_STRING = 8;
45const sal_Int32 PROPTYPE_STATUS = 10;
46const sal_Int32 PROPTYPE_BOOL = 11;
47const sal_Int32 PROPTYPE_VARIANT = 12;
48const sal_Int32 PROPTYPE_INT8 = 16;
49const sal_Int32 PROPTYPE_UINT8 = 17;
50const sal_Int32 PROPTYPE_UINT16 = 18;
51const sal_Int32 PROPTYPE_UINT32 = 19;
52const sal_Int32 PROPTYPE_INT64 = 20;
53const sal_Int32 PROPTYPE_UINT64 = 21;
54const sal_Int32 PROPTYPE_STRING8 = 30;
55const sal_Int32 PROPTYPE_STRING16 = 31;
56const sal_Int32 PROPTYPE_FILETIME = 64;
57const sal_Int32 PROPTYPE_BLOB = 65;
58const sal_Int32 PROPTYPE_CLIPFMT = 71;
59
60// static property IDs
61const sal_Int32 PROPID_DICTIONARY = 0;
62const sal_Int32 PROPID_CODEPAGE = 1;
63const sal_Int32 PROPID_FIRSTCUSTOM = 2;
64
65// property IDs for GlobalDocPropertySet
66const sal_Int32 PROPID_TITLE = 2;
67const sal_Int32 PROPID_SUBJECT = 3;
68const sal_Int32 PROPID_AUTHOR = 4;
69const sal_Int32 PROPID_KEYWORDS = 5;
70const sal_Int32 PROPID_COMMENTS = 6;
71const sal_Int32 PROPID_TEMPLATE = 7;
72const sal_Int32 PROPID_LASTAUTHOR = 8;
73const sal_Int32 PROPID_REVNUMBER = 9;
74const sal_Int32 PROPID_EDITTIME = 10;
75const sal_Int32 PROPID_LASTPRINTED = 11;
76const sal_Int32 PROPID_CREATED = 12;
77const sal_Int32 PROPID_LASTSAVED = 13;
78const sal_Int32 PROPID_THUMBNAIL = 17;
79
80// some Builtin properties
81const sal_Int32 PROPID_CATEGORY = 0x2;
82const sal_Int32 PROPID_COMPANY = 0xf;
83const sal_Int32 PROPID_MANAGER = 0xe;
84// predefined codepages
85const sal_uInt16 CODEPAGE_UNKNOWN = 0;
86const sal_uInt16 CODEPAGE_UNICODE = 1200;
87const sal_uInt16 CODEPAGE_UTF8 = 65001;
88
89// predefined clipboard format IDs
90const sal_Int32 CLIPFMT_WIN = -1;
91
92// predefined clipboard data format IDs
93const sal_Int32 CLIPDATAFMT_DIB = 8;
94
95
102{
103public:
105 mxTextEnc( std::make_shared<rtl_TextEncoding>( osl_getThreadTextEncoding() ) ) {}
106 explicit SfxOleTextEncoding( rtl_TextEncoding eTextEnc ) :
107 mxTextEnc( std::make_shared<rtl_TextEncoding>( eTextEnc ) ) {}
108
110 rtl_TextEncoding GetTextEncoding() const { return *mxTextEnc; }
112 void SetTextEncoding( rtl_TextEncoding eTextEnc ) { *mxTextEnc = eTextEnc; }
113
115 bool IsUnicode() const { return GetTextEncoding() == RTL_TEXTENCODING_UCS2; }
117 void SetUnicode() { SetTextEncoding( RTL_TEXTENCODING_UCS2 ); }
118
120 sal_uInt16 GetCodePage() const;
122 void SetCodePage( sal_uInt16 nCodePage );
123
124private:
125 std::shared_ptr< rtl_TextEncoding > mxTextEnc;
126};
127
128
135{
136public:
138 explicit SfxOleStringHelper( const SfxOleTextEncoding& rTextEnc ) :
139 SfxOleTextEncoding( rTextEnc ) {}
141 explicit SfxOleStringHelper( rtl_TextEncoding eTextEnc ) :
142 SfxOleTextEncoding( eTextEnc ) {}
143
145 OUString LoadString8( SvStream& rStrm ) const;
147 void SaveString8( SvStream& rStrm, std::u16string_view rValue ) const;
148
150 static OUString LoadString16( SvStream& rStrm );
152 static void SaveString16( SvStream& rStrm, std::u16string_view rValue );
153
154private:
155 OUString ImplLoadString8( SvStream& rStrm ) const;
156 static OUString ImplLoadString16( SvStream& rStrm );
157 void ImplSaveString8( SvStream& rStrm, std::u16string_view rValue ) const;
158 static void ImplSaveString16( SvStream& rStrm, std::u16string_view rValue );
159};
160
161
168{
169public:
171 virtual ~SfxOleObjectBase();
172
174 ErrCode const & GetError() const { return mnErrCode; }
175
177 ErrCode const & Load( SvStream& rStrm );
179 ErrCode const & Save( SvStream& rStrm );
180
181protected:
184 void SetError( ErrCode nErrCode ) { if( mnErrCode == ERRCODE_NONE ) mnErrCode = nErrCode; }
186 void LoadObject( SvStream& rStrm, SfxOleObjectBase& rObj );
188 void SaveObject( SvStream& rStrm, SfxOleObjectBase& rObj );
189
190private:
192 virtual void ImplLoad( SvStream& rStrm ) = 0;
194 virtual void ImplSave( SvStream& rStrm ) = 0;
195
196private:
198};
199
200
203{
204public:
205 explicit SfxOlePropertyBase( sal_Int32 nPropId, sal_Int32 nPropType ) :
206 mnPropId( nPropId ), mnPropType( nPropType ) {}
207
208 sal_Int32 GetPropId() const { return mnPropId; }
209 sal_Int32 GetPropType() const { return mnPropType; }
210
211protected:
212 void SetPropType( sal_Int32 nPropType ) { mnPropType = nPropType; }
213
214private:
215 sal_Int32 mnPropId;
216 sal_Int32 mnPropType;
217};
218
219typedef std::shared_ptr< SfxOlePropertyBase > SfxOlePropertyRef;
220
221
224{
225public:
226 explicit SfxOleCodePageProperty();
227
228private:
229 virtual void ImplLoad( SvStream& rStrm ) override;
230 virtual void ImplSave( SvStream& rStrm ) override;
231};
232
233
236{
237public:
238 explicit SfxOleDictionaryProperty( const SfxOleTextEncoding& rTextEnc );
239
241 bool HasPropertyNames() const { return !maPropNameMap.empty(); }
243 void SetNameCount( sal_Int32 nNameCount ) { SetPropType( nNameCount ); }
244
246 OUString GetPropertyName( sal_Int32 nPropId ) const;
248 void SetPropertyName( sal_Int32 nPropId, const OUString& rPropName );
249
250private:
251 virtual void ImplLoad( SvStream& rStrm ) override;
252 virtual void ImplSave( SvStream& rStrm ) override;
253
254private:
255 typedef ::std::map< sal_Int32, OUString > SfxOlePropNameMap;
257};
258
259
262{
263private:
264 typedef ::std::map< sal_Int32, SfxOlePropertyRef > SfxOlePropMap;
265
266public:
267 explicit SfxOleSection( bool bSupportsDict );
268
270 SfxOlePropertyRef GetProperty( sal_Int32 nPropId ) const;
273 bool GetInt32Value( sal_Int32& rnValue, sal_Int32 nPropId ) const;
276 bool GetDoubleValue( double& rfValue, sal_Int32 nPropId ) const;
279 bool GetBoolValue( bool& rbValue, sal_Int32 nPropId ) const;
282 bool GetStringValue( OUString& rValue, sal_Int32 nPropId ) const;
285 bool GetFileTimeValue( css::util::DateTime& rValue, sal_Int32 nPropId ) const;
288 bool GetDateValue( css::util::Date& rValue, sal_Int32 nPropId ) const;
289
291 void SetProperty( const SfxOlePropertyRef& xProp );
293 void SetInt32Value( sal_Int32 nPropId, sal_Int32 nValue );
295 void SetDoubleValue( sal_Int32 nPropId, double fValue );
297 void SetBoolValue( sal_Int32 nPropId, bool bValue );
300 bool SetStringValue( sal_Int32 nPropId, const OUString& rValue );
302 void SetFileTimeValue( sal_Int32 nPropId, const css::util::DateTime& rValue );
304 void SetDateValue( sal_Int32 nPropId, const css::util::Date& rValue );
306 void SetThumbnailValue( sal_Int32 nPropId,
307 const css::uno::Sequence<sal_Int8> & i_rData);
309 void SetBlobValue( sal_Int32 nPropId,
310 const css::uno::Sequence<sal_Int8> & i_rData);
311
313 css::uno::Any GetAnyValue( sal_Int32 nPropId ) const;
316 bool SetAnyValue( sal_Int32 nPropId, const css::uno::Any& rValue );
317
319 OUString GetPropertyName( sal_Int32 nPropId ) const;
321 void SetPropertyName( sal_Int32 nPropId, const OUString& rPropName );
322
324 void GetPropertyIds( ::std::vector< sal_Int32 >& rPropIds ) const;
326 sal_Int32 GetFreePropertyId() const;
327
328private:
329 virtual void ImplLoad( SvStream& rStrm ) override;
330 virtual void ImplSave( SvStream& rStrm ) override;
331
332 bool SeekToPropertyPos( SvStream& rStrm, sal_uInt32 nPropPos ) const;
333 void LoadProperty( SvStream& rStrm, sal_Int32 nPropId );
334 void SaveProperty( SvStream& rStrm, SfxOlePropertyBase& rProp, sal_uInt64 & rnPropPosPos );
335
336private:
340 sal_uInt64 mnStartPos;
342};
343
344typedef std::shared_ptr< SfxOleSection > SfxOleSectionRef;
345
346
349{
354
355
358{
359public:
360 explicit SfxOlePropertySet() {}
361
363 ErrCode const & LoadPropertySet( SotStorage* pStrg, const OUString& rStrmName );
365 ErrCode const & SavePropertySet( SotStorage* pStrg, const OUString& rStrmName );
366
370 SfxOleSectionRef GetSection( const SvGlobalName& rSectionGuid ) const;
371
375 SfxOleSection& AddSection( const SvGlobalName& rSectionGuid );
376
377private:
378 virtual void ImplLoad( SvStream& rStrm ) override;
379 virtual void ImplSave( SvStream& rStrm ) override;
380
382 static const SvGlobalName& GetSectionGuid( SfxOleSectionType eSection );
383
384private:
385 typedef ::std::map< SvGlobalName, SfxOleSectionRef > SfxOleSectionMap;
387};
388
389#endif
390
391/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Property representing the codepage used to encode bytestrings in the entire property set.
Definition: oleprops.hxx:224
virtual void ImplLoad(SvStream &rStrm) override
Derived classes implement loading the object from the passed steam.
Definition: oleprops.cxx:370
virtual void ImplSave(SvStream &rStrm) override
Derived classes implement saving the object to the passed steam.
Definition: oleprops.cxx:378
Property containing custom names for other properties in the property set.
Definition: oleprops.hxx:236
SfxOleDictionaryProperty(const SfxOleTextEncoding &rTextEnc)
Definition: oleprops.cxx:663
virtual void ImplLoad(SvStream &rStrm) override
Derived classes implement loading the object from the passed steam.
Definition: oleprops.cxx:682
virtual void ImplSave(SvStream &rStrm) override
Derived classes implement saving the object to the passed steam.
Definition: oleprops.cxx:697
OUString GetPropertyName(sal_Int32 nPropId) const
Returns the custom name for the passed property ID, or an empty string, if name not found.
Definition: oleprops.cxx:669
::std::map< sal_Int32, OUString > SfxOlePropNameMap
Definition: oleprops.hxx:255
void SetPropertyName(sal_Int32 nPropId, const OUString &rPropName)
Sets a custom name for the passed property ID.
Definition: oleprops.cxx:675
bool HasPropertyNames() const
Returns true, if the property contains at least one custom property name.
Definition: oleprops.hxx:241
void SetNameCount(sal_Int32 nNameCount)
Prepares the property for loading.
Definition: oleprops.hxx:243
SfxOlePropNameMap maPropNameMap
Definition: oleprops.hxx:256
Base class for all classes related to OLE property sets.
Definition: oleprops.hxx:168
ErrCode mnErrCode
Definition: oleprops.hxx:197
virtual ~SfxOleObjectBase()
Definition: oleprops.cxx:334
void SetError(ErrCode nErrCode)
Sets the passed error code.
Definition: oleprops.hxx:184
virtual void ImplSave(SvStream &rStrm)=0
Derived classes implement saving the object to the passed steam.
void SaveObject(SvStream &rStrm, SfxOleObjectBase &rObj)
Saves the passed object to the stream.
Definition: oleprops.cxx:359
ErrCode const & GetError() const
Returns the current error code.
Definition: oleprops.hxx:174
ErrCode const & Load(SvStream &rStrm)
Loads this object from the passed stream.
Definition: oleprops.cxx:338
void LoadObject(SvStream &rStrm, SfxOleObjectBase &rObj)
Loads the passed object from the stream.
Definition: oleprops.cxx:354
ErrCode const & Save(SvStream &rStrm)
Saves this object to the passed stream.
Definition: oleprops.cxx:346
virtual void ImplLoad(SvStream &rStrm)=0
Derived classes implement loading the object from the passed steam.
Base class for all OLE property objects.
Definition: oleprops.hxx:203
sal_Int32 mnPropId
Definition: oleprops.hxx:215
SfxOlePropertyBase(sal_Int32 nPropId, sal_Int32 nPropType)
Definition: oleprops.hxx:205
sal_Int32 GetPropType() const
Definition: oleprops.hxx:209
void SetPropType(sal_Int32 nPropType)
Definition: oleprops.hxx:212
sal_Int32 mnPropType
Definition: oleprops.hxx:216
sal_Int32 GetPropId() const
Definition: oleprops.hxx:208
Represents a complete property set, may consist of several property sections.
Definition: oleprops.hxx:358
virtual void ImplLoad(SvStream &rStrm) override
Derived classes implement loading the object from the passed steam.
Definition: oleprops.cxx:1155
SfxOleSection & AddSection(SfxOleSectionType eSection)
Creates and returns the specified section, or just returns it if it already exists.
Definition: oleprops.cxx:1137
ErrCode const & LoadPropertySet(SotStorage *pStrg, const OUString &rStrmName)
Loads this object from the passed storage.
Definition: oleprops.cxx:1090
SfxOleSectionMap maSectionMap
Definition: oleprops.hxx:386
::std::map< SvGlobalName, SfxOleSectionRef > SfxOleSectionMap
Definition: oleprops.hxx:385
ErrCode const & SavePropertySet(SotStorage *pStrg, const OUString &rStrmName)
Saves this object to the passed storage.
Definition: oleprops.cxx:1108
virtual void ImplSave(SvStream &rStrm) override
Derived classes implement saving the object to the passed steam.
Definition: oleprops.cxx:1190
SfxOleSectionRef GetSection(SfxOleSectionType eSection) const
Returns the specified section, or an empty reference, if nothing found.
Definition: oleprops.cxx:1123
static const SvGlobalName & GetSectionGuid(SfxOleSectionType eSection)
Returns the GUID for the specified section.
Definition: oleprops.cxx:1222
A section in a property set.
Definition: oleprops.hxx:262
bool GetFileTimeValue(css::util::DateTime &rValue, sal_Int32 nPropId) const
Returns the value of a time stamp property with the passed ID in rValue.
Definition: oleprops.cxx:765
virtual void ImplLoad(SvStream &rStrm) override
Derived classes implement loading the object from the passed steam.
Definition: oleprops.cxx:939
SfxOlePropertyRef GetProperty(sal_Int32 nPropId) const
Returns the property with the passed ID, or an empty reference, if nothing found.
Definition: oleprops.cxx:716
SfxOleDictionaryProperty maDictProp
The codepage property.
Definition: oleprops.hxx:339
void SetDateValue(sal_Int32 nPropId, const css::util::Date &rValue)
Inserts a date property with the passed value.
Definition: oleprops.cxx:832
bool GetInt32Value(sal_Int32 &rnValue, sal_Int32 nPropId) const
Returns the value of a signed int32 property with the passed ID in rnValue.
Definition: oleprops.cxx:725
bool SeekToPropertyPos(SvStream &rStrm, sal_uInt32 nPropPos) const
Definition: oleprops.cxx:1027
void SetPropertyName(sal_Int32 nPropId, const OUString &rPropName)
Sets a custom name for the passed property ID.
Definition: oleprops.cxx:922
css::uno::Any GetAnyValue(sal_Int32 nPropId) const
Returns the value of the property with the passed ID in a UNO any.
Definition: oleprops.cxx:862
void SetFileTimeValue(sal_Int32 nPropId, const css::util::DateTime &rValue)
Inserts a time stamp property with the passed value.
Definition: oleprops.cxx:824
bool GetBoolValue(bool &rbValue, sal_Int32 nPropId) const
Returns the value of a boolean property with the passed ID in rbValue.
Definition: oleprops.cxx:745
virtual void ImplSave(SvStream &rStrm) override
Derived classes implement saving the object to the passed steam.
Definition: oleprops.cxx:995
SfxOlePropMap maPropMap
Definition: oleprops.hxx:337
void LoadProperty(SvStream &rStrm, sal_Int32 nPropId)
Definition: oleprops.cxx:1033
bool GetStringValue(OUString &rValue, sal_Int32 nPropId) const
Returns the value of a string property with the passed ID in rValue.
Definition: oleprops.cxx:755
void GetPropertyIds(::std::vector< sal_Int32 > &rPropIds) const
Returns the identifiers of all existing properties in the passed vector.
Definition: oleprops.cxx:927
::std::map< sal_Int32, SfxOlePropertyRef > SfxOlePropMap
Definition: oleprops.hxx:264
SfxOleCodePageProperty maCodePageProp
All properties in this section, by identifier.
Definition: oleprops.hxx:338
sal_Int32 GetFreePropertyId() const
Returns a property identifier not used in this section.
Definition: oleprops.cxx:934
void SetBoolValue(sal_Int32 nPropId, bool bValue)
Inserts a boolean property with the passed value.
Definition: oleprops.cxx:811
bool GetDateValue(css::util::Date &rValue, sal_Int32 nPropId) const
Returns the value of a date property with the passed ID in rValue.
Definition: oleprops.cxx:780
void SetDoubleValue(sal_Int32 nPropId, double fValue)
Inserts a floating-point property with the passed value.
Definition: oleprops.cxx:806
void SetThumbnailValue(sal_Int32 nPropId, const css::uno::Sequence< sal_Int8 > &i_rData)
Inserts a thumbnail property from the passed meta file.
Definition: oleprops.cxx:846
void SetInt32Value(sal_Int32 nPropId, sal_Int32 nValue)
Inserts a signed int32 property with the passed value.
Definition: oleprops.cxx:801
void SetProperty(const SfxOlePropertyRef &xProp)
Adds the passed property to the property set.
Definition: oleprops.cxx:795
void SaveProperty(SvStream &rStrm, SfxOlePropertyBase &rProp, sal_uInt64 &rnPropPosPos)
Definition: oleprops.cxx:1072
bool GetDoubleValue(double &rfValue, sal_Int32 nPropId) const
Returns the value of a floating-point property with the passed ID in rfValue.
Definition: oleprops.cxx:735
OUString GetPropertyName(sal_Int32 nPropId) const
Returns the custom name for the passed property ID, or an empty string, if name not found.
Definition: oleprops.cxx:917
bool SetStringValue(sal_Int32 nPropId, const OUString &rValue)
Inserts a string property with the passed value.
Definition: oleprops.cxx:816
SfxOleSection(bool bSupportsDict)
Definition: oleprops.cxx:709
void SetBlobValue(sal_Int32 nPropId, const css::uno::Sequence< sal_Int8 > &i_rData)
Inserts a BLOB property with the passed data.
Definition: oleprops.cxx:854
bool SetAnyValue(sal_Int32 nPropId, const css::uno::Any &rValue)
Inserts a property created from the passed any.
Definition: oleprops.cxx:891
sal_uInt64 mnStartPos
The dictionary property.
Definition: oleprops.hxx:340
bool mbSupportsDict
Start stream position of the section.
Definition: oleprops.hxx:341
Helper for classes that need to load or save string values.
Definition: oleprops.hxx:135
static void SaveString16(SvStream &rStrm, std::u16string_view rValue)
Saves a Unicode string to the passed stream, ignores own encoding.
Definition: oleprops.cxx:265
void ImplSaveString8(SvStream &rStrm, std::u16string_view rValue) const
Definition: oleprops.cxx:307
SfxOleStringHelper(rtl_TextEncoding eTextEnc)
Creates a string helper object with own text encoding.
Definition: oleprops.hxx:141
static OUString LoadString16(SvStream &rStrm)
Loads a Unicode string from the passed stream, ignores own encoding.
Definition: oleprops.cxx:260
OUString LoadString8(SvStream &rStrm) const
Loads a string from the passed stream with current encoding (maybe Unicode).
Definition: oleprops.cxx:247
SfxOleStringHelper(const SfxOleTextEncoding &rTextEnc)
Creates a string helper object depending on an external text encoding.
Definition: oleprops.hxx:138
void SaveString8(SvStream &rStrm, std::u16string_view rValue) const
Saves a string to the passed stream with current encoding (maybe Unicode).
Definition: oleprops.cxx:252
static void ImplSaveString16(SvStream &rStrm, std::u16string_view rValue)
Definition: oleprops.cxx:319
OUString ImplLoadString8(SvStream &rStrm) const
Definition: oleprops.cxx:270
static OUString ImplLoadString16(SvStream &rStrm)
Definition: oleprops.cxx:286
Helper for classes that need text encoding settings.
Definition: oleprops.hxx:102
SfxOleTextEncoding(rtl_TextEncoding eTextEnc)
Definition: oleprops.hxx:106
std::shared_ptr< rtl_TextEncoding > mxTextEnc
Definition: oleprops.hxx:125
void SetTextEncoding(rtl_TextEncoding eTextEnc)
Sets the passed text encoding.
Definition: oleprops.hxx:112
bool IsUnicode() const
Returns true, if this object contains Unicode text encoding.
Definition: oleprops.hxx:115
void SetUnicode()
Sets Unicode text encoding to this object.
Definition: oleprops.hxx:117
rtl_TextEncoding GetTextEncoding() const
Returns the current text encoding identifier.
Definition: oleprops.hxx:110
void SetCodePage(sal_uInt16 nCodePage)
Sets the current text encoding from a Windows codepage identifier.
Definition: oleprops.cxx:234
sal_uInt16 GetCodePage() const
Converts the current settings to a Windows codepage identifier.
Definition: oleprops.cxx:227
#define ERRCODE_NONE
void SvStream & rStrm
std::shared_ptr< T > make_shared(Args &&... args)
const sal_uInt16 CODEPAGE_UNKNOWN
Definition: oleprops.hxx:85
SfxOleSectionType
Enumerates different section types in OLE property sets.
Definition: oleprops.hxx:349
@ SECTION_BUILTIN
Globally defined properties.
Definition: oleprops.hxx:351
@ SECTION_GLOBAL
Definition: oleprops.hxx:350
@ SECTION_CUSTOM
Properties built into MS Office.
Definition: oleprops.hxx:352
const sal_uInt16 CODEPAGE_UNICODE
Definition: oleprops.hxx:86
const sal_Int32 PROPTYPE_UINT64
Definition: oleprops.hxx:53
const sal_Int32 PROPID_THUMBNAIL
Definition: oleprops.hxx:78
const sal_Int32 PROPID_AUTHOR
Definition: oleprops.hxx:68
const sal_Int32 PROPID_MANAGER
Definition: oleprops.hxx:83
const sal_Int32 PROPTYPE_DOUBLE
Definition: oleprops.hxx:42
const sal_Int32 PROPTYPE_UINT8
Definition: oleprops.hxx:49
const sal_Int32 PROPTYPE_INT16
Definition: oleprops.hxx:39
const sal_uInt16 CODEPAGE_UTF8
Definition: oleprops.hxx:87
const sal_Int32 PROPID_EDITTIME
Definition: oleprops.hxx:74
const sal_Int32 PROPTYPE_INT32
Definition: oleprops.hxx:40
const sal_Int32 PROPID_CATEGORY
Definition: oleprops.hxx:81
const sal_Int32 PROPTYPE_STRING
Definition: oleprops.hxx:44
const sal_Int32 PROPTYPE_FLOAT
Definition: oleprops.hxx:41
const sal_Int32 PROPID_REVNUMBER
Definition: oleprops.hxx:73
const sal_Int32 PROPTYPE_UINT16
Definition: oleprops.hxx:50
const sal_Int32 PROPTYPE_INT8
Definition: oleprops.hxx:48
const sal_Int32 PROPTYPE_INT64
Definition: oleprops.hxx:52
const sal_Int32 PROPTYPE_BOOL
Definition: oleprops.hxx:46
const sal_Int32 PROPID_COMPANY
Definition: oleprops.hxx:82
std::shared_ptr< SfxOlePropertyBase > SfxOlePropertyRef
Definition: oleprops.hxx:219
const sal_Int32 PROPTYPE_STATUS
Definition: oleprops.hxx:45
const sal_Int32 PROPTYPE_BLOB
Definition: oleprops.hxx:57
const sal_Int32 PROPID_COMMENTS
Definition: oleprops.hxx:70
const sal_Int32 CLIPDATAFMT_DIB
Definition: oleprops.hxx:93
const sal_Int32 PROPID_TEMPLATE
Definition: oleprops.hxx:71
const sal_Int32 PROPTYPE_DATE
Definition: oleprops.hxx:43
const sal_Int32 PROPID_DICTIONARY
Definition: oleprops.hxx:61
const sal_Int32 PROPTYPE_FILETIME
Definition: oleprops.hxx:56
const sal_Int32 PROPID_SUBJECT
Definition: oleprops.hxx:67
std::shared_ptr< SfxOleSection > SfxOleSectionRef
Definition: oleprops.hxx:344
const sal_Int32 PROPTYPE_UINT32
Definition: oleprops.hxx:51
const sal_Int32 PROPID_KEYWORDS
Definition: oleprops.hxx:69
const sal_Int32 PROPID_CREATED
Definition: oleprops.hxx:76
const sal_Int32 PROPTYPE_STRING16
Definition: oleprops.hxx:55
const sal_Int32 PROPID_CODEPAGE
Definition: oleprops.hxx:62
const sal_Int32 CLIPFMT_WIN
Definition: oleprops.hxx:90
const sal_Int32 PROPTYPE_STRING8
Definition: oleprops.hxx:54
const sal_Int32 PROPID_LASTSAVED
Definition: oleprops.hxx:77
const sal_Int32 PROPTYPE_CLIPFMT
Definition: oleprops.hxx:58
const sal_Int32 PROPID_TITLE
Definition: oleprops.hxx:66
const sal_Int32 PROPID_FIRSTCUSTOM
Definition: oleprops.hxx:63
const sal_Int32 PROPID_LASTPRINTED
Definition: oleprops.hxx:75
const sal_Int32 PROPID_LASTAUTHOR
Definition: oleprops.hxx:72
const sal_Int32 PROPTYPE_VARIANT
Definition: oleprops.hxx:47