LibreOffice Module sd (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  sd
 
namespace  sd::sidebar
 

Macros

#define SDPAGE_NO_MARGIN   0
 
#define SDPAGE_NARROW_VALUE   635
 
#define SDPAGE_MODERATE_LR   955
 
#define SDPAGE_NORMAL_VALUE   1000
 
#define SDPAGE_WIDE_VALUE1   1270
 
#define SDPAGE_WIDE_VALUE2   2540
 
#define SDPAGE_WIDE_VALUE3   1590
 
#define SDPAGE_UNIT_THRESHOLD   5
 

Functions

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

Macro Definition Documentation

◆ SDPAGE_MODERATE_LR

#define SDPAGE_MODERATE_LR   955

Definition at line 23 of file PageMarginUtils.hxx.

◆ SDPAGE_NARROW_VALUE

#define SDPAGE_NARROW_VALUE   635

Definition at line 22 of file PageMarginUtils.hxx.

◆ SDPAGE_NO_MARGIN

#define SDPAGE_NO_MARGIN   0

Definition at line 21 of file PageMarginUtils.hxx.

◆ SDPAGE_NORMAL_VALUE

#define SDPAGE_NORMAL_VALUE   1000

Definition at line 24 of file PageMarginUtils.hxx.

◆ SDPAGE_UNIT_THRESHOLD

#define SDPAGE_UNIT_THRESHOLD   5

Definition at line 28 of file PageMarginUtils.hxx.

◆ SDPAGE_WIDE_VALUE1

#define SDPAGE_WIDE_VALUE1   1270

Definition at line 25 of file PageMarginUtils.hxx.

◆ SDPAGE_WIDE_VALUE2

#define SDPAGE_WIDE_VALUE2   2540

Definition at line 26 of file PageMarginUtils.hxx.

◆ SDPAGE_WIDE_VALUE3

#define SDPAGE_WIDE_VALUE3   1590

Definition at line 27 of file PageMarginUtils.hxx.