LibreOffice Module sfx2 (master) 1
|
Represents a complete property set, may consist of several property sections. More...
#include <oleprops.hxx>
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... | |
SfxOleSection & | AddSection (SfxOleSectionType eSection) |
Creates and returns the specified section, or just returns it if it already exists. More... | |
SfxOleSection & | AddSection (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, SfxOleSectionRef > | SfxOleSectionMap |
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 SvGlobalName & | GetSectionGuid (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... | |
Represents a complete property set, may consist of several property sections.
Definition at line 357 of file oleprops.hxx.
|
private |
Definition at line 385 of file oleprops.hxx.
|
inlineexplicit |
Definition at line 360 of file oleprops.hxx.
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.
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().
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.
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().
|
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().
|
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().
|
overrideprivatevirtual |
Derived classes implement saving the object to the passed steam.
Implements SfxOleObjectBase.
Definition at line 1190 of file oleprops.cxx.
References maSectionMap, rStrm, SfxOleObjectBase::SaveObject(), section, SvStream::Seek(), SvStream::SeekRel(), STREAM_SEEK_TO_END, SvStream::Tell(), SvStream::WriteInt32(), WriteSvGlobalName(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
ErrCode const & SfxOlePropertySet::LoadPropertySet | ( | SotStorage * | pStrg, |
const OUString & | rStrmName | ||
) |
Loads this object from the passed storage.
Definition at line 1090 of file oleprops.cxx.
References ERRCODE_IO_ACCESSDENIED, ERRCODE_NONE, SfxOleObjectBase::GetError(), tools::SvRef< typename T >::is(), SfxOleObjectBase::Load(), SotStorage::OpenSotStream(), SfxOleObjectBase::SetError(), and STREAM_BUFFER_SIZE.
Referenced by sfx2::LoadOlePropertySet().
ErrCode const & SfxOlePropertySet::SavePropertySet | ( | SotStorage * | pStrg, |
const OUString & | rStrmName | ||
) |
Saves this object to the passed storage.
Definition at line 1108 of file oleprops.cxx.
References ERRCODE_IO_ACCESSDENIED, SfxOleObjectBase::GetError(), tools::SvRef< typename T >::is(), SotStorage::OpenSotStream(), SfxOleObjectBase::Save(), and SfxOleObjectBase::SetError().
Referenced by sfx2::SaveOlePropertySet().
|
private |
Definition at line 386 of file oleprops.hxx.
Referenced by AddSection(), GetSection(), and ImplSave().