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 (ToolBoxItemId nItemId, const Image &rImage, ToolBoxItemBits nItemBits)
 
 ImplToolItem (ToolBoxItemId nItemId, const OUString &rTxt, ToolBoxItemBits nItemBits)
 
 ImplToolItem (ToolBoxItemId nItemId, const Image &rImage, const OUString &rTxt, 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::WindowmpWindow
 
bool mbNonInteractiveWindow
 
void * mpUserData
 
Image maImage
 
Degree10 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...
 
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)
 

Detailed Description

Definition at line 35 of file toolbox.h.

Constructor & Destructor Documentation

◆ ImplToolItem() [1/4]

ImplToolItem::ImplToolItem ( )

Definition at line 108 of file toolbox2.cxx.

References init(), and NONE.

◆ ImplToolItem() [2/4]

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

Definition at line 113 of file toolbox2.cxx.

References init().

◆ ImplToolItem() [3/4]

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

Definition at line 120 of file toolbox2.cxx.

References init(), and maText.

◆ ImplToolItem() [4/4]

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

Definition at line 127 of file toolbox2.cxx.

References init(), and maText.

Member Function Documentation

◆ DetermineButtonDrawStyle()

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

Definition at line 193 of file toolbox2.cxx.

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

Referenced by ToolBox::ImplDrawItem().

◆ GetDropDownRect()

tools::Rectangle ImplToolItem::GetDropDownRect ( bool  bHorz) const

◆ GetSize()

Size ImplToolItem::GetSize ( bool  bHorz,
bool  bCheckMaxWidth,
tools::Long  maxWidth,
const Size rDefaultSize 
)

◆ init()

void ImplToolItem::init ( ToolBoxItemId  nItemId,
ToolBoxItemBits  nItemBits,
bool  bEmptyBtn 
)
private

◆ IsClipped()

bool ImplToolItem::IsClipped ( ) const

◆ IsItemHidden()

bool ImplToolItem::IsItemHidden ( ) const

Definition at line 266 of file toolbox2.cxx.

References BUTTON, mbVisible, and meType.

Member Data Documentation

◆ maCalcRect

tools::Rectangle ImplToolItem::maCalcRect

Definition at line 49 of file toolbox.h.

◆ maCommandStr

OUString ImplToolItem::maCommandStr

◆ maContentSize

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.

◆ maHelpId

OString ImplToolItem::maHelpId

Definition at line 47 of file toolbox.h.

Referenced by ToolBox::ImplGetHelpText(), and ToolBox::SetHelpId().

◆ maHelpText

OUString ImplToolItem::maHelpText

Definition at line 45 of file toolbox.h.

Referenced by ToolBox::ImplGetHelpText(), and ToolBox::SetHelpText().

◆ maImage

Image ImplToolItem::maImage

◆ maItemSize

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

◆ maMinimalItemSize

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

◆ maQuickHelpText

OUString ImplToolItem::maQuickHelpText

Definition at line 44 of file toolbox.h.

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

◆ maRect

tools::Rectangle ImplToolItem::maRect

◆ maText

OUString ImplToolItem::maText

◆ mbBreak

bool ImplToolItem::mbBreak

Definition at line 66 of file toolbox.h.

Referenced by ToolBox::ImplDrawSeparator(), and init().

◆ mbEmptyBtn

bool ImplToolItem::mbEmptyBtn

Definition at line 64 of file toolbox.h.

Referenced by GetSize(), and init().

◆ mbEnabled

bool ImplToolItem::mbEnabled

◆ mbExpand

bool ImplToolItem::mbExpand

Definition at line 68 of file toolbox.h.

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

◆ mbMirrorMode

bool ImplToolItem::mbMirrorMode

Definition at line 42 of file toolbox.h.

Referenced by init(), and ToolBox::SetItemImageMirrorMode().

◆ mbNonInteractiveWindow

bool ImplToolItem::mbNonInteractiveWindow

Definition at line 38 of file toolbox.h.

Referenced by ImplIsFixedControl(), and init().

◆ mbShowWindow

bool ImplToolItem::mbShowWindow

◆ mbVisible

bool ImplToolItem::mbVisible

◆ mbVisibleText

bool ImplToolItem::mbVisibleText

Definition at line 67 of file toolbox.h.

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

◆ meState

TriState ImplToolItem::meState

◆ meType

ToolBoxItemType ImplToolItem::meType

◆ mnBits

ToolBoxItemBits ImplToolItem::mnBits

◆ mnDropDownArrowWidth

tools::Long ImplToolItem::mnDropDownArrowWidth

Definition at line 55 of file toolbox.h.

Referenced by GetDropDownRect(), and init().

◆ mnId

ToolBoxItemId ImplToolItem::mnId

◆ mnImageAngle

Degree10 ImplToolItem::mnImageAngle

Definition at line 41 of file toolbox.h.

Referenced by init(), and ToolBox::SetItemImageAngle().

◆ mnSepSize

tools::Long ImplToolItem::mnSepSize

Definition at line 54 of file toolbox.h.

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

◆ mpUserData

void* ImplToolItem::mpUserData

Definition at line 39 of file toolbox.h.

Referenced by ToolBox::GetItemData(), and init().

◆ mpWindow

VclPtr<vcl::Window> ImplToolItem::mpWindow

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