LibreOffice Module sw (master) 1
Namespaces | Macros | Functions
PageMarginUtils.hxx File Reference
#include <cmath>
#include <tools/long.hxx>
Include dependency graph for PageMarginUtils.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sw
 Dialog to specify the properties of date form field.
 
namespace  sw::sidebar
 

Macros

#define SWPAGE_NO_MARGIN   0
 
#define SWPAGE_NARROW_VALUE   720
 
#define SWPAGE_MODERATE_LR   1080
 
#define SWPAGE_NORMAL_VALUE   1136
 
#define SWPAGE_WIDE_VALUE1   1440
 
#define SWPAGE_WIDE_VALUE2   2880
 
#define SWPAGE_WIDE_VALUE3   1800
 
#define SWPAGE_UNIT_THRESHOLD   5
 

Functions

bool sw::sidebar::IsNone (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin, const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin, bool bMirrored)
 
void sw::sidebar::SetNone (tools::Long &nPageLeftMargin, tools::Long &nPageRightMargin, tools::Long &nPageTopMargin, tools::Long &nPageBottomMargin, bool &bMirrored)
 
bool sw::sidebar::IsNarrow (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin, const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin, bool bMirrored)
 
void sw::sidebar::SetNarrow (tools::Long &nPageLeftMargin, tools::Long &nPageRightMargin, tools::Long &nPageTopMargin, tools::Long &nPageBottomMargin, bool &bMirrored)
 
bool sw::sidebar::IsModerate (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin, const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin, bool bMirrored)
 
void sw::sidebar::SetModerate (tools::Long &nPageLeftMargin, tools::Long &nPageRightMargin, tools::Long &nPageTopMargin, tools::Long &nPageBottomMargin, bool &bMirrored)
 
bool sw::sidebar::IsNormal075 (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin, const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin, bool bMirrored)
 
void sw::sidebar::SetNormal075 (tools::Long &nPageLeftMargin, tools::Long &nPageRightMargin, tools::Long &nPageTopMargin, tools::Long &nPageBottomMargin, bool &bMirrored)
 
bool sw::sidebar::IsNormal100 (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin, const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin, bool bMirrored)
 
void sw::sidebar::SetNormal100 (tools::Long &nPageLeftMargin, tools::Long &nPageRightMargin, tools::Long &nPageTopMargin, tools::Long &nPageBottomMargin, bool &bMirrored)
 
bool sw::sidebar::IsNormal125 (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin, const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin, bool bMirrored)
 
void sw::sidebar::SetNormal125 (tools::Long &nPageLeftMargin, tools::Long &nPageRightMargin, tools::Long &nPageTopMargin, tools::Long &nPageBottomMargin, bool &bMirrored)
 
bool sw::sidebar::IsWide (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin, const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin, bool bMirrored)
 
void sw::sidebar::SetWide (tools::Long &nPageLeftMargin, tools::Long &nPageRightMargin, tools::Long &nPageTopMargin, tools::Long &nPageBottomMargin, bool &bMirrored)
 
bool sw::sidebar::IsMirrored (const tools::Long nPageLeftMargin, const tools::Long nPageRightMargin, const tools::Long nPageTopMargin, const tools::Long nPageBottomMargin, bool bMirrored)
 
void sw::sidebar::SetMirrored (tools::Long &nPageLeftMargin, tools::Long &nPageRightMargin, tools::Long &nPageTopMargin, tools::Long &nPageBottomMargin, bool &bMirrored)
 

Macro Definition Documentation

◆ SWPAGE_MODERATE_LR

#define SWPAGE_MODERATE_LR   1080

Definition at line 24 of file PageMarginUtils.hxx.

◆ SWPAGE_NARROW_VALUE

#define SWPAGE_NARROW_VALUE   720

Definition at line 23 of file PageMarginUtils.hxx.

◆ SWPAGE_NO_MARGIN

#define SWPAGE_NO_MARGIN   0

Definition at line 22 of file PageMarginUtils.hxx.

◆ SWPAGE_NORMAL_VALUE

#define SWPAGE_NORMAL_VALUE   1136

Definition at line 25 of file PageMarginUtils.hxx.

◆ SWPAGE_UNIT_THRESHOLD

#define SWPAGE_UNIT_THRESHOLD   5

Definition at line 29 of file PageMarginUtils.hxx.

◆ SWPAGE_WIDE_VALUE1

#define SWPAGE_WIDE_VALUE1   1440

Definition at line 26 of file PageMarginUtils.hxx.

◆ SWPAGE_WIDE_VALUE2

#define SWPAGE_WIDE_VALUE2   2880

Definition at line 27 of file PageMarginUtils.hxx.

◆ SWPAGE_WIDE_VALUE3

#define SWPAGE_WIDE_VALUE3   1800

Definition at line 28 of file PageMarginUtils.hxx.