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

 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

#define SWPAGE_MODERATE_LR   1080

Definition at line 24 of file PageMarginUtils.hxx.

Referenced by sw::sidebar::IsModerate(), and sw::sidebar::SetModerate().

#define SWPAGE_NARROW_VALUE   720

Definition at line 23 of file PageMarginUtils.hxx.

Referenced by sw::sidebar::IsNarrow(), and sw::sidebar::SetNarrow().

#define SWPAGE_NO_MARGIN   0

Definition at line 22 of file PageMarginUtils.hxx.

Referenced by sw::sidebar::IsNone(), and sw::sidebar::SetNone().

#define SWPAGE_NORMAL_VALUE   1136

Definition at line 25 of file PageMarginUtils.hxx.

Referenced by sw::sidebar::IsNormal075(), and sw::sidebar::SetNormal075().

#define SWPAGE_UNIT_THRESHOLD   5
#define SWPAGE_WIDE_VALUE1   1440
#define SWPAGE_WIDE_VALUE2   2880

Definition at line 27 of file PageMarginUtils.hxx.

Referenced by sw::sidebar::IsWide(), and sw::sidebar::SetWide().

#define SWPAGE_WIDE_VALUE3   1800