25#include <com/sun/star/ui/ItemStyle.hpp>
36 sal_uInt16 nStyle( 0 );
38 if ( nItemBits & StatusBarItemBits::Right )
39 nStyle |= ItemStyle::ALIGN_RIGHT;
40 else if ( nItemBits & StatusBarItemBits::Left )
41 nStyle |= ItemStyle::ALIGN_LEFT;
43 nStyle |= ItemStyle::ALIGN_CENTER;
45 if ( nItemBits & StatusBarItemBits::Flat )
46 nStyle |= ItemStyle::DRAW_FLAT;
47 else if ( nItemBits & StatusBarItemBits::Out )
48 nStyle |= ItemStyle::DRAW_OUT3D;
50 nStyle |= ItemStyle::DRAW_IN3D;
52 if ( nItemBits & StatusBarItemBits::AutoSize )
53 nStyle |= ItemStyle::AUTO_SIZE;
55 if ( nItemBits & StatusBarItemBits::UserDraw )
56 nStyle |= ItemStyle::OWNER_DRAW;
66 : m_pStatusBar( pStatusBar )
72 m_nStyle = impl_convertItemBitsToItemStyle(
103 return ::sal_uInt32(0);
108 std::unique_lock aGuard(
m_aMutex );
124 css::awt::Rectangle aAWTRect;
128 return css::awt::Rectangle( aRect.
Left(),
virtual sal_Bool SAL_CALL getVisible() override
virtual ::sal_uInt16 SAL_CALL getStyle() override
virtual ~StatusbarItem() override
virtual void SAL_CALL setVisible(sal_Bool bVisible) override
virtual void SAL_CALL setQuickHelpText(const OUString &rQuickHelpText) override
virtual void SAL_CALL repaint() override
virtual void SAL_CALL setAccessibleName(const OUString &rAccessibleName) override
void disposing(std::unique_lock< std::mutex > &) override
virtual OUString SAL_CALL getQuickHelpText() override
virtual OUString SAL_CALL getCommand() override
virtual OUString SAL_CALL getAccessibleName() override
virtual OUString SAL_CALL getHelpText() override
virtual ::sal_Int32 SAL_CALL getOffset() override
virtual css::awt::Rectangle SAL_CALL getItemRect() override
StatusbarItem(StatusBar *pStatusBar, sal_uInt16 nId, OUString aCommand)
virtual void SAL_CALL setText(const OUString &rText) override
virtual OUString SAL_CALL getText() override
virtual ::sal_uInt16 SAL_CALL getItemId() override
VclPtr< StatusBar > m_pStatusBar
virtual void SAL_CALL setHelpText(const OUString &rHelpText) override
virtual ::sal_uInt32 SAL_CALL getWidth() override