LibreOffice Module svx (master) 1
Classes | Macros | Functions | Variables
svxruler.cxx File Reference
#include <cstring>
#include <climits>
#include <vcl/commandevent.hxx>
#include <vcl/event.hxx>
#include <vcl/fieldvalues.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
#include <vcl/weldutils.hxx>
#include <svl/eitem.hxx>
#include <svl/rectitem.hxx>
#include <svl/hint.hxx>
#include <sfx2/dispatch.hxx>
#include <svx/strings.hrc>
#include <svx/svxids.hrc>
#include <svx/dialmgr.hxx>
#include <svx/ruler.hxx>
#include <svx/rulritem.hxx>
#include <editeng/editids.hrc>
#include <editeng/tstpitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/protitem.hxx>
#include <osl/diagnose.h>
#include <rtl/math.hxx>
#include <o3tl/string_view.hxx>
#include "rlrcitem.hxx"
#include <memory>
Include dependency graph for svxruler.cxx:

Go to the source code of this file.

Classes

struct  SvxRuler_Impl
 

Macros

#define CTRL_ITEM_COUNT   14
 
#define GAP   10
 
#define OBJECT_BORDER_COUNT   4
 
#define TAB_GAP   1
 
#define INDENT_GAP   2
 
#define INDENT_FIRST_LINE   2
 
#define INDENT_LEFT_MARGIN   3
 
#define INDENT_RIGHT_MARGIN   4
 
#define INDENT_COUNT   3
 
#define NEG_FLAG
 
#define TAB_FLAG   ( mxColumnItem && mxColumnItem->IsTable() )
 

Functions

static sal_uInt16 ToSvTab_Impl (SvxTabAdjust eAdj)
 
static SvxTabAdjust ToAttrTab_Impl (sal_uInt16 eAdj)
 
static void ModifyTabs_Impl (sal_uInt16 nCount, RulerTab *pTabs, tools::Long lDiff)
 

Variables

static RulerTabData ruler_tab_svx
 
constexpr tools::Long glMinFrame = 5
 
const TranslateId RID_SVXSTR_RULER_TAB []
 

Macro Definition Documentation

◆ CTRL_ITEM_COUNT

#define CTRL_ITEM_COUNT   14

Definition at line 50 of file svxruler.cxx.

◆ GAP

#define GAP   10

Definition at line 51 of file svxruler.cxx.

◆ INDENT_COUNT

#define INDENT_COUNT   3

Definition at line 58 of file svxruler.cxx.

◆ INDENT_FIRST_LINE

#define INDENT_FIRST_LINE   2

Definition at line 55 of file svxruler.cxx.

◆ INDENT_GAP

#define INDENT_GAP   2

Definition at line 54 of file svxruler.cxx.

◆ INDENT_LEFT_MARGIN

#define INDENT_LEFT_MARGIN   3

Definition at line 56 of file svxruler.cxx.

◆ INDENT_RIGHT_MARGIN

#define INDENT_RIGHT_MARGIN   4

Definition at line 57 of file svxruler.cxx.

◆ NEG_FLAG

#define NEG_FLAG

◆ OBJECT_BORDER_COUNT

#define OBJECT_BORDER_COUNT   4

Definition at line 52 of file svxruler.cxx.

◆ TAB_FLAG

#define TAB_FLAG   ( mxColumnItem && mxColumnItem->IsTable() )

Definition at line 1284 of file svxruler.cxx.

◆ TAB_GAP

#define TAB_GAP   1

Definition at line 53 of file svxruler.cxx.

Function Documentation

◆ ModifyTabs_Impl()

static void ModifyTabs_Impl ( sal_uInt16  nCount,
RulerTab pTabs,
tools::Long  lDiff 
)
static

Definition at line 1303 of file svxruler.cxx.

References i, nCount, and RulerTab::nPos.

Referenced by SvxRuler::AdjustMargin1().

◆ ToAttrTab_Impl()

static SvxTabAdjust ToAttrTab_Impl ( sal_uInt16  eAdj)
static

◆ ToSvTab_Impl()

static sal_uInt16 ToSvTab_Impl ( SvxTabAdjust  eAdj)
static

Variable Documentation

◆ glMinFrame

constexpr tools::Long glMinFrame = 5
constexpr

◆ RID_SVXSTR_RULER_TAB

const TranslateId RID_SVXSTR_RULER_TAB[]
Initial value:
=
{
RID_SVXSTR_RULER_TAB_LEFT,
RID_SVXSTR_RULER_TAB_RIGHT,
RID_SVXSTR_RULER_TAB_CENTER,
RID_SVXSTR_RULER_TAB_DECIMAL
}

Definition at line 3298 of file svxruler.cxx.

Referenced by SvxRuler::Command().

◆ ruler_tab_svx

RulerTabData ruler_tab_svx
static
Initial value:
=
{
0,
7,
6,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
}

Definition at line 100 of file svxruler.cxx.

Referenced by SvxRuler::Command(), and SvxRuler::SvxRuler().