LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SfxOlePropertySet Class Reference

Represents a complete property set, may consist of several property sections. More...

#include <oleprops.hxx>

Inheritance diagram for SfxOlePropertySet:
[legend]
Collaboration diagram for SfxOlePropertySet:
[legend]

Public Member Functions

 SfxOlePropertySet ()
 
ErrCode const & LoadPropertySet (SotStorage *pStrg, const OUString &rStrmName)
 Loads this object from the passed storage. More...
 
ErrCode const & SavePropertySet (SotStorage *pStrg, const OUString &rStrmName)
 Saves this object to the passed storage. More...
 
SfxOleSectionRef GetSection (SfxOleSectionType eSection) const
 Returns the specified section, or an empty reference, if nothing found. More...
 
SfxOleSectionRef GetSection (const SvGlobalName &rSectionGuid) const
 Returns the specified section, or an empty reference, if nothing found. More...
 
SfxOleSectionAddSection (SfxOleSectionType eSection)
 Creates and returns the specified section, or just returns it if it already exists. More...
 
SfxOleSectionAddSection (const SvGlobalName &rSectionGuid)
 Creates and returns the specified section, or just returns it if it already exists. More...
 
- Public Member Functions inherited from SfxOleObjectBase
 SfxOleObjectBase ()
 
virtual ~SfxOleObjectBase ()
 
ErrCode const & GetError () const
 Returns the current error code. More...
 
ErrCode const & Load (SvStream &rStrm)
 Loads this object from the passed stream. More...
 
ErrCode const & Save (SvStream &rStrm)
 Saves this object to the passed stream. More...
 

Private Types

typedef ::std::map< SvGlobalName, SfxOleSectionRefSfxOleSectionMap
 

Private Member Functions

virtual void ImplLoad (SvStream &rStrm) override
 Derived classes implement loading the object from the passed steam. More...
 
virtual void ImplSave (SvStream &rStrm) override
 Derived classes implement saving the object to the passed steam. More...
 

Static Private Member Functions

static const SvGlobalNameGetSectionGuid (SfxOleSectionType eSection)
 Returns the GUID for the specified section. More...
 

Private Attributes

SfxOleSectionMap maSectionMap
 

Additional Inherited Members

- Protected Member Functions inherited from SfxOleObjectBase
void SetError (ErrCode nErrCode)
 Sets the passed error code. More...
 
void LoadObject (SvStream &rStrm, SfxOleObjectBase &rObj)
 Loads the passed object from the stream. More...
 
void SaveObject (SvStream &rStrm, SfxOleObjectBase &rObj)
 Saves the passed object to the stream. More...
 

Detailed Description

Represents a complete property set, may consist of several property sections.

Definition at line 357 of file oleprops.hxx.

Member Typedef Documentation

◆ SfxOleSectionMap

Definition at line 385 of file oleprops.hxx.

Constructor & Destructor Documentation

◆ SfxOlePropertySet()

SfxOlePropertySet::SfxOlePropertySet ( )
inlineexplicit

Definition at line 360 of file oleprops.hxx.

Member Function Documentation

◆ AddSection() [1/2]

SfxOleSection & SfxOlePropertySet::AddSection ( const SvGlobalName rSectionGuid)

Creates and returns the specified section, or just returns it if it already exists.

Definition at line 1142 of file oleprops.cxx.

References GetSection(), GetSectionGuid(), maSectionMap, and SECTION_CUSTOM.

◆ AddSection() [2/2]

SfxOleSection & SfxOlePropertySet::AddSection ( SfxOleSectionType  eSection)

Creates and returns the specified section, or just returns it if it already exists.

Definition at line 1137 of file oleprops.cxx.

References AddSection(), and GetSectionGuid().

Referenced by AddSection(), ImplLoad(), and sfx2::SaveOlePropertySet().

◆ GetSection() [1/2]

SfxOleSectionRef SfxOlePropertySet::GetSection ( const SvGlobalName rSectionGuid) const

Returns the specified section, or an empty reference, if nothing found.

Definition at line 1128 of file oleprops.cxx.

References maSectionMap.

◆ GetSection() [2/2]

SfxOleSectionRef SfxOlePropertySet::GetSection ( SfxOleSectionType  eSection) const

Returns the specified section, or an empty reference, if nothing found.

Definition at line 1123 of file oleprops.cxx.

References GetSection(), and GetSectionGuid().

Referenced by AddSection(), GetSection(), and sfx2::LoadOlePropertySet().

◆ GetSectionGuid()

const SvGlobalName & SfxOlePropertySet::GetSectionGuid ( SfxOleSectionType  eSection)
staticprivate

Returns the GUID for the specified section.

Definition at line 1222 of file oleprops.cxx.

References SAL_WARN, SECTION_BUILTIN, SECTION_CUSTOM, and SECTION_GLOBAL.

Referenced by AddSection(), and GetSection().

◆ ImplLoad()

void SfxOlePropertySet::ImplLoad ( SvStream rStrm)
overrideprivatevirtual

Derived classes implement loading the object from the passed steam.

Implements SfxOleObjectBase.

Definition at line 1155 of file oleprops.cxx.

References AddSection(), checkSeek(), SvStream::good(), SfxOleObjectBase::LoadObject(), nVersion, SvStream::ReadInt32(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), rStrm, SvStream::Seek(), and SvStream::Tell().

◆ ImplSave()

void SfxOlePropertySet::ImplSave ( SvStream rStrm)
overrideprivatevirtual

◆ LoadPropertySet()

ErrCode const & SfxOlePropertySet::LoadPropertySet ( SotStorage pStrg,
const OUString &  rStrmName 
)

◆ SavePropertySet()

ErrCode const & SfxOlePropertySet::SavePropertySet ( SotStorage pStrg,
const OUString &  rStrmName 
)

Member Data Documentation

◆ maSectionMap

SfxOleSectionMap SfxOlePropertySet::maSectionMap
private

Definition at line 386 of file oleprops.hxx.

Referenced by AddSection(), GetSection(), and ImplSave().


The documentation for this class was generated from the following files: