LibreOffice Module vcl (master) 1
Classes | Macros | Functions
toolbox.cxx File Reference
#include <vcl/toolbox.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <vcl/event.hxx>
#include <vcl/decoview.hxx>
#include <vcl/toolkit/floatwin.hxx>
#include <vcl/svapp.hxx>
#include <vcl/help.hxx>
#include <vcl/mnemonic.hxx>
#include <vcl/gradient.hxx>
#include <vcl/layout.hxx>
#include <vcl/menu.hxx>
#include <vcl/settings.hxx>
#include <vclstatuslistener.hxx>
#include <vcl/ptrstyle.hxx>
#include <bitmaps.hlst>
#include <toolbarvalue.hxx>
#include <tools/poly.hxx>
#include <svl/imageitm.hxx>
#include <sal/log.hxx>
#include <o3tl/string_view.hxx>
#include <osl/diagnose.h>
#include <accel.hxx>
#include <svdata.hxx>
#include <window.h>
#include <toolbox.h>
#include <spin.hxx>
#include <cstdlib>
#include <map>
#include <string_view>
#include <vector>
#include <math.h>
#include "impldockingwrapper.hxx"
Include dependency graph for toolbox.cxx:

Go to the source code of this file.

Classes

class  ImplTBDragMgr
 

Macros

#define SMALLBUTTON_HSIZE   7
 
#define SMALLBUTTON_VSIZE   7
 
#define SMALLBUTTON_OFF_NORMAL_X   3
 
#define SMALLBUTTON_OFF_NORMAL_Y   3
 
#define TB_TEXTOFFSET   2
 
#define TB_IMAGETEXTOFFSET   3
 
#define TB_LINESPACING   3
 
#define TB_SPIN_SIZE   14
 
#define TB_SPIN_OFFSET   2
 
#define TB_BORDER_OFFSET1   4
 
#define TB_BORDER_OFFSET2   2
 
#define TB_MAXLINES   5
 
#define TB_MAXNOSCROLL   32765
 
#define TB_DRAGWIDTH   8
 
#define TB_CALCMODE_HORZ   1
 
#define TB_CALCMODE_VERT   2
 
#define TB_CALCMODE_FLOAT   3
 
#define TB_WBLINESIZING   (WB_SIZEABLE | WB_DOCKABLE | WB_SCROLL)
 
#define DOCK_LINEHSIZE   (sal_uInt16(0x0001))
 
#define DOCK_LINEVSIZE   (sal_uInt16(0x0002))
 
#define DOCK_LINERIGHT   (sal_uInt16(0x1000))
 
#define DOCK_LINEBOTTOM   (sal_uInt16(0x2000))
 
#define DOCK_LINELEFT   (sal_uInt16(0x4000))
 
#define DOCK_LINETOP   (sal_uInt16(0x8000))
 
#define DOCK_LINEOFFSET   3
 

Functions

static ImplTBDragMgrImplGetTBDragMgr ()
 
static ButtonType determineButtonType (ImplToolItem const *pItem, ButtonType defaultType)
 
static bool ImplIsFixedControl (const ImplToolItem *pItem)
 
 IMPL_LINK (ImplTBDragMgr, SelectHdl, Accelerator &, rAccel, void)
 
static void ImplAddButtonBorder (tools::Long &rWidth, tools::Long &rHeight, bool bNativeButtons)
 
 IMPL_LINK_NOARG (ToolBox, ImplDropdownLongClickHdl, Timer *, void)
 
 IMPL_LINK_NOARG (ToolBox, ImplUpdateHdl, Timer *, void)
 
static void ImplDrawMoreIndicator (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
static void ImplDrawDropdownArrow (vcl::RenderContext &rRenderContext, const tools::Rectangle &rDropDownRect, bool bSetColor, bool bRotate)
 
static bool ImplCloseLastPopup (vcl::Window const *pParent)
 
static bool ImplIsValidItem (const ImplToolItem *pItem, bool bNotClipped)
 

Macro Definition Documentation

◆ DOCK_LINEBOTTOM

#define DOCK_LINEBOTTOM   (sal_uInt16(0x2000))

Definition at line 87 of file toolbox.cxx.

◆ DOCK_LINEHSIZE

#define DOCK_LINEHSIZE   (sal_uInt16(0x0001))

Definition at line 84 of file toolbox.cxx.

◆ DOCK_LINELEFT

#define DOCK_LINELEFT   (sal_uInt16(0x4000))

Definition at line 88 of file toolbox.cxx.

◆ DOCK_LINEOFFSET

#define DOCK_LINEOFFSET   3

Definition at line 90 of file toolbox.cxx.

◆ DOCK_LINERIGHT

#define DOCK_LINERIGHT   (sal_uInt16(0x1000))

Definition at line 86 of file toolbox.cxx.

◆ DOCK_LINETOP

#define DOCK_LINETOP   (sal_uInt16(0x8000))

Definition at line 89 of file toolbox.cxx.

◆ DOCK_LINEVSIZE

#define DOCK_LINEVSIZE   (sal_uInt16(0x0002))

Definition at line 85 of file toolbox.cxx.

◆ SMALLBUTTON_HSIZE

#define SMALLBUTTON_HSIZE   7

Definition at line 60 of file toolbox.cxx.

◆ SMALLBUTTON_OFF_NORMAL_X

#define SMALLBUTTON_OFF_NORMAL_X   3

Definition at line 63 of file toolbox.cxx.

◆ SMALLBUTTON_OFF_NORMAL_Y

#define SMALLBUTTON_OFF_NORMAL_Y   3

Definition at line 64 of file toolbox.cxx.

◆ SMALLBUTTON_VSIZE

#define SMALLBUTTON_VSIZE   7

Definition at line 61 of file toolbox.cxx.

◆ TB_BORDER_OFFSET1

#define TB_BORDER_OFFSET1   4

Definition at line 71 of file toolbox.cxx.

◆ TB_BORDER_OFFSET2

#define TB_BORDER_OFFSET2   2

Definition at line 72 of file toolbox.cxx.

◆ TB_CALCMODE_FLOAT

#define TB_CALCMODE_FLOAT   3

Definition at line 80 of file toolbox.cxx.

◆ TB_CALCMODE_HORZ

#define TB_CALCMODE_HORZ   1

Definition at line 78 of file toolbox.cxx.

◆ TB_CALCMODE_VERT

#define TB_CALCMODE_VERT   2

Definition at line 79 of file toolbox.cxx.

◆ TB_DRAGWIDTH

#define TB_DRAGWIDTH   8

Definition at line 76 of file toolbox.cxx.

◆ TB_IMAGETEXTOFFSET

#define TB_IMAGETEXTOFFSET   3

Definition at line 67 of file toolbox.cxx.

◆ TB_LINESPACING

#define TB_LINESPACING   3

Definition at line 68 of file toolbox.cxx.

◆ TB_MAXLINES

#define TB_MAXLINES   5

Definition at line 73 of file toolbox.cxx.

◆ TB_MAXNOSCROLL

#define TB_MAXNOSCROLL   32765

Definition at line 74 of file toolbox.cxx.

◆ TB_SPIN_OFFSET

#define TB_SPIN_OFFSET   2

Definition at line 70 of file toolbox.cxx.

◆ TB_SPIN_SIZE

#define TB_SPIN_SIZE   14

Definition at line 69 of file toolbox.cxx.

◆ TB_TEXTOFFSET

#define TB_TEXTOFFSET   2

Definition at line 66 of file toolbox.cxx.

◆ TB_WBLINESIZING

#define TB_WBLINESIZING   (WB_SIZEABLE | WB_DOCKABLE | WB_SCROLL)

Definition at line 82 of file toolbox.cxx.

Function Documentation

◆ determineButtonType()

static ButtonType determineButtonType ( ImplToolItem const *  pItem,
ButtonType  defaultType 
)
static

◆ IMPL_LINK()

IMPL_LINK ( ImplTBDragMgr  ,
SelectHdl  ,
Accelerator ,
rAccel  ,
void   
)

Definition at line 1097 of file toolbox.cxx.

References KEY_ESCAPE.

◆ IMPL_LINK_NOARG() [1/2]

IMPL_LINK_NOARG ( ToolBox  ,
ImplDropdownLongClickHdl  ,
Timer ,
void   
)

Definition at line 2341 of file toolbox.cxx.

References DROPDOWN.

◆ IMPL_LINK_NOARG() [2/2]

IMPL_LINK_NOARG ( ToolBox  ,
ImplUpdateHdl  ,
Timer ,
void   
)

Definition at line 2366 of file toolbox.cxx.

◆ ImplAddButtonBorder()

static void ImplAddButtonBorder ( tools::Long rWidth,
tools::Long rHeight,
bool  bNativeButtons 
)
static

Definition at line 1350 of file toolbox.cxx.

References SMALLBUTTON_HSIZE, and SMALLBUTTON_VSIZE.

Referenced by ToolBox::ImplCalcItem().

◆ ImplCloseLastPopup()

static bool ImplCloseLastPopup ( vcl::Window const *  pParent)
static

◆ ImplDrawDropdownArrow()

static void ImplDrawDropdownArrow ( vcl::RenderContext rRenderContext,
const tools::Rectangle rDropDownRect,
bool  bSetColor,
bool  bRotate 
)
static

◆ ImplDrawMoreIndicator()

static void ImplDrawMoreIndicator ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
static

◆ ImplGetTBDragMgr()

static ImplTBDragMgr * ImplGetTBDragMgr ( )
static

◆ ImplIsFixedControl()

static bool ImplIsFixedControl ( const ImplToolItem pItem)
static

◆ ImplIsValidItem()

static bool ImplIsValidItem ( const ImplToolItem pItem,
bool  bNotClipped 
)
static