Go to the documentation of this file.
38 #ifndef STAR_OBJECT_NUMERICRULER
39 # define STAR_OBJECT_NUMERICRULER
79 std::shared_ptr<STOFFList>
getList(librevenge::RVNGString
const &name)
const;
bool read(StarZone &zone)
try to read a SwNumRules zone
Definition: StarObjectNumericRuler.cxx:110
librevenge::RVNGString getString(std::vector< uint32_t > const &unicode)
transform a unicode string in a RNVGString
Definition: libstaroffice_internal.cxx:63
librevenge::RVNGPropertyList m_propertyList
the propertyList
Definition: STOFFList.hxx:97
std::shared_ptr< StarObjectNumericRulerInternal::State > m_numericRulerState
the state
Definition: StarObjectNumericRuler.hxx:90
static bool readList(StarZone &zone, std::shared_ptr< STOFFList > &list)
try to read a list : '0' or 'R'
Definition: StarObjectNumericRuler.cxx:356
libstoff::DebugFile & ascii()
returns the ascii file
Definition: StarZone.hxx:254
bool getPoolName(int poolId, librevenge::RVNGString &res) const
try to return a pool name
Definition: StarZone.hxx:235
std::shared_ptr< STOFFList > getList(librevenge::RVNGString const &name) const
try to return the list corresponding to a name
Definition: StarObjectNumericRuler.cxx:94
StarObjectNumericRuler(StarObject const &orig, bool duplicateState)
constructor
Definition: StarObjectNumericRuler.cxx:81
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
int isCompatibleWith(int vers) const
checks if the document is compatible with vers
Definition: StarZone.hxx:99
Internal: the structures of a StarObjectNumericRuler.
Definition: StarObjectNumericRuler.cxx:59
librevenge::RVNGString simplifyString(librevenge::RVNGString const &s)
returns a simplify version of a string.
Definition: libstaroffice_internal.cxx:430
State()
constructor
Definition: StarObjectNumericRuler.cxx:65
bool readString(std::vector< uint32_t > &string, int encoding=-1) const
try to read an unicode string
Definition: StarZone.hxx:220
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFFont.hxx:84
std::map< librevenge::RVNGString, std::shared_ptr< STOFFList > > m_simplifyNameToListMap
a map list simpl name to list
Definition: StarObjectNumericRuler.cxx:73
std::string str() const
print the color in the form #rrggbb
Definition: libstaroffice_internal.cxx:226
void closeFlagZone()
close the cflag zone
Definition: StarZone.cxx:618
the class to store a color
Definition: libstaroffice_internal.hxx:189
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libstaroffice_internal.cxx:81
std::map< librevenge::RVNGString, std::shared_ptr< STOFFList > > m_nameToListMap
a map list name to list
Definition: StarObjectNumericRuler.cxx:71
bool readBitmap(StarZone &zone, bool inFileHeader, long lastPos, librevenge::RVNGBinaryData &data, std::string &type)
low level
Definition: StarBitmap.cxx:214
the main class to read/.
Definition: StarBitmap.hxx:62
class to store an state: ie.
Definition: StarState.hxx:67
small structure to keep information about a list level
Definition: STOFFList.hxx:48
static std::string str()
Definition: STOFFDebug.hxx:203
std::shared_ptr< STOFFFont > m_font
the font
Definition: STOFFList.hxx:99
static bool convert(std::vector< uint8_t > const &src, Encoding encoding, std::vector< uint32_t > &dest, std::vector< size_t > &srcPositions)
try to convert a list of character and transforms it a unicode's list
Definition: StarEncoding.cxx:61
Definition: STOFFList.hxx:50
bool closeSWRecord(char type, std::string const &debugName)
try to close a record
Definition: StarZone.hxx:177
Type m_type
the type of the level
Definition: STOFFList.hxx:95
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
int m_startValue
the actual value (if this is an ordered level )
Definition: STOFFList.hxx:101
a zone in a StarOffice file
Definition: StarZone.hxx:56
int getRecordLevel() const
returns the record level
Definition: StarZone.hxx:195
an object corresponding to an OLE directory
Definition: StarObject.hxx:64
static bool readLevel(StarZone &zone, STOFFListLevel &level)
try to read a number format zone : 'n'
Definition: StarObjectNumericRuler.cxx:209
Definition: StarEncoding.hxx:56
static Encoding getEncodingForId(int id)
return an encoding corresponding to an id
Definition: StarEncoding.cxx:73
Definition: STOFFDebug.hxx:194
Definition: STOFFList.hxx:50
bool readSWHeader()
read the zone header present in a SW file
Definition: StarZone.cxx:190
Definition: STOFFList.hxx:50
Class to store font.
Definition: STOFFFont.hxx:43
the main class to read a SwNumRules zone
Definition: StarObjectNumericRuler.hxx:63
~StarObjectNumericRuler() override
destructor
Definition: StarObjectNumericRuler.cxx:87
static void addPos(long)
Definition: STOFFDebug.hxx:223
static bool readAttributeLevel(StarZone &zone, int vers, long lastPos, STOFFListLevel &level)
try to read a attribute format : ATTR_EE_PARA_BULLET
Definition: StarObjectNumericRuler.cxx:445
bool readStringsPool()
try to read a pool of strings
Definition: StarZone.cxx:103
Internal: the state of a StarObjectNumericRuler.
Definition: StarObjectNumericRuler.cxx:63
a small structure used to store the informations about a list
Definition: STOFFList.hxx:105
Definition: STOFFDebug.hxx:210
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
StarObjectNumericRuler & operator=(StarObjectNumericRuler const &orig)=delete
STOFFInputStreamPtr input()
return the zone input
Definition: StarZone.hxx:247
bool isBlack() const
return true if the color is black
Definition: libstaroffice_internal.hxx:277
unsigned char openFlagZone()
try to open a cflag zone
Definition: StarZone.cxx:611
long getRecordLastPosition() const
returns the actual record last position
Definition: StarZone.hxx:200
bool openSWRecord(char &type)
try to open a SW record: type + size (24 bytes)
Definition: StarZone.cxx:507
Generated on Mon Jan 20 2020 23:02:17 for libstaroffice by
doxygen 1.8.16