LibreOffice Module vcl (master) 1
Classes | Macros | Functions
status.cxx File Reference
#include <sal/log.hxx>
#include <comphelper/string.hxx>
#include <vcl/event.hxx>
#include <vcl/decoview.hxx>
#include <vcl/glyphitemcache.hxx>
#include <vcl/svapp.hxx>
#include <vcl/help.hxx>
#include <vcl/vcllayout.hxx>
#include <vcl/status.hxx>
#include <vcl/virdev.hxx>
#include <vcl/settings.hxx>
#include <config_features.h>
#include <svdata.hxx>
#include <window.h>
Include dependency graph for status.cxx:

Go to the source code of this file.

Classes

class  StatusBar::ImplData
 
struct  ImplStatusItem
 

Macros

#define STATUSBAR_OFFSET_X   STATUSBAR_OFFSET
 
#define STATUSBAR_OFFSET_Y   2
 
#define STATUSBAR_OFFSET_TEXTY   3
 
#define STATUSBAR_PRGS_OFFSET   3
 
#define STATUSBAR_PRGS_COUNT   100
 
#define STATUSBAR_PRGS_MIN   5
 
#define STATUSBAR_MIN_HEIGHT   16
 

Functions

static tools::Long ImplCalcProgressWidth (sal_uInt16 nMax, tools::Long nSize)
 
static Point ImplGetItemTextPos (const Size &rRectSize, const Size &rTextSize, StatusBarItemBits nStyle)
 
void DrawProgress (vcl::Window *pWindow, vcl::RenderContext &rRenderContext, const Point &rPos, tools::Long nOffset, tools::Long nPrgsWidth, tools::Long nPrgsHeight, sal_uInt16 nPercent1, sal_uInt16 nPercent2, sal_uInt16 nPercentCount, const tools::Rectangle &rFramePosSize)
 

Macro Definition Documentation

◆ STATUSBAR_MIN_HEIGHT

#define STATUSBAR_MIN_HEIGHT   16

Definition at line 44 of file status.cxx.

◆ STATUSBAR_OFFSET_TEXTY

#define STATUSBAR_OFFSET_TEXTY   3

Definition at line 38 of file status.cxx.

◆ STATUSBAR_OFFSET_X

#define STATUSBAR_OFFSET_X   STATUSBAR_OFFSET

Definition at line 36 of file status.cxx.

◆ STATUSBAR_OFFSET_Y

#define STATUSBAR_OFFSET_Y   2

Definition at line 37 of file status.cxx.

◆ STATUSBAR_PRGS_COUNT

#define STATUSBAR_PRGS_COUNT   100

Definition at line 41 of file status.cxx.

◆ STATUSBAR_PRGS_MIN

#define STATUSBAR_PRGS_MIN   5

Definition at line 42 of file status.cxx.

◆ STATUSBAR_PRGS_OFFSET

#define STATUSBAR_PRGS_OFFSET   3

Definition at line 40 of file status.cxx.

Function Documentation

◆ DrawProgress()

void DrawProgress ( vcl::Window pWindow,
vcl::RenderContext rRenderContext,
const Point rPos,
tools::Long  nOffset,
tools::Long  nPrgsWidth,
tools::Long  nPrgsHeight,
sal_uInt16  nPercent1,
sal_uInt16  nPercent2,
sal_uInt16  nPercentCount,
const tools::Rectangle rFramePosSize 
)

◆ ImplCalcProgressWidth()

static tools::Long ImplCalcProgressWidth ( sal_uInt16  nMax,
tools::Long  nSize 
)
static

Definition at line 90 of file status.cxx.

References STATUSBAR_PRGS_OFFSET.

Referenced by StatusBar::ImplCalcProgressRect().

◆ ImplGetItemTextPos()

static Point ImplGetItemTextPos ( const Size rRectSize,
const Size rTextSize,
StatusBarItemBits  nStyle 
)
static

Definition at line 95 of file status.cxx.

References Size::Height(), Left, Right, and Size::Width().

Referenced by StatusBar::GetItemTextPos(), and StatusBar::ImplDrawItem().