LibreOffice Module svtools (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ValueSet Class Reference

#include <valueset.hxx>

Inheritance diagram for ValueSet:
[legend]
Collaboration diagram for ValueSet:
[legend]

Public Member Functions

 ValueSet (std::unique_ptr< weld::ScrolledWindow > pScrolledWindow)
 
virtual ~ValueSet () override
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual void Resize () override
 
virtual void StyleUpdated () override
 
virtual void Show () override
 
virtual void Hide () override
 
virtual OUString RequestHelp (tools::Rectangle &rHelpRect) override
 
virtual void Select ()
 
virtual void UserDraw (const UserDrawEvent &rUDEvt)
 
OUString const & GetText () const
 
void SetText (const OUString &rText)
 
void SetStyle (WinBits nStyle)
 
WinBits GetStyle () const
 
void SetOptimalSize ()
 
void InsertItem (sal_uInt16 nItemId, const Image &rImage)
 Insert @rImage item. More...
 
void InsertItem (sal_uInt16 nItemId, const Image &rImage, const OUString &rStr, size_t nPos=VALUESET_APPEND, bool bShowLegend=false)
 Insert @rImage item with @rStr as either a legend or tooltip depending on @bShowLegend. More...
 
void InsertItem (sal_uInt16 nItemId, const Color &rColor, const OUString &rStr)
 Insert an @rColor item with @rStr tooltip. More...
 
void InsertItem (sal_uInt16 nItemId, size_t nPos=VALUESET_APPEND)
 Insert an User Drawn item. More...
 
void InsertItem (sal_uInt16 nItemId, const OUString &rStr, size_t nPos)
 Insert an User Drawn item with @rStr tooltip. More...
 
void RemoveItem (sal_uInt16 nItemId)
 
void Clear ()
 
size_t GetItemCount () const
 
size_t GetItemPos (sal_uInt16 nItemId) const
 
sal_uInt16 GetItemId (size_t nPos) const
 
sal_uInt16 GetItemId (const Point &rPos) const
 
tools::Rectangle GetItemRect (sal_uInt16 nItemId) const
 
void EnableFullItemMode (bool bFullMode)
 
void SetColCount (sal_uInt16 nNewCols=1)
 
sal_uInt16 GetColCount () const
 
void SetLineCount (sal_uInt16 nNewLines=0)
 
sal_uInt16 GetLineCount () const
 
void SetItemWidth (tools::Long nItemWidth)
 
void SetItemHeight (tools::Long nLineHeight)
 
void SelectItem (sal_uInt16 nItemId)
 
sal_uInt16 GetSelectedItemId () const
 
size_t GetSelectItemPos () const
 
bool IsItemSelected (sal_uInt16 nItemId) const
 
void SetNoSelection ()
 
bool IsNoSelection () const
 
void RecalculateItemSizes ()
 An inelegant method; sets the item width & height such that all of the included items and their labels fit; if we can calculate that. More...
 
void SetItemImage (sal_uInt16 nItemId, const Image &rImage)
 
Image GetItemImage (sal_uInt16 nItemId) const
 
void SetItemColor (sal_uInt16 nItemId, const Color &rColor)
 
Color GetItemColor (sal_uInt16 nItemId) const
 
void SetItemData (sal_uInt16 nItemId, void *pData)
 
void * GetItemData (sal_uInt16 nItemId) const
 
void SetItemText (sal_uInt16 nItemId, const OUString &rStr)
 
OUString GetItemText (sal_uInt16 nItemId) const
 
void SetColor (const Color &rColor)
 
void SetColor ()
 
bool IsColor () const
 
void SetExtraSpacing (sal_uInt16 nNewSpacing)
 
void Format (vcl::RenderContext const &rRenderContext)
 
void SetFormat ()
 
Size CalcWindowSizePixel (const Size &rItemSize, sal_uInt16 nCalcCols=0, sal_uInt16 nCalcLines=0) const
 
Size CalcItemSizePixel (const Size &rSize) const
 
int GetScrollWidth () const
 
void SetSelectHdl (const Link< ValueSet *, void > &rLink)
 
void SetDoubleClickHdl (const Link< ValueSet *, void > &rLink)
 
bool GetEdgeBlending () const
 
void SetEdgeBlending (bool bNew)
 
void SaveValue ()
 
bool IsValueChangedFromSaved () const
 
virtual FactoryFunction GetUITestFactory () const override
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0
 
virtual void Resize ()
 
virtual bool MouseButtonDown (const MouseEvent &)
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
virtual tools::Rectangle GetFocusRect ()
 
virtual FactoryFunction GetUITestFactory () const
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void SetCursor (void *pData)
 
void GrabFocus ()
 
bool HasFocus () const
 
bool HasChildFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
void Enable () const
 
void Disable () const
 
bool IsActive () const
 
int GetTextHeight () const
 
int GetTextWidth (const OUString &rText) const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
Point GetPointerPosPixel () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OUString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void SetInputContext (const InputContext &rInputContext)
 
void SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth)
 
virtual int GetSurroundingText (OUString &)
 
virtual bool DeleteSurroundingText (const Selection &)
 
css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget ()
 
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const
 
void SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants)
 
virtual bool StartDrag ()
 
void set_size_request (int nWidth, int nHeight)
 
void queue_resize ()
 
 CustomWidgetController ()
 
virtual ~CustomWidgetController ()
 
 CustomWidgetController (CustomWidgetController const &)=default
 
 CustomWidgetController (CustomWidgetController &&)=default
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 

Protected Member Functions

virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
weld::ScrolledWindowGetScrollBar () const
 

Private Member Functions

SVT_DLLPRIVATE void ImplDeleteItems ()
 
SVT_DLLPRIVATE void ImplFormatItem (vcl::RenderContext const &rRenderContext, ValueSetItem *pItem, tools::Rectangle aRect)
 
SVT_DLLPRIVATE void ImplDrawItemText (vcl::RenderContext &rRenderContext, const OUString &rStr)
 
SVT_DLLPRIVATE ValueSetItemImplGetDrawSelectItem (sal_uInt16 nItemId, const bool bFocus, tools::Rectangle &rRect)
 
SVT_DLLPRIVATE void ImplDrawSelect (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect, const ValueSetItem *pItem, const bool bFocus, const bool bDrawSel, const bool bSelected, const bool bHover)
 
SVT_DLLPRIVATE void ImplDrawSelect (vcl::RenderContext &rRenderContext)
 
SVT_DLLPRIVATE void ImplHighlightItem (sal_uInt16 nItemId)
 
SVT_DLLPRIVATE void ImplDraw (vcl::RenderContext &rRenderContext)
 
SVT_DLLPRIVATE size_t ImplGetItem (const Point &rPoint) const
 
SVT_DLLPRIVATE ValueSetItemImplGetItem (size_t nPos)
 
SVT_DLLPRIVATE ValueSetItemImplGetFirstItem ()
 
SVT_DLLPRIVATE sal_uInt16 ImplGetVisibleItemCount () const
 
SVT_DLLPRIVATE void ImplInsertItem (std::unique_ptr< ValueSetItem > pItem, const size_t nPos)
 
SVT_DLLPRIVATE tools::Rectangle ImplGetItemRect (size_t nPos) const
 
SVT_DLLPRIVATE void ImplFireAccessibleEvent (short nEventId, const css::uno::Any &rOldValue, const css::uno::Any &rNewValue)
 
SVT_DLLPRIVATE bool ImplHasAccessibleListeners () const
 
SVT_DLLPRIVATE void ImplTracking (bool bLeaveWindow, const Point &rPos)
 
SVT_DLLPRIVATE void QueueReformat ()
 
SVT_DLLPRIVATE void SetFirstLine (sal_uInt16 nNewFirstLine)
 
SVT_DLLPRIVATE void RecalcScrollBar ()
 
SVT_DLLPRIVATE bool TurnOffScrollBar ()
 
SVT_DLLPRIVATE void TurnOnScrollBar ()
 
 DECL_DLLPRIVATE_LINK (ImplScrollHdl, weld::ScrolledWindow &, void)
 
Size GetLargestItemSize ()
 
 ValueSet (const ValueSet &)=delete
 
ValueSetoperator= (const ValueSet &)=delete
 

Private Attributes

ScopedVclPtr< VirtualDevicemaVirDev
 
css::uno::Reference< css::accessibility::XAccessible > mxAccessible
 
ValueItemList mItemList
 
std::unique_ptr< ValueSetItemmpNoneItem
 
std::unique_ptr< weld::ScrolledWindowmxScrolledWindow
 
tools::Rectangle maNoneItemRect
 
tools::Rectangle maItemListRect
 
tools::Long mnItemWidth
 
tools::Long mnItemHeight
 
tools::Long mnTextOffset
 
tools::Long mnVisLines
 
tools::Long mnLines
 
tools::Long mnUserItemWidth
 
tools::Long mnUserItemHeight
 
sal_uInt16 mnSelItemId
 
int mnSavedItemId
 
sal_uInt16 mnHighItemId
 
sal_uInt16 mnCols
 
sal_uInt16 mnCurCol
 
sal_uInt16 mnUserCols
 
sal_uInt16 mnUserVisLines
 
sal_uInt16 mnFirstLine
 
sal_uInt16 mnSpacing
 
DrawFrameStyle mnFrameStyle
 
Color maColor
 
OUString maText
 
WinBits mnStyle
 
Link< ValueSet *, void > maDoubleClickHdl
 
Link< ValueSet *, void > maSelectHdl
 
bool mbFormat: 1
 
bool mbHighlight: 1
 
bool mbNoSelection: 1
 
bool mbDoubleSel: 1
 
bool mbScroll: 1
 
bool mbFullMode: 1
 
bool mbEdgeBlending: 1
 
bool mbHasVisibleItems: 1
 

Friends

class ValueItemAcc
 
class ValueSetAcc
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Definition at line 184 of file valueset.hxx.

Constructor & Destructor Documentation

◆ ValueSet() [1/2]

ValueSet::ValueSet ( const ValueSet )
privatedelete

◆ ValueSet() [2/2]

ValueSet::ValueSet ( std::unique_ptr< weld::ScrolledWindow pScrolledWindow)

◆ ~ValueSet()

ValueSet::~ValueSet ( )
overridevirtual

Definition at line 124 of file valueset.cxx.

References ImplDeleteItems(), and mxAccessible.

Member Function Documentation

◆ CalcItemSizePixel()

Size ValueSet::CalcItemSizePixel ( const Size rSize) const

◆ CalcWindowSizePixel()

Size ValueSet::CalcWindowSizePixel ( const Size rItemSize,
sal_uInt16  nCalcCols = 0,
sal_uInt16  nCalcLines = 0 
) const

◆ Clear()

void ValueSet::Clear ( )

◆ CreateAccessible()

Reference< XAccessible > ValueSet::CreateAccessible ( )
overrideprotectedvirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 117 of file valueset.cxx.

References mxAccessible, and ValueSetAcc.

◆ DECL_DLLPRIVATE_LINK()

ValueSet::DECL_DLLPRIVATE_LINK ( ImplScrollHdl  ,
weld::ScrolledWindow ,
void   
)
private

◆ EnableFullItemMode()

void ValueSet::EnableFullItemMode ( bool  bFullMode)

Definition at line 1531 of file valueset.cxx.

References mbFullMode.

◆ Format()

void ValueSet::Format ( vcl::RenderContext const &  rRenderContext)

◆ GetColCount()

sal_uInt16 ValueSet::GetColCount ( ) const
inline

Definition at line 320 of file valueset.hxx.

◆ GetEdgeBlending()

bool ValueSet::GetEdgeBlending ( ) const
inline

Definition at line 392 of file valueset.hxx.

Referenced by ImplFormatItem().

◆ GetFocus()

void ValueSet::GetFocus ( )
overridevirtual

◆ GetItemColor()

Color ValueSet::GetItemColor ( sal_uInt16  nItemId) const

Definition at line 1585 of file valueset.cxx.

References GetItemPos(), mItemList, nPos, and VALUESET_ITEM_NOTFOUND.

◆ GetItemCount()

size_t ValueSet::GetItemCount ( ) const

Definition at line 600 of file valueset.cxx.

References mItemList.

Referenced by ValueSetUIObject::get_state().

◆ GetItemData()

void * ValueSet::GetItemData ( sal_uInt16  nItemId) const

Definition at line 1862 of file valueset.cxx.

References GetItemPos(), mItemList, nPos, and VALUESET_ITEM_NOTFOUND.

◆ GetItemId() [1/2]

sal_uInt16 ValueSet::GetItemId ( const Point rPos) const

Definition at line 620 of file valueset.cxx.

References GetItemId(), ImplGetItem(), and VALUESET_ITEM_NOTFOUND.

◆ GetItemId() [2/2]

sal_uInt16 ValueSet::GetItemId ( size_t  nPos) const

Definition at line 615 of file valueset.cxx.

References mItemList, and nPos.

Referenced by ValueSetAcc::getAccessibleAtPoint(), GetItemId(), and KeyInput().

◆ GetItemImage()

Image ValueSet::GetItemImage ( sal_uInt16  nItemId) const

Definition at line 1951 of file valueset.cxx.

References GetItemPos(), mItemList, nPos, and VALUESET_ITEM_NOTFOUND.

◆ GetItemPos()

size_t ValueSet::GetItemPos ( sal_uInt16  nItemId) const

◆ GetItemRect()

tools::Rectangle ValueSet::GetItemRect ( sal_uInt16  nItemId) const

◆ GetItemText()

OUString ValueSet::GetItemText ( sal_uInt16  nItemId) const

Definition at line 1816 of file valueset.cxx.

References GetItemPos(), mItemList, nPos, and VALUESET_ITEM_NOTFOUND.

Referenced by RequestHelp().

◆ GetLargestItemSize()

Size ValueSet::GetLargestItemSize ( )
private

◆ GetLineCount()

sal_uInt16 ValueSet::GetLineCount ( ) const
inline

Definition at line 325 of file valueset.hxx.

◆ GetScrollBar()

weld::ScrolledWindow * ValueSet::GetScrollBar ( ) const
inlineprotected

Definition at line 265 of file valueset.hxx.

◆ GetScrollWidth()

int ValueSet::GetScrollWidth ( ) const

Definition at line 1721 of file valueset.cxx.

References mxScrolledWindow.

Referenced by TurnOffScrollBar(), and TurnOnScrollBar().

◆ GetSelectedItemId()

sal_uInt16 ValueSet::GetSelectedItemId ( ) const
inline

◆ GetSelectItemPos()

size_t ValueSet::GetSelectItemPos ( ) const
inline

Definition at line 337 of file valueset.hxx.

Referenced by ValueSetUIObject::get_state().

◆ GetStyle()

WinBits ValueSet::GetStyle ( ) const
inline

◆ GetText()

OUString const & ValueSet::GetText ( ) const
inline

Definition at line 289 of file valueset.hxx.

References maText.

Referenced by Format(), and ImplFormatItem().

◆ GetUITestFactory()

FactoryFunction ValueSet::GetUITestFactory ( ) const
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 1983 of file valueset.cxx.

References ValueSetUIObject::create().

◆ Hide()

void ValueSet::Hide ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 1976 of file valueset.cxx.

References mxScrolledWindow.

◆ ImplDeleteItems()

void ValueSet::ImplDeleteItems ( )
private

◆ ImplDraw()

void ValueSet::ImplDraw ( vcl::RenderContext rRenderContext)
private

◆ ImplDrawItemText()

void ValueSet::ImplDrawItemText ( vcl::RenderContext rRenderContext,
const OUString &  rStr 
)
private

◆ ImplDrawSelect() [1/2]

void ValueSet::ImplDrawSelect ( vcl::RenderContext rRenderContext)
private

◆ ImplDrawSelect() [2/2]

void ValueSet::ImplDrawSelect ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect,
const ValueSetItem pItem,
const bool  bFocus,
const bool  bDrawSel,
const bool  bSelected,
const bool  bHover 
)
private

◆ ImplFireAccessibleEvent()

void ValueSet::ImplFireAccessibleEvent ( short  nEventId,
const css::uno::Any &  rOldValue,
const css::uno::Any &  rNewValue 
)
private

◆ ImplFormatItem()

void ValueSet::ImplFormatItem ( vcl::RenderContext const &  rRenderContext,
ValueSetItem pItem,
tools::Rectangle  aRect 
)
private

◆ ImplGetDrawSelectItem()

ValueSetItem * ValueSet::ImplGetDrawSelectItem ( sal_uInt16  nItemId,
const bool  bFocus,
tools::Rectangle rRect 
)
private

◆ ImplGetFirstItem()

ValueSetItem * ValueSet::ImplGetFirstItem ( )
private

Definition at line 210 of file valueset.cxx.

References mItemList.

Referenced by ImplGetDrawSelectItem(), and KeyInput().

◆ ImplGetItem() [1/2]

size_t ValueSet::ImplGetItem ( const Point rPoint) const
private

◆ ImplGetItem() [2/2]

ValueSetItem * ValueSet::ImplGetItem ( size_t  nPos)
private

Definition at line 202 of file valueset.cxx.

References mItemList, mpNoneItem, nPos, and VALUESET_ITEM_NONEITEM.

◆ ImplGetItemRect()

tools::Rectangle ValueSet::ImplGetItemRect ( size_t  nPos) const
private

◆ ImplGetVisibleItemCount()

sal_uInt16 ValueSet::ImplGetVisibleItemCount ( ) const
private

◆ ImplHasAccessibleListeners()

bool ValueSet::ImplHasAccessibleListeners ( ) const
private

◆ ImplHighlightItem()

void ValueSet::ImplHighlightItem ( sal_uInt16  nItemId)
private

Definition at line 659 of file valueset.cxx.

References weld::CustomWidgetController::Invalidate(), and mnHighItemId.

Referenced by ImplTracking().

◆ ImplInsertItem()

void ValueSet::ImplInsertItem ( std::unique_ptr< ValueSetItem pItem,
const size_t  nPos 
)
private

Definition at line 1706 of file valueset.cxx.

References DBG_ASSERT, GetItemPos(), mItemList, nPos, QueueReformat(), and VALUESET_ITEM_NOTFOUND.

Referenced by InsertItem().

◆ ImplTracking()

void ValueSet::ImplTracking ( bool  bLeaveWindow,
const Point rPos 
)
private

◆ InsertItem() [1/5]

void ValueSet::InsertItem ( sal_uInt16  nItemId,
const Color rColor,
const OUString &  rStr 
)

Insert an @rColor item with @rStr tooltip.

Definition at line 1695 of file valueset.cxx.

References ImplInsertItem(), VALUESET_APPEND, and VALUESETITEM_COLOR.

◆ InsertItem() [2/5]

void ValueSet::InsertItem ( sal_uInt16  nItemId,
const Image rImage 
)

Insert @rImage item.

Definition at line 1666 of file valueset.cxx.

References ImplInsertItem(), VALUESET_APPEND, and VALUESETITEM_IMAGE.

◆ InsertItem() [3/5]

void ValueSet::InsertItem ( sal_uInt16  nItemId,
const Image rImage,
const OUString &  rStr,
size_t  nPos = VALUESET_APPEND,
bool  bShowLegend = false 
)

Insert @rImage item with @rStr as either a legend or tooltip depending on @bShowLegend.

Definition at line 1675 of file valueset.cxx.

References ImplInsertItem(), nPos, VALUESETITEM_IMAGE, and VALUESETITEM_IMAGE_AND_TEXT.

◆ InsertItem() [4/5]

void ValueSet::InsertItem ( sal_uInt16  nItemId,
const OUString &  rStr,
size_t  nPos 
)

Insert an User Drawn item with @rStr tooltip.

Definition at line 1782 of file valueset.cxx.

References DBG_ASSERT, GetItemPos(), ImplInsertItem(), nPos, VALUESET_ITEM_NOTFOUND, and VALUESETITEM_USERDRAW.

◆ InsertItem() [5/5]

void ValueSet::InsertItem ( sal_uInt16  nItemId,
size_t  nPos = VALUESET_APPEND 
)

Insert an User Drawn item.

Definition at line 1687 of file valueset.cxx.

References ImplInsertItem(), nPos, and VALUESETITEM_USERDRAW.

◆ IsColor()

bool ValueSet::IsColor ( ) const
inline

Definition at line 366 of file valueset.hxx.

References maColor.

Referenced by ImplFormatItem().

◆ IsItemSelected()

bool ValueSet::IsItemSelected ( sal_uInt16  nItemId) const
inline

◆ IsNoSelection()

bool ValueSet::IsNoSelection ( ) const
inline

Definition at line 346 of file valueset.hxx.

◆ IsValueChangedFromSaved()

bool ValueSet::IsValueChangedFromSaved ( ) const
inline

Definition at line 403 of file valueset.hxx.

◆ KeyInput()

bool ValueSet::KeyInput ( const KeyEvent rKEvt)
overridevirtual

◆ LoseFocus()

void ValueSet::LoseFocus ( )
overridevirtual

◆ MouseButtonDown()

bool ValueSet::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual

◆ MouseButtonUp()

bool ValueSet::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 494 of file valueset.cxx.

References MouseEvent::IsLeft(), MouseEvent::IsMod2(), mnSelItemId, and Select().

◆ MouseMove()

bool ValueSet::MouseMove ( const MouseEvent rMEvt)
overridevirtual

◆ operator=()

ValueSet & ValueSet::operator= ( const ValueSet )
privatedelete

◆ Paint()

void ValueSet::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual

◆ QueueReformat()

void ValueSet::QueueReformat ( )
private

◆ RecalcScrollBar()

void ValueSet::RecalcScrollBar ( )
private

Definition at line 568 of file valueset.cxx.

References GetStyle(), mbFormat, mxScrolledWindow, TurnOffScrollBar(), and WB_VSCROLL.

Referenced by Clear(), QueueReformat(), and SelectItem().

◆ RecalculateItemSizes()

void ValueSet::RecalculateItemSizes ( )

An inelegant method; sets the item width & height such that all of the included items and their labels fit; if we can calculate that.

Definition at line 712 of file valueset.cxx.

References GetLargestItemSize(), Size::Height(), mnUserItemHeight, mnUserItemWidth, QueueReformat(), and Size::Width().

◆ RemoveItem()

void ValueSet::RemoveItem ( sal_uInt16  nItemId)

◆ RequestHelp()

OUString ValueSet::RequestHelp ( tools::Rectangle rHelpRect)
overridevirtual

◆ Resize()

void ValueSet::Resize ( )
overridevirtual

◆ SaveValue()

void ValueSet::SaveValue ( )
inline

Definition at line 398 of file valueset.hxx.

◆ Select()

void ValueSet::Select ( )
virtual

◆ SelectItem()

void ValueSet::SelectItem ( sal_uInt16  nItemId)

◆ SetColCount()

void ValueSet::SetColCount ( sal_uInt16  nNewCols = 1)

Definition at line 1536 of file valueset.cxx.

References mnUserCols, and QueueReformat().

◆ SetColor() [1/2]

void ValueSet::SetColor ( )
inline

Definition at line 362 of file valueset.hxx.

References COL_TRANSPARENT().

◆ SetColor() [2/2]

void ValueSet::SetColor ( const Color rColor)

◆ SetDoubleClickHdl()

void ValueSet::SetDoubleClickHdl ( const Link< ValueSet *, void > &  rLink)
inline

Definition at line 387 of file valueset.hxx.

◆ SetDrawingArea()

void ValueSet::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 110 of file valueset.cxx.

References weld::Widget::get_direction(), and maVirDev.

◆ SetEdgeBlending()

void ValueSet::SetEdgeBlending ( bool  bNew)

◆ SetExtraSpacing()

void ValueSet::SetExtraSpacing ( sal_uInt16  nNewSpacing)

Definition at line 1826 of file valueset.cxx.

References GetStyle(), mnSpacing, QueueReformat(), and WB_ITEMBORDER.

◆ SetFirstLine()

void ValueSet::SetFirstLine ( sal_uInt16  nNewFirstLine)
private

Definition at line 725 of file valueset.cxx.

References mnFirstLine, and mxScrolledWindow.

Referenced by Format(), and SelectItem().

◆ SetFormat()

void ValueSet::SetFormat ( )

Definition at line 1835 of file valueset.cxx.

References mbFormat.

◆ SetItemColor()

void ValueSet::SetItemColor ( sal_uInt16  nItemId,
const Color rColor 
)

◆ SetItemData()

void ValueSet::SetItemData ( sal_uInt16  nItemId,
void *  pData 
)

◆ SetItemHeight()

void ValueSet::SetItemHeight ( tools::Long  nLineHeight)

Definition at line 1794 of file valueset.cxx.

References mnUserItemHeight, and QueueReformat().

◆ SetItemImage()

void ValueSet::SetItemImage ( sal_uInt16  nItemId,
const Image rImage 
)

◆ SetItemText()

void ValueSet::SetItemText ( sal_uInt16  nItemId,
const OUString &  rStr 
)

◆ SetItemWidth()

void ValueSet::SetItemWidth ( tools::Long  nItemWidth)

Definition at line 1772 of file valueset.cxx.

References mnUserItemWidth, and QueueReformat().

◆ SetLineCount()

void ValueSet::SetLineCount ( sal_uInt16  nNewLines = 0)

Definition at line 1763 of file valueset.cxx.

References mnUserVisLines, and QueueReformat().

◆ SetNoSelection()

void ValueSet::SetNoSelection ( )

◆ SetOptimalSize()

void ValueSet::SetOptimalSize ( )

◆ SetSelectHdl()

void ValueSet::SetSelectHdl ( const Link< ValueSet *, void > &  rLink)
inline

Definition at line 382 of file valueset.hxx.

◆ SetStyle()

void ValueSet::SetStyle ( WinBits  nStyle)

Definition at line 849 of file valueset.cxx.

References weld::CustomWidgetController::Invalidate(), mbFormat, and mnStyle.

◆ SetText()

void ValueSet::SetText ( const OUString &  rText)
inline

Definition at line 290 of file valueset.hxx.

References maText.

◆ Show()

void ValueSet::Show ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 1969 of file valueset.cxx.

References mxScrolledWindow.

◆ StyleUpdated()

void ValueSet::StyleUpdated ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 1525 of file valueset.cxx.

References mbFormat.

◆ TurnOffScrollBar()

bool ValueSet::TurnOffScrollBar ( )
private

◆ TurnOnScrollBar()

void ValueSet::TurnOnScrollBar ( )
private

◆ UserDraw()

void ValueSet::UserDraw ( const UserDrawEvent rUDEvt)
virtual

Definition at line 161 of file valueset.cxx.

Referenced by ImplFormatItem().

Friends And Related Function Documentation

◆ ValueItemAcc

friend class ValueItemAcc
friend

Definition at line 226 of file valueset.hxx.

◆ ValueSetAcc

friend class ValueSetAcc
friend

Definition at line 227 of file valueset.hxx.

Referenced by CreateAccessible().

Member Data Documentation

◆ maColor

Color ValueSet::maColor
private

Definition at line 211 of file valueset.hxx.

Referenced by ImplFormatItem(), and SetColor().

◆ maDoubleClickHdl

Link<ValueSet*,void> ValueSet::maDoubleClickHdl
private

Definition at line 214 of file valueset.hxx.

Referenced by MouseButtonDown().

◆ maItemListRect

tools::Rectangle ValueSet::maItemListRect
private

Definition at line 193 of file valueset.hxx.

Referenced by Format(), ImplGetItem(), and ImplGetItemRect().

◆ maNoneItemRect

tools::Rectangle ValueSet::maNoneItemRect
private

Definition at line 192 of file valueset.hxx.

Referenced by Format(), ImplGetDrawSelectItem(), and ImplGetItem().

◆ maSelectHdl

Link<ValueSet*,void> ValueSet::maSelectHdl
private

Definition at line 215 of file valueset.hxx.

Referenced by Select().

◆ maText

OUString ValueSet::maText
private

Definition at line 212 of file valueset.hxx.

◆ maVirDev

ScopedVclPtr<VirtualDevice> ValueSet::maVirDev
private

Definition at line 187 of file valueset.hxx.

Referenced by Format(), GetLargestItemSize(), ImplDraw(), ImplFormatItem(), and SetDrawingArea().

◆ mbDoubleSel

bool ValueSet::mbDoubleSel
private

Definition at line 220 of file valueset.hxx.

Referenced by Format(), ImplDrawSelect(), and ValueSet().

◆ mbEdgeBlending

bool ValueSet::mbEdgeBlending
private

Definition at line 223 of file valueset.hxx.

Referenced by SetEdgeBlending(), and ValueSet().

◆ mbFormat

bool ValueSet::mbFormat
private

◆ mbFullMode

bool ValueSet::mbFullMode
private

Definition at line 222 of file valueset.hxx.

Referenced by EnableFullItemMode(), Format(), and ValueSet().

◆ mbHasVisibleItems

bool ValueSet::mbHasVisibleItems
private

Definition at line 224 of file valueset.hxx.

Referenced by Format(), ImplGetItem(), and ValueSet().

◆ mbHighlight

bool ValueSet::mbHighlight
private

Definition at line 218 of file valueset.hxx.

Referenced by ImplDrawSelect(), ImplTracking(), SetItemText(), and SetNoSelection().

◆ mbNoSelection

bool ValueSet::mbNoSelection
private

Definition at line 219 of file valueset.hxx.

Referenced by Clear(), ImplDrawSelect(), RemoveItem(), SelectItem(), SetNoSelection(), and ValueSet().

◆ mbScroll

bool ValueSet::mbScroll
private

Definition at line 221 of file valueset.hxx.

Referenced by Format(), SelectItem(), and ValueSet().

◆ mItemList

ValueItemList ValueSet::mItemList
private

◆ mnCols

sal_uInt16 ValueSet::mnCols
private

Definition at line 204 of file valueset.hxx.

Referenced by Format(), ImplGetItem(), ImplGetItemRect(), KeyInput(), SelectItem(), and ValueSet().

◆ mnCurCol

sal_uInt16 ValueSet::mnCurCol
private

Definition at line 205 of file valueset.hxx.

Referenced by Clear(), KeyInput(), RemoveItem(), and ValueSet().

◆ mnFirstLine

sal_uInt16 ValueSet::mnFirstLine
private

◆ mnFrameStyle

DrawFrameStyle ValueSet::mnFrameStyle
private

Definition at line 210 of file valueset.hxx.

Referenced by Format(), ImplFormatItem(), and ValueSet().

◆ mnHighItemId

sal_uInt16 ValueSet::mnHighItemId
private

Definition at line 203 of file valueset.hxx.

Referenced by Clear(), ImplDrawSelect(), ImplHighlightItem(), RemoveItem(), and SetItemText().

◆ mnItemHeight

tools::Long ValueSet::mnItemHeight
private

Definition at line 195 of file valueset.hxx.

Referenced by Format(), ImplGetItem(), ImplGetItemRect(), and ValueSet().

◆ mnItemWidth

tools::Long ValueSet::mnItemWidth
private

Definition at line 194 of file valueset.hxx.

Referenced by Format(), ImplGetItem(), ImplGetItemRect(), and ValueSet().

◆ mnLines

tools::Long ValueSet::mnLines
private

Definition at line 198 of file valueset.hxx.

Referenced by Format(), and ValueSet().

◆ mnSavedItemId

int ValueSet::mnSavedItemId
private

Definition at line 202 of file valueset.hxx.

Referenced by ValueSet().

◆ mnSelItemId

sal_uInt16 ValueSet::mnSelItemId
private

◆ mnSpacing

sal_uInt16 ValueSet::mnSpacing
private

◆ mnStyle

WinBits ValueSet::mnStyle
private

Definition at line 213 of file valueset.hxx.

Referenced by SetStyle().

◆ mnTextOffset

tools::Long ValueSet::mnTextOffset
private

Definition at line 196 of file valueset.hxx.

Referenced by Format(), ImplDraw(), ImplDrawItemText(), and ValueSet().

◆ mnUserCols

sal_uInt16 ValueSet::mnUserCols
private

Definition at line 206 of file valueset.hxx.

Referenced by CalcWindowSizePixel(), Format(), SetColCount(), and ValueSet().

◆ mnUserItemHeight

tools::Long ValueSet::mnUserItemHeight
private

Definition at line 200 of file valueset.hxx.

Referenced by Format(), RecalculateItemSizes(), SetItemHeight(), SetOptimalSize(), and ValueSet().

◆ mnUserItemWidth

tools::Long ValueSet::mnUserItemWidth
private

Definition at line 199 of file valueset.hxx.

Referenced by Format(), RecalculateItemSizes(), SetItemWidth(), SetOptimalSize(), and ValueSet().

◆ mnUserVisLines

sal_uInt16 ValueSet::mnUserVisLines
private

Definition at line 207 of file valueset.hxx.

Referenced by CalcWindowSizePixel(), Format(), SetLineCount(), and ValueSet().

◆ mnVisLines

tools::Long ValueSet::mnVisLines
private

◆ mpNoneItem

std::unique_ptr<ValueSetItem> ValueSet::mpNoneItem
private

◆ mxAccessible

css::uno::Reference<css::accessibility::XAccessible> ValueSet::mxAccessible
private

◆ mxScrolledWindow

std::unique_ptr<weld::ScrolledWindow> ValueSet::mxScrolledWindow
private

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