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/accel.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 <vcl/vclstatuslistener.hxx>
#include <vcl/ptrstyle.hxx>
#include <bitmaps.hlst>
#include <tools/poly.hxx>
#include <svl/imageitm.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <svdata.hxx>
#include <window.h>
#include <toolbox.h>
#include <spin.hxx>
#include <cstdlib>
#include <vector>
#include <math.h>
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 (long &rWidth, 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

#define DOCK_LINEBOTTOM   (sal_uInt16(0x2000))

Definition at line 81 of file toolbox.cxx.

Referenced by ToolBox::ImplLineSizing(), and ToolBox::ImplTestLineSize().

#define DOCK_LINEHSIZE   (sal_uInt16(0x0001))

Definition at line 78 of file toolbox.cxx.

Referenced by ToolBox::ImplTestLineSize(), and ToolBox::MouseMove().

#define DOCK_LINELEFT   (sal_uInt16(0x4000))

Definition at line 82 of file toolbox.cxx.

Referenced by ToolBox::ImplLineSizing(), and ToolBox::ImplTestLineSize().

#define DOCK_LINEOFFSET   3

Definition at line 84 of file toolbox.cxx.

Referenced by ToolBox::ImplTestLineSize().

#define DOCK_LINERIGHT   (sal_uInt16(0x1000))

Definition at line 80 of file toolbox.cxx.

Referenced by ToolBox::ImplLineSizing(), and ToolBox::ImplTestLineSize().

#define DOCK_LINETOP   (sal_uInt16(0x8000))

Definition at line 83 of file toolbox.cxx.

Referenced by ToolBox::ImplLineSizing(), and ToolBox::ImplTestLineSize().

#define DOCK_LINEVSIZE   (sal_uInt16(0x0002))

Definition at line 79 of file toolbox.cxx.

Referenced by ToolBox::ImplTestLineSize(), and ToolBox::MouseMove().

#define SMALLBUTTON_HSIZE   7

Definition at line 54 of file toolbox.cxx.

Referenced by ImplAddButtonBorder(), and ToolBox::ImplDrawItem().

#define SMALLBUTTON_OFF_NORMAL_X   3

Definition at line 57 of file toolbox.cxx.

Referenced by ToolBox::ImplDrawItem().

#define SMALLBUTTON_OFF_NORMAL_Y   3

Definition at line 58 of file toolbox.cxx.

Referenced by ToolBox::ImplDrawItem().

#define SMALLBUTTON_VSIZE   7

Definition at line 55 of file toolbox.cxx.

Referenced by ImplAddButtonBorder(), and ToolBox::ImplDrawItem().

#define TB_BORDER_OFFSET1   4
#define TB_BORDER_OFFSET2   2
#define TB_CALCMODE_FLOAT   3

Definition at line 74 of file toolbox.cxx.

Referenced by ToolBox::ImplCalcFloatSizes(), and ToolBox::ImplCalcSize().

#define TB_CALCMODE_HORZ   1

Definition at line 72 of file toolbox.cxx.

Referenced by ToolBox::CalcWindowSizePixel(), and ToolBox::ImplCalcSize().

#define TB_CALCMODE_VERT   2

Definition at line 73 of file toolbox.cxx.

Referenced by ToolBox::CalcWindowSizePixel(), and ToolBox::ImplCalcSize().

#define TB_DRAGWIDTH   8

Definition at line 70 of file toolbox.cxx.

Referenced by ToolBox::ImplGetDragWidth().

#define TB_IMAGETEXTOFFSET   3

Definition at line 61 of file toolbox.cxx.

Referenced by ToolBox::ImplCalcItem(), and ToolBox::ImplDrawItem().

#define TB_LINESPACING   3
#define TB_MAXLINES   5

Definition at line 67 of file toolbox.cxx.

Referenced by ToolBox::ImplLineSizing().

#define TB_MAXNOSCROLL   32765

Definition at line 68 of file toolbox.cxx.

Referenced by ToolBox::ImplCalcSize(), and ToolBox::ImplFormat().

#define TB_SPIN_OFFSET   2

Definition at line 64 of file toolbox.cxx.

Referenced by ToolBox::ImplFormat().

#define TB_SPIN_SIZE   14

Definition at line 63 of file toolbox.cxx.

Referenced by ToolBox::ImplFormat().

#define TB_TEXTOFFSET   2

Definition at line 60 of file toolbox.cxx.

Referenced by ToolBox::ImplCalcItem().

#define TB_WBLINESIZING   (WB_SIZEABLE | WB_DOCKABLE | WB_SCROLL)

Definition at line 76 of file toolbox.cxx.

Referenced by ToolBox::MouseButtonDown(), and ToolBox::MouseMove().

Function Documentation

static ButtonType determineButtonType ( ImplToolItem const *  pItem,
ButtonType  defaultType 
)
static
IMPL_LINK ( ImplTBDragMgr  ,
SelectHdl  ,
Accelerator ,
rAccel  ,
void   
)

Definition at line 1084 of file toolbox.cxx.

References KEY_ESCAPE.

IMPL_LINK_NOARG ( ToolBox  ,
ImplDropdownLongClickHdl  ,
Timer ,
void   
)

Definition at line 2331 of file toolbox.cxx.

References DROPDOWN.

IMPL_LINK_NOARG ( ToolBox  ,
ImplUpdateHdl  ,
Timer ,
void   
)

Definition at line 2356 of file toolbox.cxx.

static void ImplAddButtonBorder ( long &  rWidth,
long &  rHeight,
bool  bNativeButtons 
)
static

Definition at line 1340 of file toolbox.cxx.

References SMALLBUTTON_HSIZE, and SMALLBUTTON_VSIZE.

Referenced by ToolBox::ImplCalcItem().

static bool ImplCloseLastPopup ( vcl::Window const *  pParent)
static
static void ImplDrawDropdownArrow ( vcl::RenderContext rRenderContext,
const tools::Rectangle rDropDownRect,
bool  bSetColor,
bool  bRotate 
)
static
static void ImplDrawMoreIndicator ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
static
static ImplTBDragMgr* ImplGetTBDragMgr ( )
static
static bool ImplIsFixedControl ( const ImplToolItem pItem)
static
static bool ImplIsValidItem ( const ImplToolItem pItem,
bool  bNotClipped 
)
static