LibreOffice Module sw (master)  1
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
XmlPortionDumper Class Reference
Inheritance diagram for XmlPortionDumper:
[legend]
Collaboration diagram for XmlPortionDumper:
[legend]

Public Member Functions

 XmlPortionDumper (xmlTextWriterPtr some_writer, const OUString &rText)
 
virtual void Text (TextFrameIndex nLength, PortionType nType, sal_Int32 nHeight, sal_Int32 nWidth) override
 
virtual void Special (TextFrameIndex nLength, const OUString &rText, PortionType nType, sal_Int32 nHeight, sal_Int32 nWidth, const SwFont *pFont) override
 
virtual void LineBreak (sal_Int32 nWidth) override
 line break. More...
 
virtual void Skip (TextFrameIndex nLength) override
 
virtual void Finish () override
 end of paragraph. More...
 
- Public Member Functions inherited from SwPortionHandler
 SwPortionHandler ()
 
virtual ~SwPortionHandler ()
 (empty) constructor More...
 

Static Private Member Functions

static const char * getTypeName (PortionType nType)
 

Private Attributes

xmlTextWriterPtr const writer
 
TextFrameIndex ofs
 
const OUString & m_rText
 
OUString m_aLine
 

Detailed Description

Definition at line 33 of file xmldump.cxx.

Constructor & Destructor Documentation

XmlPortionDumper::XmlPortionDumper ( xmlTextWriterPtr  some_writer,
const OUString &  rText 
)
inlineexplicit

Definition at line 112 of file xmldump.cxx.

Member Function Documentation

virtual void XmlPortionDumper::Finish ( )
inlineoverridevirtual

end of paragraph.

This method is to be called when all the paragraph's portions have been processed.

Implements SwPortionHandler.

Definition at line 219 of file xmldump.cxx.

static const char* XmlPortionDumper::getTypeName ( PortionType  nType)
inlinestaticprivate
virtual void XmlPortionDumper::LineBreak ( sal_Int32  nWidth)
inlineoverridevirtual

line break.

This method is called whenever a line break in the layout occurs.

Implements SwPortionHandler.

Definition at line 189 of file xmldump.cxx.

virtual void XmlPortionDumper::Skip ( TextFrameIndex  nLength)
inlineoverridevirtual
Parameters
nLengthnumber of 'model string' characters to be skipped

Implements SwPortionHandler.

Definition at line 209 of file xmldump.cxx.

virtual void XmlPortionDumper::Special ( TextFrameIndex  nLength,
const OUString &  rText,
PortionType  nType,
sal_Int32  nHeight,
sal_Int32  nWidth,
const SwFont pFont 
)
inlineoverridevirtual
Parameters
nLengthlength of this portion in the model string
rTexttext which is painted on-screen
nTypetype of this portion
nHeightfont size of the painted text

Implements SwPortionHandler.

Definition at line 157 of file xmldump.cxx.

References SwFont::dumpAsXml(), getTypeName(), and OUStringToOString().

virtual void XmlPortionDumper::Text ( TextFrameIndex  nLength,
PortionType  nType,
sal_Int32  nHeight,
sal_Int32  nWidth 
)
inlineoverridevirtual
Parameters
nLengthlength of this portion in the model string
rTexttext which is painted on-screen

Implements SwPortionHandler.

Definition at line 122 of file xmldump.cxx.

References getTypeName().

Member Data Documentation

OUString XmlPortionDumper::m_aLine
private

Definition at line 39 of file xmldump.cxx.

const OUString& XmlPortionDumper::m_rText
private

Definition at line 38 of file xmldump.cxx.

TextFrameIndex XmlPortionDumper::ofs
private

Definition at line 37 of file xmldump.cxx.

xmlTextWriterPtr const XmlPortionDumper::writer
private

Definition at line 36 of file xmldump.cxx.


The documentation for this class was generated from the following file: