39 void collectUIInformation(
const OUString& aID,
const OUString& aPos ,
const OUString& aParent )
42 aDescription.
aID = aID;
44 aDescription.
aAction =
"SELECT";
46 aDescription.
aKeyWord =
"VerticalTab";
102 _pImpl->SetSelectionMode(eMode);
124 _pImpl->InsertEntry(std::unique_ptr<SvxIconChoiceCtrlEntry>(pEntry),
_pImpl->GetEntryCount());
131 _pImpl->RemoveEntry(nIndex);
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();
260 _pImpl->SetEntryTextMode( eMode, pEntry );
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 );
447 SetType(WindowType::VERTICALTABCONTROL);
476 pEntry = m_xChooser->GetCursor();
480 if (pData->
sId != m_sCurrentPageId)
481 SetCurPageId(pData->
sId);
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)
#define LINK(Instance, Class, Member)
void SetEntryTextMode(SvxIconChoiceCtrlTextMode eMode, SvxIconChoiceCtrlEntry *pEntry)
void CreateLayoutData() const
creates the mpData->mpLayoutData structure
virtual void Command(const CommandEvent &rCEvt) override
const Wallpaper & GetBackground() const
VclPtr< vcl::Window > xPage
the TabPage itself
Link< SvtIconChoiceCtrl *, void > _aClickIconHdl
const OString & GetCurPageId() const
void SetFont(const vcl::Font &rFont)
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...
SvxIconChoiceCtrlEntry * GetSelectedEntry() const
void setWidth(tools::Long nWidth)
void RemoveEntry(sal_Int32 nEntryListPos)
virtual void MouseButtonDown(const MouseEvent &rMEvt)
SvxIconChoiceCtrlEntry * InsertEntry(const OUString &rText, const Image &rImage)
std::unique_ptr< ContentProperties > pData
Pair GetLineStartEnd(tools::Long nLine) const
VerticalTabControl(vcl::Window *pParent)
void RemovePage(std::string_view rPageId)
void SetSelectionMode(SelectionMode eMode)
vcl::Window * GetAccessibleParentWindow() const
tools::Long getWidth() const
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
tools::Rectangle GetBoundingBox(SvxIconChoiceCtrlEntry *pEntry) const
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
const StyleSettings & GetStyleSettings() const
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
virtual void SetSizePixel(const Size &rNewSize)
void SetColor(const Color &rColor)
virtual void MouseMove(const MouseEvent &rMEvt) override
SvtIconChoiceCtrl(vcl::Window *pParent, WinBits nWinStyle)
void set_height_request(sal_Int32 nHeightRequest)
Link< VerticalTabControl *, void > m_aActivateHdl
DataChangedEventType GetType() const
WallpaperStyle GetStyle() const
virtual ~VerticalTabControl() override
IMPL_LINK_NOARG(VerticalTabControl, ChosePageHdl_Impl, SvtIconChoiceCtrl *, void)
VerticalTabPageData * GetPageData(std::string_view rId) const
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects...
void SetType(WindowType nType)
virtual void MouseButtonUp(const MouseEvent &rMEvt)
#define WB_NOCOLUMNHEADER
virtual void KeyInput(const KeyEvent &rKEvt) override
const Color & GetFieldTextColor() const
SvxIconChoiceCtrlColumnInfo()
sal_uInt16 GetPagePos(std::string_view rPageId) const
void SetPageText(std::string_view rPageId, const OUString &rText)
static UITestLogger & getInstance()
std::unique_ptr< SvxIconChoiceCtrl_Impl, o3tl::default_delete< SvxIconChoiceCtrl_Impl > > _pImpl
VclPtr< vcl::Window > GetPage(std::string_view rPageId)
void logEvent(const EventDescription &rDescription)
void CallImplEventListeners(VclEventId nEvent, void *pData)
SvxIconChoiceCtrlEntry * pEntry
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
const OUString & get_id() const
Get the ID of the window.
virtual css::uno::Reference< css::awt::XWindowPeer > GetComponentInterface(bool bCreate=true)
void SetQuickHelpText(const OUString &rText)
void SetCurPageId(const OString &rId)
css::uno::Reference< css::accessibility::XAccessible > GetAccessible(bool bCreate=true)
const vcl::Font & GetFont() const
AllSettingsFlags GetFlags() const
void set_vexpand(bool bExpand)
void set_width_request(sal_Int32 nWidthRequest)
bool DoKeyInput(const KeyEvent &rKEvt)
#define WB_NODRAGSELECTION
sal_Int32 GetEntryCount() const
SvxIconChoiceCtrlEntry * GetCursor() const
tools::Long getHeight() const
WinBits const WB_DIALOGCONTROL
virtual void Resize() override
virtual void LoseFocus() override
#define DBG_ASSERT(sCon, aError)
Link< VerticalTabControl *, bool > m_aDeactivateHdl
void SetRect(const tools::Rectangle &rRect)
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
VclPtr< SvtIconChoiceCtrl > m_xChooser
void SetStyle(WallpaperStyle eStyle)
static void DrawEntryImage(SvxIconChoiceCtrlEntry const *pEntry, const Point &rPos, OutputDevice &rDev)
const Color & GetColor() const
virtual void FillLayoutData() const override
virtual void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
static OUString GetEntryText(SvxIconChoiceCtrlEntry const *pEntry)
void CallEventListeners(VclEventId nEvent, void *pData=nullptr)
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
const Color & GetFieldColor() const
CommandEventId GetCommand() const
void SetClickHdl(const Link< SvtIconChoiceCtrl *, void > &rLink)
SvxIconChoiceCtrlEntry * GetEntry(sal_Int32 nPos) const
Size get_preferred_size() const
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects...
const AllSettings & GetSettings() const
bool IsTransparent() const
void InsertPage(const OString &rPageId, const OUString &rLabel, const Image &rImage, const OUString &rTooltip, VclPtr< vcl::Window > xPage, int nPos=-1)
void SetStyle(WinBits nStyle)
enumrange< T >::Iterator end(enumrange< T >)
sal_Int32 GetEntryListPos(SvxIconChoiceCtrlEntry const *pEntry) const
void SetColor(const Color &)
void SetPointFont(vcl::RenderContext &rRenderContext, const vcl::Font &rFont)
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
virtual void KeyInput(const KeyEvent &rKEvt)
void SetCursor(SvxIconChoiceCtrlEntry *pEntry)
virtual ~SvtIconChoiceCtrl() override
#define TAB_PAGE_NOTFOUND
SvxIconChoiceCtrlTextMode
BitmapEx GetBitmap() const
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects...
const OString & GetPageId(sal_uInt16 nIndex) const
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual void Resize() override
void SetPointFont(const vcl::Font &rFont)
void set_hexpand(bool bExpand)
void SetFont(const vcl::Font &rNewFont)
bool IsScrollable() const
tools::Rectangle GetCharacterBounds(tools::Long nIndex) const
virtual void RequestHelp(const HelpEvent &rHEvt) override
void setHeight(tools::Long nHeight)
virtual void MouseMove(const MouseEvent &rMEvt)
virtual void GetFocus() override
static OUString EraseAllMnemonicChars(const OUString &rStr)
virtual FactoryFunction GetUITestFactory() const override
const Image & GetImage() const
std::map< OUString, OUString > aParameters
virtual void Command(const CommandEvent &rCEvt)
vcl::Font GetPointFont(vcl::RenderContext const &rRenderContext) const
const OUString & GetText() const
tools::Rectangle GetEntryCharacterBounds(const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex) const
OUString GetPageText(std::string_view rPageId) const
virtual void RequestHelp(const HelpEvent &rHEvt)
The child windows are not invalidated.
SvxIconChoiceCtrlEntry(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...
#define WB_HIGHLIGHTFRAME
void SetText(const OUString &rText)
WinBits const WB_CLIPCHILDREN
OUString VCL_DLLPUBLIC GetDisplayText() const
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
Creates and returns the accessible object of the Box.
vcl::Window * GetPageParent()
std::vector< std::unique_ptr< VerticalTabPageData > > maPageList
void set_expand(bool bExpand)
virtual void DataChanged(const DataChangedEvent &rDCEvt)
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)