|
LibreOffice Module lotuswordpro (master) 1
|
#include <lwpdrawobj.hxx>
Public Member Functions | |
| LwpDrawTextBox (SvStream *pStream) | |
| @descr Constructor of class LwpDrawTextBox More... | |
| virtual | ~LwpDrawTextBox () override |
Public Member Functions inherited from LwpDrawObj | |
| LwpDrawObj (SvStream *pStream, DrawingOffsetAndScale *pTransData=nullptr) | |
| @descr Constructor of class LwpDrawObj More... | |
| virtual | ~LwpDrawObj () |
| rtl::Reference< XFFrame > | CreateXFDrawObject () |
| @descr create a completed XF-draw object(read data, register styles and create XF-draw object) More... | |
| void | SetObjectType (DrawObjectType eType) |
Static Public Member Functions | |
| static void | SetFontStyle (rtl::Reference< XFFont > const &pFont, SdwTextBoxRecord const *pRec) |
Protected Member Functions | |
| virtual void | Read () override |
| @descr reading function of class LwpDrawTextBox More... | |
| virtual OUString | RegisterStyle () override |
| @descr register styles of a draw object according to the saved records data. More... | |
| virtual rtl::Reference< XFFrame > | CreateDrawObj (const OUString &rStyleName) override |
| @descr create XF-draw object and assign the style name to it. More... | |
| virtual rtl::Reference< XFFrame > | CreateStandardDrawObj (const OUString &rStyleName) override |
| @descr create XF-draw object and assign the style name to it. More... | |
Protected Member Functions inherited from LwpDrawObj | |
| void | ReadClosedObjStyle () |
| @descr read the style of closed lwp-sdw-object like: rectangle, ellipse and so on. More... | |
| void | SetFillStyle (XFDrawStyle *pStyle) |
| @descr set fill style of drawing objects More... | |
| void | SetPosition (XFFrame *pObj) |
| @descr set position of a drawing object in the frame. More... | |
| virtual void | Read ()=0 |
| @descr read out the record of a draw object. More... | |
| virtual OUString | RegisterStyle ()=0 |
| @descr register styles of a draw object according to the saved records data. More... | |
| virtual rtl::Reference< XFFrame > | CreateDrawObj (const OUString &rStyleName)=0 |
| @descr create XF-draw object and assign the style name to it. More... | |
| virtual rtl::Reference< XFFrame > | CreateStandardDrawObj (const OUString &rStyleName)=0 |
| @descr create XF-draw object and assign the style name to it. More... | |
Private Attributes | |
| SdwTextBoxRecord | m_aTextRec |
| SdwPoint | m_aVector |
Additional Inherited Members | |
Static Protected Member Functions inherited from LwpDrawObj | |
| static void | SetLineStyle (XFDrawStyle *pStyle, sal_uInt8 nWidth, sal_uInt8 nLineStyle, const SdwColor &rColor) |
| @descr set line/border style of drawing objects. More... | |
| static void | SetArrowHead (XFDrawStyle *pOpenedObjStyle, sal_uInt8 nArrowFlag, sal_uInt8 nLineWidth) |
| @descr set arrowhead of a xf-drawing object. More... | |
| static OUString | GetArrowName (sal_uInt8 nArrowStyle) |
| @descr get arrow style name according to the flag. More... | |
Protected Attributes inherited from LwpDrawObj | |
| DrawObjectType | m_eType |
| SvStream * | m_pStream |
| SdwDrawObjHeader | m_aObjHeader |
| SdwClosedObjStyleRec | m_aClosedObjStyleRec |
| DrawingOffsetAndScale * | m_pTransData |
Definition at line 292 of file lwpdrawobj.hxx.
|
explicit |
@descr Constructor of class LwpDrawTextBox
| pStream | The memory stream which contains the lwp-sdw draw objects |
Definition at line 956 of file lwpdrawobj.cxx.
|
overridevirtual |
Definition at line 960 of file lwpdrawobj.cxx.
References m_aTextRec, and SdwTextBoxRecord::pTextString.
|
overrideprotectedvirtual |
@descr create XF-draw object and assign the style name to it.
| style | name. |
Implements LwpDrawObj.
Definition at line 1082 of file lwpdrawobj.cxx.
References XFContentContainer::Add(), XFStyleManager::AddStyle(), LwpGlobalMgr::GetInstance(), IXFStyle::GetStyleName(), LwpCharSetMgr::GetTextCharEncoding(), LwpGlobalMgr::GetXFStyleManager(), LwpDrawObj::m_aObjHeader, m_aTextRec, IXFStyleRet::m_pStyle, SdwDrawObjHeader::nRecLen, SdwTextBoxRecord::nTextCharacterSet, SdwTextBoxRecord::pTextString, LwpDrawObj::SetPosition(), XFContent::SetStyleName(), sName, and TextLength.
Referenced by CreateStandardDrawObj().
|
overrideprotectedvirtual |
@descr create XF-draw object and assign the style name to it.
| style | name. |
Implements LwpDrawObj.
Definition at line 1117 of file lwpdrawobj.cxx.
References CreateDrawObj().
|
overrideprotectedvirtual |
@descr reading function of class LwpDrawTextBox
Implements LwpDrawObj.
Definition at line 1017 of file lwpdrawobj.cxx.
References SdwTextBoxRecord::aTextColor, DRAW_FACESIZE, SvStream::good(), LwpDrawObj::m_aObjHeader, m_aTextRec, m_aVector, LwpDrawObj::m_pStream, o3tl::make_unsigned(), SdwColor::nB, SdwColor::nG, SdwColor::nR, SdwDrawObjHeader::nRecLen, SdwTextBoxRecord::nTextAttrs, SdwTextBoxRecord::nTextCharacterSet, SdwTextBoxRecord::nTextExtraSpacing, SdwTextBoxRecord::nTextHeight, SdwTextBoxRecord::nTextRotation, SdwTextBoxRecord::nTextSize, SdwTextBoxRecord::nTextWidth, SdwTextBoxRecord::pTextString, SvStream::ReadBytes(), SvStream::ReadInt16(), SvStream::ReadUChar(), SvStream::ReadUInt16(), SvStream::SeekRel(), TextLength, SdwTextBoxRecord::tmpTextFaceName, SdwColor::unused, SdwPoint::x, and SdwPoint::y.
|
overrideprotectedvirtual |
@descr register styles of a draw object according to the saved records data.
Implements LwpDrawObj.
Definition at line 1062 of file lwpdrawobj.cxx.
References XFStyleManager::AddStyle(), LwpGlobalMgr::GetInstance(), IXFStyle::GetStyleName(), LwpGlobalMgr::GetXFStyleManager(), m_aTextRec, IXFStyleRet::m_pStyle, SetFontStyle(), and SdwTextBoxRecord::tmpTextFaceName.
|
static |
Definition at line 969 of file lwpdrawobj.cxx.
References SdwTextBoxRecord::aTextColor, enumXFCrossoutNone, enumXFCrossoutSignel, enumXFTransformSmallCaps, enumXFUnderlineDouble, enumXFUnderlineNone, enumXFUnderlineSingle, SdwColor::nB, SdwColor::nG, SdwColor::nR, SdwTextBoxRecord::nTextAttrs, SdwTextBoxRecord::nTextSize, TA_BOLD, TA_DOUBLEUNDER, TA_ITALIC, TA_SMALLCAPS, TA_STRIKETHRU, TA_UNDERLINE, and TA_WORDUNDERLINE.
Referenced by RegisterStyle(), and LwpDrawTextArt::RegisterStyle().
|
private |
Definition at line 295 of file lwpdrawobj.hxx.
Referenced by CreateDrawObj(), Read(), RegisterStyle(), and ~LwpDrawTextBox().
|
private |
Definition at line 296 of file lwpdrawobj.hxx.
Referenced by Read().