LibreOffice Module vcl (master) 1
|
#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>
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 ImplSplitSet * | ImplFindSet (ImplSplitSet *pSet, sal_uInt16 nId) |
static ImplSplitSet * | ImplFindItem (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) |
#define SPLIT_HORZ (sal_uInt16(0x0001)) |
Definition at line 40 of file splitwin.cxx.
#define SPLIT_NOSPLIT (sal_uInt16(0x8000)) |
Definition at line 43 of file splitwin.cxx.
#define SPLIT_VERT (sal_uInt16(0x0002)) |
Definition at line 41 of file splitwin.cxx.
#define SPLIT_WINDOW (sal_uInt16(0x0004)) |
Definition at line 42 of file splitwin.cxx.
#define SPLITWIN_SPLITSIZEAUTOHIDE 72 |
Definition at line 37 of file splitwin.cxx.
#define SPLITWIN_SPLITSIZEEX 4 |
Definition at line 36 of file splitwin.cxx.
#define SPLITWIN_SPLITSIZEFADE 72 |
Definition at line 38 of file splitwin.cxx.
|
static |
Definition at line 140 of file splitwin.cxx.
References Bottom, Left, and Top.
Referenced by SplitWindow::ImplInit(), and SplitWindow::ImplNewAlign().
|
static |
Definition at line 776 of file splitwin.cxx.
References i, PercentSize, and RelativeSize.
Referenced by SplitWindow::SplitItem().
|
static |
Definition at line 349 of file splitwin.cxx.
References ColSet, Fixed, i, if(), ImplCalcSet(), o3tl::make_unsigned(), ImplSplitSet::mbCalcPix, ImplSplitSet::mnLastSize, ImplSplitSet::mnSplitSize, ImplSplitSet::mvItems, nPos, PercentSize, and RelativeSize.
Referenced by SplitWindow::ImplCalcLayout(), and ImplCalcSet().
|
static |
Definition at line 812 of file splitwin.cxx.
References ColSet, OutputDevice::DrawLine(), StyleSettings::GetDarkShadowColor(), StyleSettings::GetLightColor(), OutputDevice::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), i, ImplDrawSplit(), ImplSplitSet::mnSplitSize, ImplSplitSet::mvItems, nPos, and OutputDevice::SetLineColor().
Referenced by ImplDrawSplit(), and SplitWindow::Paint().
|
static |
Definition at line 306 of file splitwin.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), ColSet, tools::Rectangle::Contains(), ImplFindItem(), ImplSplitSet::mnSplitSize, and ImplSplitSet::mvItems.
|
static |
Definition at line 257 of file splitwin.cxx.
References i, ImplFindItem(), mnId, ImplSplitSet::mvItems, and nId.
Referenced by SplitWindow::GetItemId(), SplitWindow::GetItemSize(), SplitWindow::GetSet(), ImplFindItem(), SplitWindow::InsertItem(), SplitWindow::IsItemValid(), SplitWindow::RemoveItem(), SplitWindow::SetItemSize(), SplitWindow::SetItemSizeRange(), and SplitWindow::SplitItem().
|
static |
Definition at line 284 of file splitwin.cxx.
References ImplFindItem(), ImplSplitSet::mvItems, and nId.
|
static |
Definition at line 231 of file splitwin.cxx.
References ImplFindSet(), ImplSplitSet::mnId, ImplSplitSet::mvItems, and nId.
Referenced by SplitWindow::GetItemCount(), SplitWindow::GetItemId(), SplitWindow::GetItemPos(), ImplFindSet(), and SplitWindow::InsertItem().