LibreOffice Module lotuswordpro (master) 1
lwplayout.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*************************************************************************
3 *
4 * The Contents of this file are made available subject to the terms of
5 * either of the following licenses
6 *
7 * - GNU Lesser General Public License Version 2.1
8 * - Sun Industry Standards Source License Version 1.1
9 *
10 * Sun Microsystems Inc., October, 2000
11 *
12 * GNU Lesser General Public License Version 2.1
13 * =============================================
14 * Copyright 2000 by Sun Microsystems, Inc.
15 * 901 San Antonio Road, Palo Alto, CA 94303, USA
16 *
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public
19 * License version 2.1, as published by the Free Software Foundation.
20 *
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
25 *
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 * MA 02111-1307 USA
30 *
31 *
32 * Sun Industry Standards Source License Version 1.1
33 * =================================================
34 * The contents of this file are subject to the Sun Industry Standards
35 * Source License Version 1.1 (the "License"); You may not use this file
36 * except in compliance with the License. You may obtain a copy of the
37 * License at http://www.openoffice.org/license.html.
38 *
39 * Software provided under this License is provided on an "AS IS" basis,
40 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
41 * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
42 * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
43 * See the License for the specific provisions governing your rights and
44 * obligations concerning the Software.
45 *
46 * The Initial Developer of the Original Code is: IBM Corporation
47 *
48 * Copyright: 2008 by IBM Corporation
49 *
50 * All Rights Reserved.
51 *
52 * Contributor(s): _______________________________________
53 *
54 *
55 ************************************************************************/
56/*************************************************************************
57 * @file
58 * For LWP filter architecture prototype
59 ************************************************************************/
60
61#ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPLAYOUT_HXX
62#define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPLAYOUT_HXX
63
64#include <memory>
65#include <sal/config.h>
66#include <config_lgpl.h>
67
68#include <rtl/ref.hxx>
69
70#include <lwpobj.hxx>
71#include <lwpobjhdr.hxx>
72#include <lwpobjstrm.hxx>
73#include <lwpobjid.hxx>
74#include "lwpdlvlist.hxx"
75
76#include "lwplayoutdef.hxx"
77#include <xfilter/xfdefs.hxx>
78#include <xfilter/xffont.hxx>
80#include <xfilter/xfcolumns.hxx>
81#include <xfilter/xfborders.hxx>
82#include <xfilter/xfbgimage.hxx>
83#include "lwpusewhen.hxx"
84#include "lwplaypiece.hxx"
85
86
87#define FIRST_LAYOUTPAGENO 0x0001
88#define LAST_LAYOUTPAGENO 0xffff
89
90#define LAY_BUOYNEUTRAL 0x02
91#define LAY_BUOYLAYER 0x80
92
93class LwpPara;
95{
96public:
97 LwpVirtualLayout(LwpObjectHeader const &objHdr, LwpSvStream* pStrm);
98 virtual sal_uInt16 GetNumCols(){return 1;}
99 virtual double GetColGap(sal_uInt16 nIndex);
100 virtual bool IsAutoGrow(){ return false;}
101 virtual bool IsAutoGrowUp(){ return false;}
102 virtual bool IsAutoGrowLeft(){ return false;}
103 virtual bool IsAutoGrowRight(){ return false;}
104 bool IsFitGraphic();
105 bool IsAutoGrowWidth();
106 bool IsInlineToMargin() const;
109 {
111 throw std::runtime_error("recursion in layout");
113 bool bRet = HonorProtection();
115 return bRet;
116 }
118 {
120 throw std::runtime_error("recursion in layout");
122 bool bRet = MarginsSameAsParent();
124 return bRet;
125 }
127 {
129 throw std::runtime_error("recursion in layout");
131 bool bRet = IsProtected();
132 m_bGettingIsProtected = false;
133 return bRet;
134 }
136 {
138 throw std::runtime_error("recursion in layout");
140 bool bRet = IsAutoGrowDown();
142 return bRet;
143 }
145 {
147 throw std::runtime_error("recursion in layout");
149 bool bRet = HasProtection();
151 return bRet;
152 }
153 double GetMarginsValue(sal_uInt8 nWhichSide)
154 {
156 throw std::runtime_error("recursion in layout");
158 auto fRet = MarginsValue(nWhichSide);
160 return fRet;
161 }
162 double GetExtMarginsValue(sal_uInt8 nWhichSide)
163 {
165 throw std::runtime_error("recursion in layout");
167 auto fRet = ExtMarginsValue(nWhichSide);
169 return fRet;
170 }
171 const OUString& GetStyleName() const { return m_StyleName;}
172 bool IsComplex() const;
173 virtual bool IsAnchorPage(){ return false;}
174 virtual bool IsAnchorFrame(){ return false;}
175 virtual bool IsAnchorCell(){ return false;}
176 bool IsPage();
177 bool IsHeader();
178 bool IsFooter();
179 bool IsFrame();
180 bool IsCell();
181 bool IsSuperTable();
182 bool IsGroupHead();
183 virtual sal_uInt8 GetRelativeType();
184 bool IsRelativeAnchored();
186 virtual LwpUseWhen* VirtualGetUseWhen(){ return nullptr;}
187 virtual bool IsUseOnAllPages(){ return false;}
188 virtual bool IsUseOnAllEvenPages(){ return false;}
189 virtual bool IsUseOnAllOddPages(){ return false;}
190 virtual bool IsUseOnPage(){ return false;}
191 virtual sal_Int32 GetPageNumber(sal_uInt16 /*nLayoutNumber*/) { return -1;}
192 bool IsMinimumHeight() const;
193 virtual bool IsForWaterMark(){ return false;}
194 virtual LwpPara* GetLastParaOfPreviousStory() { return nullptr; }
197 void RegisterChildStyle();
198 bool NoContentReference();
199 bool IsStyleLayout();
201 {
203 {
204 return enumXFAlignMiddle;
205 }
207 {
208 return enumXFAlignBottom;
209 }
210 return enumXFAlignTop;
211 };
212 void SetStyleName(const OUString & str){ m_StyleName = str;}
213 virtual double GetWidth(){return -1;}
214
215 //Check whether there are contents in the layout
216 virtual bool HasContent(){return false;}
217 //End by
218protected:
219 void Read() override;
220 bool HasProtection();
221 virtual bool HonorProtection();
222 virtual bool IsProtected();
223 virtual bool IsAutoGrowDown(){ return false;}
224 virtual double MarginsValue(sal_uInt8 /*nWhichSide*/){return 0;}
225 virtual double ExtMarginsValue(sal_uInt8 /*nWhichSide*/){return 0;}
226 virtual bool MarginsSameAsParent();
227protected:
241 sal_uInt32 m_nAttributes;
242 sal_uInt32 m_nAttributes2;
243 sal_uInt32 m_nAttributes3;
244 sal_uInt32 m_nOverrideFlag;
245 sal_uInt16 m_nDirection;
246 sal_uInt16 m_nEditorID;
249 OUString m_StyleName;
251 {
280 };
282 {
287 LAY_DIRALLBITS = 0x0f
288 };
289 enum {SHIFT_UP = 0, SHIFT_DOWN = 4, SHIFT_LEFT = 8, SHIFT_RIGHT =12};
290public:
293};
294
296{
297public:
299 void Read(LwpObjectStream* pStrm);
302private:
303 LwpObjectID m_OnlyLayout; //LwpVirtualLayout
305};
306
308{
309public:
310 LwpHeadLayout(LwpObjectHeader const &objHdr, LwpSvStream* pStrm);
311 void RegisterStyle() override;
313protected:
314 void Read() override;
315 virtual LWP_LAYOUT_TYPE GetLayoutType () override { return LWP_HEAD_LAYOUT;}
316};
317
318class LwpLayoutStyle final
319{
320public:
323 void Read(LwpObjectStream* pStrm);
324private:
327 sal_uInt16 m_nKey;
328};
329
330class LwpLayoutMisc final
331{
332public:
335 void Read(LwpObjectStream* pStrm);
336private:
338 sal_uInt16 m_nGridType;
340};
341
343{
344public:
345 LwpMiddleLayout( LwpObjectHeader const &objHdr, LwpSvStream* pStrm );
346 virtual ~LwpMiddleLayout() override;
347 double GetGeometryHeight();
348 double GetGeometryWidth();
353 std::unique_ptr<XFBorders> GetXFBorders();
355 virtual bool IsAutoGrow() override;
356 virtual bool IsAutoGrowUp() override;
357 virtual bool IsAutoGrowLeft() override;
358 virtual bool IsAutoGrowRight() override;
359 virtual sal_uInt8 GetContentOrientation() override;
360 virtual bool HonorProtection() override;
361 virtual bool IsProtected() override;
363 std::unique_ptr<XFBGImage> GetXFBGImage();
365
366 LwpLayoutScale* GetLayoutScale(){return dynamic_cast<LwpLayoutScale*>(m_LayScale.obj().get());}
367 sal_uInt16 GetScaleMode();
368 sal_uInt16 GetScaleTile();
369 sal_uInt16 GetScaleCenter();
370
371 bool CanSizeRight();
372 virtual double GetWidth() override;
373 sal_Int32 GetMinimumWidth();
376 sal_Int32 DetermineWidth();
377 virtual double GetHeight();
379
380 bool IsPatternFill();
381 std::unique_ptr<XFBGImage> GetFillPattern();
382
383 //Check whether there are contents in the layout
384 virtual bool HasContent() override;
385
386protected:
387 void Read() override;
388 virtual bool MarginsSameAsParent() override;
389 virtual double MarginsValue(sal_uInt8 nWhichSide) override;
390 virtual double ExtMarginsValue(sal_uInt8 nWhichSide) override;
391 virtual bool IsAutoGrowDown() override;
392private:
394protected:
395 enum
396 {
399 };
400
414public:
417};
418
420{
421public:
422 LwpLayout( LwpObjectHeader const &objHdr, LwpSvStream* pStrm );
423 virtual ~LwpLayout() override;
428protected:
429 void Read() override;
430
431public:
432 LwpUseWhen* VirtualGetUseWhen() override;
433 virtual sal_uInt16 GetNumCols() override;
434 virtual double GetColGap(sal_uInt16 nIndex) override;
435 sal_uInt16 GetUsePage();
437 {
443 };
445 virtual bool IsUseOnAllPages() override;
446 virtual bool IsUseOnAllEvenPages() override;
447 virtual bool IsUseOnAllOddPages() override;
448 virtual bool IsUseOnPage() override;
451
452private:
462};
463
465{
466public:
467 LwpPlacableLayout( LwpObjectHeader const &objHdr, LwpSvStream* pStrm );
468 virtual ~LwpPlacableLayout() override;
471 virtual sal_uInt8 GetRelativeType() override;
472 sal_Int32 GetBaseLineOffset();
473 virtual bool IsAnchorPage() override;
474 virtual bool IsAnchorFrame() override;
475 virtual bool IsAnchorCell() override;
476 virtual void XFConvertFrame(XFContentContainer* /*pCont*/, sal_Int32 /*nStart*/ = 0, sal_Int32 /*nEnd*/ = 0, bool /*bAll*/ = false) {}
481 const rtl::Reference<XFFont>& GetFont() const { return m_pFont; }
482 void SetFont(rtl::Reference<XFFont> const & pFont);
484 {
495 };
496protected:
497 void Read() override;
498protected:
506 rtl::Reference<XFFont> m_pFont;//for frame position
507};
508#endif
509
510/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
rtl::Reference< LwpVirtualLayout > GetLayout(LwpVirtualLayout const *pStartLayout)
@descr: Looking for the layout which follows the pStartLayout
Definition: lwplayout.cxx:433
LwpObjectID & GetOnlyLayout()
Definition: lwplayout.hxx:300
LwpDLVListHeadTail m_Layouts
Definition: lwplayout.hxx:304
LwpObjectID m_OnlyLayout
Definition: lwplayout.hxx:303
void Read(LwpObjectStream *pStrm)
Definition: lwplayout.cxx:421
AtomHolder class of Word Pro to hold a string.
lwpcolor class (red, green, blue, extra)
Definition: lwpcolor.hxx:71
Double Linked Named Family Properties Virtual List.
Definition: lwpdlvlist.hxx:119
Double Linked Virtual List Head Tail.
Definition: lwpdlvlist.hxx:138
void RegisterStyle() override
@descr default register style function
Definition: lwplayout.cxx:486
virtual LWP_LAYOUT_TYPE GetLayoutType() override
Definition: lwplayout.hxx:315
rtl::Reference< LwpVirtualLayout > FindEnSuperTableLayout()
@descr find endnote supertable layout from the child layout list.
Definition: lwplayout.cxx:511
LwpHeadLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
Definition: lwplayout.cxx:472
void Read() override
@descr Read name of LwpDLNFVList from object stream
Definition: lwplayout.cxx:477
void Read(LwpObjectStream *pStrm)
Definition: lwplayout.cxx:557
sal_Int32 m_nGridDistance
Definition: lwplayout.hxx:337
sal_uInt16 m_nGridType
Definition: lwplayout.hxx:338
LwpAtomHolder m_aContentStyle
Definition: lwplayout.hxx:339
sal_uInt16 m_nKey
Definition: lwplayout.hxx:327
void Read(LwpObjectStream *pStrm)
Definition: lwplayout.cxx:538
LwpAtomHolder m_aDescription
Definition: lwplayout.hxx:326
sal_uInt32 m_nStyleDefinition
Definition: lwplayout.hxx:325
LwpObjectID m_LayGutterStuff
Definition: lwplayout.hxx:458
LwpUseWhen m_aUseWhen
Definition: lwplayout.hxx:455
UseWhenType GetUseWhenType()
@descr: Get use when type
Definition: lwplayout.cxx:1651
void Read() override
@descr Read name of LwpDLNFVList from object stream
Definition: lwplayout.cxx:1478
LwpObjectID m_LayJoinStuff
Definition: lwplayout.hxx:459
LwpObjectID m_LayShadow
Definition: lwplayout.hxx:460
LwpLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
Definition: lwplayout.cxx:1469
virtual bool IsUseOnPage() override
@descr: Whether it is use on current page
Definition: lwplayout.cxx:1810
virtual bool IsUseOnAllOddPages() override
@descr: Whether it is use on all odd pages
Definition: lwplayout.cxx:1785
bool m_bGettingShadow
Definition: lwplayout.hxx:453
LwpObjectID m_LayExtJoinStuff
Definition: lwplayout.hxx:461
virtual bool IsUseOnAllEvenPages() override
@descr: Whether it is use on all even pages
Definition: lwplayout.cxx:1760
XFShadow * GetXFShadow()
@descr: create xfshadow
Definition: lwplayout.cxx:1860
bool m_bGettingNumCols
Definition: lwplayout.hxx:454
virtual rtl::Reference< LwpVirtualLayout > GetContainerLayout() override
@descr get the layout that containers the current frame layout
Definition: lwplayout.cxx:1909
LwpObjectID & GetPosition()
Definition: lwplayout.hxx:449
virtual sal_uInt16 GetNumCols() override
@descr: Get columns number
Definition: lwplayout.cxx:1517
LwpObjectID m_LayColumns
Definition: lwplayout.hxx:457
LwpUseWhen * VirtualGetUseWhen() override
@descr: Get usewhen pointer
Definition: lwplayout.cxx:1714
@ StartWithinPage
Definition: lwplayout.hxx:439
@ StartWithinColume
Definition: lwplayout.hxx:438
@ StartOnNextPage
Definition: lwplayout.hxx:440
@ StartOnEvenPage
Definition: lwplayout.hxx:442
@ StartOnOddPage
Definition: lwplayout.hxx:441
virtual bool IsUseOnAllPages() override
@descr: Whether it is use on all pages
Definition: lwplayout.cxx:1735
XFColumns * GetXFColumns()
@descr: Create and return XFColumns object
Definition: lwplayout.cxx:1570
virtual ~LwpLayout() override
Definition: lwplayout.cxx:1476
LwpShadow * GetShadow()
@descr: Get the LwpShadow object according to m_LayShadow id.
Definition: lwplayout.cxx:1834
XFColumnSep * GetColumnSep()
@descr: Create and return XFColumnSep object
Definition: lwplayout.cxx:1620
sal_uInt16 GetUsePage()
@descr: Get use page
Definition: lwplayout.cxx:1689
LwpObjectID m_Position
Definition: lwplayout.hxx:456
virtual double GetColGap(sal_uInt16 nIndex) override
@descr: Get gap between columns
Definition: lwplayout.cxx:1545
sal_Int32 GetMinimumWidth()
Definition: lwplayout.cxx:989
LwpObjectID m_LayMargins
Definition: lwplayout.hxx:408
LwpObjectID & GetContent()
Definition: lwplayout.hxx:415
LwpObjectID m_LayScale
Definition: lwplayout.hxx:407
void Read() override
@descr Read name of LwpDLNFVList from object stream
Definition: lwplayout.cxx:574
virtual bool IsAutoGrow() override
@descr: Whether the height and width of layout is auto grow
Definition: lwplayout.cxx:1124
virtual double MarginsValue(sal_uInt8 nWhichSide) override
@descr: Get margin
Definition: lwplayout.cxx:710
LwpLayoutStyle m_aStyleStuff
Definition: lwplayout.hxx:404
rtl::Reference< LwpVirtualLayout > GetWaterMarkLayout()
@descr: Get watermark layout
Definition: lwplayout.cxx:1356
LwpTabOverride * GetTabOverride()
@descr: Add back color settings into xfpagemaster.
Definition: lwplayout.cxx:911
std::unique_ptr< XFBorders > GetXFBorders()
@descr: create xfborder.
Definition: lwplayout.cxx:834
LwpObjectID m_LayExtBorderStuff
Definition: lwplayout.hxx:411
std::unique_ptr< XFBGImage > GetXFBGImage()
@descr: Create and return xfbgimage object for watermark
Definition: lwplayout.cxx:1381
LwpObjectID m_LayBorderStuff
Definition: lwplayout.hxx:409
sal_uInt16 GetScaleMode()
@descr: Layscale for graphic & watermark
Definition: lwplayout.cxx:936
LwpObjectID m_TabPiece
Definition: lwplayout.hxx:403
sal_uInt16 GetScaleCenter()
Definition: lwplayout.cxx:958
bool m_bGettingBackgroundStuff
Definition: lwplayout.hxx:413
bool CanSizeRight()
Definition: lwplayout.cxx:981
virtual ~LwpMiddleLayout() override
Definition: lwplayout.cxx:572
LwpBorderStuff * GetBorderStuff()
@descr: Get the LwpBorderStuff object according to m_LayBorderStuff id.
Definition: lwplayout.cxx:774
LwpMiddleLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
Definition: lwplayout.cxx:565
LwpLayoutScale * GetLayoutScale()
Definition: lwplayout.hxx:366
virtual double ExtMarginsValue(sal_uInt8 nWhichSide) override
@descr: Get extmargin value
Definition: lwplayout.cxx:751
virtual bool IsAutoGrowUp() override
@descr: Whether the height of layout is auto grow up
Definition: lwplayout.cxx:1169
enumXFTextDir GetTextDirection()
@descr: Get text direction settings.
Definition: lwplayout.cxx:860
virtual bool MarginsSameAsParent() override
@descr: Whether the margins is same as parent layout
Definition: lwplayout.cxx:692
virtual bool IsAutoGrowLeft() override
@descr: Whether the height of layout is auto grow down
Definition: lwplayout.cxx:1198
sal_uInt16 GetScaleTile()
Definition: lwplayout.cxx:947
LwpLayoutMisc m_aMiscStuff
Definition: lwplayout.hxx:405
virtual sal_uInt8 GetContentOrientation() override
@descr: Get contents orientation
Definition: lwplayout.cxx:1240
virtual double GetWidth() override
@descr: Get layout height
Definition: lwplayout.cxx:1067
virtual bool HasContent() override
Definition: lwplayout.cxx:1463
LwpObjectID m_Content
Definition: lwplayout.hxx:401
LwpObjectID m_LayGeometry
Definition: lwplayout.hxx:406
sal_Int32 DetermineWidth()
Definition: lwplayout.cxx:1001
virtual bool IsAutoGrowDown() override
@descr: Whether the height of layout is auto grow down
Definition: lwplayout.cxx:1148
std::unique_ptr< XFBGImage > GetFillPattern()
@descr: Get the fill pattern style.
Definition: lwplayout.cxx:1109
LwpPoint GetOrigin()
@descr: Get layout origin point
Definition: lwplayout.cxx:1072
virtual bool IsAutoGrowRight() override
@descr: Whether the height of layout is auto grow down
Definition: lwplayout.cxx:1219
double GetGeometryWidth()
@descr: Get layout width, measured by "cm"
Definition: lwplayout.cxx:677
virtual bool HonorProtection() override
@descr: Whether it is honoring protection
Definition: lwplayout.cxx:1265
bool m_bGettingGeometry
Definition: lwplayout.hxx:412
bool IsPatternFill()
@descr: Whether the fill is pattern fill or not
Definition: lwplayout.cxx:1094
LwpObjectID m_BasedOnStyle
Definition: lwplayout.hxx:393
LwpBackgroundStuff * GetBackgroundStuff()
@descr: Get LwpBackgroundStuff object according to m_LayBackgroundStuff id;
Definition: lwplayout.cxx:804
virtual bool IsProtected() override
@descr: Whether it is protected
Definition: lwplayout.cxx:1304
LwpObjectID m_LayBackgroundStuff
Definition: lwplayout.hxx:410
bool IsSizeRightToContainer()
Definition: lwplayout.cxx:1018
LwpColor * GetBackColor()
@descr: Get background color.
Definition: lwplayout.cxx:894
LwpLayoutGeometry * GetGeometry()
@descr: Get the geometry of current layout
Definition: lwplayout.cxx:634
bool GetUsePrinterSettings()
@descr: Whether the page uses the printer setting
Definition: lwplayout.cxx:1437
double GetGeometryHeight()
@descr: Get layout height, measured by "cm"
Definition: lwplayout.cxx:662
virtual double GetHeight()
@descr: Get layout height
Definition: lwplayout.cxx:1061
bool IsSizeRightToContent()
Definition: lwplayout.cxx:1037
rtl::Reference< LwpObject > GetBasedOnStyle() const
Definition: lwplayout.cxx:619
Base class of all Lwp VO objects.
Definition: lwpobjhdr.hxx:71
object id class
Definition: lwpobjid.hxx:79
rtl::Reference< LwpObject > obj(VO_TYPE tag=VO_INVALID) const
@descr get object from object factory per the object id
Definition: lwpobjid.cxx:183
stream class for LwpObject body data provide stream like interface to read object data
Definition: lwpobjstrm.hxx:77
virtual sal_uInt8 GetRelativeType() override
@descr: Get relative type
Definition: lwplayout.cxx:2033
LwpLayoutRelativity * GetRelativityPiece()
@descr: get LayoutRelativity
Definition: lwplayout.cxx:2005
void SetFont(rtl::Reference< XFFont > const &pFont)
@descr: Set font style for setting position of frame
Definition: lwplayout.cxx:2115
virtual ~LwpPlacableLayout() override
Definition: lwplayout.cxx:1934
virtual bool IsAnchorFrame() override
@descr: whether the parent layout is frame layout
Definition: lwplayout.cxx:2090
virtual bool IsAnchorPage() override
@descr: whether the parent layout is page layout
Definition: lwplayout.cxx:2078
sal_Int32 m_nBaseLineOffset
Definition: lwplayout.hxx:503
sal_Int32 GetBaseLineOffset()
@descr: Get offset from the baseline
Definition: lwplayout.cxx:2046
LwpAtomHolder m_Script
Definition: lwplayout.hxx:504
LwpObjectID m_LayRelativity
Definition: lwplayout.hxx:505
sal_uInt8 m_nWrapType
Definition: lwplayout.hxx:501
virtual bool IsAnchorCell() override
@descr: whether the parent layout is cell layout
Definition: lwplayout.cxx:2102
virtual void XFConvertFrame(XFContentContainer *, sal_Int32=0, sal_Int32=0, bool=false)
Definition: lwplayout.hxx:476
sal_uInt8 m_nBuoyancy
Definition: lwplayout.hxx:502
void Read() override
@descr Read name of LwpDLNFVList from object stream
Definition: lwplayout.cxx:1936
sal_uInt8 GetWrapType()
@descr: get wrap type
Definition: lwplayout.cxx:1981
LwpPlacableLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
Definition: lwplayout.cxx:1924
rtl::Reference< XFFont > m_pFont
Definition: lwplayout.hxx:506
bool m_bGettingLayoutRelativity
Definition: lwplayout.hxx:500
const rtl::Reference< XFFont > & GetFont() const
@descr: Get font style for setting position of frame
Definition: lwplayout.hxx:481
point class
encapsulate XInputStream to provide SvStream like interfaces
Definition: lwpsvstream.hxx:69
enumXFAlignType GetVerticalAlignmentType() const
Definition: lwplayout.hxx:200
virtual sal_uInt8 GetRelativeType()
@descr: get the relative type
Definition: lwplayout.cxx:288
virtual bool IsAnchorCell()
Definition: lwplayout.hxx:175
LwpUseWhen * GetUseWhen()
@descr: Get usewhen pointer
Definition: lwplayout.cxx:224
bool IsStyleLayout()
Definition: lwplayout.cxx:345
sal_uInt16 m_nEditorID
Definition: lwplayout.hxx:246
virtual bool MarginsSameAsParent()
Definition: lwplayout.cxx:121
bool IsFrame()
@descr: Whether this layout is frame layout or not
Definition: lwplayout.cxx:267
bool IsInlineToMargin() const
@descr: Determine whether the layout width is to margin
Definition: lwplayout.cxx:416
bool IsFooter()
@descr: Whether this layout is footer layout or not
Definition: lwplayout.cxx:263
virtual rtl::Reference< LwpVirtualLayout > GetContainerLayout()
Definition: lwplayout.hxx:196
bool IsHeader()
@descr: Whether this layout is header layout or not
Definition: lwplayout.cxx:259
void Read() override
@descr Read name of LwpDLNFVList from object stream
Definition: lwplayout.cxx:101
virtual double ExtMarginsValue(sal_uInt8)
Definition: lwplayout.hxx:225
LwpVirtualLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
Definition: lwplayout.cxx:77
virtual double GetColGap(sal_uInt16 nIndex)
@descr: Get the gap between columns
Definition: lwplayout.cxx:130
virtual bool IsUseOnPage()
Definition: lwplayout.hxx:190
bool GetMarginsSameAsParent()
Definition: lwplayout.hxx:117
sal_uInt32 m_nOverrideFlag
Definition: lwplayout.hxx:244
virtual bool IsAutoGrow()
Definition: lwplayout.hxx:100
bool IsRelativeAnchored()
@descr: whether it is relative anchored layout
Definition: lwplayout.cxx:295
bool m_bGettingExtMarginsValue
Definition: lwplayout.hxx:234
bool m_bGettingIsAutoGrowDown
Definition: lwplayout.hxx:232
rtl::Reference< LwpVirtualLayout > GetParentLayout()
@descr: Get parent layout
Definition: lwplayout.cxx:317
virtual sal_Int32 GetPageNumber(sal_uInt16)
Definition: lwplayout.hxx:191
virtual double MarginsValue(sal_uInt8)
Definition: lwplayout.hxx:224
OUString m_StyleName
Definition: lwplayout.hxx:249
bool IsComplex() const
@descr: Whether it is a mirror layout
Definition: lwplayout.cxx:218
virtual bool IsAnchorPage()
Definition: lwplayout.hxx:173
virtual sal_uInt8 GetContentOrientation()
Definition: lwplayout.hxx:107
virtual bool HonorProtection()
@descr: Whether it is honoring protection
Definition: lwplayout.cxx:141
bool GetHonorProtection()
Definition: lwplayout.hxx:108
void SetStyleName(const OUString &str)
Definition: lwplayout.hxx:212
bool m_bGettingScaleCenter
Definition: lwplayout.hxx:236
virtual bool IsUseOnAllEvenPages()
Definition: lwplayout.hxx:188
virtual bool IsProtected()
@descr: Whether it is protected
Definition: lwplayout.cxx:167
sal_uInt32 m_nAttributes3
Definition: lwplayout.hxx:243
virtual bool IsAutoGrowUp()
Definition: lwplayout.hxx:101
virtual bool IsAutoGrowDown()
Definition: lwplayout.hxx:223
virtual LwpPara * GetLastParaOfPreviousStory()
Definition: lwplayout.hxx:194
bool m_bGettingAutoGrowUp
Definition: lwplayout.hxx:240
bool m_bGettingUsePrinterSettings
Definition: lwplayout.hxx:235
virtual double GetWidth()
Definition: lwplayout.hxx:213
const OUString & GetStyleName() const
Definition: lwplayout.hxx:171
bool IsMinimumHeight() const
@descr: whether it is MinimumHeight layout
Definition: lwplayout.cxx:308
virtual bool IsUseOnAllPages()
Definition: lwplayout.hxx:187
sal_uInt32 m_nAttributes
Definition: lwplayout.hxx:241
virtual bool IsForWaterMark()
Definition: lwplayout.hxx:193
bool IsFitGraphic()
@descr: Whether the size of layout is fit the graphic
Definition: lwplayout.cxx:401
bool HasProtection()
@descr: Whether it has protection
Definition: lwplayout.cxx:199
bool m_bGettingIsProtected
Definition: lwplayout.hxx:231
bool m_bGettingHasProtection
Definition: lwplayout.hxx:230
sal_uInt16 m_nDirection
Definition: lwplayout.hxx:245
bool IsSuperTable()
@descr: Whether this layout is supertable layout or not
Definition: lwplayout.cxx:280
bool GetIsProtected()
Definition: lwplayout.hxx:126
double GetExtMarginsValue(sal_uInt8 nWhichSide)
Definition: lwplayout.hxx:162
bool IsGroupHead()
@descr: Whether this layout is group layout or not
Definition: lwplayout.cxx:284
bool NoContentReference()
Definition: lwplayout.cxx:340
bool IsAutoGrowWidth()
@descr: Whether the width of layout is auto grow
Definition: lwplayout.cxx:410
LwpObjectID m_NextEnumerated
Definition: lwplayout.hxx:247
bool GetIsAutoGrowDown()
Definition: lwplayout.hxx:135
void RegisterChildStyle()
@descr: Register child layout style
Definition: lwplayout.cxx:327
LwpVirtualLayout * FindChildByType(LWP_LAYOUT_TYPE eType)
@descr: Find child layout by layout type
Definition: lwplayout.cxx:370
bool IsPage()
@descr: Whether this layout is page layout or not
Definition: lwplayout.cxx:255
double GetMarginsValue(sal_uInt8 nWhichSide)
Definition: lwplayout.hxx:153
bool m_bGettingBorderStuff
Definition: lwplayout.hxx:237
virtual bool IsAutoGrowRight()
Definition: lwplayout.hxx:103
bool m_bGettingMarginsValue
Definition: lwplayout.hxx:233
bool IsCell()
@descr: Whether this layout is cell layout or not
Definition: lwplayout.cxx:272
virtual bool IsAutoGrowLeft()
Definition: lwplayout.hxx:102
virtual sal_uInt16 GetNumCols()
Definition: lwplayout.hxx:98
bool m_bGettingStyleLayout
Definition: lwplayout.hxx:239
virtual bool IsUseOnAllOddPages()
Definition: lwplayout.hxx:189
virtual LwpUseWhen * VirtualGetUseWhen()
Definition: lwplayout.hxx:186
virtual bool IsAnchorFrame()
Definition: lwplayout.hxx:174
sal_uInt32 m_nAttributes2
Definition: lwplayout.hxx:242
LwpObjectID m_PreviousEnumerated
Definition: lwplayout.hxx:248
bool m_bGettingHonorProtection
Definition: lwplayout.hxx:228
virtual bool HasContent()
Definition: lwplayout.hxx:216
virtual LWP_LAYOUT_TYPE GetLayoutType()
Definition: lwplayout.hxx:291
@ LWP_FOOTNOTE_SUPERTABLE_LAYOUT
Definition: lwplayout.hxx:275
@ LWP_ENDNOTE_SUPERTABLE_LAYOUT
Definition: lwplayout.hxx:274
bool GetHasProtection()
Definition: lwplayout.hxx:144
bool m_bGettingMarginsSameAsParent
Definition: lwplayout.hxx:229
A container for content.
Shadow object.
Definition: xfshadow.hxx:72
sal_Int32 nIndex
#define TEXT_ORIENT_LRTB
#define STYLE_CENTEREDVERTICALLY
#define STYLE_BOTTOMALIGNED
Base class of all Lwp VO objects.
unsigned char sal_uInt8
enumXFAlignType
Definition: xfdefs.hxx:172
@ enumXFAlignBottom
Definition: xfdefs.hxx:180
@ enumXFAlignMiddle
Definition: xfdefs.hxx:179
@ enumXFAlignTop
Definition: xfdefs.hxx:178
enumXFTextDir
Definition: xfdefs.hxx:277