85 , m_pXFPageMaster(nullptr)
119 pStory->DoParse(pOutputStream);
134 pm1->
SetMargins(fLeft, fRight, fTop, fBottom);
271 sal_uInt32 nLengthPercent = 100;
280 if (fMarginWidth == 0.0)
283 nLengthPercent =
static_cast<sal_uInt32
>(
285 if (nLengthPercent > 100)
286 nLengthPercent = 100;
295 if (fMarginWidth == 0.0)
299 sal_uInt32 nIndentPercent =
static_cast<sal_uInt32
>(
301 if (nIndentPercent + nLengthPercent >= 100)
345 p1->SetStyleName(
GetName().str());
346 p1->SetPageMaster(pmname);
403 p1->SetStyleName(
"Endnote");
404 p1->SetPageMaster(pmname);
441 bool bFillerPage =
false;
555 bool bAlreadySeen = !aSeen.
insert(xLay.get()).second;
557 throw std::runtime_error(
"loop in conversion");
583 return fPagewidth - (fLeftMargin + fRightMargin);
596 sal_Int16 nPageNumber = -1;
611 bool bAlreadySeen = !aSeen.
insert(pPageHint).second;
613 throw std::runtime_error(
"loop in conversion");
621 nPageNumber = nNumber;
627 nPageNumber = nNumber;
637 nPageNumber = nNumber;
644 if (nPageNumber >= 0)
669 bool bScreen = pPrinter->IsDisplayPrinter();
672 Size aPaperSize = pPrinter->GetPaperSize();
673 aPaperSize = pPrinter->PixelToLogic(aPaperSize,
MapMode(MapUnit::Map10thMM));
674 fWidth =
static_cast<double>(aPaperSize.
Width()) / 100;
675 fHeight =
static_cast<double>(aPaperSize.
Height()) / 100;
695 double fWidth = 0, fHeight = 0;
706 double fWidth = 0, fHeight = 0;
718 if (pThisPara && pOtherPara)
720 if (pThisPara == pOtherPara)
727 return *pThisPara < *pOtherPara;
731 return pThisPara ==
nullptr;
778 std::unique_ptr<XFHeaderStyle> xHeaderStyle(
new XFHeaderStyle);
836 pHeaderStyle->
SetBorders(std::move(pBordres));
908 pStory->DoRegisterStyle();
914 pStory->DoXFConvert(xHeader.get());
942 std::unique_ptr<XFFooterStyle> xFooterStyle(
new XFFooterStyle);
997 pFooterStyle->
SetBorders(std::move(pBordres));
1058 pStory->DoRegisterStyle();
1064 pStory->DoXFConvert(xFooter.get());
Stream wrapper for sax writer.
virtual OUString GetStyleName()=0
@descr: return the style name.
void Read(LwpObjectStream *pStrm)
@descr read atomholder from object stream the default encoding used in Word Pro is 1252
void SetHeadFootFribMap(bool bFlag)
void SetHeadFootChange(XFContentContainer *pCont)
lwpcolor class (red, green, blue, extra)
bool IsValidColor() const
sal_uInt32 To24Color()
@descr return the BGR format
LwpObjectID & GetParent()
LwpObjectID & GetChildHead()
LwpAtomHolder & GetName()
VO_HEADTAILHOLDER, LwpDLVListHeadTailHolder, contains a LwpDLVListHeadTail (Head and tail id)
LwpObjectID & GetFillerPageTextID()
Document object, represent document and division.
LwpObjectID & GetDivInfoID()
LwpObjectID * GetValidFootnoteOpts()
@descr Get the footnoteoptions from the root document
sal_uInt16 GetNumberOfPagesBefore()
@descr Get the numbers of page before current division
LwpObjectID & GetPageHintsID()
LwpSection * EnumSections(LwpSection *pSection)
@descr: Get next section
LwpDocument * GetDocument()
XFStyleManager * GetXFStyleManager()
LwpChangeMgr * GetLwpChangeMgr()
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
UseWhenType GetUseWhenType()
@descr: Get use when type
void Read() override
@descr Read name of LwpDLNFVList from object stream
XFShadow * GetXFShadow()
@descr: create xfshadow
LwpObjectID & GetPosition()
virtual sal_uInt16 GetNumCols() override
@descr: Get columns number
XFColumns * GetXFColumns()
@descr: Create and return XFColumns object
std::unique_ptr< XFBorders > GetXFBorders()
@descr: create xfborder.
std::unique_ptr< XFBGImage > GetXFBGImage()
@descr: Create and return xfbgimage object for watermark
virtual bool IsAutoGrowUp() override
@descr: Whether the height of layout is auto grow up
enumXFTextDir GetTextDirection()
@descr: Get text direction settings.
std::unique_ptr< XFBGImage > GetFillPattern()
@descr: Get the fill pattern style.
double GetGeometryWidth()
@descr: Get layout width, measured by "cm"
bool IsPatternFill()
@descr: Whether the fill is pattern fill or not
LwpColor * GetBackColor()
@descr: Get background color.
LwpLayoutGeometry * GetGeometry()
@descr: Get the geometry of current layout
bool GetUsePrinterSettings()
@descr: Whether the page uses the printer setting
double GetGeometryHeight()
@descr: Get layout height, measured by "cm"
rtl::Reference< LwpObject > obj(VO_TYPE tag=VO_INVALID) const
@descr get object from object factory per the object id
void SetFoundry(LwpFoundry *pFoundry)
virtual void RegisterStyle()
@descr default register style function
std::unique_ptr< LwpObjectStream > m_pObjStrm
LwpFoundry * GetFoundry()
LwpObjectID & GetObjectID()
LwpObjectID & GetPosition()
LwpObjectID & GetPageLayoutID()
sal_uInt16 GetPageNumber() const
sal_uInt16 GetLayoutPageNumber() const
virtual void RegisterStyle() override
@descr: Register master page and page master style
void ParseBorders(XFPageMaster *pm1)
@descr: set page borders
bool HasFillerPageText(LwpFoundry const *pFoundry)
@descr: Whether has filler page text in current page layout
void ParseBackColor(XFPageMaster *pm1)
@descr: set page back color
LwpHeaderLayout * GetHeaderLayout()
bool HasColumns()
@descr: Whether current page layout has columns
virtual ~LwpPageLayout() override
LwpPageLayout * GetOddChildLayout()
@descr: Get the odd layout if current page layout is mirror page
LwpAtomHolder m_PaperName
virtual sal_Int32 GetPageNumber(sal_uInt16 nLayoutNumber) override
@descr: Get the pagenumber
void GetWidthAndHeight(double &fWidth, double &fHeight)
@descr: Get page width and height
void ParseColumns(XFPageMaster *pm1)
@descr: set page columns
OUString RegisterEndnoteStyle()
@descr: Register master page for endnote which name is "endnote"
void ParseBackGround(XFPageMaster *pm1)
@descr: set page background
void ParseFootNoteSeparator(XFPageMaster *pm1)
@descr: set page footnote separator information
void ConvertFillerPageText(XFContentContainer *pCont)
@descr: Parse filler page text
void ParsePatternFill(XFPageMaster *pm1)
@descr: set page back pattern
bool operator<(LwpPageLayout &Other)
@descr: Compare the position of layout.
void ParseGeometry(XFPageMaster *pm1)
@descr: set page height and width
void ResetXFColumns()
@descr: Clear columns style in page layout
double GetMarginWidth()
@descr: Get margin width of page
double GetHeight() override
@descr: Get page height
void ParseMargins(XFPageMaster *pm1)
@descr: set page margins
void ParseShadow(XFPageMaster *pm1)
@descr: set page shadow
void Read() override
@descr Read name of LwpDLNFVList from object stream
LwpPara * GetPagePosition()
@descr: Get the position of pagelayout
void ParseWaterMark(XFPageMaster *pm1)
@descr: set page watermark
LwpFooterLayout * GetFooterLayout()
virtual void Parse(IXFStream *pOutputStream) override
@descr default parse function
double GetWidth() override
@descr: Get page width
XFPageMaster * m_pXFPageMaster
LwpPageLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
LwpAtomHolder m_PrinterBinName
bool ComparePagePosition(LwpVirtualLayout const *pPreLayout, LwpVirtualLayout const *pNextLayout)
@descr: If the two layouts in the same para, compare which layout is earlied according to frib order
void Read() override
@descr Read name of LwpDLNFVList from object stream
LwpPageLayout * GetPageLayout()
@descr Get page layout pointer
virtual void XFConvert(XFContentContainer *pCont) override
@descr default XFConvert function pCont is the XFContentContainer for the object conversion
encapsulate XInputStream to provide SvStream like interfaces
bool IsUseOnAllOddPages() const
LwpUseWhen * GetUseWhen()
@descr: Get usewhen pointer
bool IsComplex() const
@descr: Whether it is a mirror layout
void RegisterChildStyle()
@descr: Register child layout style
double GetMarginsValue(sal_uInt8 nWhichSide)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void SetHeader(rtl::Reference< XFHeader > const &rHeader)
void SetFooter(rtl::Reference< XFFooter > const &rFooter)
void SetBackImage(std::unique_ptr< XFBGImage > &rImage)
void SetHeaderStyle(XFHeaderStyle *pHeaderStyle)
void SetBackColor(XFColor color)
void SetMargins(double left, double right, double top, double bottom)
void SetPageWidth(double width)
void SetFooterStyle(XFFooterStyle *pFooterStyle)
void SetFootNoteSeparator(enumXFAlignType align, double width, sal_Int32 lengthPercent, double spaceAbove, double spaceBelow, XFColor color)
void SetBorders(std::unique_ptr< XFBorders > pBorders)
void SetShadow(XFShadow *pShadow)
void SetPageHeight(double height)
void SetColumns(XFColumns *pColumns)
Style manager for the filter.
IXFStyleRet AddStyle(std::unique_ptr< IXFStyle > pStyle)
virtual OUString GetStyleName() override
@descr get style name.
std::pair< const_iterator, bool > insert(Value &&x)
#define SAL_WARN(area, stream)
#define LAST_LAYOUTPAGENO
#define FIRST_LAYOUTPAGENO
const sal_uInt8 MARGIN_BOTTOM
const sal_uInt8 MARGIN_RIGHT
const sal_uInt8 MARGIN_TOP
const sal_uInt8 MARGIN_LEFT
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)