32#include <osl/diagnose.h>
34#include <svx/strings.hrc>
50#include <editeng/editrids.hrc>
51#include <svx/svxids.hrc>
67 SID_ATTR_BORDER_OUTER, SID_ATTR_BORDER_SHADOW,
68 SID_ATTR_LRSPACE, SID_ATTR_PAGE_SHARED,
69 SID_SWREGISTER_COLLECTION, SID_SWREGISTER_MODE>);
83 for (
size_t i = 0;
i < std::size(
aArr); ++
i )
84 if (
aArr[
i] == nUsage )
93 return SvxPageUsage::NONE;
121 return ( nDiffW < 10 && nDiffH < 10 );
128#define MARGIN_LEFT ( MarginPosition(0x0001) )
129#define MARGIN_RIGHT ( MarginPosition(0x0002) )
130#define MARGIN_TOP ( MarginPosition(0x0004) )
131#define MARGIN_BOTTOM ( MarginPosition(0x0008) )
137 return std::make_unique<SvxPageDescPage>(pPage, pController, *
rSet);
141 :
SfxTabPage(pPage, pController,
"cui/ui/pageformatpage.ui",
"PageFormatPage", &rAttr)
146 , mpDefPrinter(nullptr)
147 , mbDelPrinter(false)
148 , mbEnableDrawingLayerFillStyles(false)
150 , m_xPaperWidthEdit(m_xBuilder->weld_metric_spin_button(
"spinWidth",
FieldUnit::
CM))
151 , m_xPaperHeightEdit(m_xBuilder->weld_metric_spin_button(
"spinHeight",
FieldUnit::
CM))
152 , m_xPortraitBtn(m_xBuilder->weld_radio_button(
"radiobuttonPortrait"))
153 , m_xLandscapeBtn(m_xBuilder->weld_radio_button(
"radiobuttonLandscape"))
154 , m_xTextFlowLbl(m_xBuilder->weld_label(
"labelTextFlow"))
155 , m_xTextFlowBox(new
svx::FrameDirectionListBox(m_xBuilder->weld_combo_box(
"comboTextFlowBox")))
156 , m_xPaperTrayBox(m_xBuilder->weld_combo_box(
"comboPaperTray"))
157 , m_xLeftMarginLbl(m_xBuilder->weld_label(
"labelLeftMargin"))
158 , m_xLeftMarginEdit(m_xBuilder->weld_metric_spin_button(
"spinMargLeft",
FieldUnit::
CM))
159 , m_xRightMarginLbl(m_xBuilder->weld_label(
"labelRightMargin"))
160 , m_xRightMarginEdit(m_xBuilder->weld_metric_spin_button(
"spinMargRight",
FieldUnit::
CM))
161 , m_xTopMarginEdit(m_xBuilder->weld_metric_spin_button(
"spinMargTop",
FieldUnit::
CM))
162 , m_xBottomMarginEdit(m_xBuilder->weld_metric_spin_button(
"spinMargBot",
FieldUnit::
CM))
163 , m_xGutterMarginLbl(m_xBuilder->weld_label(
"labelGutterMargin"))
164 , m_xGutterMarginEdit(m_xBuilder->weld_metric_spin_button(
"spinMargGut",
FieldUnit::
CM))
165 , m_xPageText(m_xBuilder->weld_label(
"labelPageLayout"))
166 , m_xLayoutBox(m_xBuilder->weld_combo_box(
"comboPageLayout"))
167 , m_xNumberFormatText(m_xBuilder->weld_label(
"labelPageNumbers"))
169 , m_xTblAlignFT(m_xBuilder->weld_label(
"labelTblAlign"))
170 , m_xHorzBox(m_xBuilder->weld_check_button(
"checkbuttonHorz"))
171 , m_xVertBox(m_xBuilder->weld_check_button(
"checkbuttonVert"))
172 , m_xAdaptBox(m_xBuilder->weld_check_button(
"checkAdaptBox"))
173 , m_xRegisterCB(m_xBuilder->weld_check_button(
"checkRegisterTrue"))
174 , m_xRegisterFT(m_xBuilder->weld_label(
"labelRegisterStyle"))
175 , m_xRegisterLB(m_xBuilder->weld_combo_box(
"comboRegisterStyle"))
176 , m_xGutterPositionFT(m_xBuilder->weld_label(
"labelGutterPosition"))
177 , m_xGutterPositionLB(m_xBuilder->weld_combo_box(
"comboGutterPosition"))
178 , m_xRtlGutterCB(m_xBuilder->weld_check_button(
"checkRtlGutter"))
179 , m_xBackgroundFullSizeCB(m_xBuilder->weld_check_button(
"checkBackgroundFullSize"))
181 , m_xInsideLbl(m_xBuilder->weld_label(
"labelInner"))
182 , m_xOutsideLbl(m_xBuilder->weld_label(
"labelOuter"))
183 , m_xPrintRangeQueryText(m_xBuilder->weld_label(
"labelMsg"))
184 , m_xBspWin(new
weld::CustomWeld(*m_xBuilder,
"drawingareaPageDirection", m_aBspWin))
202 pHtmlModeItem = pShell->GetItem(SID_HTML_MODE);
223 if( (bCJK || bCTL) &&
330 SAL_WARN_IF(!pPool,
"cui.tabpages",
"Where is the pool?");
365 auto it = pGragbagItem->GetGrabBag().find(
"GutterAtTop");
366 if (it != pGragbagItem->GetGrabBag().end())
368 it->second >>= bGutterAtTop;
380 it = pGragbagItem->GetGrabBag().find(
"RtlGutter");
382 if (it != pGragbagItem->GetGrabBag().end())
384 it->second >>= bRtlGutter;
388 it = pGragbagItem->GetGrabBag().find(
"BackgroundFullSize");
389 bool isBackgroundFullSize{};
390 if (it != pGragbagItem->GetGrabBag().end())
392 it->second >>= isBackgroundFullSize;
435 aBinName =
EditResId(RID_SVXSTR_PAPERBIN_SETTINGS);
437 aBinName =
mpDefPrinter->GetPaperBinName(
static_cast<sal_uInt16
>(nPaperBin) );
450 aPaperSize =
static_cast<const SvxSizeItem*
>(pItem)->GetSize();
452 bool bOrientationSupport =
453 mpDefPrinter->HasSupport( PrinterSupport::SetOrientation );
455 if ( !bOrientationSupport &&
592 rSet->
Get(SID_SWREGISTER_COLLECTION).GetValue());
598 if( SfxItemState::UNKNOWN != eState )
602 : SvxFrameDirection::Horizontal_LR_TB;
619 bool bModified =
false;
623 sal_uInt16 nWhich =
GetWhich( SID_ATTR_LRSPACE );
631 nWhich =
GetWhich( SID_ATTR_ULSPACE );
657 if ( !pOld || *
static_cast<const SvxLRSpaceItem*
>(pOld) != aMargin )
663 if (rOldSet.
HasItem(SID_ATTR_CHAR_GRABBAG))
670 aGrabBagItem.
GetGrabBag()[
"GutterAtTop"] <<= bGutterAtTop;
676 aGrabBagItem.
GetGrabBag()[
"RtlGutter"] <<= bRtlGutter;
682 aGrabBagItem.
GetGrabBag()[
"BackgroundFullSize"] <<= isBackgroundFullSize;
688 pOld = rOldSet.
GetItem(SID_ATTR_CHAR_GRABBAG);
690 if (!pOld ||
static_cast<const SfxGrabBagItem&
>(*pOld) != aGrabBagItem)
717 if ( !pOld || *
static_cast<const SvxULSpaceItem*
>(pOld) != aTopMargin )
750 if ( !pOld ||
static_cast<const SvxSizeItem*
>(pOld)->GetSize() != aSize )
768 if ( !pOld ||
static_cast<const SvxSizeItem*
>(pOld)->GetSize() != aSize )
801 if ( !pOld || *
static_cast<const SvxPageItem*
>(pOld) != aPage )
807 else if ( SfxItemState::DEFAULT == rOldSet.
GetItemState( nWhich ) )
818 if (
m_xHorzBox->get_state_changed_from_saved())
826 if (
m_xVertBox->get_state_changed_from_saved())
852 std::unique_ptr<SfxBoolItem> pRegItem(rRegItem.
Clone());
854 pRegItem->SetValue(bCheck);
855 rSet->
Put(std::move(pRegItem));
880 if (nUsage == SvxPageUsage::Mirror)
882 m_xLeftMarginLbl->hide();
883 m_xRightMarginLbl->hide();
884 m_xInsideLbl->show();
885 m_xOutsideLbl->show();
889 m_xLeftMarginLbl->show();
890 m_xRightMarginLbl->show();
891 m_xInsideLbl->hide();
892 m_xOutsideLbl->hide();
894 UpdateExample_Impl(
true );
899 UpdateExample_Impl(
true);
907 OUString aOldName = m_xPaperTrayBox->get_active_text();
908 m_xPaperTrayBox->freeze();
909 m_xPaperTrayBox->clear();
911 OUString aPaperBin(
EditResId(RID_SVXSTR_PAPERBIN));
912 const sal_uInt16 nBinCount = mpDefPrinter->GetPaperBinCount();
914 for (sal_uInt16
i = 0;
i < nBinCount; ++
i)
916 OUString
aName = mpDefPrinter->GetPaperBinName(
i);
919 aName = aPaperBin +
" " + OUString::number(
i+1 );
921 m_xPaperTrayBox->append(OUString::number(
i),
aName);
923 m_xPaperTrayBox->thaw();
924 m_xPaperTrayBox->set_active_text(aOldName);
928 m_xPaperTrayBox->grab_focus();
933 Paper ePaper = m_xPaperSizeBox->get_active_id();
940 if (m_xLandscapeBtn->get_active())
943 if ( aSize.
Height() < m_xPaperHeightEdit->get_min( FieldUnit::MM_100TH ) )
944 m_xPaperHeightEdit->set_min(
945 m_xPaperHeightEdit->normalize( aSize.
Height() ), FieldUnit::MM_100TH );
946 if ( aSize.
Width() < m_xPaperWidthEdit->get_min( FieldUnit::MM_100TH ) )
947 m_xPaperWidthEdit->set_min(
948 m_xPaperWidthEdit->normalize( aSize.
Width() ), FieldUnit::MM_100TH );
955 UpdateExample_Impl(
true );
968 if ( bScreen || m_xRightMarginEdit->get_value(FieldUnit::NONE) == 0 )
970 if ( bScreen || m_xLeftMarginEdit->get_value(FieldUnit::NONE) == 0 )
972 if ( bScreen || m_xBottomMarginEdit->get_value(FieldUnit::NONE) == 0 )
974 if ( bScreen || m_xTopMarginEdit->get_value(FieldUnit::NONE) == 0 )
976 UpdateExample_Impl(
true );
981 sal_uInt16 nWhich =
GetWhich( SID_ATTR_LRSPACE );
988 m_xLandscapeBtn->set_active(
true);
993 m_xPortraitBtn->set_active(
true);
998 m_xPaperSizeBox->set_active_id( ePaper );
999 UpdateExample_Impl(
true );
1006 if (!rBtn.get_active())
1009 bLandscape = m_xLandscapeBtn->get_active();
1015 SetMetricValue(*m_xPaperWidthEdit, lHeight, MapUnit::Map100thMM);
1016 SetMetricValue(*m_xPaperHeightEdit, lWidth, MapUnit::Map100thMM);
1021 PaperSizeSelect_Impl(m_xPaperSizeBox->get_widget());
1023 SwapFirstValues_Impl(bBorderModified);
1024 UpdateExample_Impl(
true);
1033 eOri = Orientation::Landscape;
1072 if ( nSetL < nNewL )
1075 if ( nSetR < nNewR )
1078 if ( nSetT < nNewT )
1081 if ( nSetB < nNewB )
1088 if ( !bBorderModified )
1089 bBorderModified =
true;
1090 UpdateExample_Impl();
1122 if ( bResetbackground )
1130 sal_uInt16 nWhich(
GetWhich(SID_ATTR_PAGE_HEADERSET));
1135 const SfxItemSet& rTmpSet = rSetItem.GetItemSet();
1145 aHeaderFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(rTmpSet);
1158 aHeaderFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(aTempSet);
1166 nWhich =
GetWhich(SID_ATTR_PAGE_FOOTERSET);
1171 const SfxItemSet& rTmpSet = rSetItem.GetItemSet();
1181 aFooterFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(rTmpSet);
1194 aFooterFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(aTempSet);
1207 aPageFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(
rSet);
1220 aPageFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(aTempSet);
1239 if ( SfxItemState::SET ==
1241 false,
reinterpret_cast<const SfxPoolItem**
>(&pSetItem) ) )
1243 const SfxItemSet& rHeaderSet = pSetItem->GetItemSet();
1271 aHeaderFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(rHeaderSet);
1275 const sal_uInt16 nWhich(
GetWhich(SID_ATTR_BRUSH));
1277 if(rHeaderSet.
GetItemState(nWhich) >= SfxItemState::DEFAULT)
1284 aHeaderFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(aTempSet);
1293 if ( SfxItemState::SET !=
1295 false,
reinterpret_cast<const SfxPoolItem**
>(&pSetItem) ) )
1298 const SfxItemSet& rFooterSet = pSetItem->GetItemSet();
1326 aFooterFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(rFooterSet);
1330 const sal_uInt16 nWhich(
GetWhich(SID_ATTR_BRUSH));
1332 if(rFooterSet.
GetItemState(nWhich) >= SfxItemState::DEFAULT)
1339 aFooterFillAttributes = std::make_shared<drawinglayer::attribute::SdrAllFillAttributesHelper>(aTempSet);
1364 VclMessageType::Question, VclButtonsType::YesNo,
1366 xQueryBox->set_default_response(
RET_NO);
1367 if (xQueryBox->run() ==
RET_NO)
1384 return DeactivateRC::KeepPage;
1395 sal_uInt16 nWh =
GetWhich( SID_ATTR_PAGE_SIZE );
1406 return DeactivateRC::LeavePage;
1432 SfxItemState::DEFAULT &&
1434 SfxItemState::DEFAULT )
1444 tools::Long nMin = nHHeight + nHDist + nFDist + nFHeight + nBT + nBB +
1456 nFDist - nFHeight - nHDist - nHHeight;
1462 nFDist - nFHeight - nHDist - nHHeight;
1467 nMax = nW - nBR -
MINBODY - aBorder.
Width() - nHFLeft - nHFRight;
1471 nMax = nW - nBL -
MINBODY - aBorder.
Width() - nHFLeft - nHFRight;
1490 if ( nWidth <= nW && nHeight <= nH )
1496 nTmp -= nWidth - nW;
1507 nTmp -= nHeight - nH;
1518 m_aBspWin.SetHorz(m_xHorzBox->get_active());
1519 m_aBspWin.SetVert(m_xVertBox->get_active());
1520 UpdateExample_Impl();
1525 OSL_ENSURE(!aList.empty(),
"Empty string list");
1529 for (
size_t i = 1;
i < aList.size(); ++
i)
1541 bool bEnable =
false;
1542 if (rBox.get_active())
1545 if (m_xRegisterLB->get_active() == -1)
1546 m_xRegisterLB->set_active_text(sStandardRegister);
1548 m_xRegisterFT->set_sensitive(bEnable);
1549 m_xRegisterLB->set_sensitive(bEnable);
1566 m_aBspWin.SetFrameDirection(m_xTextFlowBox->get_active_id());
1567 m_aBspWin.Invalidate();
1577 ( nValue < nFirstMargin || nValue > nLastMargin ) &&
1580 rField.
set_value(
nValue < nFirstMargin ? nFirstMargin : nLastMargin, FieldUnit::NONE);
1644 if(pPaperStartItem && pPaperEndItem)
1649 if(pCollectListItem)
1654 if(pSupportDrawingLayerFillStyleItem)
1656 const bool bNew(pSupportDrawingLayerFillStyleItem->GetValue());
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
sal_uInt16 GetValue() const
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
constexpr tools::Long Y() const
constexpr tools::Long X() const
virtual SfxBoolItem * Clone(SfxItemPool *=nullptr) const override
const std::map< OUString, css::uno::Any > & GetGrabBag() const
virtual MapUnit GetMetric(sal_uInt16 nWhich) const
SfxItemPool * GetPool() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem **ppItem=nullptr) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
std::vector< OUString > & GetList()
const SfxItemSet & GetItemSet() const
void SetExchangeSupport()
void SetUserData(const OUString &rString)
static const SfxPoolItem * GetItem(const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
const SfxPoolItem * GetOldItem(const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
weld::Window * GetFrameWeld() const
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
virtual SfxPrinter * GetPrinter(bool bCreate=false)
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
static bool IsCTLFontEnabled()
sal_Int16 CalcLineSpace(SvxBoxItemLine nLine, bool bEvenIfNoLine=false, bool bAllowNegative=false) const
void SetGutterMargin(const tools::Long nGutterMargin)
void SetRight(const tools::Long nR, const sal_uInt16 nProp=100)
tools::Long GetRight() const
tools::Long GetGutterMargin() const
tools::Long GetLeft() const
void SetLeft(const tools::Long nL, const sal_uInt16 nProp=100)
static void GetI18nNumbering(weld::ComboBox &rFmtLB, sal_uInt16 nDoNotRemove)
std::unique_ptr< weld::ComboBox > m_xGutterPositionLB
OUString sStandardRegister
std::unique_ptr< weld::CheckButton > m_xRtlGutterCB
std::unique_ptr< weld::RadioButton > m_xPortraitBtn
std::unique_ptr< weld::Label > m_xGutterPositionFT
tools::Long nFirstTopMargin
std::unique_ptr< weld::Label > m_xPageText
std::unique_ptr< weld::CheckButton > m_xVertBox
tools::Long nFirstLeftMargin
std::unique_ptr< weld::MetricSpinButton > m_xPaperHeightEdit
tools::Long nFirstRightMargin
virtual ~SvxPageDescPage() override
virtual bool FillItemSet(SfxItemSet *rOutSet) override
std::unique_ptr< SvxPageNumberListBox > m_xNumberFormatBox
std::unique_ptr< weld::Label > m_xPrintRangeQueryText
std::unique_ptr< weld::Label > m_xGutterMarginLbl
std::unique_ptr< weld::Label > m_xRegisterFT
tools::Long nLastTopMargin
std::unique_ptr< weld::ComboBox > m_xPaperTrayBox
std::unique_ptr< weld::Label > m_xNumberFormatText
std::unique_ptr< weld::ComboBox > m_xRegisterLB
void InitHeadFoot_Impl(const SfxItemSet &rSet)
std::unique_ptr< weld::MetricSpinButton > m_xBottomMarginEdit
std::unique_ptr< weld::CheckButton > m_xRegisterCB
void DisableVerticalPageDir()
Disables vertical page direction entries in the text flow listbox.
virtual void ActivatePage(const SfxItemSet &rSet) override
std::unique_ptr< weld::CheckButton > m_xHorzBox
tools::Long nLastLeftMargin
std::unique_ptr< SvxPaperSizeListBox > m_xPaperSizeBox
void SetPaperFormatRanges(Paper eStart)
bool mbEnableDrawingLayerFillStyles
tools::Long nFirstBottomMargin
VclPtr< Printer > mpDefPrinter
std::unique_ptr< weld::Label > m_xTextFlowLbl
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
bool IsMarginOutOfRange() const
virtual void Reset(const SfxItemSet *rSet) override
std::unique_ptr< weld::MetricSpinButton > m_xLeftMarginEdit
tools::Long nLastBottomMargin
SvxPageDescPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
void CheckMarginEdits(bool _bClear)
Check if a value of a margin edit is outside the printer paper margins and save this information.
std::unique_ptr< weld::CheckButton > m_xAdaptBox
std::unique_ptr< weld::Label > m_xTblAlignFT
tools::Long nLastRightMargin
void UpdateExample_Impl(bool bResetbackground=false)
std::unique_ptr< svx::FrameDirectionListBox > m_xTextFlowBox
std::unique_ptr< weld::MetricSpinButton > m_xTopMarginEdit
static const WhichRangesContainer pRanges
void SetCollectionList(const std::vector< OUString > &aList)
void SwapFirstValues_Impl(bool bSet)
void ResetBackground_Impl(const SfxItemSet &rSet)
virtual void PageCreated(const SfxAllItemSet &aSet) override
std::unique_ptr< weld::RadioButton > m_xLandscapeBtn
std::unique_ptr< weld::CheckButton > m_xBackgroundFullSizeCB
std::unique_ptr< weld::MetricSpinButton > m_xGutterMarginEdit
virtual void FillUserData() override
std::unique_ptr< weld::MetricSpinButton > m_xPaperWidthEdit
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
std::unique_ptr< weld::MetricSpinButton > m_xRightMarginEdit
bool IsPrinterRangeOverflow(weld::MetricSpinButton &rField, tools::Long nFirstMargin, tools::Long nLastMargin, MarginPosition nPos)
std::unique_ptr< weld::ComboBox > m_xLayoutBox
void SetNumType(SvxNumType eNum)
SvxNumType GetNumType() const
void SetLandscape(bool bL)
void SetPageUsage(SvxPageUsage eU)
SvxPageUsage GetPageUsage() const
void SetFrameDirection(SvxFrameDirection nDirection)
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)
void SetHdHeight(tools::Long nNew)
tools::Long GetHdLeft() const
void setPageFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes)
void SetFtDist(tools::Long nNew)
void SetSize(const Size &rSize)
tools::Long GetHdRight() const
void SetLeft(tools::Long nNew)
void SetHdDist(tools::Long nNew)
void SetFtLeft(tools::Long nNew)
void SetFtRight(tools::Long nNew)
tools::Long GetFtRight() const
void SetHdRight(tools::Long nNew)
void setFooterFillAttributes(const drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes)
tools::Long GetFtLeft() const
void SetFooter(bool bNew)
tools::Long GetHdHeight() const
void SetFtHeight(tools::Long nNew)
tools::Long GetHdDist() const
void EnableFrameDirection(bool bEnable)
void SetHeader(bool bNew)
tools::Long GetFtHeight() const
void SetTop(tools::Long nNew)
void SetRight(tools::Long nNew)
static Paper GetSvxPaper(const Size &rSize, MapUnit eUnit)
static Size GetPaperSize(Paper ePaper, MapUnit eUnit=MapUnit::MapTwip)
sal_uInt16 CalcShadowSpace(SvxShadowItemSide nShadow) const
const Size & GetSize() const
void SetLower(const sal_uInt16 nL, const sal_uInt16 nProp=100)
sal_uInt16 GetUpper() const
void SetUpper(const sal_uInt16 nU, const sal_uInt16 nProp=100)
sal_uInt16 GetLower() const
static VclPtr< reference_type > Create(Arg &&... arg)
#define DBG_ASSERT(sCon, aError)
SVXCORE_DLLPUBLIC OUString SvxResId(TranslateId aId)
virtual tools::Long GetValue() const override
SVXCORE_DLLPUBLIC FieldUnit GetModuleFieldUnit(const SfxItemSet &)
OUString EditResId(TranslateId aId)
SVX_PAGE_MODE_PRESENTATION
#define LINK(Instance, Class, Member)
#define SAL_WARN_IF(condition, area, stream)
bool IsAsianTypographyEnabled()
sal_uInt32 GetMaximumPaperLeftMargin()
sal_uInt32 GetMaximumPaperHeight()
sal_uInt32 GetMaximumPaperBottomMargin()
sal_uInt32 GetMaximumPaperWidth()
sal_uInt32 GetMaximumPaperTopMargin()
sal_uInt32 GetMaximumPaperRightMargin()
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
constexpr auto toTwips(N number, Length from)
static constexpr auto Items
static Size GetMinBorderSpace_Impl(const SvxShadowItem &rShadow, const SvxBoxItem &rBox)
static sal_uInt16 PageUsageToPos_Impl(SvxPageUsage nUsage)
static bool IsEqualSize_Impl(const SvxSizeItem *pSize, const Size &rSize)
static tools::Long ConvertLong_Impl(const tools::Long nIn, MapUnit eUnit)
IMPL_LINK_NOARG(SvxPageDescPage, LayoutHdl_Impl, weld::ComboBox &, void)
constexpr tools::Long MINBODY
const SvxPageUsage aArr[]
IMPL_LINK(SvxPageDescPage, SwapOrientation_Impl, weld::Toggleable &, rBtn, void)
static SvxPageUsage PosToPageUsage_Impl(sal_uInt16 nPos)
sal_uInt16 MarginPosition
#define PAPERBIN_PRINTER_SETTINGS
SVT_DLLPUBLIC sal_Int64 GetCoreValue(const weld::MetricSpinButton &rField, MapUnit eUnit)
SVT_DLLPUBLIC void SetMetricValue(weld::MetricSpinButton &rField, sal_Int64 nCoreValue, MapUnit eUnit)
SVT_DLLPUBLIC void SetFieldUnit(weld::MetricSpinButton &rCtrl, FieldUnit eUnit, bool bAll=false)
SVXCORE_DLLPUBLIC void setSvxBrushItemAsFillAttributesToTargetSet(const SvxBrushItem &rBrush, SfxItemSet &rToSet)