LibreOffice Module svtools (master) 1
|
#include <tools/debug.hxx>
#include <tools/poly.hxx>
#include <vcl/event.hxx>
#include <vcl/settings.hxx>
#include <vcl/vcllayout.hxx>
#include <vcl/virdev.hxx>
#include <vcl/ptrstyle.hxx>
#include <sal/log.hxx>
#include <svtools/ruler.hxx>
#include <svtools/svtresid.hxx>
#include <svtools/strings.hrc>
#include <svtools/colorcfg.hxx>
#include "accessibleruler.hxx"
#include <memory>
#include <vector>
Go to the source code of this file.
Classes | |
class | ImplRulerData |
Macros | |
#define | RULER_OFF 3 |
#define | RULER_RESIZE_OFF 4 |
#define | RULER_MIN_SIZE 3 |
#define | RULER_VAR_SIZE 8 |
#define | RULER_UPDATE_LINES 0x01 |
#define | RULER_CLIP 150 |
#define | RULER_UNIT_MM 0 |
#define | RULER_UNIT_CM 1 |
#define | RULER_UNIT_M 2 |
#define | RULER_UNIT_KM 3 |
#define | RULER_UNIT_INCH 4 |
#define | RULER_UNIT_FOOT 5 |
#define | RULER_UNIT_MILE 6 |
#define | RULER_UNIT_POINT 7 |
#define | RULER_UNIT_PICA 8 |
#define | RULER_UNIT_CHAR 9 |
#define | RULER_UNIT_LINE 10 |
#define | RULER_UNIT_COUNT 11 |
Functions | |
static void | ImplCenterTabPos (Point &rPos, sal_uInt16 nTabStyle) |
static void | lcl_RotateRect_Impl (tools::Rectangle &rRect, const tools::Long nReference, bool bRightAligned) |
static void | ImplDrawRulerTab (vcl::RenderContext &rRenderContext, const Point &rPos, sal_uInt16 nStyle, WinBits nWinBits) |
static int | adjustSize (int nOrig) |
Variables | |
const RulerUnitData | aImplRulerUnitTab [RULER_UNIT_COUNT] |
static RulerTabData | ruler_tab |
Definition at line 972 of file ruler.cxx.
Referenced by Ruler::ApplySettings(), and Ruler::ImplInitSettings().
|
static |
Definition at line 809 of file ruler.cxx.
References Point::AdjustX(), Point::AdjustY(), RulerTabData::height, ruler_tab, RULER_TAB_LEFT, RULER_TAB_RIGHT, RULER_TAB_RTL, RULER_TAB_STYLE, and RulerTabData::width.
Referenced by Ruler::DrawTab(), and Ruler::ImplDrawExtra().
|
static |
Definition at line 846 of file ruler.cxx.
References RulerTabData::cwidth, RulerTabData::cwidth2, RulerTabData::cwidth3, RulerTabData::cwidth4, RulerTabData::dheight, RulerTabData::dheight2, OutputDevice::DrawRect(), RulerTabData::dwidth, RulerTabData::dwidth2, RulerTabData::dwidth3, RulerTabData::dwidth4, OutputDevice::GetDPIScaleFactor(), RulerTabData::height, RulerTabData::height2, tools::Rectangle::IsEmpty(), lcl_RotateRect_Impl(), RULER_STYLE_INVISIBLE, ruler_tab, RULER_TAB_DECIMAL, RULER_TAB_DEFAULT, RULER_TAB_LEFT, RULER_TAB_RIGHT, RULER_TAB_RTL, RULER_TAB_STYLE, tools::Rectangle::SetBottom(), tools::Rectangle::SetEmpty(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), WB_HORZ, WB_RIGHT_ALIGNED, RulerTabData::width, RulerTabData::width2, Point::X(), and Point::Y().
Referenced by Ruler::DrawTab(), and Ruler::ImplDrawTab().
|
static |
Definition at line 827 of file ruler.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), nRef, tools::Rectangle::Right(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), and tools::Rectangle::Top().
Referenced by ImplDrawRulerTab().
const RulerUnitData aImplRulerUnitTab[RULER_UNIT_COUNT] |
Definition at line 141 of file ruler.cxx.
Referenced by Ruler::GetCurrentRulerUnit(), Ruler::ImplDrawTicks(), and Ruler::SetUnit().
|
static |
Definition at line 156 of file ruler.cxx.
Referenced by ImplCenterTabPos(), Ruler::ImplDoHitTest(), ImplDrawRulerTab(), Ruler::ImplDrawTicks(), Ruler::ImplInit(), and Ruler::Ruler().