StarObjectText.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3 /* libstaroffice
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33
34 /*
35 * Parser to convert a text zone/OLE in a StarOffice document
36 *
37 */
38 #ifndef STAR_OBJECT_TEXT
39 # define STAR_OBJECT_TEXT
40
41 #include <vector>
42
43 #include "libstaroffice_internal.hxx"
44 #include "StarObject.hxx"
45
46 class StarState;
47
48 namespace StarObjectTextInternal
49 {
51 struct Zone {
53 Zone()
54 {
55 }
57 virtual ~Zone();
59 virtual bool send(STOFFListenerPtr &listener, StarState &state) const=0;
61 virtual void inventoryPage(StarState &/*state*/) const
62 {
63 }
64 };
65
67 struct Content {
69 Content()
70 : m_sectionName("")
71 , m_zoneList()
72 {
73 }
75 ~Content();
77 bool send(STOFFListenerPtr &listener, StarState &state, bool isFlyer=false) const;
79 void inventoryPages(StarState &state) const;
81 librevenge::RVNGString m_sectionName;
83 std::vector<std::shared_ptr<Zone> > m_zoneList;
84 };
85
86 struct GraphZone;
87 struct OLEZone;
88 struct SectionZone;
89 struct TextZone;
90 struct State;
91 }
92
93 class StarZone;
94
100 class StarObjectText final : public StarObject
101 {
102 public:
104 StarObjectText(StarObject const &orig, bool duplicateState);
106 ~StarObjectText() final;
107
108 // try to parse all zone
109 bool parse();
110
112 bool updatePageSpans(std::vector<STOFFPageSpan> &pageSpan, int &numPages);
114 bool sendPages(STOFFTextListenerPtr &listener);
115
117 static bool readSWImageMap(StarZone &zone);
118
120 bool readSWContent(StarZone &zone, std::shared_ptr<StarObjectTextInternal::Content> &content);
121 protected:
122 //
123 // low level
124 //
125
127 bool readSfxStyleSheets(STOFFInputStreamPtr input, std::string const &fileName);
129 bool readWriterDocument(STOFFInputStreamPtr input, std::string const &fileName);
130
132 bool readDrawingLayer(STOFFInputStreamPtr input, std::string const &fileName);
133
134 protected:
136 bool readSWGraphNode(StarZone &zone, std::shared_ptr<StarObjectTextInternal::GraphZone> &graphZone);
138 bool readSWJobSetUp(StarZone &zone);
140 bool readSWOLENode(StarZone &zone, std::shared_ptr<StarObjectTextInternal::OLEZone> &ole);
142 bool readSWSection(StarZone &zone, std::shared_ptr<StarObjectTextInternal::SectionZone> &section);
144 bool readSWTextZone(StarZone &zone, std::shared_ptr<StarObjectTextInternal::TextZone> &textZone);
145 //
146 // data
147 //
148
150 std::shared_ptr<StarObjectTextInternal::State> m_textState;
151 private:
152 StarObjectText &operator=(StarObjectText const &orig) = delete;
153 };
154 #endif
155 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
StarFileManager.hxx
StarObjectTextInternal::Content::inventoryPages
void inventoryPages(StarState &state) const
try to inventory the different pages
Definition: StarObjectText.cxx:129
STOFFFont::m_softHyphen
bool m_softHyphen
soft hyphen
Definition: STOFFFont.hxx:94
STOFFListenerPtr
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:491
STOFFGraphicStyle::m_propertyList
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFGraphicStyle.hxx:66
StarObjectText::operator=
StarObjectText & operator=(StarObjectText const &orig)=delete
StarFileManager
the main class to read/.
Definition: StarFileManager.hxx:61
STOFFParagraph
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
StarWriterStruct::Macro::readList
static bool readList(StarZone &zone, std::vector< Macro > &macroLis)
try to read a list of macro: 'M'
Definition: StarWriterStruct.cxx:495
StarObjectTextInternal::State::m_model
std::shared_ptr< StarObjectModel > m_model
the drawing model
Definition: StarObjectText.cxx:734
StarObjectTextInternal::Zone::Zone
Zone()
constructor
Definition: StarObjectText.hxx:53
STOFFDocument::STOFF_K_TEXT
@ STOFF_K_TEXT
word processing file
Definition: STOFFDocument.hxx:75
StarState::m_graphic
STOFFGraphicStyle m_graphic
the graphic style
Definition: StarState.hxx:177
StarObjectText::readDrawingLayer
bool readDrawingLayer(STOFFInputStreamPtr input, std::string const &fileName)
the drawing layers ?
Definition: StarObjectText.cxx:1614
STOFFField
a field
Definition: libstaroffice_internal.hxx:363
StarObjectText::readWriterDocument
bool readWriterDocument(STOFFInputStreamPtr input, std::string const &fileName)
the main zone
Definition: StarObjectText.cxx:1708
StarFileManager::readOLEDirectory
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
STOFFEntry
basic class to store an entry in a file This contained :
Definition: STOFFEntry.hxx:46
libstoff::getString
librevenge::RVNGString getString(std::vector< uint32_t > const &unicode)
transform a unicode string in a RNVGString
Definition: libstaroffice_internal.cxx:63
StarState::m_break
int m_break
a page/column break: 1=columnBefore, 2=columnAfter, 3=columnBoth, 4=pageBefore, 5=pageAfter,...
Definition: StarState.hxx:170
StarWriterStruct::Bookmark::readList
static bool readList(StarZone &zone, std::vector< Bookmark > &markList)
try to read a list of bookmark
Definition: StarWriterStruct.cxx:207
StarObjectNumericRuler::readList
static bool readList(StarZone &zone, std::shared_ptr< STOFFList > &list)
try to read a list : '0' or 'R'
Definition: StarObjectNumericRuler.cxx:356
StarWriterStruct::Mark::read
bool read(StarZone &zone)
try to read a mark
Definition: StarWriterStruct.cxx:540
StarZone::ascii
libstoff::DebugFile & ascii()
returns the ascii file
Definition: StarZone.hxx:254
StarZone::getPoolName
bool getPoolName(int poolId, librevenge::RVNGString &res) const
try to return a pool name
Definition: StarZone.hxx:235
StarObjectTextInternal::TextZone::inventoryPage
void inventoryPage(StarState &state) const final
try to inventory the different pages
Definition: StarObjectText.cxx:366
SWFieldManager::readField
std::shared_ptr< SWFieldManagerInternal::Field > readField(StarZone &zone, unsigned char cKind='_')
try to read a field type
Definition: SWFieldManager.cxx:1025
STOFF_DEBUG_MSG
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
STOFFParagraph::m_listLevel
STOFFListLevel m_listLevel
the actual level
Definition: STOFFParagraph.hxx:85
StarObjectTextInternal::Zone::send
virtual bool send(STOFFListenerPtr &listener, StarState &state) const =0
try to send the data to a listener
StarState::m_frame
STOFFFrameStyle m_frame
the frame style
Definition: StarState.hxx:175
StarZone::isCompatibleWith
int isCompatibleWith(int vers) const
checks if the document is compatible with vers
Definition: StarZone.hxx:99
StarGraphicStruct::StarPolygon
Class to store a polygon.
Definition: StarGraphicStruct.hxx:122
StarObjectTextInternal::OLEZone::OLEZone
OLEZone()
constructor
Definition: StarObjectText.cxx:220
StarObjectTextInternal::SubDocument::m_state
StarState & m_state
the state
Definition: StarObjectText.cxx:104
StarObjectText::readSWGraphNode
bool readSWGraphNode(StarZone &zone, std::shared_ptr< StarObjectTextInternal::GraphZone > &graphZone)
try to read a OLE node : 'g'
Definition: StarObjectText.cxx:1088
StarObjectTextInternal::Content::~Content
~Content()
destructor
Definition: StarObjectText.cxx:125
StarWriterStruct::Attribute::readList
static bool readList(StarZone &zone, std::vector< Attribute > &attributeList, StarObject &object)
try to read a list of attribute: 'S'
Definition: StarWriterStruct.cxx:107
StarItemStyle::F_Paragraph
@ F_Paragraph
Definition: StarItem.hxx:120
StarWriterStruct::DatabaseName
structure to store a databaseName in a text zone
Definition: StarWriterStruct.hxx:119
StarObjectText::parse
bool parse()
Definition: StarObjectText.cxx:819
StarObjectTextInternal::TextZone::m_charAttributeList
std::vector< StarWriterStruct::Attribute > m_charAttributeList
the character item list
Definition: StarObjectText.cxx:357
StarObjectTextInternal::SubDocument::m_content
const StarObjectTextInternal::Content & m_content
the content
Definition: StarObjectText.cxx:102
StarItemSet::printChild
std::string printChild() const
debug function to print the child field
Definition: StarItem.cxx:52
StarGraphicStruct.hxx
STOFFSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: STOFFSubDocument.hxx:41
StarWriterStruct::DatabaseName::read
bool read(StarZone &zone)
try to read a databaseName: 'D'
Definition: StarWriterStruct.cxx:255
StarObjectTextInternal::GraphZone::GraphZone
GraphZone(std::shared_ptr< STOFFOLEParser > &oleParser)
constructor
Definition: StarObjectText.cxx:176
StarWriterStruct::DocStats::read
bool read(StarZone &zone)
try to read a docStats: 'd'
Definition: StarWriterStruct.cxx:415
StarObjectTextInternal::Content::m_sectionName
librevenge::RVNGString m_sectionName
the section name
Definition: StarObjectText.hxx:81
StarObject::cleanPools
void cleanPools()
clean each pool
Definition: StarObject.cxx:106
StarState::m_content
bool m_content
flag to know if this is a content zone
Definition: StarState.hxx:184
StarObjectText::readSWImageMap
static bool readSWImageMap(StarZone &zone)
try to read a image map zone : 'X'
Definition: StarObjectText.cxx:1205
StarObjectPageStyle
the main class to read a SwPageStyleSheets zone
Definition: StarObjectPageStyle.hxx:62
StarWriterStruct::PrintData::read
bool read(StarZone &zone)
try to read a printData: '8'
Definition: StarWriterStruct.cxx:719
StarObjectTextInternal::GraphZone
Internal: a graphZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:174
StarObjectTextInternal::TextZone
Internal: a textZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:330
STOFFPageSpan
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
STOFFSection.hxx
StarWriterStruct::NoteInfo::read
bool read(StarZone &zone)
try to read a noteInfo
Definition: StarWriterStruct.cxx:612
StarState::m_field
std::shared_ptr< SWFieldManagerInternal::Field > m_field
the field
Definition: StarState.hxx:196
StarObject::getNewItemPool
std::shared_ptr< StarItemPool > getNewItemPool(StarItemPool::Type type)
returns a new item pool for this document
Definition: StarObject.cxx:142
StarObjectTextInternal::OLEZone::m_oleParser
std::shared_ptr< STOFFOLEParser > m_oleParser
the ole parser
Definition: StarObjectText.cxx:234
StarZone::openSWRecord
bool openSWRecord(unsigned char &type)
try to open a SW record: type + size (24 bytes)
Definition: StarZone.cxx:507
StarObjectTextInternal::TextZone::m_list
std::shared_ptr< STOFFList > m_list
the list (if defined)
Definition: StarObjectText.cxx:361
StarZone::readString
bool readString(std::vector< uint32_t > &string, int encoding=-1) const
try to read an unicode string
Definition: StarZone.hxx:220
StarObjectTextInternal::TextZone::m_level
int m_level
the level -1=none, 200: keep in list with no bullet
Definition: StarObjectText.cxx:355
STOFFFont::addTo
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFFont.cxx:81
STOFFParagraph::m_listLevelIndex
int m_listLevelIndex
the actual level index
Definition: STOFFParagraph.hxx:79
STOFFParagraph::m_bulletVisible
bool m_bulletVisible
flag to know if the bullet is visible
Definition: STOFFParagraph.hxx:77
StarObjectText::readSWSection
bool readSWSection(StarZone &zone, std::shared_ptr< StarObjectTextInternal::SectionZone > &section)
try to read a section : 'I'
Definition: StarObjectText.cxx:1366
StarObjectTextInternal::TextZone::m_styleName
librevenge::RVNGString m_styleName
the style name
Definition: StarObjectText.cxx:353
StarObjectTextInternal::State::m_mainContent
std::shared_ptr< Content > m_mainContent
the main content
Definition: StarObjectText.cxx:726
StarZone::closeFlagZone
void closeFlagZone()
close the cflag zone
Definition: StarZone.cxx:618
StarObjectTextInternal::Table::m_table
std::shared_ptr< StarTable > m_table
the table
Definition: StarObjectText.cxx:661
StarObjectTextInternal::Content
Internal: a set of zone.
Definition: StarObjectText.hxx:67
StarObjectTextInternal::State::m_pageStyle
std::shared_ptr< StarObjectPageStyle > m_pageStyle
the page style
Definition: StarObjectText.cxx:732
StarObjectTextInternal::SectionZone::m_condition
librevenge::RVNGString m_condition
the section condition
Definition: StarObjectText.cxx:300
StarObjectTextInternal::FormatZone::m_format
std::shared_ptr< StarFormatManagerInternal::FormatDef > m_format
the format
Definition: StarObjectText.cxx:155
StarObjectText::readSWOLENode
bool readSWOLENode(StarZone &zone, std::shared_ptr< StarObjectTextInternal::OLEZone > &ole)
try to read a OLE node : 'O'
Definition: StarObjectText.cxx:1317
StarObjectTextInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: StarObjectText.cxx:85
STOFFFrameStyle::m_anchorIndex
int m_anchorIndex
the anchor index: used to relate to find the character related to at_char
Definition: STOFFFrameStyle.hxx:75
StarItemPool::T_WriterPool
@ T_WriterPool
Definition: StarItemPool.hxx:75
StarState
class to store an state: ie.
Definition: StarState.hxx:67
StarObjectTextInternal::OLEZone::send
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:237
StarObjectTextInternal::Table::Table
Table()
constructor
Definition: StarObjectText.cxx:653
StarObjectTextInternal::SectionZone::m_format
std::shared_ptr< StarFormatManagerInternal::FormatDef > m_format
the format
Definition: StarObjectText.cxx:308
StarObjectText::readSWJobSetUp
bool readSWJobSetUp(StarZone &zone)
try to read a SW zone setup : 'J'
Definition: StarObjectText.cxx:1289
StarItemStyle::m_itemSet
StarItemSet m_itemSet
the item list
Definition: StarItem.hxx:140
StarObjectText
the main class to read a StarOffice sdw file
Definition: StarObjectText.hxx:100
StarObjectText::readSWTextZone
bool readSWTextZone(StarZone &zone, std::shared_ptr< StarObjectTextInternal::TextZone > &textZone)
try to read some content : 'T'
Definition: StarObjectText.cxx:1445
StarObjectPageStyle.hxx
STOFFOLEParser.hxx
StarObjectModel
the main class to read a SdrModel zone
Definition: StarObjectModel.hxx:64
STOFFEmbeddedObject
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
libstaroffice_internal.hxx
StarObjectTextInternal::SubDocument
Internal: the subdocument of a StarObjectSpreadsheet.
Definition: StarObjectText.cxx:78
libstoff::DebugFile::reset
static void reset()
Definition: STOFFDebug.hxx:228
libstoff::DebugStream::str
static std::string str()
Definition: STOFFDebug.hxx:203
StarWriterStruct::Attribute::read
bool read(StarZone &zone, StarObject &object)
try to read a attribute: 'A'
Definition: StarWriterStruct.cxx:57
StarZone::closeSWRecord
bool closeSWRecord(unsigned char type, std::string const &debugName)
try to close a record
Definition: StarZone.hxx:177
STOFFPageSpan.hxx
STOFFParagraph.hxx
STOFFTextListener.hxx
StarObjectTextInternal::TextZone::m_formatList
std::vector< std::shared_ptr< StarFormatManagerInternal::FormatDef > > m_formatList
the format
Definition: StarObjectText.cxx:359
StarState::m_styleName
librevenge::RVNGString m_styleName
the style name
Definition: StarState.hxx:167
STOFFSubDocument.hxx
StarObjectTextInternal::SubDocument::operator!=
bool operator!=(STOFFSubDocument const &doc) const final
operator!=
Definition: StarObjectText.cxx:88
StarWriterStruct::NoteInfo
structure to store a endnoteInfo or a footnoteInfo in a text zone
Definition: StarWriterStruct.hxx:296
StarFileManager::readEmbeddedPicture
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
StarObjectTextInternal::GraphZone::m_oleParser
std::shared_ptr< STOFFOLEParser > m_oleParser
the ole parser
Definition: StarObjectText.cxx:186
StarObjectText::updatePageSpans
bool updatePageSpans(std::vector< STOFFPageSpan > &pageSpan, int &numPages)
try to update the page span (to create draw document)
Definition: StarObjectText.cxx:756
StarObjectTextInternal::State::m_numGraphicPages
int m_numGraphicPages
the graphic number of pages
Definition: StarObjectText.cxx:724
STOFFListener::SoftPageBreak
@ SoftPageBreak
Definition: STOFFListener.hxx:59
StarObjectText::~StarObjectText
~StarObjectText() final
destructor
Definition: StarObjectText.cxx:748
StarObjectTextInternal::SectionZone
Internal: a sectionZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:282
STOFFList.hxx
StarState::m_footnote
bool m_footnote
flag to know if this is a footnote
Definition: StarState.hxx:188
StarObjectText::readSfxStyleSheets
bool readSfxStyleSheets(STOFFInputStreamPtr input, std::string const &fileName)
try to read a text style zone: SfxStyleSheets
Definition: StarObjectText.cxx:902
STOFFInputStreamPtr
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:489
STOFFField::m_propertyList
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: libstaroffice_internal.hxx:371
StarObjectTextInternal::SectionZone::m_type
int m_type
the section type
Definition: StarObjectText.cxx:304
StarObjectTextInternal::OLEZone
Internal: a OLEZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:218
STOFFParagraph::m_outline
bool m_outline
flag to know if this is a outline level
Definition: STOFFParagraph.hxx:75
StarObject::getFormatManager
std::shared_ptr< StarFormatManager > getFormatManager()
returns the format manager
Definition: StarObject.cxx:125
libstoff::SubDocumentType
SubDocumentType
Definition: libstaroffice_internal.hxx:185
StarObjectTextInternal::TextZone::m_textSourcePosition
std::vector< size_t > m_textSourcePosition
the text initial position
Definition: StarObjectText.cxx:351
StarObjectTextInternal::FormatZone::send
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:158
StarItemStyle::m_outlineLevel
int m_outlineLevel
the outline level
Definition: StarItem.hxx:144
SWFieldManager
the main class to read/.
Definition: SWFieldManager.hxx:109
StarObjectTextInternal::TextZone::m_text
std::vector< uint32_t > m_text
the text
Definition: StarObjectText.cxx:349
StarObjectTextInternal::Content::send
bool send(STOFFListenerPtr &listener, StarState &state, bool isFlyer=false) const
try to send the data to a listener
Definition: StarObjectText.cxx:677
StarZone
a zone in a StarOffice file
Definition: StarZone.hxx:56
StarItemPool::T_EditEnginePool
@ T_EditEnginePool
Definition: StarItemPool.hxx:75
StarZone::getRecordLevel
int getRecordLevel() const
returns the record level
Definition: StarZone.hxx:195
StarWriterStruct::Mark
structure to store a mark in a text zone
Definition: StarWriterStruct.hxx:250
StarObject
an object corresponding to an OLE directory
Definition: StarObject.hxx:64
StarObjectTextInternal::Table
Internal: a table of StarObjectTextInteral.
Definition: StarObjectText.cxx:651
StarObjectModel.hxx
STOFFParagraph::m_listId
int m_listId
the list id (if know )
Definition: STOFFParagraph.hxx:81
StarObjectTextInternal::Zone::~Zone
virtual ~Zone()
destructor
Definition: StarObjectText.cxx:121
StarObjectTextInternal::FormatZone
Internal: a formatZone of StarObjectTextInteral.
Definition: StarObjectText.cxx:145
STOFFPageSpan::m_pageSpan
int m_pageSpan
the number of page
Definition: STOFFPageSpan.hxx:108
StarObjectTextInternal::SectionZone::m_flags
int m_flags
the section flag
Definition: StarObjectText.cxx:306
StarObjectTextInternal::State::State
State()
constructor
Definition: StarObjectText.cxx:711
StarObjectSpreadsheet.hxx
StarState::m_font
STOFFFont m_font
the font
Definition: StarState.hxx:182
libstoff::DebugStream
Definition: STOFFDebug.hxx:194
StarObject::findItemPool
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
StarObjectText::sendPages
bool sendPages(STOFFTextListenerPtr &listener)
try to send the different page
Definition: StarObjectText.cxx:782
StarWriterStruct::NodeRedline::read
bool read(StarZone &zone)
try to read a nodeRedline
Definition: StarWriterStruct.cxx:575
StarZone::readSWHeader
bool readSWHeader()
read the zone header present in a SW file
Definition: StarZone.cxx:190
StarObjectTextInternal::Content::m_zoneList
std::vector< std::shared_ptr< Zone > > m_zoneList
the list of text zone
Definition: StarObjectText.hxx:83
STOFFFont
Class to store font.
Definition: STOFFFont.hxx:43
StarObject::getPassword
const char * getPassword() const
returns the document password (the password given by the user)
Definition: StarObject.hxx:81
StarObjectTextInternal::State::m_flyList
std::vector< std::shared_ptr< StarFormatManagerInternal::FormatDef > > m_flyList
the list of fly zone
Definition: StarObjectText.cxx:728
StarState::m_flyCnt
bool m_flyCnt
flag to know if this is a flyCnt
Definition: StarState.hxx:186
StarObjectTextInternal::GraphZone::send
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:195
StarTable
class to store a table in a sdw file
Definition: StarTable.hxx:57
StarObjectTextInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &)
STOFFGraphicStyle
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
StarObjectMath.hxx
StarItemPool::T_Unknown
@ T_Unknown
Definition: StarItemPool.hxx:75
StarItemStyle
brief class used to stored the style
Definition: StarItem.hxx:115
StarObjectText.hxx
StarObjectTextInternal::Table::send
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:664
StarObjectNumericRuler
the main class to read a SwNumRules zone
Definition: StarObjectNumericRuler.hxx:63
StarState::reinitializeLineData
void reinitializeLineData()
reinit the local data: break, font, content, footnote, ...
Definition: StarState.cxx:92
StarWriterStruct::Redline::readListList
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
StarObjectTextInternal::TextZone::m_markList
std::vector< StarWriterStruct::Mark > m_markList
the mark
Definition: StarObjectText.cxx:363
StarObjectTextInternal::TextZone::send
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:401
StarObjectTextInternal::GraphZone::m_contour
StarGraphicStruct::StarPolygon m_contour
the contour(useme)
Definition: StarObjectText.cxx:192
StarObject::getDocumentKind
STOFFDocument::Kind getDocumentKind() const
returns the document kind
Definition: StarObject.cxx:115
StarObjectTextInternal::SectionZone::send
bool send(STOFFListenerPtr &listener, StarState &state) const final
try to send the data to a listener
Definition: StarObjectText.cxx:313
StarObjectNumericRuler.hxx
StarObject::parse
bool parse()
try to parse data
Definition: StarObject.cxx:170
StarObjectTextInternal
Internal: the structures of a StarObjectText.
Definition: StarObjectText.cxx:74
StarObject::m_oleParser
std::shared_ptr< STOFFOLEParser > m_oleParser
the ole parser
Definition: StarObject.hxx:143
StarObjectTextInternal::GraphZone::m_names
librevenge::RVNGString m_names[3]
the graph name, the fltName, the replace text
Definition: StarObjectText.cxx:188
STOFFFont::m_hardBlank
bool m_hardBlank
hard blank
Definition: STOFFFont.hxx:96
StarState.hxx
StarGraphicStruct::StarPolygon::Point
a structure to keep a point and a flag
Definition: StarGraphicStruct.hxx:126
StarWriterStruct::TOX::readList
static bool readList(StarZone &zone, std::vector< TOX > &toxList, StarObject &object)
try to read a list of TOX
Definition: StarWriterStruct.cxx:1008
StarFileManager::readJobSetUp
static bool readJobSetUp(StarZone &zone, bool usePrinterLen)
try to read a printer zone
Definition: StarFileManager.cxx:847
libstoff::DebugFile::addPos
static void addPos(long)
Definition: STOFFDebug.hxx:223
StarObjectText::m_textState
std::shared_ptr< StarObjectTextInternal::State > m_textState
the state
Definition: StarObjectText.hxx:150
StarObjectTextInternal::SectionZone::m_name
librevenge::RVNGString m_name
the section name
Definition: StarObjectText.cxx:298
StarZone::readStringsPool
bool readStringsPool()
try to read a pool of strings
Definition: StarZone.cxx:103
StarWriterStruct.hxx
StarObject.hxx
StarZone.hxx
StarObjectTextInternal::SectionZone::m_linkName
librevenge::RVNGString m_linkName
the section link name
Definition: StarObjectText.cxx:302
StarObjectText::StarObjectText
StarObjectText(StarObject const &orig, bool duplicateState)
constructor
Definition: StarObjectText.cxx:742
STOFFLink::m_HRef
std::string m_HRef
the href field
Definition: libstaroffice_internal.hxx:385
StarLayout
structure to parse a layout in a text zone (very incomplete)
Definition: StarLayout.hxx:50
StarState::m_paragraph
STOFFParagraph m_paragraph
the paragraph style
Definition: StarState.hxx:180
STOFFListener::PageBreak
@ PageBreak
Definition: STOFFListener.hxx:59
StarObjectTextInternal::TextZone::TextZone
TextZone()
constructor
Definition: StarObjectText.cxx:332
StarState::m_global
std::shared_ptr< GlobalState > m_global
global state
Definition: StarState.hxx:165
libstoff::DebugFile
Definition: STOFFDebug.hxx:210
StarObjectTextInternal::SectionZone::SectionZone
SectionZone()
constructor
Definition: StarObjectText.cxx:284
StarObject::getOLEDirectory
std::shared_ptr< STOFFOLEParser::OleDirectory > getOLEDirectory()
returns the object directory
Definition: StarObject.hxx:86
StarObjectTextInternal::Zone::inventoryPage
virtual void inventoryPage(StarState &) const
try to inventory the different pages
Definition: StarObjectText.hxx:61
StarItemSet::m_whichToItemMap
std::map< int, std::shared_ptr< StarItem > > m_whichToItemMap
the list of item
Definition: StarItem.hxx:111
StarWriterStruct::PrintData
the doc statistic
Definition: StarWriterStruct.hxx:330
StarFormatManager.hxx
StarObjectTextInternal::Zone
Internal: a basic sone of StarObjectTextInternal.
Definition: StarObjectText.hxx:51
libstoff::DebugFile::addNote
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
StarObjectTextInternal::GraphZone::m_attributeList
std::vector< StarWriterStruct::Attribute > m_attributeList
the attributes list
Definition: StarObjectText.cxx:190
StarObjectTextInternal::State::m_numericRuler
std::shared_ptr< StarObjectNumericRuler > m_numericRuler
the numeric ruler
Definition: StarObjectText.cxx:730
StarLayout::read
bool read(StarZone &zone, StarObject &object)
try to read a layout: 'U'
Definition: StarLayout.cxx:81
STOFFFrameStyle::addTo
void addTo(librevenge::RVNGPropertyList &propList) const
add to the propList
Definition: STOFFFrameStyle.cxx:79
STOFFListener::ColumnBreak
@ ColumnBreak
Definition: STOFFListener.hxx:59
StarState::m_refMark
librevenge::RVNGString m_refMark
the ref mark
Definition: StarState.hxx:194
StarZone::input
STOFFInputStreamPtr input()
return the zone input
Definition: StarZone.hxx:247
STOFFVec2i
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:767
libstoff::DebugFile::open
static bool open(std::string const &)
Definition: STOFFDebug.hxx:218
STOFFTextListenerPtr
std::shared_ptr< STOFFTextListener > STOFFTextListenerPtr
a smart pointer of STOFFTextListener
Definition: libstaroffice_internal.hxx:501
StarTable.hxx
STOFFLink
a link
Definition: libstaroffice_internal.hxx:375
StarState::m_link
librevenge::RVNGString m_link
the link url
Definition: StarState.hxx:192
StarObjectTextInternal::SectionZone::m_content
std::shared_ptr< Content > m_content
the content
Definition: StarObjectText.cxx:310
StarZone::openFlagZone
unsigned char openFlagZone()
try to open a cflag zone
Definition: StarZone.cxx:611
StarWriterStruct::Attribute
struct use an attribute and a position
Definition: StarWriterStruct.hxx:61
StarItemPool.hxx
StarItemPool::T_XOutdevPool
@ T_XOutdevPool
Definition: StarItemPool.hxx:75
StarWriterStruct::NodeRedline
structure to store a nodeRedline in a text zone
Definition: StarWriterStruct.hxx:273
StarAttribute.hxx
StarObjectTextInternal::SubDocument::SubDocument
SubDocument(StarObjectTextInternal::Content const &content, StarState &state)
Definition: StarObjectText.cxx:81
StarZone::getRecordLastPosition
long getRecordLastPosition() const
returns the actual record last position
Definition: StarZone.hxx:200
StarWriterStruct::TOX51::readList
static bool readList(StarZone &zone, std::vector< TOX51 > &toxList, StarObject &object)
try to read a list of TOX51
Definition: StarWriterStruct.cxx:1160
StarObjectTextInternal::State
Internal: the state of a StarObjectText.
Definition: StarObjectText.cxx:709
StarObjectTextInternal::FormatZone::FormatZone
FormatZone(std::shared_ptr< StarFormatManagerInternal::FormatDef > &format)
constructor
Definition: StarObjectText.cxx:147
StarObjectTextInternal::OLEZone::m_replaceText
librevenge::RVNGString m_replaceText
the replacement text
Definition: StarObjectText.cxx:232
StarZone::getNumPoolNames
int getNumPoolNames() const
return the number of pool name
Definition: StarZone.hxx:230
StarObjectTextInternal::OLEZone::m_name
librevenge::RVNGString m_name
the OLE name
Definition: StarObjectText.cxx:230
StarObjectTextInternal::Content::Content
Content()
constructor
Definition: StarObjectText.hxx:69
StarLayout.hxx
StarObjectText::readSWContent
bool readSWContent(StarZone &zone, std::shared_ptr< StarObjectTextInternal::Content > &content)
try to read some content : 'N'
Definition: StarObjectText.cxx:958
StarObjectTextInternal::State::m_numPages
int m_numPages
the number of pages
Definition: StarObjectText.cxx:722
StarWriterStruct::Dictionary
structure to store a dictionary in a text zone
Definition: StarWriterStruct.hxx:161
StarZone::getFlagLastPosition
long getFlagLastPosition() const
returns the flag last position
Definition: StarZone.hxx:214
STOFFEmbeddedObject::isEmpty
bool isEmpty() const
return true if the picture contains no data
Definition: libstaroffice_internal.hxx:426
StarWriterStruct::Dictionary::read
bool read(StarZone &zone)
try to read a dictionary: 'j'
Definition: StarWriterStruct.cxx:363
StarObjectChart.hxx
StarObjectTextInternal::SubDocument::parse
void parse(STOFFListenerPtr &listener, libstoff::SubDocumentType type) final
the parser function
Definition: StarObjectText.cxx:110
SWFieldManager.hxx
StarWriterStruct::DocStats
the doc statistic
Definition: StarWriterStruct.hxx:206