LibreOffice Module vcl (master) 1
|
#include <vcl/toolbox.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 <vcl/ptrstyle.hxx>
#include <bitmaps.hlst>
#include <toolbarvalue.hxx>
#include <tools/poly.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"
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 ImplTBDragMgr * | ImplGetTBDragMgr () |
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) |
#define DOCK_LINEBOTTOM (sal_uInt16(0x2000)) |
Definition at line 84 of file toolbox.cxx.
#define DOCK_LINEHSIZE (sal_uInt16(0x0001)) |
Definition at line 81 of file toolbox.cxx.
#define DOCK_LINELEFT (sal_uInt16(0x4000)) |
Definition at line 85 of file toolbox.cxx.
#define DOCK_LINEOFFSET 3 |
Definition at line 87 of file toolbox.cxx.
#define DOCK_LINERIGHT (sal_uInt16(0x1000)) |
Definition at line 83 of file toolbox.cxx.
#define DOCK_LINETOP (sal_uInt16(0x8000)) |
Definition at line 86 of file toolbox.cxx.
#define DOCK_LINEVSIZE (sal_uInt16(0x0002)) |
Definition at line 82 of file toolbox.cxx.
#define SMALLBUTTON_HSIZE 7 |
Definition at line 57 of file toolbox.cxx.
#define SMALLBUTTON_OFF_NORMAL_X 3 |
Definition at line 60 of file toolbox.cxx.
#define SMALLBUTTON_OFF_NORMAL_Y 3 |
Definition at line 61 of file toolbox.cxx.
#define SMALLBUTTON_VSIZE 7 |
Definition at line 58 of file toolbox.cxx.
#define TB_BORDER_OFFSET1 4 |
Definition at line 68 of file toolbox.cxx.
#define TB_BORDER_OFFSET2 2 |
Definition at line 69 of file toolbox.cxx.
#define TB_CALCMODE_FLOAT 3 |
Definition at line 77 of file toolbox.cxx.
#define TB_CALCMODE_HORZ 1 |
Definition at line 75 of file toolbox.cxx.
#define TB_CALCMODE_VERT 2 |
Definition at line 76 of file toolbox.cxx.
#define TB_DRAGWIDTH 8 |
Definition at line 73 of file toolbox.cxx.
#define TB_IMAGETEXTOFFSET 3 |
Definition at line 64 of file toolbox.cxx.
#define TB_LINESPACING 3 |
Definition at line 65 of file toolbox.cxx.
#define TB_MAXLINES 5 |
Definition at line 70 of file toolbox.cxx.
#define TB_MAXNOSCROLL 32765 |
Definition at line 71 of file toolbox.cxx.
#define TB_SPIN_OFFSET 2 |
Definition at line 67 of file toolbox.cxx.
#define TB_SPIN_SIZE 14 |
Definition at line 66 of file toolbox.cxx.
#define TB_TEXTOFFSET 2 |
Definition at line 63 of file toolbox.cxx.
#define TB_WBLINESIZING (WB_SIZEABLE | WB_DOCKABLE | WB_SCROLL) |
Definition at line 79 of file toolbox.cxx.
|
static |
Definition at line 154 of file toolbox.cxx.
References ICON_ONLY, ImplToolItem::mnBits, NONE, SYMBOLONLY, SYMBOLTEXT, TEXT, and TEXT_ONLY.
Referenced by ToolBox::ImplCalcItem(), and ToolBox::ImplDrawItem().
IMPL_LINK | ( | ImplTBDragMgr | , |
SelectHdl | , | ||
Accelerator & | , | ||
rAccel | , | ||
void | |||
) |
Definition at line 1094 of file toolbox.cxx.
References KEY_ESCAPE.
Definition at line 2330 of file toolbox.cxx.
References DROPDOWN.
Definition at line 2355 of file toolbox.cxx.
|
static |
Definition at line 1339 of file toolbox.cxx.
References SMALLBUTTON_HSIZE, and SMALLBUTTON_VSIZE.
Referenced by ToolBox::ImplCalcItem().
|
static |
Definition at line 4215 of file toolbox.cxx.
References Cancel, CloseAll, FloatingWindow::EndPopupMode(), FloatingWindow::ImplFindLastLevelFloat(), ImplGetSVData(), ImplSVWinData::mpFirstFloat, and ImplSVData::mpWinData.
Referenced by ToolBox::ImplOpenItem().
|
static |
Definition at line 2373 of file toolbox.cxx.
References COL_BLACK(), COL_WHITE(), OutputDevice::DrawPolygon(), Enable, OutputDevice::GetAntialiasing(), OutputDevice::GetDPIScaleFactor(), StyleSettings::GetFaceColor(), OutputDevice::GetFillColor(), OutputDevice::GetLineColor(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), Color::IsDark(), OutputDevice::IsFillColor(), OutputDevice::IsLineColor(), tools::Rectangle::Left(), round, OutputDevice::SetAntialiasing(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), tools::Polygon::SetPoint(), tools::Rectangle::Top(), x, and y.
Referenced by ToolBox::ImplDrawItem().
|
static |
Definition at line 2362 of file toolbox.cxx.
References OutputDevice::DrawImage(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), Image::GetSizePixel(), Size::Height(), tools::Rectangle::Left(), NONE, tools::Rectangle::Top(), Size::Width(), x, y, and Yes.
Referenced by ToolBox::ImplDrawMenuButton().
|
static |
Definition at line 113 of file toolbox.cxx.
References ImplGetSVData(), ImplSVData::maCtrlData, and ImplSVCtrlData::mpTBDragMgr.
Referenced by ToolBox::MouseButtonDown(), ToolBox::MouseButtonUp(), and ToolBox::MouseMove().
|
static |
Definition at line 618 of file toolbox.cxx.
References FIXEDLINE, FIXEDTEXT, vcl::Window::GetType(), GROUPBOX, ImplToolItem::mbNonInteractiveWindow, and ImplToolItem::mpWindow.
Referenced by ToolBox::CalcMinimumWindowSizePixel(), ToolBox::ImplGetFirstValidItem(), and ImplIsValidItem().
|
static |
Definition at line 4606 of file toolbox.cxx.
References BUTTON, ImplIsFixedControl(), ImplToolItem::IsClipped(), ImplToolItem::mbEnabled, ImplToolItem::mbVisible, and ImplToolItem::meType.
Referenced by ToolBox::ImplChangeHighlightUpDn().