LibreOffice Module cui (master) 1
Macros | Functions | Variables
page.cxx File Reference
#include <memory>
#include <o3tl/unit_conversion.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/viewsh.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/ctloptions.hxx>
#include <svtools/unitconv.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <sfx2/htmlmode.hxx>
#include <sal/macros.h>
#include <osl/diagnose.h>
#include <svx/strings.hrc>
#include <svx/dialmgr.hxx>
#include <page.hxx>
#include <svx/pageitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/pbinitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/sizeitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <svx/dlgutil.hxx>
#include <editeng/paperinf.hxx>
#include <svl/stritem.hxx>
#include <editeng/eerdll.hxx>
#include <editeng/editrids.hrc>
#include <svx/svxids.hrc>
#include <svtools/optionsdrawinglayer.hxx>
#include <svl/slstitm.hxx>
#include <svx/xdef.hxx>
#include <svx/unobrushitemhelper.hxx>
#include <svx/SvxNumOptionsTabPageHelper.hxx>
#include <sal/log.hxx>
#include <svl/grabbagitem.hxx>
Include dependency graph for page.cxx:

Go to the source code of this file.

Macros

#define MARGIN_LEFT   ( MarginPosition(0x0001) )
 
#define MARGIN_RIGHT   ( MarginPosition(0x0002) )
 
#define MARGIN_TOP   ( MarginPosition(0x0004) )
 
#define MARGIN_BOTTOM   ( MarginPosition(0x0008) )
 

Functions

static sal_uInt16 PageUsageToPos_Impl (SvxPageUsage nUsage)
 
static SvxPageUsage PosToPageUsage_Impl (sal_uInt16 nPos)
 
static Size GetMinBorderSpace_Impl (const SvxShadowItem &rShadow, const SvxBoxItem &rBox)
 
static tools::Long ConvertLong_Impl (const tools::Long nIn, MapUnit eUnit)
 
static bool IsEqualSize_Impl (const SvxSizeItem *pSize, const Size &rSize)
 
 IMPL_LINK_NOARG (SvxPageDescPage, LayoutHdl_Impl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (SvxPageDescPage, GutterPositionHdl_Impl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (SvxPageDescPage, PaperBinHdl_Impl, weld::Widget &, void)
 
 IMPL_LINK_NOARG (SvxPageDescPage, PaperSizeSelect_Impl, weld::ComboBox &, void)
 
 IMPL_LINK_NOARG (SvxPageDescPage, PaperSizeModify_Impl, weld::MetricSpinButton &, void)
 
 IMPL_LINK (SvxPageDescPage, SwapOrientation_Impl, weld::Toggleable &, rBtn, void)
 
 IMPL_LINK_NOARG (SvxPageDescPage, BorderModify_Impl, weld::MetricSpinButton &, void)
 
 IMPL_LINK_NOARG (SvxPageDescPage, CenterHdl_Impl, weld::Toggleable &, void)
 
 IMPL_LINK (SvxPageDescPage, RegisterModify, weld::Toggleable &, rBox, void)
 
 IMPL_LINK_NOARG (SvxPageDescPage, FrameDirectionModify_Impl, weld::ComboBox &, void)
 

Variables

constexpr tools::Long MINBODY = o3tl::toTwips(1, o3tl::Length::mm)
 
const SvxPageUsage aArr []
 

Macro Definition Documentation

◆ MARGIN_BOTTOM

#define MARGIN_BOTTOM   ( MarginPosition(0x0008) )

Definition at line 131 of file page.cxx.

◆ MARGIN_LEFT

#define MARGIN_LEFT   ( MarginPosition(0x0001) )

Definition at line 128 of file page.cxx.

◆ MARGIN_RIGHT

#define MARGIN_RIGHT   ( MarginPosition(0x0002) )

Definition at line 129 of file page.cxx.

◆ MARGIN_TOP

#define MARGIN_TOP   ( MarginPosition(0x0004) )

Definition at line 130 of file page.cxx.

Function Documentation

◆ ConvertLong_Impl()

static tools::Long ConvertLong_Impl ( const tools::Long  nIn,
MapUnit  eUnit 
)
static

Definition at line 109 of file page.cxx.

References OutputDevice::LogicToLogic().

Referenced by SvxPageDescPage::Reset().

◆ GetMinBorderSpace_Impl()

static Size GetMinBorderSpace_Impl ( const SvxShadowItem rShadow,
const SvxBoxItem rBox 
)
static

◆ IMPL_LINK() [1/2]

IMPL_LINK ( SvxPageDescPage  ,
RegisterModify  ,
weld::Toggleable ,
rBox  ,
void   
)

Definition at line 1539 of file page.cxx.

◆ IMPL_LINK() [2/2]

IMPL_LINK ( SvxPageDescPage  ,
SwapOrientation_Impl  ,
weld::Toggleable ,
rBtn  ,
void   
)

Definition at line 1004 of file page.cxx.

References GetCoreValue(), and SetMetricValue().

◆ IMPL_LINK_NOARG() [1/8]

IMPL_LINK_NOARG ( SvxPageDescPage  ,
BorderModify_Impl  ,
weld::MetricSpinButton ,
void   
)

Definition at line 1086 of file page.cxx.

◆ IMPL_LINK_NOARG() [2/8]

IMPL_LINK_NOARG ( SvxPageDescPage  ,
CenterHdl_Impl  ,
weld::Toggleable ,
void   
)

Definition at line 1516 of file page.cxx.

◆ IMPL_LINK_NOARG() [3/8]

IMPL_LINK_NOARG ( SvxPageDescPage  ,
FrameDirectionModify_Impl  ,
weld::ComboBox ,
void   
)

Definition at line 1564 of file page.cxx.

◆ IMPL_LINK_NOARG() [4/8]

IMPL_LINK_NOARG ( SvxPageDescPage  ,
GutterPositionHdl_Impl  ,
weld::ComboBox ,
void   
)

Definition at line 897 of file page.cxx.

◆ IMPL_LINK_NOARG() [5/8]

IMPL_LINK_NOARG ( SvxPageDescPage  ,
LayoutHdl_Impl  ,
weld::ComboBox ,
void   
)

Definition at line 875 of file page.cxx.

References PosToPageUsage_Impl().

◆ IMPL_LINK_NOARG() [6/8]

IMPL_LINK_NOARG ( SvxPageDescPage  ,
PaperBinHdl_Impl  ,
weld::Widget ,
void   
)

Definition at line 902 of file page.cxx.

References aName, EditResId(), i, and PAPERBIN_PRINTER_SETTINGS.

◆ IMPL_LINK_NOARG() [7/8]

IMPL_LINK_NOARG ( SvxPageDescPage  ,
PaperSizeModify_Impl  ,
weld::MetricSpinButton ,
void   
)

◆ IMPL_LINK_NOARG() [8/8]

IMPL_LINK_NOARG ( SvxPageDescPage  ,
PaperSizeSelect_Impl  ,
weld::ComboBox ,
void   
)

◆ IsEqualSize_Impl()

static bool IsEqualSize_Impl ( const SvxSizeItem pSize,
const Size rSize 
)
static

Definition at line 114 of file page.cxx.

References SvxSizeItem::GetSize(), Size::Height(), and Size::Width().

Referenced by SvxPageDescPage::DeactivatePage().

◆ PageUsageToPos_Impl()

static sal_uInt16 PageUsageToPos_Impl ( SvxPageUsage  nUsage)
static

Definition at line 81 of file page.cxx.

References aArr, and i.

Referenced by SvxPageDescPage::Reset().

◆ PosToPageUsage_Impl()

static SvxPageUsage PosToPageUsage_Impl ( sal_uInt16  nPos)
static

Definition at line 90 of file page.cxx.

References aArr, and nPos.

Referenced by SvxPageDescPage::FillItemSet(), IMPL_LINK_NOARG(), and SvxPageDescPage::UpdateExample_Impl().

Variable Documentation

◆ aArr

const SvxPageUsage aArr[]
Initial value:
=
{
SvxPageUsage::All,
SvxPageUsage::Mirror,
SvxPageUsage::Right,
SvxPageUsage::Left
}

Definition at line 72 of file page.cxx.

Referenced by IMPL_LINK(), PageUsageToPos_Impl(), and PosToPageUsage_Impl().

◆ MINBODY

constexpr tools::Long MINBODY = o3tl::toTwips(1, o3tl::Length::mm)
constexpr

Definition at line 63 of file page.cxx.

Referenced by SvxPageDescPage::CalcMargin_Impl(), and SvxPageDescPage::RangeHdl_Impl().