MWAWPresentationListener.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 /* libmwaw
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 #ifndef MWAW_PRESENTATION_LISTENER_H
35 #define MWAW_PRESENTATION_LISTENER_H
36 
37 #include <vector>
38 
39 #include <librevenge/librevenge.h>
40 
41 #include "libmwaw_internal.hxx"
42 
43 #include "MWAWGraphicStyle.hxx"
44 
45 #include "MWAWListener.hxx"
46 
47 class MWAWGraphicShape;
48 
50 {
51 struct GraphicState;
52 struct State;
53 }
54 
60 {
61 public:
63  MWAWPresentationListener(MWAWParserState &parserState, std::vector<MWAWPageSpan> const &pageList, librevenge::RVNGPresentationInterface *documentInterface);
66 
68  Type getType() const final
69  {
70  return Presentation;
71  }
72 
74  void setDocumentMetaData(librevenge::RVNGPropertyList const &metadata) final;
76  void setDocumentLanguage(std::string const &locale) final;
78  void startDocument() final;
80  void endDocument(bool delayed=true) final;
81 
82  // ------ general information --------
84  bool canWriteText() const final;
86  bool isDocumentStarted() const final;
87 
89  void handleSubDocument(MWAWVec2f const &orig, MWAWSubDocumentPtr const &subDocument, libmwaw::SubDocumentType subDocumentType);
91  void handleSubDocument(MWAWSubDocumentPtr const &subDocument, libmwaw::SubDocumentType subDocumentType) final
92  {
93  handleSubDocument(MWAWVec2f(0,0), subDocument, subDocumentType);
94  }
96  bool isSubDocumentOpened(libmwaw::SubDocumentType &subdocType) const final;
98  bool openFrame(MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final;
100  void closeFrame() final;
102  bool openGroup(MWAWPosition const &pos) final;
104  void closeGroup() final;
106  bool openLayer(librevenge::RVNGString const &name);
108  void closeLayer();
109 
110  // ------ page --------
112  bool openMasterPage(MWAWPageSpan &masterPage);
115  {
116  _closePageSpan(true);
117  }
119  bool isPageSpanOpened() const final;
123  MWAWPageSpan const &getPageSpan() final;
124 
125  // ------ header/footer --------
127  bool insertHeader(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final;
129  bool insertFooter(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final;
131  bool isHeaderFooterOpened() const final;
132 
133  // ------ text data -----------
135  void insertChar(uint8_t character) final;
138  void insertCharacter(unsigned char c) final;
144  int insertCharacter(unsigned char c, MWAWInputStreamPtr &input, long endPos=-1) final;
147  void insertUnicode(uint32_t character) final;
149  void insertUnicodeString(librevenge::RVNGString const &str) final;
150 
152  void insertTab() final;
154  void insertEOL(bool softBreak=false) final;
155 
156  // ------ text format -----------
158  void setFont(MWAWFont const &font) final;
160  MWAWFont const &getFont() const final;
161 
162  // ------ paragraph format -----------
164  bool isParagraphOpened() const final;
166  void setParagraph(MWAWParagraph const &paragraph) final;
168  MWAWParagraph const &getParagraph() const final;
169 
170  // ------- fields ----------------
172  void insertField(MWAWField const &field) final;
173 
174  // ------- link ----------------
176  void openLink(MWAWLink const &link) final;
178  void closeLink() final;
179 
180  // ------- subdocument -----------------
182  void insertPicture(MWAWPosition const &pos, MWAWEmbeddedObject const &picture,
183  MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final;
185  void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style) final;
187  void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr const &subDocument, MWAWGraphicStyle const &style) final;
189  void insertGroup(MWAWBox2f const &bdbox, MWAWSubDocumentPtr const &subDocument);
191  void insertSlideNote(MWAWPosition const &pos, MWAWSubDocumentPtr &subDocument);
195  void insertNote(MWAWNote const &note, MWAWSubDocumentPtr &subDocument) final;
199  void insertComment(MWAWSubDocumentPtr &subDocument) final;
200 
201  // ------- table -----------------
202 
204  void insertTable(MWAWPosition const &pos, MWAWTable &table, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle());
206  void openTable(MWAWTable const &table) final;
208  void openTable(MWAWPosition const &pos, MWAWTable const &table, MWAWGraphicStyle const &style);
210  void closeTable() final;
212  void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false) final;
214  void closeTableRow() final;
216  void openTableCell(MWAWCell const &cell) final;
218  void closeTableCell() final;
220  void addEmptyTableCell(MWAWVec2i const &pos, MWAWVec2i span=MWAWVec2i(1,1)) final;
221 
222  // ------- section ---------------
223 
225  bool canOpenSectionAddBreak() const final
226  {
227  return false;
228  }
230  bool isSectionOpened() const final
231  {
232  return false;
233  }
235  MWAWSection const &getSection() const final;
237  bool openSection(MWAWSection const &section) final;
239  bool closeSection() final
240  {
241  return false;
242  }
244  void insertBreak(BreakType breakType) final;
245 
246 protected:
248  void _openPageSpan(bool sendHeaderFooters=true);
250  void _closePageSpan(bool masterPage=false);
251 
252  void _startSubDocument();
253  void _endSubDocument();
254 
258  void _handleFrameParameters(librevenge::RVNGPropertyList &propList, MWAWPosition const &pos, MWAWGraphicStyle const &style);
259 
260  void _openParagraph();
261  void _closeParagraph();
262  void _resetParagraphState(const bool isListElement=false);
263 
265  void _openListElement();
267  void _closeListElement();
269  void _changeList();
274  int _getListId() const;
275 
276  void _openSpan();
277  void _closeSpan();
278 
279  void _flushText();
280 
284  std::shared_ptr<MWAWPresentationListenerInternal::State> _pushParsingState();
286  void _popParsingState();
287 
288 protected:
290  std::shared_ptr<MWAWPresentationListenerInternal::GraphicState> m_ds;
292  std::shared_ptr<MWAWPresentationListenerInternal::State> m_ps;
294  std::vector<std::shared_ptr<MWAWPresentationListenerInternal::State> > m_psStack;
298  librevenge::RVNGPresentationInterface *m_documentInterface;
299 
300 private:
303 };
304 
305 #endif
306 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWEmbeddedObject::addTo
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist
Definition: libmwaw_internal.cxx:579
MWAWPresentationListener::insertUnicodeString
void insertUnicodeString(librevenge::RVNGString const &str) final
adds a unicode string
Definition: MWAWPresentationListener.cxx:305
MWAWPresentationListener::insertGroup
void insertGroup(MWAWBox2f const &bdbox, MWAWSubDocumentPtr const &subDocument)
adds a group: ie.
Definition: MWAWPresentationListener.cxx:1150
MWAWPresentationListener::closeTableCell
void closeTableCell() final
close a cell
Definition: MWAWPresentationListener.cxx:1311
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWPresentationListener::openTableRow
void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false) final
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: MWAWPresentationListener.cxx:1244
MWAWPresentationListener::insertCharacter
void insertCharacter(unsigned char c) final
insert a character using the font converter to find the utf8 character
Definition: MWAWPresentationListener.cxx:238
MWAWListener::BreakType
BreakType
the different break type
Definition: MWAWListener.hxx:58
MWAW_shared_ptr_noop_deleter
an noop deleter used to transform a libwpd pointer in a false std::shared_ptr
Definition: libmwaw_internal.hxx:101
MWAWPosition::naturalSize
MWAWVec2f const & naturalSize() const
returns the natural size (if known)
Definition: MWAWPosition.hxx:140
MWAWPresentationListener::isHeaderFooterOpened
bool isHeaderFooterOpened() const final
returns true if the header/footer is open
Definition: MWAWPresentationListener.cxx:878
MWAWNote
a note
Definition: libmwaw_internal.hxx:445
MWAWField::m_type
Type m_type
the type
Definition: libmwaw_internal.hxx:420
MWAWPosition::getInvUnitScale
float getInvUnitScale(librevenge::RVNGUnit fromUnit) const
returns a float which can be used to scale some data in object unit
Definition: MWAWPosition.hxx:199
MWAWPresentationListener::insertTextBox
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr const &subDocument, MWAWGraphicStyle const &style) final
adds a textbox in given position
Definition: MWAWPresentationListener.cxx:1090
MWAWPresentationListener::getSection
MWAWSection const & getSection() const final
returns the actual section
Definition: MWAWPresentationListener.cxx:931
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
MWAWPresentationListener::startDocument
void startDocument() final
starts a new document
Definition: MWAWPresentationListener.cxx:451
MWAWListener::ColumnBreak
@ ColumnBreak
Definition: MWAWListener.hxx:58
MWAWPresentationListener::endDocument
void endDocument(bool delayed=true) final
ends the actual document
Definition: MWAWPresentationListener.cxx:462
MWAWGraphicShape::C_Polygon
@ C_Polygon
Definition: MWAWGraphicShape.hxx:51
MWAWPresentationListener::_openPageSpan
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: MWAWPresentationListener.cxx:543
MWAWParserState::m_listManager
MWAWListManagerPtr m_listManager
the list manager
Definition: MWAWParser.hxx:80
MWAWPresentationListenerInternal::GraphicState::m_isMasterPageSpanOpened
bool m_isMasterPageSpanOpened
true if a masterpage is open
Definition: MWAWPresentationListener.cxx:96
MWAWPresentationListener::insertHeader
bool insertHeader(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final
insert a header
Definition: MWAWPresentationListener.cxx:883
MWAWPresentationListenerInternal::State::m_isTableOpened
bool m_isTableOpened
a stack used to know what is open
Definition: MWAWPresentationListener.cxx:156
MWAWGraphicShape::C_Path
@ C_Path
Definition: MWAWGraphicShape.hxx:51
MWAWPosition::XFull
@ XFull
Definition: MWAWPosition.hxx:55
MWAWPresentationListener::operator=
MWAWPresentationListener & operator=(const MWAWPresentationListener &)=delete
MWAWPresentationListener::_popParsingState
void _popParsingState()
resets the previous parsing state
Definition: MWAWPresentationListener.cxx:1704
MWAWPresentationListenerInternal::GraphicState::m_isAtLeastOnePageOpened
bool m_isAtLeastOnePageOpened
true if the first page has been open
Definition: MWAWPresentationListener.cxx:98
libmwaw::DOC_COMMENT_ANNOTATION
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:188
MWAWHeaderFooter::EVEN
@ EVEN
Definition: MWAWPageSpan.hxx:50
MWAWPresentationListenerInternal::State::m_currentPage
unsigned m_currentPage
Definition: MWAWPresentationListener.cxx:161
MWAWFont::id
int id() const
returns the font id
Definition: MWAWFont.hxx:259
MWAWPresentationListenerInternal::GraphicState::operator=
GraphicState & operator=(GraphicState &&)=default
MWAWPresentationListener::isSubDocumentOpened
bool isSubDocumentOpened(libmwaw::SubDocumentType &subdocType) const final
returns try if a subdocument is open
Definition: MWAWPresentationListener.cxx:1663
MWAWPosition::order
int order() const
returns background/foward order
Definition: MWAWPosition.hxx:259
MWAWPresentationListener::insertChar
void insertChar(uint8_t character) final
adds a basic character, ..
Definition: MWAWPresentationListener.cxx:224
MWAWPresentationListenerInternal::GraphicState::m_sentListMarkers
std::vector< int > m_sentListMarkers
the list of marker corresponding to sent list
Definition: MWAWPresentationListener.cxx:104
MWAWTable.hxx
MWAWPresentationListener::_closePageSpan
void _closePageSpan(bool masterPage=false)
does close a page (low level)
Definition: MWAWPresentationListener.cxx:594
MWAWPosition::m_xPos
XPos m_xPos
X relative position.
Definition: MWAWPosition.hxx:274
MWAWPresentationListenerInternal::State::m_inSubDocument
bool m_inSubDocument
Definition: MWAWPresentationListener.cxx:167
MWAWPosition::WBackground
@ WBackground
Definition: MWAWPosition.hxx:53
MWAWPresentationListener::setFont
void setFont(MWAWFont const &font) final
sets the font
Definition: MWAWPresentationListener.cxx:348
MWAWPresentationListener::closeFrame
void closeFrame() final
close a frame
Definition: MWAWPresentationListener.cxx:1351
MWAWPresentationListener::insertTable
void insertTable(MWAWPosition const &pos, MWAWTable &table, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a table in given position
Definition: MWAWPresentationListener.cxx:1165
MWAWPresentationListenerInternal::State::m_listOrderedLevels
std::vector< bool > m_listOrderedLevels
Definition: MWAWPresentationListener.cxx:154
MWAWPresentationListener::_openParagraph
void _openParagraph()
Definition: MWAWPresentationListener.cxx:633
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
MWAWPosition::YCenter
@ YCenter
Definition: MWAWPosition.hxx:57
MWAWFontConverter.hxx
libmwaw::appendUnicode
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MWAWTable::sendTable
bool sendTable(MWAWListenerPtr listener, bool inFrame=true)
try to send the table
Definition: MWAWTable.cxx:471
MWAWListener::Presentation
@ Presentation
Definition: MWAWListener.hxx:56
MWAWPresentationListenerInternal::State::m_frameStyle
MWAWGraphicStyle m_frameStyle
the frame style
Definition: MWAWPresentationListener.cxx:140
MWAWPresentationListenerInternal::State::m_font
MWAWFont m_font
the font
Definition: MWAWPresentationListener.cxx:129
MWAWPresentationListenerInternal::GraphicState::m_pageSpan
MWAWPageSpan m_pageSpan
! the current page span
Definition: MWAWPresentationListener.cxx:102
MWAWSubDocumentPtr
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
MWAWPresentationListener::openGroup
bool openGroup(MWAWPosition const &pos) final
open a group
Definition: MWAWPresentationListener.cxx:1360
MWAWPresentationListenerInternal::State::m_paragraph
MWAWParagraph m_paragraph
the paragraph
Definition: MWAWPresentationListener.cxx:131
MWAWField::getString
librevenge::RVNGString getString() const
returns a string corresponding to the field (if possible) *‍/
Definition: libmwaw_internal.cxx:294
MWAWPresentationListener::insertEOL
void insertEOL(bool softBreak=false) final
adds an end of line ( by default an hard one)
Definition: MWAWPresentationListener.cxx:315
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
MWAWPosition::WDynamic
@ WDynamic
Definition: MWAWPosition.hxx:53
MWAWPresentationListener::_resetParagraphState
void _resetParagraphState(const bool isListElement=false)
Definition: MWAWPresentationListener.cxx:676
MWAWPresentationListener::addEmptyTableCell
void addEmptyTableCell(MWAWVec2i const &pos, MWAWVec2i span=MWAWVec2i(1, 1)) final
add empty cell
Definition: MWAWPresentationListener.cxx:1275
MWAWPresentationListener::setDocumentMetaData
void setDocumentMetaData(librevenge::RVNGPropertyList const &metadata) final
sets the documents metadata
Definition: MWAWPresentationListener.cxx:482
MWAWPresentationListenerInternal::State::m_inNote
bool m_inNote
Definition: MWAWPresentationListener.cxx:166
MWAW_FALLTHROUGH
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
MWAWPresentationListener::handleSubDocument
void handleSubDocument(MWAWVec2f const &orig, MWAWSubDocumentPtr const &subDocument, libmwaw::SubDocumentType subDocumentType)
function called to add a subdocument and modify the origin
Definition: MWAWPresentationListener.cxx:1607
MWAWPresentationListener::insertUnicode
void insertUnicode(uint32_t character) final
adds an unicode character.
Definition: MWAWPresentationListener.cxx:292
MWAWPresentationListener::isPageSpanOpened
bool isPageSpanOpened() const final
returns true if a page is opened
Definition: MWAWPresentationListener.cxx:508
MWAWPresentationListener::_closeSpan
void _closeSpan()
Definition: MWAWPresentationListener.cxx:828
MWAWPresentationListener::getParagraph
MWAWParagraph const & getParagraph() const final
returns the actual paragraph
Definition: MWAWPresentationListener.cxx:389
MWAWPresentationListener::insertSlideNote
void insertSlideNote(MWAWPosition const &pos, MWAWSubDocumentPtr &subDocument)
insert a slide note
Definition: MWAWPresentationListener.cxx:1126
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWPresentationListener::isSectionOpened
bool isSectionOpened() const final
returns true if a section is opened
Definition: MWAWPresentationListener.hxx:230
MWAWPresentationListener::_flushText
void _flushText()
Definition: MWAWPresentationListener.cxx:847
MWAWPresentationListenerInternal::State
the state of a MWAWPresentationListener
Definition: MWAWPresentationListener.cxx:112
MWAWPageSpan::getPageProperty
void getPageProperty(librevenge::RVNGPropertyList &pList, bool isPresentation=false) const
add the page properties in pList
Definition: MWAWPageSpan.cxx:310
MWAWPresentationListener::closeLayer
void closeLayer()
close a layer
Definition: MWAWPresentationListener.cxx:1423
MWAWPosition::XCenter
@ XCenter
Definition: MWAWPosition.hxx:55
MWAWPresentationListenerInternal::State::isInTextZone
bool isInTextZone() const
returns true if we are in a text zone, ie. either in a textbox or a table cell
Definition: MWAWPresentationListener.cxx:119
MWAWPresentationListener::getType
Type getType() const final
returns the listener type
Definition: MWAWPresentationListener.hxx:68
MWAWPresentationListenerInternal::State::m_isParagraphOpened
bool m_isParagraphOpened
Definition: MWAWPresentationListener.cxx:149
MWAWPresentationListenerInternal::State::operator=
State & operator=(const State &)=delete
MWAWPresentationListenerInternal
Internal and low level namespace to define the states of MWAWPresentationListener.
Definition: MWAWPresentationListener.cxx:63
MWAWCell.hxx
Defines MWAWCell (cell content and format)
MWAWCell::addTo
void addTo(librevenge::RVNGPropertyList &propList, std::shared_ptr< MWAWFontConverter > fontConverter) const
adds to the propList
Definition: MWAWCell.cxx:255
MWAWPresentationListener.hxx
MWAWPresentationListener::insertPicture
void insertPicture(MWAWPosition const &pos, MWAWEmbeddedObject const &picture, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final
adds a picture with potential various representationin given position
Definition: MWAWPresentationListener.cxx:1055
MWAWPresentationListener::insertShape
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style) final
adds a shape picture in given position
Definition: MWAWPresentationListener.cxx:1013
MWAWPresentationListener::insertFooter
bool insertFooter(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final
insert a footer
Definition: MWAWPresentationListener.cxx:904
MWAWListener::SoftPageBreak
@ SoftPageBreak
Definition: MWAWListener.hxx:58
MWAWPresentationListenerInternal::GraphicState::m_metaData
librevenge::RVNGPropertyList m_metaData
the document meta data
Definition: MWAWPresentationListener.cxx:90
MWAWPresentationListener::canOpenSectionAddBreak
bool canOpenSectionAddBreak() const final
returns true if we can add open a section, add page break, ...
Definition: MWAWPresentationListener.hxx:225
MWAWSubDocument.hxx
MWAWPosition::size
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:135
MWAWPresentationListenerInternal::State::m_list
std::shared_ptr< MWAWList > m_list
the list of list
Definition: MWAWPresentationListener.cxx:133
MWAWPresentationListenerInternal::GraphicState::m_isPageSpanOpened
bool m_isPageSpanOpened
true if a page is open
Definition: MWAWPresentationListener.cxx:94
MWAWPageSpan::getPageSpan
int getPageSpan() const
Definition: MWAWPageSpan.hxx:170
MWAWGraphicShape::getType
Type getType() const
returns the type corresponding to a shape
Definition: MWAWGraphicShape.hxx:192
MWAWPosition::YFull
@ YFull
Definition: MWAWPosition.hxx:57
MWAWPresentationListener::_endSubDocument
void _endSubDocument()
Definition: MWAWPresentationListener.cxx:1677
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
MWAWPresentationListener::closeSection
bool closeSection() final
close a section
Definition: MWAWPresentationListener.hxx:239
MWAWPresentationListener::_openSpan
void _openSpan()
Definition: MWAWPresentationListener.cxx:801
MWAWPresentationListener::openTableCell
void openTableCell(MWAWCell const &cell) final
open a cell
Definition: MWAWPresentationListener.cxx:1294
MWAWPresentationListener::openSection
bool openSection(MWAWSection const &section) final
open a section if possible
Definition: MWAWPresentationListener.cxx:937
MWAWGraphicStyle::emptyStyle
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
MWAWPresentationListenerInternal::GraphicState
the global graphic state of MWAWPresentationListener
Definition: MWAWPresentationListener.cxx:65
MWAWPresentationListenerInternal::State::m_textBuffer
librevenge::RVNGString m_textBuffer
a buffer to stored the text
Definition: MWAWPresentationListener.cxx:126
MWAWParagraph.hxx
MWAWGraphicEncoder.hxx
MWAWPresentationListenerInternal::State::m_isTableCellOpened
bool m_isTableCellOpened
Definition: MWAWPresentationListener.cxx:159
MWAWPresentationListener::m_documentInterface
librevenge::RVNGPresentationInterface * m_documentInterface
the document interface
Definition: MWAWPresentationListener.hxx:298
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
MWAWPageSpan::sendHeaderFooters
void sendHeaderFooters(MWAWListener *listener) const
send the page's headers/footers if some exists
Definition: MWAWPageSpan.cxx:283
libmwaw_internal.hxx
MWAWListener
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
MWAWPosition.hxx
MWAWPresentationListener::~MWAWPresentationListener
~MWAWPresentationListener() final
destructor
Definition: MWAWPresentationListener.cxx:217
MWAWGraphicShape::C_Bad
@ C_Bad
Definition: MWAWGraphicShape.hxx:51
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
MWAWPresentationListener::closeGroup
void closeGroup() final
close a group
Definition: MWAWPresentationListener.cxx:1385
MWAWPresentationListener::_openListElement
void _openListElement()
open a list level
Definition: MWAWPresentationListener.cxx:685
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MWAWPresentationListener::getPageSpan
MWAWPageSpan const & getPageSpan() final
returns the current page span
Definition: MWAWPresentationListener.cxx:513
MWAWPresentationListenerInternal::State::m_isGroupOpened
bool m_isGroupOpened
a flag to know if openGroup was called
Definition: MWAWPresentationListener.cxx:145
MWAWPresentationListenerInternal::State::m_numPagesRemainingInSpan
int m_numPagesRemainingInSpan
Definition: MWAWPresentationListener.cxx:162
MWAWGraphicStyle::m_flip
bool m_flip[2]
two bool to indicated we need to flip the shape or not
Definition: MWAWGraphicStyle.hxx:560
MWAWPresentationListenerInternal::State::~State
~State()
destructor
Definition: MWAWPresentationListener.cxx:116
MWAWPresentationListenerInternal::State::m_isTableRowOpened
bool m_isTableRowOpened
Definition: MWAWPresentationListener.cxx:157
MWAWPosition::m_wrapping
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
libmwaw::DOC_HEADER_FOOTER
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:188
MWAWPresentationListener::insertBreak
void insertBreak(BreakType breakType) final
inserts a break type: ColumBreak, PageBreak, ..
Definition: MWAWPresentationListener.cxx:943
MWAWPresentationListener::_pushParsingState
std::shared_ptr< MWAWPresentationListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: MWAWPresentationListener.cxx:1695
MWAWPageSpan::getFormWidth
double getFormWidth() const
returns the page width
Definition: MWAWPageSpan.hxx:122
MWAWPresentationListener::insertTab
void insertTab() final
adds a tab
Definition: MWAWPresentationListener.cxx:334
libmwaw::DOC_GRAPHIC_GROUP
@ DOC_GRAPHIC_GROUP
Definition: libmwaw_internal.hxx:188
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
MWAWTable
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
MWAWPresentationListenerInternal::State::m_subDocumentType
libmwaw::SubDocumentType m_subDocumentType
Definition: MWAWPresentationListener.cxx:168
MWAWPresentationListenerInternal::State::m_firstParagraphInPageSpan
bool m_firstParagraphInPageSpan
Definition: MWAWPresentationListener.cxx:152
MWAWPresentationListenerInternal::GraphicState::~GraphicState
~GraphicState()
destructor
Definition: MWAWPresentationListener.cxx:84
MWAWVec2< float >
MWAWFont::size
float size() const
returns the font size
Definition: MWAWFont.hxx:270
MWAWHeaderFooter::ODD
@ ODD
Definition: MWAWPageSpan.hxx:50
MWAWPresentationListener::setParagraph
void setParagraph(MWAWParagraph const &paragraph) final
sets the paragraph
Definition: MWAWPresentationListener.cxx:378
MWAWPresentationListenerInternal::State::State
State()
constructor
Definition: MWAWPresentationListener.cxx:175
MWAWGraphicShape.hxx
MWAWSection
a class which stores section properties
Definition: MWAWSection.hxx:46
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWPresentationListenerInternal::State::m_isLayerOpened
bool m_isLayerOpened
a flag to know if openLayer was called
Definition: MWAWPresentationListener.cxx:147
MWAWPresentationListenerInternal::State::m_framePosition
MWAWPosition m_framePosition
the frame position
Definition: MWAWPresentationListener.cxx:138
MWAWPresentationListener::m_ds
std::shared_ptr< MWAWPresentationListenerInternal::GraphicState > m_ds
the actual global state
Definition: MWAWPresentationListener.hxx:290
MWAWPresentationListener::closeTableRow
void closeTableRow() final
closes this row
Definition: MWAWPresentationListener.cxx:1265
MWAWPresentationListener::setDocumentLanguage
void setDocumentLanguage(std::string const &locale) final
sets the documents language
Definition: MWAWPresentationListener.cxx:489
MWAWPresentationListenerInternal::GraphicState::m_subDocuments
std::vector< MWAWSubDocumentPtr > m_subDocuments
the list of actual subdocument
Definition: MWAWPresentationListener.cxx:106
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MWAWPresentationListenerInternal::GraphicState::m_isDocumentStarted
bool m_isDocumentStarted
a flag to know if the document is open
Definition: MWAWPresentationListener.cxx:92
MWAWGraphicShape::C_Polyline
@ C_Polyline
Definition: MWAWGraphicShape.hxx:51
MWAWPresentationListenerInternal::GraphicState::operator=
GraphicState & operator=(GraphicState const &)=default
MWAWPresentationListener::_handleFrameParameters
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, MWAWPosition const &pos, MWAWGraphicStyle const &style)
adds in propList the frame parameters.
Definition: MWAWPresentationListener.cxx:1434
MWAWField
a field
Definition: libmwaw_internal.hxx:399
MWAWPresentationListenerInternal::GraphicState::m_section
MWAWSection m_section
empty section used to return a section in getSection
Definition: MWAWPresentationListener.cxx:108
MWAWPresentationListener::_closeListElement
void _closeListElement()
close a list level
Definition: MWAWPresentationListener.cxx:711
MWAWPresentationListener::_changeList
void _changeList()
update the list so that it corresponds to the actual level
Definition: MWAWPresentationListener.cxx:740
MWAWPresentationListener::_getListId
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level.
Definition: MWAWPresentationListener.cxx:724
MWAWPresentationListener::m_parserState
MWAWParserState & m_parserState
the parser state
Definition: MWAWPresentationListener.hxx:296
libmwaw::DOC_TABLE
@ DOC_TABLE
Definition: libmwaw_internal.hxx:188
MWAWParserState::m_fontConverter
MWAWFontConverterPtr m_fontConverter
the font converter
Definition: MWAWParser.hxx:74
libmwaw::DOC_TEXT_BOX
@ DOC_TEXT_BOX
Definition: libmwaw_internal.hxx:188
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWPresentationListener::MWAWPresentationListener
MWAWPresentationListener(const MWAWPresentationListener &)=delete
MWAWPresentationListener::_closeParagraph
void _closeParagraph()
Definition: MWAWPresentationListener.cxx:654
MWAWList.hxx
libmwaw::DOC_NOTE
@ DOC_NOTE
Definition: libmwaw_internal.hxx:188
MWAWPresentationListenerInternal::State::m_isFrameOpened
bool m_isFrameOpened
a flag to know if openFrame was called
Definition: MWAWPresentationListener.cxx:136
MWAWPosition::rightBottomClipping
MWAWVec2f const & rightBottomClipping() const
returns the right bottom clipping
Definition: MWAWPosition.hxx:150
MWAWPresentationListener::openMasterPage
bool openMasterPage(MWAWPageSpan &masterPage)
opens a master page
Definition: MWAWPresentationListener.cxx:520
MWAWGraphicShape::Line
@ Line
Definition: MWAWGraphicShape.hxx:49
MWAWListener::Type
Type
the listener type
Definition: MWAWListener.hxx:56
MWAWPresentationListener::canWriteText
bool canWriteText() const final
returns true if a text zone is opened
Definition: MWAWPresentationListener.cxx:500
MWAWPresentationListener::closeTable
void closeTable() final
closes this table
Definition: MWAWPresentationListener.cxx:1230
MWAWGraphicStyle.hxx
MWAWGraphicShape::C_Ellipse
@ C_Ellipse
Definition: MWAWGraphicShape.hxx:51
MWAWParserState
a class to define the parser state
Definition: MWAWParser.hxx:50
MWAWPresentationListener::getFont
MWAWFont const & getFont() const final
returns the actual font
Definition: MWAWPresentationListener.cxx:368
MWAWPresentationListener::insertComment
void insertComment(MWAWSubDocumentPtr &subDocument) final
adds comment
Definition: MWAWPresentationListener.cxx:972
MWAWPresentationListener
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:60
MWAWPresentationListener::isParagraphOpened
bool isParagraphOpened() const final
returns true if a paragraph or a list is opened
Definition: MWAWPresentationListener.cxx:373
MWAWPresentationListener::insertNote
void insertNote(MWAWNote const &note, MWAWSubDocumentPtr &subDocument) final
insert a note
Definition: MWAWPresentationListener.cxx:990
MWAWPresentationListener::openFrame
bool openFrame(MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final
store the position and the style (which will be needed further to insert a textbox or a table with op...
Definition: MWAWPresentationListener.cxx:1329
MWAWPresentationListener::openLink
void openLink(MWAWLink const &link) final
open a link
Definition: MWAWPresentationListener.cxx:418
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
MWAWPosition::WForeground
@ WForeground
Definition: MWAWPosition.hxx:53
MWAWPresentationListener::closeMasterPage
void closeMasterPage()
close a master page
Definition: MWAWPresentationListener.hxx:114
MWAWSection.hxx
MWAWGraphicStyle::hasGradient
bool hasGradient(bool complex=false) const
returns true if the gradient is defined
Definition: MWAWGraphicStyle.hxx:437
MWAWParserState::m_fontManager
MWAWFontManagerPtr m_fontManager
the font manager
Definition: MWAWParser.hxx:76
MWAWPresentationListenerInternal::State::m_origin
MWAWVec2f m_origin
the origin position
Definition: MWAWPresentationListener.cxx:124
MWAWPresentationListener::isDocumentStarted
bool isDocumentStarted() const final
returns true if a document is opened
Definition: MWAWPresentationListener.cxx:495
MWAWPresentationListener::MWAWPresentationListener
MWAWPresentationListener(MWAWParserState &parserState, std::vector< MWAWPageSpan > const &pageList, librevenge::RVNGPresentationInterface *documentInterface)
constructor
Definition: MWAWPresentationListener.cxx:207
MWAWPosition::origin
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:130
MWAWPresentationListener::_startSubDocument
void _startSubDocument()
Definition: MWAWPresentationListener.cxx:1671
MWAWPresentationListener::closeLink
void closeLink() final
close a link
Definition: MWAWPresentationListener.cxx:438
MWAWGraphicShape::addTo
Command addTo(MWAWVec2f const &orig, bool asSurface, librevenge::RVNGPropertyList &propList) const
updates the propList to send to an interface
Definition: MWAWGraphicShape.cxx:458
MWAWPosition::YTop
@ YTop
Definition: MWAWPosition.hxx:57
MWAWListener.hxx
MWAWPosition::unit
librevenge::RVNGUnit unit() const
returns the unit
Definition: MWAWPosition.hxx:155
MWAWPosition::m_yPos
YPos m_yPos
Y relative position.
Definition: MWAWPosition.hxx:276
MWAWPosition::XRight
@ XRight
Definition: MWAWPosition.hxx:55
MWAWPresentationListenerInternal::GraphicState::GraphicState
GraphicState(std::vector< MWAWPageSpan > const &pageList)
constructor
Definition: MWAWPresentationListener.cxx:67
MWAWPresentationListenerInternal::State::m_inLink
bool m_inLink
Definition: MWAWPresentationListener.cxx:165
MWAWPresentationListener::openTable
void openTable(MWAWTable const &table) final
open a table (using the last parameters of openFrame for the position )
Definition: MWAWPresentationListener.cxx:1190
MWAWPosition::WRunThrough
@ WRunThrough
Definition: MWAWPosition.hxx:53
MWAWFont::Script
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
MWAWPosition::XLeft
@ XLeft
Definition: MWAWPosition.hxx:55
libmwaw.hxx
libmwaw API: main libmwaw interface header
libmwaw
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
MWAWPosition::YBottom
@ YBottom
Definition: MWAWPosition.hxx:57
MWAWPosition::leftTopClipping
MWAWVec2f const & leftTopClipping() const
returns the left top clipping
Definition: MWAWPosition.hxx:145
MWAWInputStream.hxx
MWAWPresentationListener::insertField
void insertField(MWAWField const &field) final
adds a field type
Definition: MWAWPresentationListener.cxx:397
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
librevenge
Definition: MWAWDocument.hxx:57
MWAWGraphicStyle::m_rotate
float m_rotate
the rotation
Definition: MWAWGraphicStyle.hxx:544
MWAWGraphicStyle::addTo
void addTo(librevenge::RVNGPropertyList &pList, bool only1d=false) const
add all the parameters to the propList excepted the frame parameter: the background and the borders
Definition: MWAWGraphicStyle.cxx:251
MWAWPresentationListenerInternal::State::m_isTableColumnOpened
bool m_isTableColumnOpened
Definition: MWAWPresentationListener.cxx:158
MWAWBox2< float >
MWAWPresentationListenerInternal::State::m_isTextBoxOpened
bool m_isTextBoxOpened
a flag to know if we are in a textbox
Definition: MWAWPresentationListener.cxx:143
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWCell
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
MWAWField::addTo
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist (if possible)
Definition: libmwaw_internal.cxx:240
MWAWPosition::WParallel
@ WParallel
Definition: MWAWPosition.hxx:53
libmwaw::DOC_NONE
@ DOC_NONE
Definition: libmwaw_internal.hxx:188
MWAWGraphicStyle::hasSurface
bool hasSurface() const
returns true if the interior surface is defined
Definition: MWAWGraphicStyle.hxx:442
MWAWPresentationListenerInternal::State::State
State(const State &)=delete
MWAWPageSpan::getFormLength
double getFormLength() const
returns the page length
Definition: MWAWPageSpan.hxx:117
MWAWPresentationListener::m_ps
std::shared_ptr< MWAWPresentationListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWPresentationListener.hxx:292
MWAWTable::addTablePropertiesTo
void addTablePropertiesTo(librevenge::RVNGPropertyList &propList) const
adds the table properties to propList
Definition: MWAWTable.cxx:131
MWAWPresentationListener::openLayer
bool openLayer(librevenge::RVNGString const &name)
open a layer
Definition: MWAWPresentationListener.cxx:1396
MWAWParser.hxx
MWAWPresentationListenerInternal::State::m_isSpanOpened
bool m_isSpanOpened
Definition: MWAWPresentationListener.cxx:148
MWAWPresentationListenerInternal::State::m_isListElementOpened
bool m_isListElementOpened
Definition: MWAWPresentationListener.cxx:150
MWAWPresentationListenerInternal::State::m_currentPageNumber
int m_currentPageNumber
Definition: MWAWPresentationListener.cxx:163
MWAWPresentationListenerInternal::GraphicState::m_pageList
std::vector< MWAWPageSpan > m_pageList
the pages definition
Definition: MWAWPresentationListener.cxx:88
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
MWAWPresentationListener::m_psStack
std::vector< std::shared_ptr< MWAWPresentationListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWPresentationListener.hxx:294
MWAWGraphicShape::C_Rectangle
@ C_Rectangle
Definition: MWAWGraphicShape.hxx:51
MWAWPresentationListenerInternal::GraphicState::m_isHeaderFooterStarted
bool m_isHeaderFooterStarted
a flag to know if the header footer is started
Definition: MWAWPresentationListener.cxx:100

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20