LibreOffice Module svtools (master) 1
|
#include <valueset.hxx>
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 |
![]() | |
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::DrawingArea * | GetDrawingArea () 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 | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (CustomWidgetController &&)=default |
Protected Member Functions | |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
weld::ScrolledWindow * | GetScrollBar () const |
Private Attributes | |
ScopedVclPtr< VirtualDevice > | maVirDev |
css::uno::Reference< css::accessibility::XAccessible > | mxAccessible |
ValueItemList | mItemList |
std::unique_ptr< ValueSetItem > | mpNoneItem |
std::unique_ptr< weld::ScrolledWindow > | mxScrolledWindow |
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 bool | IsUpdateMode () |
Definition at line 184 of file valueset.hxx.
|
privatedelete |
ValueSet::ValueSet | ( | std::unique_ptr< weld::ScrolledWindow > | pScrolledWindow | ) |
Definition at line 74 of file valueset.cxx.
References COL_TRANSPARENT(), Create(), LINK, maColor, mbDoubleSel, mbEdgeBlending, mbFullMode, mbHasVisibleItems, mbNoSelection, mbScroll, mnCols, mnCurCol, mnFirstLine, mnFrameStyle, mnItemHeight, mnItemWidth, mnLines, mnSavedItemId, mnSelItemId, mnSpacing, mnTextOffset, mnUserCols, mnUserItemHeight, mnUserItemWidth, mnUserVisLines, mnVisLines, and mxScrolledWindow.
|
overridevirtual |
Definition at line 124 of file valueset.cxx.
References ImplDeleteItems(), and mxAccessible.
Definition at line 1742 of file valueset.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), GetStyle(), n, WB_DOUBLEBORDER, and WB_ITEMBORDER.
Size ValueSet::CalcWindowSizePixel | ( | const Size & | rItemSize, |
sal_uInt16 | nCalcCols = 0 , |
||
sal_uInt16 | nCalcLines = 0 |
||
) | const |
Definition at line 1595 of file valueset.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), GetStyle(), weld::CustomWidgetController::GetTextHeight(), Size::Height(), mbFormat, mItemList, mnSpacing, mnUserCols, mnUserVisLines, mnVisLines, n, WB_DOUBLEBORDER, WB_FLATVALUESET, WB_ITEMBORDER, WB_NAMEFIELD, WB_NONEFIELD, and Size::Width().
Referenced by SetOptimalSize().
void ValueSet::Clear | ( | ) |
Definition at line 582 of file valueset.cxx.
References ImplDeleteItems(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), mbFormat, mbNoSelection, mnCurCol, mnFirstLine, mnHighItemId, mnSelItemId, and RecalcScrollBar().
|
overrideprotectedvirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 117 of file valueset.cxx.
References mxAccessible, and ValueSetAcc.
|
private |
void ValueSet::EnableFullItemMode | ( | bool | bFullMode | ) |
Definition at line 1531 of file valueset.cxx.
References mbFullMode.
void ValueSet::Format | ( | vcl::RenderContext const & | rRenderContext | ) |
Definition at line 859 of file valueset.cxx.
References Size::AdjustHeight(), Any, ValueSetItem::GetAccessible(), StyleSettings::GetFaceColor(), weld::CustomWidgetController::GetOutputSizePixel(), Application::GetSettings(), GetStyle(), AllSettings::GetStyleSettings(), GetText(), OutputDevice::GetTextHeight(), Size::Height(), i, ImplFireAccessibleEvent(), ImplFormatItem(), ImplHasAccessibleListeners(), tools::Rectangle::Left(), maItemListRect, o3tl::make_unsigned(), maNoneItemRect, maVirDev, mbDoubleSel, mbFormat, mbFullMode, mbHasVisibleItems, mbScroll, ValueSetItem::mbVisible, mItemList, mnCols, mnFirstLine, mnFrameStyle, mnItemHeight, mnItemWidth, mnLines, mnSpacing, mnTextOffset, mnUserCols, mnUserItemHeight, mnUserItemWidth, mnUserVisLines, mnVisLines, mpNoneItem, mxScrolledWindow, tools::Rectangle::SetBottom(), SetFirstLine(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), TurnOffScrollBar(), TurnOnScrollBar(), VALUESETITEM_NONE, WB_DOUBLEBORDER, WB_FLATVALUESET, WB_ITEMBORDER, WB_NAMEFIELD, WB_NONEFIELD, WB_VSCROLL, Size::Width(), x, and y.
Referenced by ImplDraw(), and SelectItem().
|
inline |
Definition at line 320 of file valueset.hxx.
|
inline |
Definition at line 392 of file valueset.hxx.
Referenced by ImplFormatItem().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 261 of file valueset.cxx.
References ValueSetAcc::GetFocus(), ValueSetAcc::getImplementation(), weld::CustomWidgetController::Invalidate(), mxAccessible, and SAL_INFO.
Color ValueSet::GetItemColor | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1585 of file valueset.cxx.
References GetItemPos(), mItemList, nPos, and VALUESET_ITEM_NOTFOUND.
size_t ValueSet::GetItemCount | ( | ) | const |
Definition at line 600 of file valueset.cxx.
References mItemList.
Referenced by ValueSetUIObject::get_state().
void * ValueSet::GetItemData | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1862 of file valueset.cxx.
References GetItemPos(), mItemList, nPos, and VALUESET_ITEM_NOTFOUND.
sal_uInt16 ValueSet::GetItemId | ( | const Point & | rPos | ) | const |
Definition at line 620 of file valueset.cxx.
References GetItemId(), ImplGetItem(), and VALUESET_ITEM_NOTFOUND.
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().
Image ValueSet::GetItemImage | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 1951 of file valueset.cxx.
References GetItemPos(), mItemList, nPos, and VALUESET_ITEM_NOTFOUND.
size_t ValueSet::GetItemPos | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 605 of file valueset.cxx.
References i, mItemList, mnId, n, and VALUESET_ITEM_NOTFOUND.
Referenced by ValueSetAcc::getAccessibleAtPoint(), GetItemColor(), GetItemData(), GetItemImage(), GetItemRect(), GetItemText(), ImplGetDrawSelectItem(), ImplInsertItem(), InsertItem(), KeyInput(), RemoveItem(), SelectItem(), SetItemColor(), SetItemData(), SetItemImage(), and SetItemText().
tools::Rectangle ValueSet::GetItemRect | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 629 of file valueset.cxx.
References GetItemPos(), ImplGetItemRect(), mbVisible, mItemList, nPos, and VALUESET_ITEM_NOTFOUND.
Referenced by ValueItemAcc::getBounds(), and ValueItemAcc::getLocationOnScreen().
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().
|
private |
Definition at line 1910 of file valueset.cxx.
References Size::AdjustHeight(), Size::Height(), maVirDev, mItemList, Size::setHeight(), Size::setWidth(), VALUESETITEM_IMAGE, VALUESETITEM_IMAGE_AND_TEXT, and Size::Width().
Referenced by RecalculateItemSizes(), and SetOptimalSize().
|
inline |
Definition at line 325 of file valueset.hxx.
|
inlineprotected |
Definition at line 265 of file valueset.hxx.
int ValueSet::GetScrollWidth | ( | ) | const |
Definition at line 1721 of file valueset.cxx.
References mxScrolledWindow.
Referenced by TurnOffScrollBar(), and TurnOnScrollBar().
|
inline |
Definition at line 333 of file valueset.hxx.
Referenced by ValueSetUIObject::get_state(), ValueItemAcc::getAccessibleStateSet(), and Select().
|
inline |
Definition at line 337 of file valueset.hxx.
Referenced by ValueSetUIObject::get_state().
|
inline |
Definition at line 292 of file valueset.hxx.
Referenced by CalcItemSizePixel(), CalcWindowSizePixel(), Format(), ValueItemAcc::getAccessibleIndexInParent(), ValueSetAcc::HasNoneField(), ImplDraw(), ImplDrawItemText(), ImplDrawSelect(), ImplFormatItem(), ImplTracking(), KeyInput(), MouseMove(), RecalcScrollBar(), and SetExtraSpacing().
|
inline |
Definition at line 289 of file valueset.hxx.
References maText.
Referenced by Format(), and ImplFormatItem().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1983 of file valueset.cxx.
References ValueSetUIObject::create().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1976 of file valueset.cxx.
References mxScrolledWindow.
|
private |
Definition at line 133 of file valueset.cxx.
References Any, ValueSetItem::GetAccessible(), i, ImplFireAccessibleEvent(), ImplHasAccessibleListeners(), ValueSetItem::mbVisible, mItemList, and n.
Referenced by Clear(), and ~ValueSet().
|
private |
Definition at line 671 of file valueset.cxx.
References Point::AdjustY(), OutputDevice::DrawLine(), OutputDevice::DrawOutDev(), Format(), StyleSettings::GetLightColor(), StyleSettings::GetOptions(), weld::CustomWidgetController::GetOutputSizePixel(), Application::GetSettings(), StyleSettings::GetShadowColor(), GetStyle(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowTextColor(), ImplDrawSelect(), maVirDev, mbFormat, mnTextOffset, OutputDevice::SetLineColor(), WB_FLATVALUESET, WB_NAMEFIELD, and Size::Width().
Referenced by Paint().
|
private |
Definition at line 1500 of file valueset.cxx.
References OutputDevice::DrawText(), OutputDevice::Erase(), weld::CustomWidgetController::GetOutputSizePixel(), Application::GetSettings(), GetStyle(), OutputDevice::GetTextWidth(), Size::Height(), mnTextOffset, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetTextColor(), vcl::TEXTCOLOR, WB_FLATVALUESET, WB_NAMEFIELD, and Size::Width().
Referenced by ImplDrawSelect().
|
private |
Definition at line 1165 of file valueset.cxx.
References GetStyle(), weld::CustomWidgetController::HasFocus(), ImplDrawSelect(), ImplGetDrawSelectItem(), weld::CustomWidgetController::IsReallyVisible(), mbHighlight, mbNoSelection, mnHighItemId, mnSelItemId, and WB_MENUSTYLEVALUESET.
|
private |
Definition at line 1225 of file valueset.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), vcl::unotools::b2DRectangleFromRectangle(), COL_LIGHTGRAY(), basegfx::utils::createPolygonFromRect(), OutputDevice::DrawPolyLine(), OutputDevice::DrawPolyLineDirect(), OutputDevice::DrawRect(), OutputDevice::DrawTransparent(), StyleSettings::GetActiveColor(), StyleSettings::GetActiveTextColor(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), Application::GetSettings(), GetStyle(), AllSettings::GetStyleSettings(), ImplDrawItemText(), tools::PolyPolygon::Insert(), InvertFocusRect(), ValueSetItem::maText, mbDoubleSel, basegfx::Miter, nAdjust, SAL_WARN, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), and WB_MENUSTYLEVALUESET.
Referenced by ImplDraw(), and ImplDrawSelect().
|
private |
Definition at line 229 of file valueset.cxx.
References ValueSetAcc::FireAccessibleEvent(), ValueSetAcc::getImplementation(), and mxAccessible.
Referenced by Format(), ImplDeleteItems(), and SelectItem().
|
private |
Definition at line 1364 of file valueset.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), Point::AdjustX(), Point::AdjustY(), tools::Rectangle::Bottom(), createBlendFrame(), DecorationView::DrawFrame(), VclPtr< class reference_type >::get(), StyleSettings::GetEdgeBlending(), GetEdgeBlending(), StyleSettings::GetEdgeBlendingBottomRightColor(), StyleSettings::GetEdgeBlendingTopLeftColor(), StyleSettings::GetFaceColor(), OutputDevice::GetFont(), tools::Rectangle::GetHeight(), StyleSettings::GetMenuColor(), StyleSettings::GetMenuTextColor(), Application::GetSettings(), tools::Rectangle::GetSize(), Image::GetSizePixel(), GetStyle(), AllSettings::GetStyleSettings(), GetText(), OutputDevice::GetTextWidth(), tools::Rectangle::GetWidth(), StyleSettings::GetWindowColor(), StyleSettings::GetWindowTextColor(), Size::Height(), IsColor(), BitmapEx::IsEmpty(), weld::CustomWidgetController::IsEnabled(), tools::Rectangle::Left(), maColor, ValueSetItem::maColor, ValueSetItem::maImage, ValueSetItem::maText, maVirDev, ValueSetItem::meType, mnFrameStyle, ValueSetItem::mnId, mpNoneItem, nBorder, tools::Rectangle::Right(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), UserDraw(), VALUESETITEM_COLOR, VALUESETITEM_IMAGE_AND_TEXT, VALUESETITEM_USERDRAW, WB_DOUBLEBORDER, WB_FLATVALUESET, WB_ITEMBORDER, WB_MENUSTYLEVALUESET, Size::Width(), and Point::X().
Referenced by Format().
|
private |
Definition at line 1204 of file valueset.cxx.
References GetItemPos(), ImplGetFirstItem(), ImplGetItemRect(), maNoneItemRect, mItemList, mpNoneItem, and nPos.
Referenced by ImplDrawSelect().
|
private |
Definition at line 210 of file valueset.cxx.
References mItemList.
Referenced by ImplGetDrawSelectItem(), and KeyInput().
|
private |
Definition at line 165 of file valueset.cxx.
References col, tools::Rectangle::Contains(), tools::Rectangle::Left(), maItemListRect, maNoneItemRect, mbHasVisibleItems, mItemList, mnCols, mnFirstLine, mnItemHeight, mnItemWidth, mnSpacing, mpNoneItem, tools::Rectangle::Top(), VALUESET_ITEM_NONEITEM, VALUESET_ITEM_NOTFOUND, x, Point::X(), y, and Point::Y().
Referenced by ValueItemAcc::getAccessibleIndexInParent(), ValueSetAcc::getItem(), GetItemId(), ImplTracking(), MouseButtonDown(), and RequestHelp().
|
private |
Definition at line 202 of file valueset.cxx.
References mItemList, mpNoneItem, nPos, and VALUESET_ITEM_NONEITEM.
|
private |
Definition at line 639 of file valueset.cxx.
References col, tools::Rectangle::Left(), maItemListRect, mItemList, mnCols, mnFirstLine, mnItemHeight, mnItemWidth, mnSpacing, mnVisLines, nPos, tools::Rectangle::Top(), x, and y.
Referenced by GetItemRect(), ImplGetDrawSelectItem(), RequestHelp(), SetItemColor(), SetItemData(), and SetItemImage().
|
private |
Definition at line 215 of file valueset.cxx.
References mbVisible, mItemList, and n.
Referenced by ValueSetAcc::getAccessibleChildCount(), ValueItemAcc::getAccessibleIndexInParent(), and ValueSetAcc::getItemCount().
|
private |
Definition at line 237 of file valueset.cxx.
References ValueSetAcc::getImplementation(), ValueSetAcc::HasAccessibleListeners(), and mxAccessible.
Referenced by Format(), ImplDeleteItems(), SelectItem(), and SetItemText().
|
private |
Definition at line 659 of file valueset.cxx.
References weld::CustomWidgetController::Invalidate(), and mnHighItemId.
Referenced by ImplTracking().
|
private |
Definition at line 1706 of file valueset.cxx.
References DBG_ASSERT, GetItemPos(), mItemList, nPos, QueueReformat(), and VALUESET_ITEM_NOTFOUND.
Referenced by InsertItem().
|
private |
Definition at line 451 of file valueset.cxx.
References GetStyle(), ImplGetItem(), ImplHighlightItem(), mbHighlight, ValueSetItem::mnId, WB_FLATVALUESET, and WB_MENUSTYLEVALUESET.
Referenced by MouseMove().
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.
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.
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.
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.
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.
|
inline |
|
inline |
Definition at line 341 of file valueset.hxx.
Referenced by ValueSetAcc::getSelectedAccessibleChild(), ValueSetAcc::getSelectedAccessibleChildCount(), and ValueSetAcc::isAccessibleChildSelected().
|
inline |
Definition at line 346 of file valueset.hxx.
|
inline |
Definition at line 403 of file valueset.hxx.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 293 of file valueset.cxx.
References vcl::KeyCode::GetCode(), GetItemId(), GetItemPos(), KeyEvent::GetKeyCode(), GetStyle(), ImplGetFirstItem(), weld::CustomWidgetController::Invalidate(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), KEY_DOWN, KEY_END, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RETURN, KEY_RIGHT, KEY_UP, mbFormat, mItemList, mnCols, mnCurCol, mnSelItemId, mnVisLines, mpNoneItem, Select(), SelectItem(), VALUESET_ITEM_NONEITEM, VALUESET_ITEM_NOTFOUND, and WB_NO_DIRECTSELECT.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 273 of file valueset.cxx.
References ValueSetAcc::getImplementation(), weld::CustomWidgetController::Invalidate(), ValueSetAcc::LoseFocus(), mxAccessible, and SAL_INFO.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 470 of file valueset.cxx.
References Link< typename Arg, typename Ret >::Call(), MouseEvent::GetClicks(), MouseEvent::GetPosPixel(), weld::CustomWidgetController::GrabFocus(), ImplGetItem(), MouseEvent::IsLeft(), MouseEvent::IsMod2(), maDoubleClickHdl, ValueSetItem::mnId, and SelectItem().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 494 of file valueset.cxx.
References MouseEvent::IsLeft(), MouseEvent::IsMod2(), mnSelItemId, and Select().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 507 of file valueset.cxx.
References MouseEvent::GetPosPixel(), GetStyle(), ImplTracking(), MouseEvent::IsLeaveWindow(), WB_FLATVALUESET, and WB_MENUSTYLEVALUESET.
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 254 of file valueset.cxx.
References OutputDevice::Erase(), Application::GetSettings(), ImplDraw(), and OutputDevice::SetBackground().
|
private |
Definition at line 515 of file valueset.cxx.
References weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), mbFormat, weld::CustomWidgetController::queue_resize(), and RecalcScrollBar().
Referenced by ImplInsertItem(), RecalculateItemSizes(), RemoveItem(), SetColCount(), SetExtraSpacing(), SetItemHeight(), SetItemWidth(), and SetLineCount().
|
private |
Definition at line 568 of file valueset.cxx.
References GetStyle(), mbFormat, mxScrolledWindow, TurnOffScrollBar(), and WB_VSCROLL.
Referenced by Clear(), QueueReformat(), and SelectItem().
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().
void ValueSet::RemoveItem | ( | sal_uInt16 | nItemId | ) |
Definition at line 524 of file valueset.cxx.
References GetItemPos(), mbNoSelection, mItemList, mnCurCol, mnHighItemId, mnSelItemId, nPos, QueueReformat(), and VALUESET_ITEM_NOTFOUND.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1803 of file valueset.cxx.
References GetItemText(), ImplGetItem(), ImplGetItemRect(), mnId, tools::Rectangle::TopLeft(), and VALUESET_ITEM_NOTFOUND.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 285 of file valueset.cxx.
References weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), and mbFormat.
|
inline |
Definition at line 398 of file valueset.hxx.
|
virtual |
Definition at line 155 of file valueset.cxx.
References Link< typename Arg, typename Ret >::Call(), weld::CustomWidgetController::GetDrawingArea(), GetSelectedItemId(), and maSelectHdl.
Referenced by ValueSetUIObject::execute(), KeyInput(), and MouseButtonUp().
void ValueSet::SelectItem | ( | sal_uInt16 | nItemId | ) |
Definition at line 735 of file valueset.cxx.
References Any, Format(), ValueSetItem::GetAccessible(), weld::CustomWidgetController::GetDrawingArea(), ValueItemAcc::getImplementation(), GetItemPos(), ImplFireAccessibleEvent(), ImplHasAccessibleListeners(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), o3tl::make_unsigned(), mbFormat, mbNoSelection, mbScroll, mItemList, mnCols, mnFirstLine, mnSelItemId, mnVisLines, mpNoneItem, nPos, RecalcScrollBar(), Reference, SetFirstLine(), and VALUESET_ITEM_NOTFOUND.
Referenced by ValueSetUIObject::execute(), KeyInput(), MouseButtonDown(), and ValueSetAcc::selectAccessibleChild().
void ValueSet::SetColCount | ( | sal_uInt16 | nNewCols = 1 | ) |
Definition at line 1536 of file valueset.cxx.
References mnUserCols, and QueueReformat().
|
inline |
Definition at line 362 of file valueset.hxx.
References COL_TRANSPARENT().
void ValueSet::SetColor | ( | const Color & | rColor | ) |
Definition at line 1961 of file valueset.cxx.
References weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), maColor, and mbFormat.
Definition at line 387 of file valueset.hxx.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 110 of file valueset.cxx.
References weld::Widget::get_direction(), and maVirDev.
void ValueSet::SetEdgeBlending | ( | bool | bNew | ) |
Definition at line 1728 of file valueset.cxx.
References weld::CustomWidgetController::GetDrawingArea(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), mbEdgeBlending, and mbFormat.
void ValueSet::SetExtraSpacing | ( | sal_uInt16 | nNewSpacing | ) |
Definition at line 1826 of file valueset.cxx.
References GetStyle(), mnSpacing, QueueReformat(), and WB_ITEMBORDER.
|
private |
Definition at line 725 of file valueset.cxx.
References mnFirstLine, and mxScrolledWindow.
Referenced by Format(), and SelectItem().
void ValueSet::SetFormat | ( | ) |
Definition at line 1835 of file valueset.cxx.
References mbFormat.
void ValueSet::SetItemColor | ( | sal_uInt16 | nItemId, |
const Color & | rColor | ||
) |
Definition at line 1565 of file valueset.cxx.
References GetItemPos(), ImplGetItemRect(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), ValueSetItem::maColor, mbFormat, ValueSetItem::meType, mItemList, nPos, VALUESET_ITEM_NOTFOUND, and VALUESETITEM_COLOR.
void ValueSet::SetItemData | ( | sal_uInt16 | nItemId, |
void * | pData | ||
) |
Definition at line 1840 of file valueset.cxx.
References GetItemPos(), ImplGetItemRect(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), mbFormat, ValueSetItem::meType, mItemList, ValueSetItem::mpData, nPos, pData, VALUESET_ITEM_NOTFOUND, and VALUESETITEM_USERDRAW.
void ValueSet::SetItemHeight | ( | tools::Long | nLineHeight | ) |
Definition at line 1794 of file valueset.cxx.
References mnUserItemHeight, and QueueReformat().
void ValueSet::SetItemImage | ( | sal_uInt16 | nItemId, |
const Image & | rImage | ||
) |
Definition at line 1545 of file valueset.cxx.
References GetItemPos(), ImplGetItemRect(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), ValueSetItem::maImage, mbFormat, ValueSetItem::meType, mItemList, nPos, VALUESET_ITEM_NOTFOUND, and VALUESETITEM_IMAGE.
void ValueSet::SetItemText | ( | sal_uInt16 | nItemId, |
const OUString & | rStr | ||
) |
Definition at line 1872 of file valueset.cxx.
References Any, ValueItemAcc::FireAccessibleEvent(), ValueSetItem::GetAccessible(), GetItemPos(), ImplHasAccessibleListeners(), weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), ValueSetItem::maText, mbFormat, mbHighlight, mItemList, mnHighItemId, mnSelItemId, nPos, and VALUESET_ITEM_NOTFOUND.
void ValueSet::SetItemWidth | ( | tools::Long | nItemWidth | ) |
Definition at line 1772 of file valueset.cxx.
References mnUserItemWidth, and QueueReformat().
void ValueSet::SetLineCount | ( | sal_uInt16 | nNewLines = 0 | ) |
Definition at line 1763 of file valueset.cxx.
References mnUserVisLines, and QueueReformat().
void ValueSet::SetNoSelection | ( | ) |
Definition at line 840 of file valueset.cxx.
References weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsUpdateMode(), mbHighlight, and mbNoSelection.
Referenced by ValueSetAcc::clearAccessibleSelection(), and ValueSetAcc::deselectAccessibleChild().
void ValueSet::SetOptimalSize | ( | ) |
Definition at line 1942 of file valueset.cxx.
References CalcWindowSizePixel(), weld::CustomWidgetController::GetDrawingArea(), GetLargestItemSize(), Size::Height(), mnUserItemHeight, mnUserItemWidth, weld::Widget::set_size_request(), Size::setHeight(), Size::setWidth(), and Size::Width().
Definition at line 382 of file valueset.hxx.
void ValueSet::SetStyle | ( | WinBits | nStyle | ) |
Definition at line 849 of file valueset.cxx.
References weld::CustomWidgetController::Invalidate(), mbFormat, and mnStyle.
|
inline |
Definition at line 290 of file valueset.hxx.
References maText.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1969 of file valueset.cxx.
References mxScrolledWindow.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1525 of file valueset.cxx.
References mbFormat.
|
private |
Definition at line 547 of file valueset.cxx.
References weld::Widget::get_preferred_size(), weld::CustomWidgetController::GetDrawingArea(), GetScrollWidth(), Size::Height(), mxScrolledWindow, weld::Widget::set_size_request(), and Size::Width().
Referenced by Format(), and RecalcScrollBar().
|
private |
Definition at line 558 of file valueset.cxx.
References weld::Widget::get_preferred_size(), weld::CustomWidgetController::GetDrawingArea(), GetScrollWidth(), Size::Height(), mxScrolledWindow, weld::Widget::set_size_request(), and Size::Width().
Referenced by Format().
|
virtual |
Definition at line 161 of file valueset.cxx.
Referenced by ImplFormatItem().
|
friend |
Definition at line 226 of file valueset.hxx.
|
friend |
Definition at line 227 of file valueset.hxx.
Referenced by CreateAccessible().
|
private |
Definition at line 211 of file valueset.hxx.
Referenced by ImplFormatItem(), and SetColor().
Definition at line 214 of file valueset.hxx.
Referenced by MouseButtonDown().
|
private |
Definition at line 193 of file valueset.hxx.
Referenced by Format(), ImplGetItem(), and ImplGetItemRect().
|
private |
Definition at line 192 of file valueset.hxx.
Referenced by Format(), ImplGetDrawSelectItem(), and ImplGetItem().
Definition at line 215 of file valueset.hxx.
Referenced by Select().
|
private |
Definition at line 212 of file valueset.hxx.
|
private |
Definition at line 187 of file valueset.hxx.
Referenced by Format(), GetLargestItemSize(), ImplDraw(), ImplFormatItem(), and SetDrawingArea().
|
private |
Definition at line 220 of file valueset.hxx.
Referenced by Format(), ImplDrawSelect(), and ValueSet().
|
private |
Definition at line 223 of file valueset.hxx.
Referenced by SetEdgeBlending(), and ValueSet().
|
private |
Definition at line 217 of file valueset.hxx.
Referenced by CalcWindowSizePixel(), Clear(), Format(), ImplDraw(), KeyInput(), QueueReformat(), RecalcScrollBar(), Resize(), SelectItem(), SetColor(), SetEdgeBlending(), SetFormat(), SetItemColor(), SetItemData(), SetItemImage(), SetItemText(), SetStyle(), and StyleUpdated().
|
private |
Definition at line 222 of file valueset.hxx.
Referenced by EnableFullItemMode(), Format(), and ValueSet().
|
private |
Definition at line 224 of file valueset.hxx.
Referenced by Format(), ImplGetItem(), and ValueSet().
|
private |
Definition at line 218 of file valueset.hxx.
Referenced by ImplDrawSelect(), ImplTracking(), SetItemText(), and SetNoSelection().
|
private |
Definition at line 219 of file valueset.hxx.
Referenced by Clear(), ImplDrawSelect(), RemoveItem(), SelectItem(), SetNoSelection(), and ValueSet().
|
private |
Definition at line 221 of file valueset.hxx.
Referenced by Format(), SelectItem(), and ValueSet().
|
private |
Definition at line 189 of file valueset.hxx.
Referenced by CalcWindowSizePixel(), Format(), ValueSetAcc::getAccessibleAtPoint(), GetItemColor(), GetItemCount(), GetItemData(), GetItemId(), GetItemImage(), GetItemPos(), GetItemRect(), GetItemText(), GetLargestItemSize(), ImplDeleteItems(), ImplGetDrawSelectItem(), ImplGetFirstItem(), ImplGetItem(), ImplGetItemRect(), ImplGetVisibleItemCount(), ImplInsertItem(), KeyInput(), RemoveItem(), SelectItem(), SetItemColor(), SetItemData(), SetItemImage(), and SetItemText().
|
private |
Definition at line 204 of file valueset.hxx.
Referenced by Format(), ImplGetItem(), ImplGetItemRect(), KeyInput(), SelectItem(), and ValueSet().
|
private |
Definition at line 205 of file valueset.hxx.
Referenced by Clear(), KeyInput(), RemoveItem(), and ValueSet().
|
private |
Definition at line 208 of file valueset.hxx.
Referenced by Clear(), Format(), ImplGetItem(), ImplGetItemRect(), SelectItem(), SetFirstLine(), and ValueSet().
|
private |
Definition at line 210 of file valueset.hxx.
Referenced by Format(), ImplFormatItem(), and ValueSet().
|
private |
Definition at line 203 of file valueset.hxx.
Referenced by Clear(), ImplDrawSelect(), ImplHighlightItem(), RemoveItem(), and SetItemText().
|
private |
Definition at line 195 of file valueset.hxx.
Referenced by Format(), ImplGetItem(), ImplGetItemRect(), and ValueSet().
|
private |
Definition at line 194 of file valueset.hxx.
Referenced by Format(), ImplGetItem(), ImplGetItemRect(), and ValueSet().
|
private |
Definition at line 198 of file valueset.hxx.
Referenced by Format(), and ValueSet().
|
private |
Definition at line 202 of file valueset.hxx.
Referenced by ValueSet().
|
private |
Definition at line 201 of file valueset.hxx.
Referenced by Clear(), ImplDrawSelect(), KeyInput(), MouseButtonUp(), RemoveItem(), SelectItem(), SetItemText(), and ValueSet().
|
private |
Definition at line 209 of file valueset.hxx.
Referenced by CalcWindowSizePixel(), Format(), ImplGetItem(), ImplGetItemRect(), SetExtraSpacing(), and ValueSet().
|
private |
Definition at line 213 of file valueset.hxx.
Referenced by SetStyle().
|
private |
Definition at line 196 of file valueset.hxx.
Referenced by Format(), ImplDraw(), ImplDrawItemText(), and ValueSet().
|
private |
Definition at line 206 of file valueset.hxx.
Referenced by CalcWindowSizePixel(), Format(), SetColCount(), and ValueSet().
|
private |
Definition at line 200 of file valueset.hxx.
Referenced by Format(), RecalculateItemSizes(), SetItemHeight(), SetOptimalSize(), and ValueSet().
|
private |
Definition at line 199 of file valueset.hxx.
Referenced by Format(), RecalculateItemSizes(), SetItemWidth(), SetOptimalSize(), and ValueSet().
|
private |
Definition at line 207 of file valueset.hxx.
Referenced by CalcWindowSizePixel(), Format(), SetLineCount(), and ValueSet().
|
private |
Definition at line 197 of file valueset.hxx.
Referenced by CalcWindowSizePixel(), Format(), ImplGetItemRect(), KeyInput(), SelectItem(), and ValueSet().
|
private |
Definition at line 190 of file valueset.hxx.
Referenced by Format(), ImplFormatItem(), ImplGetDrawSelectItem(), ImplGetItem(), KeyInput(), and SelectItem().
|
private |
Definition at line 188 of file valueset.hxx.
Referenced by CreateAccessible(), ValueItemAcc::getAccessibleParent(), GetFocus(), ImplFireAccessibleEvent(), ImplHasAccessibleListeners(), LoseFocus(), and ~ValueSet().
|
private |
Definition at line 191 of file valueset.hxx.
Referenced by Format(), GetScrollWidth(), Hide(), RecalcScrollBar(), SetFirstLine(), Show(), TurnOffScrollBar(), TurnOnScrollBar(), and ValueSet().