Go to the documentation of this file.
38 #ifndef STAR_OBJECT_TEXT
39 # define STAR_OBJECT_TEXT
112 bool updatePageSpans(std::vector<STOFFPageSpan> &pageSpan,
int &numPages);
void inventoryPages(StarState &state) const
try to inventory the different pages
Definition: StarObjectText.cxx:129
bool m_softHyphen
soft hyphen
Definition: STOFFFont.hxx:90
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:487
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFGraphicStyle.hxx:66
StarObjectText & operator=(StarObjectText const &orig)=delete
the main class to read/.
Definition: StarFileManager.hxx:61
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
static bool readList(StarZone &zone, std::vector< Macro > ¯oLis)
try to read a list of macro: 'M'
Definition: StarWriterStruct.cxx:495
std::shared_ptr< StarObjectModel > m_model
the drawing model
Definition: StarObjectText.cxx:734
Zone()
constructor
Definition: StarObjectText.hxx:53
word processing file
Definition: STOFFDocument.hxx:75
STOFFGraphicStyle m_graphic
the graphic style
Definition: StarState.hxx:177
bool readDrawingLayer(STOFFInputStreamPtr input, std::string const &fileName)
the drawing layers ?
Definition: StarObjectText.cxx:1616
a field
Definition: libstaroffice_internal.hxx:363
bool readWriterDocument(STOFFInputStreamPtr input, std::string const &fileName)
the main zone
Definition: StarObjectText.cxx:1710
static bool readOLEDirectory(std::shared_ptr< STOFFOLEParser > oleParser, std::shared_ptr< STOFFOLEParser::OleDirectory > ole, STOFFEmbeddedObject &image, std::shared_ptr< StarObject > &object)
try to read a Ole directory
Definition: StarFileManager.cxx:301
basic class to store an entry in a file This contained :
Definition: STOFFEntry.hxx:46
librevenge::RVNGString getString(std::vector< uint32_t > const &unicode)
transform a unicode string in a RNVGString
Definition: libstaroffice_internal.cxx:63
int m_break
a page/column break: 1=columnBefore, 2=columnAfter, 3=columnBoth, 4=pageBefore, 5=pageAfter,...
Definition: StarState.hxx:170
static bool readList(StarZone &zone, std::vector< Bookmark > &markList)
try to read a list of bookmark
Definition: StarWriterStruct.cxx:207
static bool readList(StarZone &zone, std::shared_ptr< STOFFList > &list)
try to read a list : '0' or 'R'
Definition: StarObjectNumericRuler.cxx:356
std::shared_ptr< SWFieldManagerInternal::Field > readField(StarZone &zone, char cKind='_')
try to read a field type
Definition: SWFieldManager.cxx:1025
bool read(StarZone &zone)
try to read a mark
Definition: StarWriterStruct.cxx:540
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
void inventoryPage(StarState &state) const final
try to inventory the different pages
Definition: StarObjectText.cxx:366
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
STOFFListLevel m_listLevel
the actual level
Definition: STOFFParagraph.hxx:85
virtual bool send(STOFFListenerPtr &listener, StarState &state) const =0
try to send the data to a listener
STOFFFrameStyle m_frame
the frame style
Definition: StarState.hxx:175
int isCompatibleWith(int vers) const
checks if the document is compatible with vers
Definition: StarZone.hxx:99
Class to store a polygon.
Definition: StarGraphicStruct.hxx:122
OLEZone()
constructor
Definition: StarObjectText.cxx:220
StarState & m_state
the state
Definition: StarObjectText.cxx:104
bool readSWGraphNode(StarZone &zone, std::shared_ptr< StarObjectTextInternal::GraphZone > &graphZone)
try to read a OLE node : 'g'
Definition: StarObjectText.cxx:1088
~Content()
destructor
Definition: StarObjectText.cxx:125
static bool readList(StarZone &zone, std::vector< Attribute > &attributeList, StarObject &object)
try to read a list of attribute: 'S'
Definition: StarWriterStruct.cxx:107
Definition: StarItem.hxx:120
structure to store a databaseName in a text zone
Definition: StarWriterStruct.hxx:119
bool parse()
Definition: StarObjectText.cxx:819
std::vector< StarWriterStruct::Attribute > m_charAttributeList
the character item list
Definition: StarObjectText.cxx:357
const StarObjectTextInternal::Content & m_content
the content
Definition: StarObjectText.cxx:102
std::string printChild() const
debug function to print the child field
Definition: StarItem.cxx:52
abstract class used to store a subdocument (with a comparison function)
Definition: STOFFSubDocument.hxx:41
bool read(StarZone &zone)
try to read a databaseName: 'D'
Definition: StarWriterStruct.cxx:255
GraphZone(std::shared_ptr< STOFFOLEParser > &oleParser)
constructor
Definition: StarObjectText.cxx:176
bool read(StarZone &zone)
try to read a docStats: 'd'
Definition: StarWriterStruct.cxx:415
librevenge::RVNGString m_sectionName
the section name
Definition: StarObjectText.hxx:81
void cleanPools()
clean each pool
Definition: StarObject.cxx:106
bool m_content
flag to know if this is a content zone
Definition: StarState.hxx:184
static bool readSWImageMap(StarZone &zone)
try to read a image map zone : 'X'
Definition: StarObjectText.cxx:1205
the main class to read a SwPageStyleSheets zone
Definition: StarObjectPageStyle.hxx:62
bool read(StarZone &zone)
try to read a printData: '8'
Definition: StarWriterStruct.cxx:719
Internal: a graphZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:174
Internal: a textZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:330
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
bool read(StarZone &zone)
try to read a noteInfo
Definition: StarWriterStruct.cxx:612
std::shared_ptr< SWFieldManagerInternal::Field > m_field
the field
Definition: StarState.hxx:196
std::shared_ptr< StarItemPool > getNewItemPool(StarItemPool::Type type)
returns a new item pool for this document
Definition: StarObject.cxx:142
std::shared_ptr< STOFFOLEParser > m_oleParser
the ole parser
Definition: StarObjectText.cxx:234
std::shared_ptr< STOFFList > m_list
the list (if defined)
Definition: StarObjectText.cxx:361
bool readString(std::vector< uint32_t > &string, int encoding=-1) const
try to read an unicode string
Definition: StarZone.hxx:220
int m_level
the level -1=none, 200: keep in list with no bullet
Definition: StarObjectText.cxx:355
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFFont.cxx:81
int m_listLevelIndex
the actual level index
Definition: STOFFParagraph.hxx:79
bool m_bulletVisible
flag to know if the bullet is visible
Definition: STOFFParagraph.hxx:77
bool readSWSection(StarZone &zone, std::shared_ptr< StarObjectTextInternal::SectionZone > §ion)
try to read a section : 'I'
Definition: StarObjectText.cxx:1366
librevenge::RVNGString m_styleName
the style name
Definition: StarObjectText.cxx:353
std::shared_ptr< Content > m_mainContent
the main content
Definition: StarObjectText.cxx:726
void closeFlagZone()
close the cflag zone
Definition: StarZone.cxx:618
std::shared_ptr< StarTable > m_table
the table
Definition: StarObjectText.cxx:661
Internal: a set of zone.
Definition: StarObjectText.hxx:67
std::shared_ptr< StarObjectPageStyle > m_pageStyle
the page style
Definition: StarObjectText.cxx:732
librevenge::RVNGString m_condition
the section condition
Definition: StarObjectText.cxx:300
std::shared_ptr< StarFormatManagerInternal::FormatDef > m_format
the format
Definition: StarObjectText.cxx:155
bool readSWOLENode(StarZone &zone, std::shared_ptr< StarObjectTextInternal::OLEZone > &ole)
try to read a OLE node : 'O'
Definition: StarObjectText.cxx:1317
~SubDocument() final
destructor
Definition: StarObjectText.cxx:85
int m_anchorIndex
the anchor index: used to relate to find the character related to at_char
Definition: STOFFFrameStyle.hxx:75
Definition: StarItemPool.hxx:75
class to store an state: ie.
Definition: StarState.hxx:67
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:237
Table()
constructor
Definition: StarObjectText.cxx:653
std::shared_ptr< StarFormatManagerInternal::FormatDef > m_format
the format
Definition: StarObjectText.cxx:308
bool readSWJobSetUp(StarZone &zone)
try to read a SW zone setup : 'J'
Definition: StarObjectText.cxx:1289
StarItemSet m_itemSet
the item list
Definition: StarItem.hxx:140
the main class to read a StarOffice sdw file
Definition: StarObjectText.hxx:100
bool readSWTextZone(StarZone &zone, std::shared_ptr< StarObjectTextInternal::TextZone > &textZone)
try to read some content : 'T'
Definition: StarObjectText.cxx:1445
the main class to read a SdrModel zone
Definition: StarObjectModel.hxx:64
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
Internal: the subdocument of a StarObjectSpreadsheet.
Definition: StarObjectText.cxx:78
static void reset()
Definition: STOFFDebug.hxx:228
static std::string str()
Definition: STOFFDebug.hxx:203
bool read(StarZone &zone, StarObject &object)
try to read a attribute: 'A'
Definition: StarWriterStruct.cxx:57
std::vector< std::shared_ptr< StarFormatManagerInternal::FormatDef > > m_formatList
the format
Definition: StarObjectText.cxx:359
librevenge::RVNGString m_styleName
the style name
Definition: StarState.hxx:167
bool operator!=(STOFFSubDocument const &doc) const final
operator!=
Definition: StarObjectText.cxx:88
structure to store a endnoteInfo or a footnoteInfo in a text zone
Definition: StarWriterStruct.hxx:296
static bool readEmbeddedPicture(std::shared_ptr< STOFFOLEParser > oleParser, std::string const &fileName, STOFFEmbeddedObject &image)
try to read a embedded picture file: Embedded/PicXXXXXX
Definition: StarFileManager.cxx:547
std::shared_ptr< STOFFOLEParser > m_oleParser
the ole parser
Definition: StarObjectText.cxx:186
bool updatePageSpans(std::vector< STOFFPageSpan > &pageSpan, int &numPages)
try to update the page span (to create draw document)
Definition: StarObjectText.cxx:756
int m_numGraphicPages
the graphic number of pages
Definition: StarObjectText.cxx:724
Definition: STOFFListener.hxx:59
~StarObjectText() final
destructor
Definition: StarObjectText.cxx:748
Internal: a sectionZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:282
bool closeSWRecord(char type, std::string const &debugName)
try to close a record
Definition: StarZone.hxx:177
bool m_footnote
flag to know if this is a footnote
Definition: StarState.hxx:188
bool readSfxStyleSheets(STOFFInputStreamPtr input, std::string const &fileName)
try to read a text style zone: SfxStyleSheets
Definition: StarObjectText.cxx:902
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: libstaroffice_internal.hxx:371
int m_type
the section type
Definition: StarObjectText.cxx:304
Internal: a OLEZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:218
bool m_outline
flag to know if this is a outline level
Definition: STOFFParagraph.hxx:75
std::shared_ptr< StarFormatManager > getFormatManager()
returns the format manager
Definition: StarObject.cxx:125
SubDocumentType
Definition: libstaroffice_internal.hxx:185
std::vector< size_t > m_textSourcePosition
the text initial position
Definition: StarObjectText.cxx:351
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:158
int m_outlineLevel
the outline level
Definition: StarItem.hxx:144
the main class to read/.
Definition: SWFieldManager.hxx:109
std::vector< uint32_t > m_text
the text
Definition: StarObjectText.cxx:349
bool send(STOFFListenerPtr &listener, StarState &state, bool isFlyer=false) const
try to send the data to a listener
Definition: StarObjectText.cxx:677
a zone in a StarOffice file
Definition: StarZone.hxx:56
Definition: StarItemPool.hxx:75
int getRecordLevel() const
returns the record level
Definition: StarZone.hxx:195
structure to store a mark in a text zone
Definition: StarWriterStruct.hxx:250
an object corresponding to an OLE directory
Definition: StarObject.hxx:64
Internal: a table of StarObjectTextInteral.
Definition: StarObjectText.cxx:651
int m_listId
the list id (if know )
Definition: STOFFParagraph.hxx:81
virtual ~Zone()
destructor
Definition: StarObjectText.cxx:121
Internal: a formatZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:145
int m_pageSpan
the number of page
Definition: STOFFPageSpan.hxx:104
int m_flags
the section flag
Definition: StarObjectText.cxx:306
State()
constructor
Definition: StarObjectText.cxx:711
STOFFFont m_font
the font
Definition: StarState.hxx:182
Definition: STOFFDebug.hxx:194
std::shared_ptr< StarItemPool > findItemPool(StarItemPool::Type type, bool isInside)
check if a pool corresponding to a given type is opened if so returned it.
Definition: StarObject.cxx:159
bool sendPages(STOFFTextListenerPtr &listener)
try to send the different page
Definition: StarObjectText.cxx:782
bool read(StarZone &zone)
try to read a nodeRedline
Definition: StarWriterStruct.cxx:575
bool readSWHeader()
read the zone header present in a SW file
Definition: StarZone.cxx:190
std::vector< std::shared_ptr< Zone > > m_zoneList
the list of text zone
Definition: StarObjectText.hxx:83
Class to store font.
Definition: STOFFFont.hxx:43
const char * getPassword() const
returns the document password (the password given by the user)
Definition: StarObject.hxx:81
std::vector< std::shared_ptr< StarFormatManagerInternal::FormatDef > > m_flyList
the list of fly zone
Definition: StarObjectText.cxx:728
bool m_flyCnt
flag to know if this is a flyCnt
Definition: StarState.hxx:186
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:195
class to store a table in a sdw file
Definition: StarTable.hxx:57
SubDocument & operator=(SubDocument const &)
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
Definition: StarItemPool.hxx:75
brief class used to stored the style
Definition: StarItem.hxx:115
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:664
the main class to read a SwNumRules zone
Definition: StarObjectNumericRuler.hxx:63
void reinitializeLineData()
reinit the local data: break, font, content, footnote, ...
Definition: StarState.cxx:92
static bool readListList(StarZone &zone, std::vector< std::vector< Redline > > &redlineListList)
try to read a list of list of redline : V
Definition: StarWriterStruct.cxx:829
std::vector< StarWriterStruct::Mark > m_markList
the mark
Definition: StarObjectText.cxx:363
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:401
StarGraphicStruct::StarPolygon m_contour
the contour(useme)
Definition: StarObjectText.cxx:192
STOFFDocument::Kind getDocumentKind() const
returns the document kind
Definition: StarObject.cxx:115
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:313
bool parse()
try to parse data
Definition: StarObject.cxx:170
Internal: the structures of a StarObjectText.
Definition: StarObjectText.cxx:74
std::shared_ptr< STOFFOLEParser > m_oleParser
the ole parser
Definition: StarObject.hxx:143
librevenge::RVNGString m_names[3]
the graph name, the fltName, the replace text
Definition: StarObjectText.cxx:188
bool m_hardBlank
hard blank
Definition: STOFFFont.hxx:92
a structure to keep a point and a flag
Definition: StarGraphicStruct.hxx:126
static bool readList(StarZone &zone, std::vector< TOX > &toxList, StarObject &object)
try to read a list of TOX
Definition: StarWriterStruct.cxx:1008
static bool readJobSetUp(StarZone &zone, bool usePrinterLen)
try to read a printer zone
Definition: StarFileManager.cxx:848
static void addPos(long)
Definition: STOFFDebug.hxx:223
std::shared_ptr< StarObjectTextInternal::State > m_textState
the state
Definition: StarObjectText.hxx:150
librevenge::RVNGString m_name
the section name
Definition: StarObjectText.cxx:298
bool readStringsPool()
try to read a pool of strings
Definition: StarZone.cxx:103
librevenge::RVNGString m_linkName
the section link name
Definition: StarObjectText.cxx:302
StarObjectText(StarObject const &orig, bool duplicateState)
constructor
Definition: StarObjectText.cxx:742
std::string m_HRef
the href field
Definition: libstaroffice_internal.hxx:385
structure to parse a layout in a text zone (very incomplete)
Definition: StarLayout.hxx:50
STOFFParagraph m_paragraph
the paragraph style
Definition: StarState.hxx:180
Definition: STOFFListener.hxx:59
TextZone()
constructor
Definition: StarObjectText.cxx:332
std::shared_ptr< GlobalState > m_global
global state
Definition: StarState.hxx:165
Definition: STOFFDebug.hxx:210
SectionZone()
constructor
Definition: StarObjectText.cxx:284
std::shared_ptr< STOFFOLEParser::OleDirectory > getOLEDirectory()
returns the object directory
Definition: StarObject.hxx:86
virtual void inventoryPage(StarState &) const
try to inventory the different pages
Definition: StarObjectText.hxx:61
std::map< int, std::shared_ptr< StarItem > > m_whichToItemMap
the list of item
Definition: StarItem.hxx:111
the doc statistic
Definition: StarWriterStruct.hxx:330
Internal: a basic sone of StarObjectTextInternal.
Definition: StarObjectText.hxx:51
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
std::vector< StarWriterStruct::Attribute > m_attributeList
the attributes list
Definition: StarObjectText.cxx:190
std::shared_ptr< StarObjectNumericRuler > m_numericRuler
the numeric ruler
Definition: StarObjectText.cxx:730
bool read(StarZone &zone, StarObject &object)
try to read a layout: 'U'
Definition: StarLayout.cxx:81
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFFrameStyle.cxx:79
Definition: STOFFListener.hxx:59
librevenge::RVNGString m_refMark
the ref mark
Definition: StarState.hxx:194
STOFFInputStreamPtr input()
return the zone input
Definition: StarZone.hxx:247
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:763
static bool open(std::string const &)
Definition: STOFFDebug.hxx:218
std::shared_ptr< STOFFTextListener > STOFFTextListenerPtr
a smart pointer of STOFFTextListener
Definition: libstaroffice_internal.hxx:497
a link
Definition: libstaroffice_internal.hxx:375
librevenge::RVNGString m_link
the link url
Definition: StarState.hxx:192
std::shared_ptr< Content > m_content
the content
Definition: StarObjectText.cxx:310
unsigned char openFlagZone()
try to open a cflag zone
Definition: StarZone.cxx:611
struct use an attribute and a position
Definition: StarWriterStruct.hxx:61
Definition: StarItemPool.hxx:75
structure to store a nodeRedline in a text zone
Definition: StarWriterStruct.hxx:273
SubDocument(StarObjectTextInternal::Content const &content, StarState &state)
Definition: StarObjectText.cxx:81
long getRecordLastPosition() const
returns the actual record last position
Definition: StarZone.hxx:200
static bool readList(StarZone &zone, std::vector< TOX51 > &toxList, StarObject &object)
try to read a list of TOX51
Definition: StarWriterStruct.cxx:1160
Internal: the state of a StarObjectText.
Definition: StarObjectText.cxx:709
FormatZone(std::shared_ptr< StarFormatManagerInternal::FormatDef > &format)
constructor
Definition: StarObjectText.cxx:147
librevenge::RVNGString m_replaceText
the replacement text
Definition: StarObjectText.cxx:232
int getNumPoolNames() const
return the number of pool name
Definition: StarZone.hxx:230
librevenge::RVNGString m_name
the OLE name
Definition: StarObjectText.cxx:230
Content()
constructor
Definition: StarObjectText.hxx:69
bool readSWContent(StarZone &zone, std::shared_ptr< StarObjectTextInternal::Content > &content)
try to read some content : 'N'
Definition: StarObjectText.cxx:958
int m_numPages
the number of pages
Definition: StarObjectText.cxx:722
structure to store a dictionary in a text zone
Definition: StarWriterStruct.hxx:161
bool openSWRecord(char &type)
try to open a SW record: type + size (24 bytes)
Definition: StarZone.cxx:507
long getFlagLastPosition() const
returns the flag last position
Definition: StarZone.hxx:214
bool isEmpty() const
return true if the picture contains no data
Definition: libstaroffice_internal.hxx:422
bool read(StarZone &zone)
try to read a dictionary: 'j'
Definition: StarWriterStruct.cxx:363
void parse(STOFFListenerPtr &listener, libstoff::SubDocumentType type) final
the parser function
Definition: StarObjectText.cxx:110
the doc statistic
Definition: StarWriterStruct.hxx:206
Generated on Mon Jan 20 2020 23:02:17 for libstaroffice by
doxygen 1.8.16