LibreOffice Module vcl (master) 1
Classes | Macros | Functions
splitwin.cxx File Reference
#include <string.h>
#include <o3tl/safeint.hxx>
#include <sal/log.hxx>
#include <vcl/event.hxx>
#include <vcl/wall.hxx>
#include <vcl/help.hxx>
#include <vcl/splitwin.hxx>
#include <vcl/settings.hxx>
#include <vcl/ptrstyle.hxx>
#include <svdata.hxx>
#include <strings.hrc>
Include dependency graph for splitwin.cxx:

Go to the source code of this file.

Classes

class  ImplSplitSet
 

Macros

#define SPLITWIN_SPLITSIZEEX   4
 
#define SPLITWIN_SPLITSIZEAUTOHIDE   72
 
#define SPLITWIN_SPLITSIZEFADE   72
 
#define SPLIT_HORZ   (sal_uInt16(0x0001))
 
#define SPLIT_VERT   (sal_uInt16(0x0002))
 
#define SPLIT_WINDOW   (sal_uInt16(0x0004))
 
#define SPLIT_NOSPLIT   (sal_uInt16(0x8000))
 

Functions

static void ImplCalcBorder (WindowAlign eAlign, tools::Long &rLeft, tools::Long &rTop, tools::Long &rRight, tools::Long &rBottom)
 
static ImplSplitSetImplFindSet (ImplSplitSet *pSet, sal_uInt16 nId)
 
static ImplSplitSetImplFindItem (ImplSplitSet *pSet, sal_uInt16 nId, sal_uInt16 &rPos)
 
static sal_uInt16 ImplFindItem (ImplSplitSet *pSet, vcl::Window *pWindow)
 
static sal_uInt16 ImplFindItem (ImplSplitSet *pSet, const Point &rPos, bool bRows, bool bDown=true)
 
static void ImplCalcSet (ImplSplitSet *pSet, tools::Long nSetLeft, tools::Long nSetTop, tools::Long nSetWidth, tools::Long nSetHeight, bool bRows, bool bDown=true)
 
static void ImplCalcLogSize (std::vector< ImplSplitItem > &rItems, size_t nItems)
 
static void ImplDrawSplit (vcl::RenderContext &rRenderContext, ImplSplitSet *pSet, bool bRows, bool bDown)
 

Macro Definition Documentation

◆ SPLIT_HORZ

#define SPLIT_HORZ   (sal_uInt16(0x0001))

Definition at line 40 of file splitwin.cxx.

◆ SPLIT_NOSPLIT

#define SPLIT_NOSPLIT   (sal_uInt16(0x8000))

Definition at line 43 of file splitwin.cxx.

◆ SPLIT_VERT

#define SPLIT_VERT   (sal_uInt16(0x0002))

Definition at line 41 of file splitwin.cxx.

◆ SPLIT_WINDOW

#define SPLIT_WINDOW   (sal_uInt16(0x0004))

Definition at line 42 of file splitwin.cxx.

◆ SPLITWIN_SPLITSIZEAUTOHIDE

#define SPLITWIN_SPLITSIZEAUTOHIDE   72

Definition at line 37 of file splitwin.cxx.

◆ SPLITWIN_SPLITSIZEEX

#define SPLITWIN_SPLITSIZEEX   4

Definition at line 36 of file splitwin.cxx.

◆ SPLITWIN_SPLITSIZEFADE

#define SPLITWIN_SPLITSIZEFADE   72

Definition at line 38 of file splitwin.cxx.

Function Documentation

◆ ImplCalcBorder()

static void ImplCalcBorder ( WindowAlign  eAlign,
tools::Long rLeft,
tools::Long rTop,
tools::Long rRight,
tools::Long rBottom 
)
static

Definition at line 140 of file splitwin.cxx.

References Bottom, Left, and Top.

Referenced by SplitWindow::ImplInit(), and SplitWindow::ImplNewAlign().

◆ ImplCalcLogSize()

static void ImplCalcLogSize ( std::vector< ImplSplitItem > &  rItems,
size_t  nItems 
)
static

Definition at line 776 of file splitwin.cxx.

References i, PercentSize, and RelativeSize.

Referenced by SplitWindow::SplitItem().

◆ ImplCalcSet()

static void ImplCalcSet ( ImplSplitSet pSet,
tools::Long  nSetLeft,
tools::Long  nSetTop,
tools::Long  nSetWidth,
tools::Long  nSetHeight,
bool  bRows,
bool  bDown = true 
)
static

◆ ImplDrawSplit()

static void ImplDrawSplit ( vcl::RenderContext rRenderContext,
ImplSplitSet pSet,
bool  bRows,
bool  bDown 
)
static

◆ ImplFindItem() [1/3]

static sal_uInt16 ImplFindItem ( ImplSplitSet pSet,
const Point rPos,
bool  bRows,
bool  bDown = true 
)
static

◆ ImplFindItem() [2/3]

static ImplSplitSet * ImplFindItem ( ImplSplitSet pSet,
sal_uInt16  nId,
sal_uInt16 &  rPos 
)
static

◆ ImplFindItem() [3/3]

static sal_uInt16 ImplFindItem ( ImplSplitSet pSet,
vcl::Window pWindow 
)
static

Definition at line 284 of file splitwin.cxx.

References ImplFindItem(), ImplSplitSet::mvItems, and nId.

◆ ImplFindSet()

static ImplSplitSet * ImplFindSet ( ImplSplitSet pSet,
sal_uInt16  nId 
)
static