LibreOffice Module vcl (master)  1
Public Member Functions | Public Attributes | Private Member Functions | List of all members
ImplToolItem Struct Reference

#include <toolbox.h>

Collaboration diagram for ImplToolItem:
[legend]

Public Member Functions

 ImplToolItem ()
 
 ImplToolItem (sal_uInt16 nItemId, const Image &rImage, ToolBoxItemBits nItemBits)
 
 ImplToolItem (sal_uInt16 nItemId, const OUString &rTxt, ToolBoxItemBits nItemBits)
 
 ImplToolItem (sal_uInt16 nItemId, const Image &rImage, const OUString &rTxt, ToolBoxItemBits nItemBits)
 
Size GetSize (bool bHorz, bool bCheckMaxWidth, 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::WindowmpWindow
 
voidmpUserData
 
Image maImage
 
Image maOverlayImage
 
long mnImageAngle
 
bool mbMirrorMode
 
OUString maText
 
OUString maQuickHelpText
 
OUString maHelpText
 
OUString maCommandStr
 
OString 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...
 
long mnSepSize
 
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
 
sal_uInt16 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 (sal_uInt16 nItemId, ToolBoxItemBits nItemBits, bool bEmptyBtn)
 

Detailed Description

Definition at line 35 of file toolbox.h.

Constructor & Destructor Documentation

ImplToolItem::ImplToolItem ( )

Definition at line 98 of file toolbox2.cxx.

References init(), and NONE.

ImplToolItem::ImplToolItem ( sal_uInt16  nItemId,
const Image rImage,
ToolBoxItemBits  nItemBits 
)

Definition at line 103 of file toolbox2.cxx.

References init().

ImplToolItem::ImplToolItem ( sal_uInt16  nItemId,
const OUString &  rTxt,
ToolBoxItemBits  nItemBits 
)

Definition at line 110 of file toolbox2.cxx.

References init(), and maText.

ImplToolItem::ImplToolItem ( sal_uInt16  nItemId,
const Image rImage,
const OUString &  rTxt,
ToolBoxItemBits  nItemBits 
)

Definition at line 117 of file toolbox2.cxx.

References init(), and maText.

Member Function Documentation

void ImplToolItem::DetermineButtonDrawStyle ( ButtonType  eButtonType,
bool &  rbImage,
bool &  rbText 
) const

Definition at line 183 of file toolbox2.cxx.

References BUTTON, maImage, maText, meType, SYMBOLONLY, and TEXT.

Referenced by ToolBox::ImplDrawItem().

tools::Rectangle ImplToolItem::GetDropDownRect ( bool  bHorz) const
Size ImplToolItem::GetSize ( bool  bHorz,
bool  bCheckMaxWidth,
long  maxWidth,
const Size rDefaultSize 
)
void ImplToolItem::init ( sal_uInt16  nItemId,
ToolBoxItemBits  nItemBits,
bool  bEmptyBtn 
)
private

Definition at line 76 of file toolbox2.cxx.

References BUTTON, mbVisible, meType, mnId, mpWindow, TB_DROPDOWNARROWWIDTH, TB_SEP_SIZE, and TRISTATE_FALSE.

Referenced by ImplToolItem().

bool ImplToolItem::IsClipped ( ) const
bool ImplToolItem::IsItemHidden ( ) const

Definition at line 256 of file toolbox2.cxx.

References BUTTON, mbVisible, and meType.

Member Data Documentation

tools::Rectangle ImplToolItem::maCalcRect

Definition at line 49 of file toolbox.h.

OUString ImplToolItem::maCommandStr
Size ImplToolItem::maContentSize

Size of the content (bitmap or text, without dropdown) that we have in the item.

Definition at line 57 of file toolbox.h.

OString 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
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(), and ToolBox::ImplFormat().

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().

Image ImplToolItem::maOverlayImage

Definition at line 40 of file toolbox.h.

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

OUString ImplToolItem::maQuickHelpText

Definition at line 44 of file toolbox.h.

Referenced by ToolBox::GetQuickHelpText(), and ToolBox::SetQuickHelpText().

tools::Rectangle ImplToolItem::maRect
OUString ImplToolItem::maText
bool ImplToolItem::mbBreak

Definition at line 62 of file toolbox.h.

Referenced by ToolBox::ImplDrawSeparator().

bool ImplToolItem::mbEmptyBtn

Definition at line 62 of file toolbox.h.

Referenced by GetSize().

bool ImplToolItem::mbEnabled
bool ImplToolItem::mbExpand

Definition at line 62 of file toolbox.h.

Referenced by ToolBox::GetOptimalSize(), and ToolBox::SetItemExpand().

bool ImplToolItem::mbMirrorMode

Definition at line 42 of file toolbox.h.

Referenced by ToolBox::SetItemImageMirrorMode().

bool ImplToolItem::mbShowWindow
bool ImplToolItem::mbVisible
bool ImplToolItem::mbVisibleText

Definition at line 62 of file toolbox.h.

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

TriState ImplToolItem::meState
ToolBoxItemType ImplToolItem::meType
ToolBoxItemBits ImplToolItem::mnBits
long ImplToolItem::mnDropDownArrowWidth

Definition at line 55 of file toolbox.h.

Referenced by GetDropDownRect().

sal_uInt16 ImplToolItem::mnId
long ImplToolItem::mnImageAngle

Definition at line 41 of file toolbox.h.

Referenced by ToolBox::SetItemImageAngle().

long ImplToolItem::mnSepSize

Definition at line 54 of file toolbox.h.

Referenced by GetSize(), and ToolBox::InsertSeparator().

void* ImplToolItem::mpUserData

Definition at line 38 of file toolbox.h.

Referenced by ToolBox::GetItemData().

VclPtr<vcl::Window> ImplToolItem::mpWindow

The documentation for this struct was generated from the following files: