43 m_bVertical = rDirItem.GetValue() == SvxFrameDirection::Vertical_RL_TB||
44 rDirItem.GetValue() == SvxFrameDirection::Vertical_LR_TB;
48 sal_uInt16 nWhich = pPool->
GetWhich( SID_ATTR_PAGE );
56 nWhich = pPool->
GetWhich( SID_ATTR_PAGE_SIZE );
102 rHeaderSet.
Get( pPool->
GetWhich( SID_ATTR_PAGE_ON ) );
107 rHeaderSet.
Get(pPool->
GetWhich(SID_ATTR_PAGE_SIZE));
126 std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(
138 const SfxBoolItem& rFooterOn = rFooterSet.
Get( SID_ATTR_PAGE_ON );
143 rFooterSet.
Get( pPool->
GetWhich( SID_ATTR_PAGE_SIZE ) );
162 std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(
177 std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(
185 const bool bSecond,
const bool bEnabled)
197 if (
GetUsage() == SvxPageUsage::Mirror && !bSecond)
215 if (!rFillAttributes || !rFillAttributes->isUsed())
222 std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(
228 sal_Int32 nAutoColWidth = 0;
231 sal_Int32 nColumnWidthSum = 0;
232 for (sal_uInt16
i = 0;
i < nColumnCount; ++
i)
234 nAutoColWidth = nColumnWidthSum / nColumnCount;
237 for (sal_uInt16
i = 0;
i < nColumnCount; ++
i)
250 if (
i < nColumnCount - 1)
262 Point aDown(rOrg.
X() + nL,
300 for (sal_uInt16
i = 0;
i < nColumnCount - 1; ++
i)
304 nDist -= (
i == 0) ? nGutter / 2 : 0;
316 rRenderContext.
DrawLine(aUp, aDown);
331 MapMode aMapMode(MapUnit::MapTwip);
341 if (rFieldColor == aGrayColor)
348 rRenderContext.
DrawRect(aCompleteRect);
358 aShadowRect.
Move(aTL.
Y(), aTL.
Y());
359 rRenderContext.
DrawRect(aShadowRect);
394 sal_uInt16 nColCount = rCols.size();
401 for (sal_uInt16
i = 0;
i < nColCount;
i++)
407 rRenderContext.
DrawRect(aFrameRect);
412 for (sal_uInt16
i = 0;
i < nColCount - 1;
i++)
414 nSum += rCols[
i].GetWishWidth();
417 rRenderContext.
DrawLine(aUp, aDown);
421 rRenderContext.
Pop();
430 sal_uInt16 nColCount = rCols.size();
432 for(sal_uInt16
i = 0;
i < nColCount;
i++)
436 nWish *= nFrameWidth;
440 nLeft *= nFrameWidth;
442 pCol->
SetLeft(o3tl::narrowing<sal_uInt16>(nLeft));
444 nRight *= nFrameWidth;
446 pCol->
SetRight(o3tl::narrowing<sal_uInt16>(nRight));
452 sal_Int32 nColumnWidthSum = 0;
454 for(
i = 0;
i < nColCount; ++
i)
460 nColumnWidthSum /= nColCount;
461 for(
i = 0;
i < nColCount; ++
i)
494 const bool bSecond,
const bool bEnabled)
512 if (
GetUsage() == SvxPageUsage::Mirror && !bSecond)
526 sal_Int32 nBaseHeight =
m_pGridItem->GetBaseHeight() * 3;
527 sal_Int32 nRubyHeight =
m_pGridItem->GetRubyHeight() * 3;
539 sal_Int32 nLineHeight = nBaseHeight + nRubyHeight;
549 sal_Int16 nXStart =
static_cast<sal_Int16
>(aRect.
GetWidth() / 2 - nLineHeight * nLines /2);
550 aRubyRect.
Move(nXStart, 0);
551 aCharRect.
Move(nXStart, 0);
555 sal_Int16 nYStart =
static_cast<sal_Int16
>(aRect.
GetHeight() / 2 - nLineHeight * nLines /2);
556 aRubyRect.
Move(0, nYStart);
557 aCharRect.
Move(0, nYStart);
570 for (sal_Int32 nLine = 0; nLine < nLines; nLine++)
580 rRenderContext.
DrawLine(aStart, aEnd);
587 aRubyRect.
Move(nXMove, nYMove);
588 aCharRect.
Move(nXMove, nYMove);
const StyleSettings & GetStyleSettings() const
void SetScaleY(const Fraction &rScaleY)
void SetScaleX(const Fraction &rScaleX)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
void DrawRect(const tools::Rectangle &rRect)
void DrawLine(const Point &rStartPt, const Point &rEndPt)
SAL_WARN_UNUSED_RESULT Point LogicToPixel(const Point &rLogicPt) const
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
const AllSettings & GetSettings() const
const Color & GetFillColor() const
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
SfxItemPool * GetPool() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
tools::Long AdjustWidth(tools::Long n)
constexpr tools::Long Width() const
const Color & GetFieldColor() const
const Color & GetDialogColor() const
tools::Long GetRight() const
tools::Long GetLeft() const
SvxPageUsage GetPageUsage() const
void setHeaderFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes)
void SetUsage(SvxPageUsage eU)
void SetBottom(tools::Long nNew)
tools::Long GetFtDist() const
void SetHdLeft(tools::Long nNew)
const Size & GetSize() const
tools::Long GetBottom() const
void SetHdHeight(tools::Long nNew)
tools::Long GetTop() const
SvxPageUsage GetUsage() const
void setPageFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes)
void SetFtDist(tools::Long nNew)
void SetSize(const Size &rSize)
void SetLeft(tools::Long nNew)
void SetHdDist(tools::Long nNew)
void SetFtLeft(tools::Long nNew)
void SetFtRight(tools::Long nNew)
static void drawFillAttributes(vcl::RenderContext &rRenderContext, const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes, const tools::Rectangle &rPaintRange, const tools::Rectangle &rDefineRange)
void SetHdRight(tools::Long nNew)
void setFooterFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes)
tools::Long GetRight() const
void SetFooter(bool bNew)
tools::Long GetLeft() const
const drawinglayer::attribute::SdrAllFillAttributesHelperPtr & getPageFillAttributes() const
tools::Long GetHdHeight() const
void SetFtHeight(tools::Long nNew)
tools::Long GetHdDist() const
void SetHeader(bool bNew)
tools::Long GetFtHeight() const
void SetTop(tools::Long nNew)
virtual void DrawPage(vcl::RenderContext &rRenderContext, const Point &rPoint, const bool bSecond, const bool bEnabled)
void SetRight(tools::Long nNew)
const Size & GetSize() const
sal_uInt16 GetUpper() const
sal_uInt16 GetLower() const
virtual void DrawPage(vcl::RenderContext &rRenderContext, const Point &rPoint, const bool bSecond, const bool bEnabled) override
short GetLineHeightPercent() const
sal_uInt16 GetCount() const
sal_uInt16 GetColWidth(sal_uInt16 nIdx) const
SwColLineAdj GetAdjust() const
sal_uInt16 GetGutterWidth(sal_uInt16 nPos=USHRT_MAX) const
virtual void Resize() override
void SetColumns(const SwFormatCol &rCol)
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
sal_uInt16 GetLeft() const
void SetRight(sal_uInt16 nNew)
sal_uInt16 GetRight() const
void SetLeft(sal_uInt16 nNew)
sal_uInt16 GetWishWidth() const
void SetWishWidth(sal_uInt16 nNew)
void UpdateExample(const SfxItemSet &rSet)
void UpdateExample(const SfxItemSet &rSet)
virtual void DrawPage(vcl::RenderContext &rRenderContext, const Point &rPoint, const bool bSecond, const bool bEnabled) override
std::unique_ptr< SwTextGridItem > m_pGridItem
const Color & GetFontColor() const
static const SwViewOption & GetCurrentViewOptions()
virtual OutputDevice & get_ref_device()=0
void FitToActualSize(SwFormatCol &rCol, sal_uInt16 nWidth)
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
std::vector< SwColumn > SwColumns
constexpr TypedWhichId< SvxFrameDirectionItem > RES_FRAMEDIR(126)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
constexpr TypedWhichId< SwTextGridItem > RES_TEXTGRID(121)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
SVXCORE_DLLPUBLIC void setSvxBrushItemAsFillAttributesToTargetSet(const SvxBrushItem &rBrush, SfxItemSet &rToSet)