LibreOffice Module lotuswordpro (master) 1
|
Lwp-draw-rectangle(rounded-corner rectangle) object. More...
#include <lwpdrawobj.hxx>
Public Member Functions | |
LwpDrawRectangle (SvStream *pStream, DrawingOffsetAndScale *pTransData) | |
@descr Constructor of class LwpDrawRectangle More... | |
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) |
Protected Member Functions | |
virtual void | Read () override |
@descr reading function of class LwpDrawRectangle 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 Member Functions | |
XFFrame * | CreateRoundedRect (const OUString &rStyleName) |
Private Attributes | |
SdwPoint | m_aVector [16] |
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 |
Lwp-draw-rectangle(rounded-corner rectangle) object.
Definition at line 230 of file lwpdrawobj.hxx.
LwpDrawRectangle::LwpDrawRectangle | ( | SvStream * | pStream, |
DrawingOffsetAndScale * | pTransData | ||
) |
@descr Constructor of class LwpDrawRectangle
pStream | The memory stream which contains the lwp-sdw draw objects |
Definition at line 644 of file lwpdrawobj.cxx.
|
overrideprotectedvirtual |
@descr create XF-draw object and assign the style name to it.
style | name. |
Implements LwpDrawObj.
Definition at line 689 of file lwpdrawobj.cxx.
References CreateRoundedRect(), DrawingOffsetAndScale::fScaleX, DrawingOffsetAndScale::fScaleY, m_aVector, LwpDrawObj::m_eType, LwpDrawObj::m_pTransData, OT_RNDRECT, LwpDrawObj::SetPosition(), TWIPS_PER_CM, x, and SdwPoint::y.
|
private |
Definition at line 716 of file lwpdrawobj.cxx.
References XFDrawPath::ClosePath(), XFDrawPath::CurveTo(), DrawingOffsetAndScale::fScaleX, DrawingOffsetAndScale::fScaleY, XFDrawPath::LineTo(), m_aVector, LwpDrawObj::m_pTransData, XFDrawPath::MoveTo(), LwpDrawObj::SetPosition(), XFContent::SetStyleName(), TWIPS_PER_CM, x, and SdwPoint::y.
Referenced by CreateDrawObj(), and CreateStandardDrawObj().
|
overrideprotectedvirtual |
@descr create XF-draw object and assign the style name to it.
style | name. |
Implements LwpDrawObj.
Definition at line 759 of file lwpdrawobj.cxx.
References CreateRoundedRect(), DrawingOffsetAndScale::fOffsetX, DrawingOffsetAndScale::fOffsetY, tools::Rectangle::GetHeight(), SdwRectangle::GetOriginalRect(), SdwRectangle::GetRotationAngle(), tools::Rectangle::GetWidth(), SdwRectangle::IsRectRotated(), tools::Rectangle::Left(), m_aVector, LwpDrawObj::m_eType, LwpDrawObj::m_pTransData, OT_RNDRECT, basegfx::rad2deg(), Point::setX(), Point::setY(), tools::Rectangle::Top(), TWIPS_PER_CM, x, and y.
|
overrideprotectedvirtual |
@descr reading function of class LwpDrawRectangle
Implements LwpDrawObj.
Definition at line 652 of file lwpdrawobj.cxx.
References m_aVector, LwpDrawObj::m_eType, LwpDrawObj::m_pStream, OT_RNDRECT, LwpDrawObj::ReadClosedObjStyle(), SvStream::ReadInt16(), SvStream::SeekRel(), x, and y.
|
overrideprotectedvirtual |
@descr register styles of a draw object according to the saved records data.
Implements LwpDrawObj.
Definition at line 674 of file lwpdrawobj.cxx.
References XFStyleManager::AddStyle(), SdwClosedObjStyleRec::aPenColor, LwpGlobalMgr::GetInstance(), IXFStyle::GetStyleName(), LwpGlobalMgr::GetXFStyleManager(), LwpDrawObj::m_aClosedObjStyleRec, IXFStyleRet::m_pStyle, SdwClosedObjStyleRec::nLineStyle, SdwClosedObjStyleRec::nLineWidth, LwpDrawObj::SetFillStyle(), and LwpDrawObj::SetLineStyle().
|
private |
Definition at line 233 of file lwpdrawobj.hxx.
Referenced by CreateDrawObj(), CreateRoundedRect(), CreateStandardDrawObj(), and Read().