70 , m_pGraphicObj(pGraphicObj)
71 , m_pDrawObjVector(nullptr)
86 unsigned char BinSignature[2];
88 if (BinSignature[0] !=
'S' || BinSignature[1] !=
'M')
104 unsigned short nRecCount(0);
119 if (xMyFrameLayout.is())
123 if (pMyScale && pFrameGeo)
128 double fGrafOrgWidth =
static_cast<double>(nWidth)/
TWIPS_PER_CM;
129 double fGrafOrgHeight =
static_cast<double>(nHeight)/
TWIPS_PER_CM;
132 double fLeftMargin = xMyFrameLayout->GetMarginsValue(
MARGIN_LEFT);
133 double fTopMargin = xMyFrameLayout->GetMarginsValue(
MARGIN_TOP);
168 double fScaleX = fWidth1 / fWidth0;
169 double fScaleY = fHeight1 / fHeight0;
184 if (xMyFrameLayout->GetScaleCenter())
213 SAL_WARN(
"lwp",
"stream too short for claimed no of records");
218 for (
unsigned short i = 0;
i < nRecCount;
i++)
223 pDrawObjVector->push_back(xXFDrawObj);
236 unsigned char BinSignature[2];
239 if (BinSignature[0] !=
'S' || BinSignature[1] !=
'M')
249 unsigned short nRecCount(0);
266 SAL_WARN(
"lwp",
"stream too short for claimed no of records");
271 for (
unsigned short i = 0;
i < nRecCount;
i++)
283 xXFDrawGroup->Add(xXFDrawObj.get());
298 unsigned char recType(0);
301 std::unique_ptr<LwpDrawObj> pDrawObj;
387 if (pDrawObj && recType !=
OT_GROUP)
389 xRetObject = pDrawObj->CreateXFDrawObject();
rtl::Reference< LwpVirtualLayout > GetLayout(LwpVirtualLayout const *pStartLayout)
Lwp-draw-polyline object.
Lwp-draw-rectangle(rounded-corner rectangle) object.
void GetGrafOrgSize(tools::Long &rWidth, tools::Long &rHeight)
sal_Int32 GetHeight() const
sal_Int32 GetWidth() const
sal_uInt32 GetScalePercentage() const
sal_uInt16 GetScaleMode() const
sal_Int32 GetScaleWidth() const
sal_Int32 GetScaleHeight() const
DrawingOffsetAndScale m_aTransformData
std::vector< rtl::Reference< XFFrame > > * m_pDrawObjVector
void BeginDrawObjects(std::vector< rtl::Reference< XFFrame > > *pDrawObjVector)
@descr entry of lwp-drawing objects.
LwpGraphicObject * m_pGraphicObj
rtl::Reference< XFDrawGroup > CreateDrawGroupObject()
@descr when we encounter a group object the function will be called to create a XF-drawgroup object t...
LwpSdwGroupLoaderV0102(SvStream *pStream, LwpGraphicObject *pGraphicObj)
rtl::Reference< XFFrame > CreateDrawObject()
@descr Create the XF-drawing objects according to the object type read from bento stream.
constexpr tools::Long Y() const
constexpr tools::Long X() const
std::size_t ReadBytes(void *pData, std::size_t nSize)
sal_uInt64 SeekRel(sal_Int64 nPos)
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
sal_uInt64 remainingSize()
SvStream & ReadUChar(unsigned char &rChar)
Group object for drawing.
GtkMediaStream * m_pStream
#define SAL_WARN(area, stream)
The file declares the LwpDrawObjects and associated class like LwpDrawGroup, LwpDrawRectangle and so ...
const sal_uInt8 MARGIN_TOP
const sal_uInt8 MARGIN_LEFT