StarItemPoolInternal::State Struct Reference

Internal: the state of a StarItemPool. More...

List of all members.

Public Member Functions

 State (StarObject &document, StarItemPool::Type type)
 constructor
void init (StarItemPool::Type type)
 initialize a pool
void clean ()
 clean the state
void setPoolName (librevenge::RVNGString const &name)
 set the pool name
int isInRange (int which) const
 returns true if the value is in expected range
void addVersionMap (uint16_t nVers, uint16_t nStart, std::vector< int > const &list)
 add a new version map
int getWhich (int nFileWhich) const
 try to return ???
StategetPoolStateFor (int which)
 returns the state corresponding to which
ValuesgetValues (int id, bool create=false)
 returns a pointer to the values data
shared_ptr< StarAttributegetDefaultAttribute (int which)
 try to return a default attribute corresponding to which

Public Attributes

StarObjectm_document
 the document
StarItemPool::Type m_type
 the document type
int m_majorVersion
 the majorVersion
int m_minorVersion
 the minorVersion
int m_loadingVersion
 the loading version
librevenge::RVNGString m_name
 the name
bool m_isSecondaryPool
 a flag to know if a pool is a secondary pool
shared_ptr< StarItemPoolm_secondaryPool
 the secondary pool
int m_currentVersion
 the current version
int m_verStart
 the minimum version
int m_verEnd
 the maximum version
std::vector< Versionm_versionList
 the list of version
std::vector< int > m_idToAttributeList
 list whichId to attribute list
std::map< int, Valuesm_slotIdToValuesMap
 a map slot to the attribute list
std::map< StyleId, StarItemStylem_styleIdToStyleMap
 the set of style
std::map
< librevenge::RVNGString,
librevenge::RVNGString > 
m_simplifyNameToStyleNameMap
 map simplify style name to style name
std::map< int, shared_ptr
< StarAttribute > > 
m_idToDefaultMap
 map of created default attribute
std::vector< shared_ptr
< StarItem > > 
m_delayedItemList
 list of item which need to be read

Private Member Functions

 State (State const &orig)
State operator= (State const &orig)

Detailed Description

Internal: the state of a StarItemPool.


Constructor & Destructor Documentation

constructor

StarItemPoolInternal::State::State ( State const &  orig) [private]

Member Function Documentation

void StarItemPoolInternal::State::addVersionMap ( uint16_t  nVers,
uint16_t  nStart,
std::vector< int > const &  list 
) [inline]

add a new version map

Referenced by init().

clean the state

try to return a default attribute corresponding to which

returns the state corresponding to which

Referenced by getDefaultAttribute().

Values* StarItemPoolInternal::State::getValues ( int  id,
bool  create = false 
) [inline]

returns a pointer to the values data

int StarItemPoolInternal::State::getWhich ( int  nFileWhich) const [inline]

try to return ???

initialize a pool

Referenced by setPoolName(), and State().

int StarItemPoolInternal::State::isInRange ( int  which) const [inline]

returns true if the value is in expected range

State StarItemPoolInternal::State::operator= ( State const &  orig) [private]
void StarItemPoolInternal::State::setPoolName ( librevenge::RVNGString const &  name) [inline]

set the pool name


Member Data Documentation

list of item which need to be read

Referenced by clean().

list whichId to attribute list

Referenced by clean(), getDefaultAttribute(), init(), and StarItemPool::readAttribute().

map of created default attribute

Referenced by clean(), and getDefaultAttribute().

a flag to know if a pool is a secondary pool

the loading version

Referenced by getWhich().

librevenge::RVNGString StarItemPoolInternal::State::m_name

the name

Referenced by setPoolName().

std::map<librevenge::RVNGString, librevenge::RVNGString> StarItemPoolInternal::State::m_simplifyNameToStyleNameMap

map simplify style name to style name

Referenced by clean().

a map slot to the attribute list

Referenced by clean(), and getValues().

the list of version

Referenced by addVersionMap(), clean(), getWhich(), and init().


The documentation for this struct was generated from the following file: