|
LibreOffice Module vcl (master) 1
|
#include <toolbox.h>
Public Member Functions | |
| ImplToolItem () | |
| ImplToolItem (ToolBoxItemId nItemId, Image aImage, ToolBoxItemBits nItemBits) | |
| ImplToolItem (ToolBoxItemId nItemId, OUString aTxt, OUString aCommand, ToolBoxItemBits nItemBits) | |
| ImplToolItem (ToolBoxItemId nItemId, Image aImage, OUString aTxt, ToolBoxItemBits nItemBits) | |
| Size | GetSize (bool bHorz, bool bCheckMaxWidth, tools::Long maxWidth, const Size &rDefaultSize) |
| void | DetermineButtonDrawStyle (ButtonType eButtonType, bool &rbImage, bool &rbText) const |
| tools::Rectangle | GetDropDownRect (bool bHorz) const |
| bool | IsClipped () const |
| bool | IsItemHidden () const |
Public Attributes | |
| VclPtr< vcl::Window > | mpWindow |
| bool | mbNonInteractiveWindow |
| void * | mpUserData |
| Image | maImage |
| Degree10 | mnImageAngle |
| bool | mbMirrorMode |
| OUString | maText |
| OUString | maQuickHelpText |
| OUString | maHelpText |
| OUString | maCommandStr |
| OUString | maHelpId |
| tools::Rectangle | maRect |
| tools::Rectangle | maCalcRect |
| Size | maMinimalItemSize |
| Widget layout may request size; set it as the minimal size (like, the item will always have at least this size). More... | |
| Size | maItemSize |
| The overall horizontal item size, including one or more of [image size + textlength + dropdown arrow]. More... | |
| tools::Long | mnSepSize |
| tools::Long | mnDropDownArrowWidth |
| Size | maContentSize |
| Size of the content (bitmap or text, without dropdown) that we have in the item. More... | |
| ToolBoxItemType | meType |
| ToolBoxItemBits | mnBits |
| TriState | meState |
| ToolBoxItemId | mnId |
| bool | mbEnabled:1 |
| bool | mbVisible:1 |
| bool | mbEmptyBtn:1 |
| bool | mbShowWindow:1 |
| bool | mbBreak:1 |
| bool | mbVisibleText:1 |
| bool | mbExpand:1 |
Private Member Functions | |
| void | init (ToolBoxItemId nItemId, ToolBoxItemBits nItemBits, bool bEmptyBtn) |
| ImplToolItem::ImplToolItem | ( | ) |
Definition at line 109 of file toolbox2.cxx.
| ImplToolItem::ImplToolItem | ( | ToolBoxItemId | nItemId, |
| Image | aImage, | ||
| ToolBoxItemBits | nItemBits | ||
| ) |
Definition at line 114 of file toolbox2.cxx.
References init().
| ImplToolItem::ImplToolItem | ( | ToolBoxItemId | nItemId, |
| OUString | aTxt, | ||
| OUString | aCommand, | ||
| ToolBoxItemBits | nItemBits | ||
| ) |
Definition at line 121 of file toolbox2.cxx.
| ImplToolItem::ImplToolItem | ( | ToolBoxItemId | nItemId, |
| Image | aImage, | ||
| OUString | aTxt, | ||
| ToolBoxItemBits | nItemBits | ||
| ) |
Definition at line 129 of file toolbox2.cxx.
| void ImplToolItem::DetermineButtonDrawStyle | ( | ButtonType | eButtonType, |
| bool & | rbImage, | ||
| bool & | rbText | ||
| ) | const |
Definition at line 195 of file toolbox2.cxx.
References BUTTON, maImage, maText, meType, SYMBOLONLY, and TEXT.
Referenced by ToolBox::ImplDrawItem().
| tools::Rectangle ImplToolItem::GetDropDownRect | ( | bool | bHorz | ) | const |
Definition at line 247 of file toolbox2.cxx.
References tools::Rectangle::Bottom(), DROPDOWN, tools::Rectangle::IsEmpty(), maRect, mbVisibleText, mnBits, mnDropDownArrowWidth, tools::Rectangle::Right(), tools::Rectangle::SetLeft(), and tools::Rectangle::SetTop().
Referenced by ToolBox::ImplDrawItem().
| Size ImplToolItem::GetSize | ( | bool | bHorz, |
| bool | bCheckMaxWidth, | ||
| tools::Long | maxWidth, | ||
| const Size & | rDefaultSize | ||
| ) |
Definition at line 137 of file toolbox2.cxx.
References BREAK, BUTTON, vcl::Window::GetSizePixel(), vcl::Window::GetStyle(), Size::Height(), maItemSize, mbEmptyBtn, mbShowWindow, meType, mnSepSize, mpWindow, SEPARATOR, Size::setHeight(), Size::setWidth(), SPACE, WB_NOLABEL, and Size::Width().
|
private |
Definition at line 86 of file toolbox2.cxx.
References BUTTON, mbBreak, mbEmptyBtn, mbEnabled, mbExpand, mbMirrorMode, mbNonInteractiveWindow, mbShowWindow, mbVisible, mbVisibleText, meState, meType, mnBits, mnDropDownArrowWidth, mnId, mnImageAngle, mnSepSize, mpUserData, mpWindow, TB_DROPDOWNARROWWIDTH, TB_SEP_SIZE, and TRISTATE_FALSE.
Referenced by ImplToolItem().
| bool ImplToolItem::IsClipped | ( | ) | const |
Definition at line 263 of file toolbox2.cxx.
References BUTTON, tools::Rectangle::IsEmpty(), maRect, mbVisible, and meType.
Referenced by ToolBox::ImplChangeHighlightUpDn(), ImplIsValidItem(), and ToolBox::IsItemClipped().
| bool ImplToolItem::IsItemHidden | ( | ) | const |
Definition at line 268 of file toolbox2.cxx.
| tools::Rectangle ImplToolItem::maCalcRect |
| OUString ImplToolItem::maCommandStr |
Definition at line 46 of file toolbox.h.
Referenced by ToolBox::GetItemCommand(), ToolBox::ImplGetHelpText(), and ToolBox::SetItemCommand().
| Size ImplToolItem::maContentSize |
| OUString ImplToolItem::maHelpId |
Definition at line 47 of file toolbox.h.
Referenced by ToolBox::ImplGetHelpText(), and ToolBox::SetHelpId().
| OUString ImplToolItem::maHelpText |
Definition at line 45 of file toolbox.h.
Referenced by ToolBox::ImplGetHelpText(), and ToolBox::SetHelpText().
| Image ImplToolItem::maImage |
Definition at line 40 of file toolbox.h.
Referenced by DetermineButtonDrawStyle(), ToolBox::GetItemImage(), ToolBox::ImplDrawItem(), ToolBox::SetItemImage(), and ToolBox::SetItemText().
| Size ImplToolItem::maItemSize |
The overall horizontal item size, including one or more of [image size + textlength + dropdown arrow].
Definition at line 53 of file toolbox.h.
Referenced by GetSize(), ToolBox::ImplFormat(), and ImplToolBoxPrivateData::ImplToolBoxPrivateData().
| Size ImplToolItem::maMinimalItemSize |
Widget layout may request size; set it as the minimal size (like, the item will always have at least this size).
Definition at line 51 of file toolbox.h.
Referenced by ToolBox::InsertItem().
| OUString ImplToolItem::maQuickHelpText |
Definition at line 44 of file toolbox.h.
Referenced by ToolBox::GetQuickHelpText(), and ToolBox::SetQuickHelpText().
| tools::Rectangle ImplToolItem::maRect |
Definition at line 48 of file toolbox.h.
Referenced by GetDropDownRect(), ToolBox::ImplDrawFloatwinBorder(), ToolBox::ImplDrawItem(), ToolBox::ImplDrawSeparator(), ToolBox::ImplFillLayoutData(), ToolBox::ImplFormat(), ToolBox::ImplHandleMouseButtonUp(), ToolBox::ImplHandleMouseMove(), ToolBox::InvalidateItem(), IsClipped(), ToolBox::IsItemReallyVisible(), ToolBox::Paint(), and ToolBox::Resize().
| OUString ImplToolItem::maText |
Definition at line 43 of file toolbox.h.
Referenced by DetermineButtonDrawStyle(), ToolBox::GetItemText(), ToolBox::ImplDrawItem(), and ToolBox::SetItemText().
| bool ImplToolItem::mbBreak |
Definition at line 66 of file toolbox.h.
Referenced by ToolBox::ImplDrawSeparator(), and init().
| bool ImplToolItem::mbEmptyBtn |
| bool ImplToolItem::mbEnabled |
Definition at line 62 of file toolbox.h.
Referenced by ToolBox::EnableItem(), ToolBox::ImplActivateItem(), ToolBox::ImplDrawItem(), ImplIsValidItem(), init(), ToolBox::InsertBreak(), ToolBox::InsertSeparator(), ToolBox::InsertSpace(), ToolBox::IsItemEnabled(), and ToolBox::KeyInput().
| bool ImplToolItem::mbExpand |
Definition at line 68 of file toolbox.h.
Referenced by ToolBox::GetOptimalSize(), init(), and ToolBox::SetItemExpand().
| bool ImplToolItem::mbMirrorMode |
Definition at line 42 of file toolbox.h.
Referenced by init(), ToolBox::SetItemImage(), and ToolBox::SetItemImageMirrorMode().
| bool ImplToolItem::mbNonInteractiveWindow |
Definition at line 38 of file toolbox.h.
Referenced by ImplIsFixedControl(), and init().
| bool ImplToolItem::mbShowWindow |
Definition at line 65 of file toolbox.h.
Referenced by ToolBox::CopyItem(), GetSize(), ToolBox::ImplDrawItem(), ToolBox::ImplDrawSeparator(), and init().
| bool ImplToolItem::mbVisible |
Definition at line 63 of file toolbox.h.
Referenced by ImplIsValidItem(), init(), IsClipped(), IsItemHidden(), ToolBox::IsItemReallyVisible(), ToolBox::IsItemVisible(), and ToolBox::ShowItem().
| bool ImplToolItem::mbVisibleText |
Definition at line 67 of file toolbox.h.
Referenced by GetDropDownRect(), ToolBox::ImplDrawItem(), and init().
| TriState ImplToolItem::meState |
Definition at line 60 of file toolbox.h.
Referenced by ToolBox::GetItemState(), ToolBox::ImplActivateItem(), ToolBox::ImplDrawItem(), ToolBox::ImplHandleMouseButtonUp(), ImplToolBoxPrivateData::ImplToolBoxPrivateData(), init(), and ToolBox::SetItemState().
| ToolBoxItemType ImplToolItem::meType |
Definition at line 58 of file toolbox.h.
Referenced by DetermineButtonDrawStyle(), GetSize(), ToolBox::ImplDrawItem(), ImplIsValidItem(), init(), ToolBox::InsertBreak(), ToolBox::InsertSeparator(), ToolBox::InsertSpace(), ToolBox::InsertWindow(), IsClipped(), and IsItemHidden().
| ToolBoxItemBits ImplToolItem::mnBits |
Definition at line 59 of file toolbox.h.
Referenced by determineButtonType(), GetDropDownRect(), ToolBox::GetItemBits(), ToolBox::ImplActivateItem(), ToolBox::ImplDrawItem(), ToolBox::ImplHandleMouseButtonUp(), ToolBox::ImplHandleMouseMove(), init(), ToolBox::InsertWindow(), and ToolBox::SetItemState().
| tools::Long ImplToolItem::mnDropDownArrowWidth |
Definition at line 55 of file toolbox.h.
Referenced by GetDropDownRect(), and init().
| ToolBoxItemId ImplToolItem::mnId |
Definition at line 61 of file toolbox.h.
Referenced by ToolBox::ImplActivateItem(), ToolBox::ImplChangeHighlight(), ToolBox::ImplDrawItem(), ToolBox::ImplHandleMouseButtonUp(), ToolBox::ImplHandleMouseMove(), init(), ToolBox::InsertWindow(), and ToolBox::SetItemState().
| Degree10 ImplToolItem::mnImageAngle |
Definition at line 41 of file toolbox.h.
Referenced by init(), ToolBox::SetItemImage(), and ToolBox::SetItemImageAngle().
| tools::Long ImplToolItem::mnSepSize |
Definition at line 54 of file toolbox.h.
Referenced by GetSize(), init(), and ToolBox::InsertSeparator().
| void* ImplToolItem::mpUserData |
Definition at line 39 of file toolbox.h.
Referenced by ToolBox::GetItemData(), and init().
| VclPtr<vcl::Window> ImplToolItem::mpWindow |
Definition at line 37 of file toolbox.h.
Referenced by ToolBox::CopyItem(), ToolBox::EnableItem(), ToolBox::GetItemWindow(), ToolBox::GetOptimalSize(), GetSize(), ToolBox::ImplActivateItem(), ToolBox::ImplChangeHighlight(), ToolBox::ImplHideFocus(), ImplIsFixedControl(), ToolBox::ImplShowFocus(), init(), ToolBox::InsertWindow(), ToolBox::KeyInput(), and ToolBox::SetItemWindow().