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/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
 

Functions

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

Macro Definition Documentation

#define STATUSBAR_OFFSET_TEXTY   3

Definition at line 40 of file status.cxx.

Referenced by StatusBar::CalcWindowSizePixel(), and StatusBar::ImplInit().

#define STATUSBAR_OFFSET_X   STATUSBAR_OFFSET
#define STATUSBAR_OFFSET_Y   2

Definition at line 39 of file status.cxx.

Referenced by StatusBar::ImplCalcProgressRect(), and StatusBar::ImplGetItemRectPos().

#define STATUSBAR_PRGS_COUNT   100

Definition at line 43 of file status.cxx.

Referenced by StatusBar::ImplCalcProgressRect().

#define STATUSBAR_PRGS_MIN   5

Definition at line 44 of file status.cxx.

Referenced by StatusBar::ImplCalcProgressRect().

#define STATUSBAR_PRGS_OFFSET   3

Function Documentation

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

Definition at line 78 of file status.cxx.

References STATUSBAR_PRGS_OFFSET.

Referenced by StatusBar::ImplCalcProgressRect().

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

Definition at line 83 of file status.cxx.

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

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