40void collectUIInformation(
const OUString& aID,
const OUString& aPos)
43 aDescription.
aID = aID;
45 aDescription.
aAction =
"SELECT";
46 aDescription.
aKeyWord =
"VerticalTab";
59 : aImage(
std::move(_aImage))
60 , aText(
std::move(_aText))
124 _pImpl->InsertEntry(std::unique_ptr<SvxIconChoiceCtrlEntry>(pEntry),
_pImpl->GetEntryCount());
146 _pImpl->Paint(rRenderContext, rRect);
151 if( !
_pImpl->MouseButtonDown( rMEvt ) )
157 if( !
_pImpl->MouseButtonUp( rMEvt ) )
163 if( !
_pImpl->MouseMove( rMEvt ) )
176 aEntryRect =
_pImpl->GetEntryBoundRect ( pEntry );
191 aEntryRect =
_pImpl->GetEntryBoundRect ( pEntry );
200 _pImpl->Arrange(
false, 0, 0);
202 _pImpl->Arrange(
false, 0, 1000 );
215 if ( pSelectedEntry )
246 return _pImpl->GetStyle();
276 return _pImpl ?
_pImpl->GetFirstSelectedEntry() :
nullptr;
295 return _pImpl->KeyInput( rKEvt );
299 return _pImpl->GetEntryListPos( pEntry );
303 return _pImpl->GetCurEntry( );
307 _pImpl->SetCursor( pEntry );
376 if ( !
_pImpl->RequestHelp( rHEvt ) )
382 return _pImpl->GetEntryBoundRect( pEntry );
396 if ( aEntryCharacterRange.
A() + _nCharacterIndex < aEntryCharacterRange.
B() )
416 DBG_ASSERT( pParent,
"SvTreeListBox::CreateAccessible - accessible parent not found" );
418 css::uno::Reference< XAccessible > xAccessible;
421 css::uno::Reference< XAccessible > xAccParent = pParent->
GetAccessible();
422 if ( xAccParent.is() )
425 xAccessible =
_pImpl->GetAccessibleFactory().createAccessibleIconChoiceCtrl( *
this, xAccParent );
476 pEntry = m_xChooser->GetCursor();
480 if (
pData->sId != m_sCurrentPageId)
499 if (
pData->pEntry == pEntry)
513 if (
pData->sId == rId)
525 if (sOldPageId == rId)
529 if (pOldData && pOldData->
xPage)
539 if (pNewData && pNewData->
xPage)
587 if (
pData->sId == rPageId)
619 return pData->pEntry->GetText();
627 pData->pEntry->SetText(rText);
const StyleSettings & GetStyleSettings() const
CommandEventId GetCommand() const
void CreateLayoutData() const
creates the mpData->mpLayoutData structure
Pair GetLineStartEnd(tools::Long nLine) const
virtual void Resize() override
void CallEventListeners(VclEventId nEvent, void *pData=nullptr)
tools::Rectangle GetCharacterBounds(tools::Long nIndex) const
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
DataChangedEventType GetType() const
AllSettingsFlags GetFlags() const
static OUString EraseAllMnemonicChars(const OUString &rStr)
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
void DrawImage(const Point &rPos, const Image &rImage, DrawImageFlags nStyle=DrawImageFlags::NONE)
This is an overloaded member function, provided for convenience. It differs from the above function o...
constexpr tools::Long getHeight() const
constexpr tools::Long Height() const
constexpr tools::Long getWidth() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
const Color & GetFieldTextColor() const
const Color & GetFieldColor() const
void SetPointFont(const vcl::Font &rFont)
void RemoveEntry(sal_Int32 nEntryListPos)
tools::Rectangle GetEntryCharacterBounds(const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex) const
virtual void MouseMove(const MouseEvent &rMEvt) override
SvtIconChoiceCtrl(vcl::Window *pParent, WinBits nWinStyle)
SvxIconChoiceCtrlEntry * GetSelectedEntry() const
std::unique_ptr< SvxIconChoiceCtrl_Impl, o3tl::default_delete< SvxIconChoiceCtrl_Impl > > _pImpl
void SetEntryTextMode(SvxIconChoiceCtrlTextMode eMode, SvxIconChoiceCtrlEntry *pEntry)
virtual void GetFocus() override
Link< SvtIconChoiceCtrl *, void > _aClickIconHdl
sal_Int32 GetEntryListPos(SvxIconChoiceCtrlEntry const *pEntry) const
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
void SetSelectionMode(SelectionMode eMode)
virtual void Command(const CommandEvent &rCEvt) override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
void SetCursor(SvxIconChoiceCtrlEntry *pEntry)
sal_Int32 GetEntryCount() const
SvxIconChoiceCtrlEntry * InsertEntry(const OUString &rText, const Image &rImage)
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
tools::Rectangle GetBoundingBox(SvxIconChoiceCtrlEntry *pEntry) const
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
virtual void Resize() override
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
Creates and returns the accessible object of the Box.
bool DoKeyInput(const KeyEvent &rKEvt)
virtual void RequestHelp(const HelpEvent &rHEvt) override
virtual void FillLayoutData() const override
void SetClickHdl(const Link< SvtIconChoiceCtrl *, void > &rLink)
SvxIconChoiceCtrlEntry * GetEntry(sal_Int32 nPos) const
static OUString GetEntryText(SvxIconChoiceCtrlEntry const *pEntry)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual void LoseFocus() override
virtual void KeyInput(const KeyEvent &rKEvt) override
void SetFont(const vcl::Font &rFont)
void CallImplEventListeners(VclEventId nEvent, void *pData)
static void DrawEntryImage(SvxIconChoiceCtrlEntry const *pEntry, const Point &rPos, OutputDevice &rDev)
virtual ~SvtIconChoiceCtrl() override
SvxIconChoiceCtrlEntry * GetCursor() const
SvxIconChoiceCtrlColumnInfo()
const OUString & GetText() const
const Image & GetImage() const
void SetQuickHelpText(const OUString &rText)
OUString VCL_DLLPUBLIC GetDisplayText() const
SvxIconChoiceCtrlEntry(OUString aText, Image aImage)
static UITestLogger & getInstance()
void logEvent(const EventDescription &rDescription)
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
void RemovePage(std::u16string_view rPageId)
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
VclPtr< SvtIconChoiceCtrl > m_xChooser
Link< VerticalTabControl *, void > m_aActivateHdl
VerticalTabControl(vcl::Window *pParent)
void SetCurPageId(const OUString &rId)
sal_uInt16 GetPagePos(std::u16string_view rPageId) const
const OUString & GetCurPageId() const
OUString GetPageText(std::u16string_view rPageId) const
VclPtr< vcl::Window > GetPage(std::u16string_view rPageId) const
OUString m_sCurrentPageId
virtual ~VerticalTabControl() override
VerticalTabPageData * GetPageData(std::u16string_view rId) const
const OUString & GetPageId(sal_uInt16 nIndex) const
Link< VerticalTabControl *, bool > m_aDeactivateHdl
void InsertPage(const OUString &rPageId, const OUString &rLabel, const Image &rImage, const OUString &rTooltip, VclPtr< vcl::Window > xPage, int nPos=-1)
void SetPageText(std::u16string_view rPageId, const OUString &rText)
virtual FactoryFunction GetUITestFactory() const override
std::vector< std::unique_ptr< VerticalTabPageData > > maPageList
void SetRect(const tools::Rectangle &rRect)
const BitmapEx & GetBitmap() const
const Color & GetColor() const
bool IsScrollable() const
WallpaperStyle GetStyle() const
void SetStyle(WallpaperStyle eStyle)
void SetColor(const Color &rColor)
void SetColor(const Color &)
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
const Wallpaper & GetBackground() const
void SetStyle(WinBits nStyle)
void SetFont(const vcl::Font &rNewFont)
virtual void RequestHelp(const HelpEvent &rHEvt)
const OUString & get_id() const
Get the ID of the window.
virtual void SetSizePixel(const Size &rNewSize)
virtual void Command(const CommandEvent &rCEvt)
Size get_preferred_size() const
void set_height_request(sal_Int32 nHeightRequest)
virtual void MouseButtonDown(const MouseEvent &rMEvt)
void set_hexpand(bool bExpand)
vcl::Window * GetAccessibleParentWindow() const
const AllSettings & GetSettings() const
virtual void MouseButtonUp(const MouseEvent &rMEvt)
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
virtual void KeyInput(const KeyEvent &rKEvt)
vcl::Font GetPointFont(vcl::RenderContext const &rRenderContext) const
::OutputDevice const * GetOutDev() const
const vcl::Font & GetFont() const
virtual void MouseMove(const MouseEvent &rMEvt)
virtual css::uno::Reference< css::awt::XVclWindowPeer > GetComponentInterface(bool bCreate=true)
void set_width_request(sal_Int32 nWidthRequest)
css::uno::Reference< css::accessibility::XAccessible > GetAccessible(bool bCreate=true)
virtual void DataChanged(const DataChangedEvent &rDCEvt)
void SetPointFont(vcl::RenderContext &rRenderContext, const vcl::Font &rFont)
void set_expand(bool bExpand)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
void SetType(WindowType nType)
void set_vexpand(bool bExpand)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
#define DBG_ASSERT(sCon, aError)
virtual void SetCurPageId(const OUString &rName) override
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
IMPL_LINK_NOARG(VerticalTabControl, ChosePageHdl_Impl, SvtIconChoiceCtrl *, void)
#define WB_NODRAGSELECTION
#define WB_NOCOLUMNHEADER
#define WB_HIGHLIGHTFRAME
SvxIconChoiceCtrlTextMode
#define LINK(Instance, Class, Member)
std::unique_ptr< sal_Int32[]> pData
std::map< OUString, OUString > aParameters
SvxIconChoiceCtrlEntry * pEntry
VclPtr< vcl::Window > xPage
the TabPage itself
#define TAB_PAGE_NOTFOUND
@ NoChildren
The child windows are not invalidated.
WinBits const WB_DIALOGCONTROL
WinBits const WB_CLIPCHILDREN