38#ifndef STAR_ITEM_POOL_HXX
39# define STAR_ITEM_POOL_HXX
109 std::set<librevenge::RVNGString> done;
115 std::set<librevenge::RVNGString> done;
123 std::shared_ptr<StarItem>
readItem(
StarZone &zone,
bool isDirect,
long endPos);
143 std::shared_ptr<StarItem>
createItem(
int which,
int surrogateId,
bool localId);
152 std::shared_ptr<StarItemPoolInternal::State>
m_state;
virtual class used to store the different attribute
Definition StarAttribute.hxx:63
the main class to read/.
Definition StarItemPool.hxx:71
void updateStyles()
try to update the style
Definition StarItemPool.cxx:2069
void addSecondaryPool(std::shared_ptr< StarItemPool > secondary)
add a secondary pool
Definition StarItemPool.cxx:934
void setRelativeUnit(double relUnit)
set the item pool relative unit (if this is different to the default one)
Definition StarItemPool.cxx:913
std::shared_ptr< StarItemPoolInternal::State > m_state
the state
Definition StarItemPool.hxx:152
void updateUsingStyles(StarItemSet &itemSet) const
update a itemset by adding attribute corresponding to its styles
Definition StarItemPool.cxx:2239
std::shared_ptr< StarItem > createItem(int which, int surrogateId, bool localId)
create an item for futher reading
Definition StarItemPool.cxx:957
std::shared_ptr< StarItem > readItem(StarZone &zone, bool isDirect, long endPos)
read a item
Definition StarItemPool.cxx:1041
Type getType() const
returns the pool type
Definition StarItemPool.cxx:952
void clean()
clean the pool's list of attributes, ...
Definition StarItemPool.cxx:924
virtual ~StarItemPool()
destructor
Definition StarItemPool.cxx:909
double getRelativeUnit() const
returns the set relative unit if this is set, or the default unit corresponding to this pool
Definition StarItemPool.cxx:918
Type
the known item pool
Definition StarItemPool.hxx:75
@ T_WriterPool
Definition StarItemPool.hxx:75
@ T_XOutdevPool
Definition StarItemPool.hxx:75
@ T_VCControlPool
Definition StarItemPool.hxx:75
@ T_SpreadsheetPool
Definition StarItemPool.hxx:75
@ T_EditEnginePool
Definition StarItemPool.hxx:75
@ T_ChartPool
Definition StarItemPool.hxx:75
@ T_Unknown
Definition StarItemPool.hxx:75
bool isInside() const
returns true if we are reading the pool
Definition StarItemPool.hxx:94
StarItemStyle const * findStyleWithFamily(librevenge::RVNGString const &style, int family) const
try to find a style with a name and a family style
Definition StarItemPool.cxx:2141
int getVersion() const
returns the pool version
Definition StarItemPool.cxx:947
std::shared_ptr< StarItem > loadSurrogate(StarZone &zone, uint16_t &nWhich, bool localId, libstoff::DebugStream &f)
try to load a surrogate
Definition StarItemPool.cxx:1162
void defineParagraphStyle(STOFFListenerPtr &listener, librevenge::RVNGString const &styleName, StarObject &object) const
define a paragraph style
Definition StarItemPool.hxx:113
bool m_isInside
true if the pool is open
Definition StarItemPool.hxx:150
bool readV1(StarZone &zone, StarItemPool *master)
try to read a "ItemPool" zone (version 1)
Definition StarItemPool.cxx:1468
bool read(StarZone &zone)
try to read a "ItemPool" zone
Definition StarItemPool.cxx:992
StarItemPool(StarObject &document, Type type)
constructor
Definition StarItemPool.cxx:903
std::shared_ptr< StarAttribute > readAttribute(StarZone &zone, int which, int vers, long endPos)
try to read an attribute
Definition StarItemPool.cxx:966
bool isSecondaryPool() const
returns true if a pool is a secondary pool
Definition StarItemPool.cxx:929
bool readStyles(StarZone &zone, StarObject &doc)
try to read the styles, ie a "StyleItemPool" zone
Definition StarItemPool.cxx:1795
bool readV2(StarZone &zone, StarItemPool *master)
try to read a "ItemPool" zone (version 2)
Definition StarItemPool.cxx:1211
void defineGraphicStyle(STOFFListenerPtr &listener, librevenge::RVNGString const &styleName, StarObject &object) const
define a graphic style
Definition StarItemPool.hxx:107
class to store a list of item
Definition StarItem.hxx:88
brief class used to stored the style
Definition StarItem.hxx:116
class to store an item: ie.
Definition StarItem.hxx:54
an object corresponding to an OLE directory
Definition StarObject.hxx:65
a zone in a StarOffice file
Definition StarZone.hxx:57
Definition STOFFDebug.hxx:195
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition libstaroffice_internal.hxx:491
Internal: the structures of a StarItemPool.
Definition StarItemPool.cxx:57
Internal: the state of a StarItemPool.
Definition StarItemPool.cxx:354