20#ifndef INCLUDED_VCL_STATUS_HXX
21#define INCLUDED_VCL_STATUS_HXX
38 sal_uInt16 nPercent1, sal_uInt16 nPercent2, sal_uInt16 nPercentCount,
59#define STATUSBAR_APPEND (sal_uInt16(0xFFFF))
60#define STATUSBAR_ITEM_NOTFOUND (sal_uInt16(0xFFFF))
61#define STATUSBAR_OFFSET (tools::Long(5))
92 SAL_DLLPRIVATE
void ImplInitSettings();
93 SAL_DLLPRIVATE
void ImplFormat();
94 SAL_DLLPRIVATE
bool ImplIsItemUpdate()
const;
99 SAL_DLLPRIVATE
void ImplDrawProgress(
vcl::RenderContext& rRenderContext, sal_uInt16 nNewPerc);
100 SAL_DLLPRIVATE
void ImplCalcProgressRect();
101 SAL_DLLPRIVATE
tools::Rectangle ImplGetItemRectPos( sal_uInt16 nPos )
const;
102 SAL_DLLPRIVATE sal_uInt16 ImplGetFirstVisiblePos()
const;
104 SAL_DLLPRIVATE
void PaintSelfAndChildrenImmediately();
113 virtual void dispose()
override;
115 void AdjustItemWidthsForHiDPI();
119 virtual void Resize()
override;
128 void InsertItem( sal_uInt16 nItemId,
sal_uLong nWidth,
132 void RemoveItem( sal_uInt16 nItemId );
134 void ShowItem( sal_uInt16 nItemId );
135 void HideItem( sal_uInt16 nItemId );
136 bool IsItemVisible( sal_uInt16 nItemId )
const;
138 void RedrawItem( sal_uInt16 nItemId );
142 sal_uInt16 GetItemCount()
const;
143 sal_uInt16 GetItemId( sal_uInt16 nPos )
const;
144 sal_uInt16 GetItemId(
const Point& rPos )
const;
145 sal_uInt16 GetItemPos( sal_uInt16 nItemId )
const;
147 Point GetItemTextPos( sal_uInt16 nItemId )
const;
150 sal_uLong GetItemWidth( sal_uInt16 nItemId )
const;
153 tools::Long GetItemOffset( sal_uInt16 nItemId )
const;
156 void SetItemText( sal_uInt16 nItemId,
const OUString& rText,
int nCharsWidth = -1 );
157 const OUString& GetItemText( sal_uInt16 nItemId )
const;
159 void SetItemData( sal_uInt16 nItemId,
void* pNewData );
160 void* GetItemData( sal_uInt16 nItemId )
const;
162 void SetItemCommand( sal_uInt16 nItemId,
const OUString& rCommand );
163 OUString GetItemCommand( sal_uInt16 nItemId );
165 void SetHelpText( sal_uInt16 nItemId,
const OUString& rText );
166 const OUString&
GetHelpText( sal_uInt16 nItemId )
const;
173 void SetHelpId( sal_uInt16 nItemId,
const OUString& rHelpId );
175 void StartProgressMode(
const OUString& rText );
176 void SetProgressValue( sal_uInt16 nPercent );
177 void EndProgressMode();
180 void SetText(
const OUString& rText )
override;
182 Size CalcWindowSizePixel()
const;
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
void SetDoubleClickHdl(const Link< StatusBar *, void > &rLink)
tools::Rectangle maPrgsFrameRect
void SetClickHdl(const Link< StatusBar *, void > &rLink)
std::unique_ptr< ImplData > mpImplData
sal_uInt32 mnLastProgressPaint_ms
sal_uInt16 mnPercentCount
sal_uInt16 GetCurItemId() const
std::vector< std::unique_ptr< ImplStatusItem > > mvItemList
Link< StatusBar *, void > maClickHdl
Link< StatusBar *, void > maDoubleClickHdl
bool IsProgressMode() const
Event to pass information for UserDraw() handling eg. in comboboxes.
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
virtual void RequestHelp(const HelpEvent &rHEvt)
virtual void StateChanged(StateChangedType nStateChange)
void SetHelpText(const OUString &rHelpText)
virtual void MouseButtonDown(const MouseEvent &rMEvt)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
void SetAccessibleName(const OUString &rName)
virtual void DataChanged(const DataChangedEvent &rDCEvt)
OUString GetAccessibleName() const
virtual void ApplySettings(vcl::RenderContext &rRenderContext)
void SetQuickHelpText(const OUString &rHelpText)
virtual void SetText(const OUString &rStr)
const OUString & GetQuickHelpText() const
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nStyle, SystemParentData *pSystemParentData)
const OUString & GetHelpText() const
void SetHelpId(const OUString &)
void Clear(EHistoryType eHistory)
void DrawProgress(vcl::Window *pWindow, vcl::RenderContext &rRenderContext, const Point &rPos, tools::Long nOffset, tools::Long nPrgsWidth, tools::Long nPrgsHeight, sal_uInt16 nPercent1, sal_uInt16 nPercent2, sal_uInt16 nPercentCount, const tools::Rectangle &rFramePosSize)