the main class to read/. More...
#include <StarItemPool.hxx>
Public Types | |
enum | Type { T_ChartPool, T_EditEnginePool, T_SpreadsheetPool, T_VCControlPool, T_WriterPool, T_XOutdevPool, T_Unknown } |
the known item pool More... | |
Public Member Functions | |
StarItemPool (StarObject &document, Type type) | |
constructor More... | |
virtual | ~StarItemPool () |
destructor More... | |
void | clean () |
clean the pool's list of attributes, ... More... | |
void | addSecondaryPool (std::shared_ptr< StarItemPool > secondary) |
add a secondary pool More... | |
bool | isSecondaryPool () const |
returns true if a pool is a secondary pool More... | |
bool | read (StarZone &zone) |
try to read a "ItemPool" zone More... | |
int | getVersion () const |
returns the pool version More... | |
Type | getType () const |
returns the pool type More... | |
bool | isInside () const |
returns true if we are reading the pool More... | |
bool | readStyles (StarZone &zone, StarObject &doc) |
try to read the styles, ie a "StyleItemPool" zone More... | |
void | updateStyles () |
try to update the style More... | |
void | updateUsingStyles (StarItemSet &itemSet) const |
update a itemset by adding attribute corresponding to its styles More... | |
void | defineGraphicStyle (STOFFListenerPtr &listener, librevenge::RVNGString const &styleName, StarObject &object) const |
define a graphic style More... | |
void | defineParagraphStyle (STOFFListenerPtr &listener, librevenge::RVNGString const &styleName, StarObject &object) const |
define a paragraph style More... | |
StarItemStyle const * | findStyleWithFamily (librevenge::RVNGString const &style, int family) const |
try to find a style with a name and a family style More... | |
std::shared_ptr< StarAttribute > | readAttribute (StarZone &zone, int which, int vers, long endPos) |
try to read an attribute More... | |
std::shared_ptr< StarItem > | readItem (StarZone &zone, bool isDirect, long endPos) |
read a item More... | |
std::shared_ptr< StarItem > | loadSurrogate (StarZone &zone, uint16_t &nWhich, bool localId, libstoff::DebugStream &f) |
try to load a surrogate More... | |
bool | loadSurrogate (StarItem &item) |
try to load a surrogate More... | |
void | setRelativeUnit (double relUnit) |
set the item pool relative unit (if this is different to the default one) More... | |
double | getRelativeUnit () const |
returns the set relative unit if this is set, or the default unit corresponding to this pool More... | |
Protected Member Functions | |
void | defineGraphicStyle (STOFFListenerPtr listener, librevenge::RVNGString const &styleName, StarObject &object, std::set< librevenge::RVNGString > &done) const |
define a graphic style More... | |
void | defineParagraphStyle (STOFFListenerPtr listener, librevenge::RVNGString const &styleName, StarObject &object, std::set< librevenge::RVNGString > &done) const |
define a paragraph style More... | |
bool | readV1 (StarZone &zone, StarItemPool *master) |
try to read a "ItemPool" zone (version 1) More... | |
bool | readV2 (StarZone &zone, StarItemPool *master) |
try to read a "ItemPool" zone (version 2) More... | |
std::shared_ptr< StarItem > | createItem (int which, int surrogateId, bool localId) |
create an item for futher reading More... | |
Private Attributes | |
bool | m_isInside |
true if the pool is open More... | |
std::shared_ptr< StarItemPoolInternal::State > | m_state |
the state More... | |
Friends | |
struct | StarItemPoolInternal::State |
the main class to read/.
. some basic StarOffice SfxItemItemPool itemPools
enum StarItemPool::Type |
StarItemPool::StarItemPool | ( | StarObject & | document, |
StarItemPool::Type | type | ||
) |
constructor
|
virtual |
destructor
void StarItemPool::addSecondaryPool | ( | std::shared_ptr< StarItemPool > | secondary | ) |
add a secondary pool
void StarItemPool::clean | ( | ) |
clean the pool's list of attributes, ...
|
protected |
create an item for futher reading
Referenced by loadSurrogate().
|
inline |
define a graphic style
Referenced by defineGraphicStyle().
|
protected |
define a graphic style
|
inline |
define a paragraph style
Referenced by defineParagraphStyle().
|
protected |
define a paragraph style
StarItemStyle const * StarItemPool::findStyleWithFamily | ( | librevenge::RVNGString const & | style, |
int | family | ||
) | const |
try to find a style with a name and a family style
Referenced by defineGraphicStyle(), defineParagraphStyle(), and updateUsingStyles().
double StarItemPool::getRelativeUnit | ( | ) | const |
returns the set relative unit if this is set, or the default unit corresponding to this pool
StarItemPool::Type StarItemPool::getType | ( | ) | const |
returns the pool type
int StarItemPool::getVersion | ( | ) | const |
returns the pool version
|
inline |
returns true if we are reading the pool
Referenced by loadSurrogate().
bool StarItemPool::isSecondaryPool | ( | ) | const |
returns true if a pool is a secondary pool
std::shared_ptr< StarItem > StarItemPool::loadSurrogate | ( | StarZone & | zone, |
uint16_t & | nWhich, | ||
bool | localId, | ||
libstoff::DebugStream & | f | ||
) |
try to load a surrogate
Referenced by read(), and readItem().
bool StarItemPool::loadSurrogate | ( | StarItem & | item | ) |
try to load a surrogate
bool StarItemPool::read | ( | StarZone & | zone | ) |
try to read a "ItemPool" zone
std::shared_ptr< StarAttribute > StarItemPool::readAttribute | ( | StarZone & | zone, |
int | which, | ||
int | vers, | ||
long | endPos | ||
) |
try to read an attribute
Referenced by readItem(), readV1(), and readV2().
read a item
Referenced by StarObject::readItemSet().
bool StarItemPool::readStyles | ( | StarZone & | zone, |
StarObject & | doc | ||
) |
try to read the styles, ie a "StyleItemPool" zone
|
protected |
try to read a "ItemPool" zone (version 1)
|
protected |
try to read a "ItemPool" zone (version 2)
void StarItemPool::setRelativeUnit | ( | double | relUnit | ) |
set the item pool relative unit (if this is different to the default one)
void StarItemPool::updateStyles | ( | ) |
try to update the style
void StarItemPool::updateUsingStyles | ( | StarItemSet & | itemSet | ) | const |
update a itemset by adding attribute corresponding to its styles
|
friend |
|
private |
true if the pool is open
Referenced by isInside(), and read().
|
private |
the state
Referenced by addSecondaryPool(), clean(), createItem(), findStyleWithFamily(), getRelativeUnit(), getType(), getVersion(), isSecondaryPool(), loadSurrogate(), read(), readAttribute(), readItem(), readStyles(), readV1(), readV2(), setRelativeUnit(), and updateStyles().