main class used to define the final interface to generate picture More...
#include <MWAWGraphicInterface.hxx>
Public Member Functions | |
| MWAWGraphicInterface () | |
| constructor More... | |
| ~MWAWGraphicInterface () | |
| destructor More... | |
| bool | getBinaryResult (WPXBinaryData &result, std::string &mimeType) |
| return the final graphic More... | |
| void | startDocument (const ::WPXPropertyList &propList) |
| void | endDocument () |
| void | setDocumentMetaData (const WPXPropertyList &propList) |
| Called when all document metadata should be set. More... | |
| void | startPage (const ::WPXPropertyList &propList) |
| void | endPage () |
| void | setStyle (const ::WPXPropertyList &propList, const ::WPXPropertyListVector &gradient) |
| void | startLayer (const ::WPXPropertyList &propList) |
| void | endLayer () |
| void | startEmbeddedGraphics (const ::WPXPropertyList &propList) |
| void | endEmbeddedGraphics () |
| void | drawRectangle (const ::WPXPropertyList &propList) |
| void | drawEllipse (const ::WPXPropertyList &propList) |
| void | drawPolygon (const ::WPXPropertyListVector &vertices) |
| void | drawPolyline (const ::WPXPropertyListVector &vertices) |
| void | drawPath (const ::WPXPropertyListVector &path) |
| void | drawGraphicObject (const ::WPXPropertyList &propList, const ::WPXBinaryData &binaryData) |
| void | startTextObject (const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path) |
| void | endTextObject () |
| void | insertTab () |
| Called when a TAB character should be inserted. More... | |
| void | insertSpace () |
| Called when an explicit space should be inserted. More... | |
| void | insertText (const WPXString &text) |
| Called when a string of text should be inserted. More... | |
| void | insertLineBreak () |
| Called when a line break should be inserted. More... | |
| void | insertField (const WPXString &type, const WPXPropertyList &propList) |
| Called when a field should be inserted. More... | |
| void | defineOrderedListLevel (const WPXPropertyList &propList) |
| Defines an ordered (enumerated) list level. More... | |
| void | defineUnorderedListLevel (const WPXPropertyList &propList) |
| Defines an unordered (unenumerated) list level. More... | |
| void | openOrderedListLevel (const WPXPropertyList &) |
| Called when a new ordered list level should be opened Argument defines a set of properties for the list. More... | |
| void | openUnorderedListLevel (const WPXPropertyList &) |
| Called when a new unordered list level should be opened Argument defines a set of properties for the list level. More... | |
| void | closeOrderedListLevel () |
| Called when an unordered list level should be closed. More... | |
| void | closeUnorderedListLevel () |
| Called when an ununordered list level should be closed. More... | |
| void | openListElement (const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) |
| Called when a list element should be opened. More... | |
| void | closeListElement () |
| Called when a list element should be closed. More... | |
| void | openParagraph (const WPXPropertyList &propList, const WPXPropertyListVector &tabStops) |
| Called when a new paragraph is opened. More... | |
| void | closeParagraph () |
| Called when a paragraph is closed. More... | |
| void | openSpan (const WPXPropertyList &propList) |
| Called when a text span is opened. More... | |
| void | closeSpan () |
| Called when a text span is closed. More... | |
Protected Attributes | |
| shared_ptr < MWAWGraphicInterfaceInternal::State > | m_state |
| the actual state More... | |
main class used to define the final interface to generate picture
| MWAWGraphicInterface::MWAWGraphicInterface | ( | ) |
constructor
| MWAWGraphicInterface::~MWAWGraphicInterface | ( | ) |
destructor
| void MWAWGraphicInterface::closeListElement | ( | ) |
Called when a list element should be closed.
|
inline |
Called when an unordered list level should be closed.
| void MWAWGraphicInterface::closeParagraph | ( | ) |
Called when a paragraph is closed.
Referenced by closeListElement().
| void MWAWGraphicInterface::closeSpan | ( | ) |
Called when a text span is closed.
|
inline |
Called when an ununordered list level should be closed.
| void MWAWGraphicInterface::defineOrderedListLevel | ( | const WPXPropertyList & | propList | ) |
Defines an ordered (enumerated) list level.
| propList | Defines a set of properties for the list. May contain:
|
| void MWAWGraphicInterface::defineUnorderedListLevel | ( | const WPXPropertyList & | propList | ) |
Defines an unordered (unenumerated) list level.
| propList | Defines a set of properties for the list level. May contain:
|
| void MWAWGraphicInterface::drawEllipse | ( | const ::WPXPropertyList & | propList | ) |
Referenced by MWAWGraphicShape::send().
| void MWAWGraphicInterface::drawGraphicObject | ( | const ::WPXPropertyList & | propList, |
| const ::WPXBinaryData & | binaryData | ||
| ) |
| void MWAWGraphicInterface::drawPath | ( | const ::WPXPropertyListVector & | path | ) |
Referenced by MWAWGraphicShape::send().
| void MWAWGraphicInterface::drawPolygon | ( | const ::WPXPropertyListVector & | vertices | ) |
Referenced by MWAWGraphicShape::send().
| void MWAWGraphicInterface::drawPolyline | ( | const ::WPXPropertyListVector & | vertices | ) |
Referenced by MWAWGraphicShape::send().
| void MWAWGraphicInterface::drawRectangle | ( | const ::WPXPropertyList & | propList | ) |
Referenced by MWAWGraphicShape::send().
| void MWAWGraphicInterface::endDocument | ( | ) |
| void MWAWGraphicInterface::endEmbeddedGraphics | ( | ) |
| void MWAWGraphicInterface::endLayer | ( | ) |
| void MWAWGraphicInterface::endPage | ( | ) |
| void MWAWGraphicInterface::endTextObject | ( | ) |
| bool MWAWGraphicInterface::getBinaryResult | ( | WPXBinaryData & | result, |
| std::string & | mimeType | ||
| ) |
return the final graphic
| void MWAWGraphicInterface::insertField | ( | const WPXString & | type, |
| const WPXPropertyList & | propList | ||
| ) |
Called when a field should be inserted.
| type | may include:
|
| propList | Defines a set of properties for the field. May contain:
|
| void MWAWGraphicInterface::insertLineBreak | ( | ) |
Called when a line break should be inserted.
| void MWAWGraphicInterface::insertSpace | ( | ) |
Called when an explicit space should be inserted.
| void MWAWGraphicInterface::insertTab | ( | ) |
Called when a TAB character should be inserted.
| void MWAWGraphicInterface::insertText | ( | const WPXString & | text | ) |
Called when a string of text should be inserted.
| text | A textbuffer encoded as a UTF8 string |
Referenced by insertField(), insertLineBreak(), insertSpace(), and insertTab().
| void MWAWGraphicInterface::openListElement | ( | const WPXPropertyList & | propList, |
| const WPXPropertyListVector & | tabStops | ||
| ) |
Called when a list element should be opened.
| propList | Property list for the paragraph. May contain:
|
| tabStops | List of tabstop definitions for the paragraph. If the list is empty, default tabstop definition should be used. Each tab stop may contain:
|
|
inline |
Called when a new ordered list level should be opened Argument defines a set of properties for the list.
Must contain:
libwpd:id A unique integer identifier for the list libwpd:level The level of the list in the hierarchy | void MWAWGraphicInterface::openParagraph | ( | const WPXPropertyList & | propList, |
| const WPXPropertyListVector & | tabStops | ||
| ) |
Called when a new paragraph is opened.
This (or openListElement) will always be called before any text or span is placed into the document.
| propList | Property list for the paragraph. May contain:
|
| tabStops | List of tabstop definitions for the paragraph. If the list is empty, default tabstop definition should be used. Each tab stop may contain:
|
Referenced by openListElement().
| void MWAWGraphicInterface::openSpan | ( | const WPXPropertyList & | propList | ) |
Called when a text span is opened.
| propList | Property list for the span. May contain:
|
|
inline |
Called when a new unordered list level should be opened Argument defines a set of properties for the list level.
Must contain:
libwpd:id A unique integer identifier for the list libwpd:level The level of the list in the hierarchy | void MWAWGraphicInterface::setDocumentMetaData | ( | const WPXPropertyList & | propList | ) |
Called when all document metadata should be set.
This is always the first callback made.
| propList | Property list for the metadata. May contain:
|
| void MWAWGraphicInterface::setStyle | ( | const ::WPXPropertyList & | propList, |
| const ::WPXPropertyListVector & | gradient | ||
| ) |
Referenced by MWAWGraphicShape::send().
| void MWAWGraphicInterface::startDocument | ( | const ::WPXPropertyList & | propList | ) |
| void MWAWGraphicInterface::startEmbeddedGraphics | ( | const ::WPXPropertyList & | propList | ) |
| void MWAWGraphicInterface::startLayer | ( | const ::WPXPropertyList & | propList | ) |
| void MWAWGraphicInterface::startPage | ( | const ::WPXPropertyList & | propList | ) |
| void MWAWGraphicInterface::startTextObject | ( | const ::WPXPropertyList & | propList, |
| const ::WPXPropertyListVector & | path | ||
| ) |
|
protected |
the actual state
Referenced by closeParagraph(), closeSpan(), defineOrderedListLevel(), defineUnorderedListLevel(), drawEllipse(), drawGraphicObject(), drawPath(), drawPolygon(), drawPolyline(), drawRectangle(), endDocument(), endEmbeddedGraphics(), endLayer(), endTextObject(), getBinaryResult(), insertText(), openParagraph(), openSpan(), setStyle(), startDocument(), startEmbeddedGraphics(), startLayer(), and startTextObject().