summaryrefslogtreecommitdiff
path: root/include/vcl/toolkit
diff options
context:
space:
mode:
Diffstat (limited to 'include/vcl/toolkit')
-rw-r--r--include/vcl/toolkit/button.hxx4
-rw-r--r--include/vcl/toolkit/combobox.hxx8
-rw-r--r--include/vcl/toolkit/controllayout.hxx10
-rw-r--r--include/vcl/toolkit/dialog.hxx4
-rw-r--r--include/vcl/toolkit/edit.hxx10
-rw-r--r--include/vcl/toolkit/fixedhyper.hxx2
-rw-r--r--include/vcl/toolkit/ivctrl.hxx6
-rw-r--r--include/vcl/toolkit/lstbox.hxx6
-rw-r--r--include/vcl/toolkit/prgsbar.hxx4
-rw-r--r--include/vcl/toolkit/spin.hxx24
-rw-r--r--include/vcl/toolkit/svlbitm.hxx8
-rw-r--r--include/vcl/toolkit/svtabbx.hxx16
-rw-r--r--include/vcl/toolkit/treelistbox.hxx30
-rw-r--r--include/vcl/toolkit/vclmedit.hxx2
14 files changed, 67 insertions, 67 deletions
diff --git a/include/vcl/toolkit/button.hxx b/include/vcl/toolkit/button.hxx
index 49748cdc73d9..4e0149ac0845 100644
--- a/include/vcl/toolkit/button.hxx
+++ b/include/vcl/toolkit/button.hxx
@@ -95,7 +95,7 @@ private:
const Size& rImageSize, tools::Rectangle& rStateRect,
tools::Rectangle& rMouseRect );
SAL_DLLPRIVATE void ImplDrawCheckBox(vcl::RenderContext& rRenderContext );
- SAL_DLLPRIVATE long ImplGetImageToTextDistance() const;
+ SAL_DLLPRIVATE tools::Long ImplGetImageToTextDistance() const;
SAL_DLLPRIVATE Size ImplGetCheckImageSize() const;
CheckBox(const CheckBox &) = delete;
@@ -152,7 +152,7 @@ public:
static Image GetCheckImage( const AllSettings& rSettings, DrawButtonFlags nFlags );
- Size CalcMinimumSize( long nMaxWidth = 0 ) const;
+ Size CalcMinimumSize( tools::Long nMaxWidth = 0 ) const;
virtual Size GetOptimalSize() const override;
void SetToggleHdl( const Link<CheckBox&,void>& rLink ) { maToggleHdl = rLink; }
diff --git a/include/vcl/toolkit/combobox.hxx b/include/vcl/toolkit/combobox.hxx
index 172963beb33b..dc21395d7f68 100644
--- a/include/vcl/toolkit/combobox.hxx
+++ b/include/vcl/toolkit/combobox.hxx
@@ -46,7 +46,7 @@ protected:
SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
SAL_DLLPRIVATE static WinBits ImplInitStyle( WinBits nStyle );
SAL_DLLPRIVATE void ImplCalcEditHeight();
- SAL_DLLPRIVATE long getMaxWidthScrollBarAndDownButton() const;
+ SAL_DLLPRIVATE tools::Long getMaxWidthScrollBarAndDownButton() const;
protected:
bool IsDropDownBox() const;
@@ -71,7 +71,7 @@ public:
virtual const Wallpaper& GetDisplayBackground() const override;
- virtual void setPosSizePixel( long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags = PosSizeFlags::All ) override;
+ virtual void setPosSizePixel( tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, PosSizeFlags nFlags = PosSizeFlags::All ) override;
tools::Rectangle GetDropDownPosSizePixel() const;
@@ -176,13 +176,13 @@ public:
if no item is at that point.
*/
using Control::GetIndexForPoint;
- long GetIndexForPoint( const Point& rPoint, sal_Int32 & rPos ) const;
+ tools::Long GetIndexForPoint( const Point& rPoint, sal_Int32 & rPos ) const;
void setMaxWidthChars(sal_Int32 nWidth);
void SetWidthInChars(sal_Int32 nWidthInChars);
- long GetDropDownEntryHeight() const;
+ tools::Long GetDropDownEntryHeight() const;
virtual bool set_property(const OString &rKey, const OUString &rValue) override;
diff --git a/include/vcl/toolkit/controllayout.hxx b/include/vcl/toolkit/controllayout.hxx
index ffd643f640ee..53ffeab4b32c 100644
--- a/include/vcl/toolkit/controllayout.hxx
+++ b/include/vcl/toolkit/controllayout.hxx
@@ -50,15 +50,15 @@ struct VCL_DLLPUBLIC ControlLayoutData
ControlLayoutData();
~ControlLayoutData();
- tools::Rectangle GetCharacterBounds( long nIndex ) const;
+ tools::Rectangle GetCharacterBounds( tools::Long nIndex ) const;
// returns the character index for corresponding to rPoint (in control coordinates)
// -1 is returned if no character is at that point
- long GetIndexForPoint( const Point& rPoint ) const;
+ tools::Long GetIndexForPoint( const Point& rPoint ) const;
// returns the number of lines in the result of GetDisplayText()
- long GetLineCount() const;
+ tools::Long GetLineCount() const;
// returns the interval [start,end] of line nLine
// returns [-1,-1] for an invalid line
- ::Pair GetLineStartEnd( long nLine ) const;
+ ::Pair GetLineStartEnd( tools::Long nLine ) const;
/** ToRelativeLineIndex changes a layout data index to a count relative to its line.
This is equivalent to getting the line start/end pairs with
@@ -71,7 +71,7 @@ struct VCL_DLLPUBLIC ControlLayoutData
the relative index inside the displayed line or -1 if the absolute index does
not match any line
*/
- long ToRelativeLineIndex( long nIndex ) const;
+ tools::Long ToRelativeLineIndex( tools::Long nIndex ) const;
};
} // namespace vcl
diff --git a/include/vcl/toolkit/dialog.hxx b/include/vcl/toolkit/dialog.hxx
index c663f21a2e03..3c519d0a5004 100644
--- a/include/vcl/toolkit/dialog.hxx
+++ b/include/vcl/toolkit/dialog.hxx
@@ -49,7 +49,7 @@ public:
private:
std::unique_ptr<DialogImpl> mpDialogImpl;
- long mnMousePositioned;
+ tools::Long mnMousePositioned;
bool mbInExecute;
bool mbInSyncExecute;
bool mbInClose;
@@ -134,7 +134,7 @@ public:
// Dialog::Execute replacement API
- void EndDialog( long nResult = RET_CANCEL );
+ void EndDialog( tools::Long nResult = RET_CANCEL );
void GetDrawWindowBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const;
diff --git a/include/vcl/toolkit/edit.hxx b/include/vcl/toolkit/edit.hxx
index c2a6f305fb2a..99631d3a3dea 100644
--- a/include/vcl/toolkit/edit.hxx
+++ b/include/vcl/toolkit/edit.hxx
@@ -63,7 +63,7 @@ private:
OUString maPlaceholderText;
OUString maSaveValue;
OUString maUndoText;
- long mnXOffset;
+ tools::Long mnXOffset;
Selection maSelection;
sal_uInt16 mnAlign;
sal_Int32 mnMaxTextLen;
@@ -95,7 +95,7 @@ private:
SAL_DLLPRIVATE void ImplSetText( const OUString& rStr, const Selection* pNewSelection );
SAL_DLLPRIVATE void ImplInsertText( const OUString& rStr, const Selection* pNewSelection = nullptr, bool bIsUserInput = false );
SAL_DLLPRIVATE static OUString ImplGetValidString( const OUString& rString );
- SAL_DLLPRIVATE void ImplClearBackground(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRectangle, long nXStart, long nXEnd);
+ SAL_DLLPRIVATE void ImplClearBackground(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRectangle, tools::Long nXStart, tools::Long nXEnd);
SAL_DLLPRIVATE void ImplPaintBorder(vcl::RenderContext const & rRenderContext);
SAL_DLLPRIVATE void ImplShowCursor( bool bOnlyIfVisible = true );
SAL_DLLPRIVATE void ImplAlign();
@@ -108,7 +108,7 @@ private:
SAL_DLLPRIVATE void ImplCopyToSelectionClipboard();
SAL_DLLPRIVATE void ImplCopy(css::uno::Reference<css::datatransfer::clipboard::XClipboard> const & rxClipboard);
SAL_DLLPRIVATE void ImplPaste(css::uno::Reference<css::datatransfer::clipboard::XClipboard> const & rxClipboard);
- SAL_DLLPRIVATE long ImplGetTextYPosition() const;
+ SAL_DLLPRIVATE tools::Long ImplGetTextYPosition() const;
SAL_DLLPRIVATE css::uno::Reference<css::i18n::XExtendedInputSequenceChecker> const& ImplGetInputSequenceChecker();
SAL_DLLPRIVATE css::uno::Reference<css::i18n::XBreakIterator> const& ImplGetBreakIterator();
SAL_DLLPRIVATE void filterText();
@@ -120,8 +120,8 @@ protected:
SAL_DLLPRIVATE static WinBits ImplInitStyle( WinBits nStyle );
SAL_DLLPRIVATE void ImplSetSelection( const Selection& rSelection, bool bPaint = true );
SAL_DLLPRIVATE ControlType ImplGetNativeControlType() const;
- SAL_DLLPRIVATE long ImplGetExtraXOffset() const;
- SAL_DLLPRIVATE long ImplGetExtraYOffset() const;
+ SAL_DLLPRIVATE tools::Long ImplGetExtraXOffset() const;
+ SAL_DLLPRIVATE tools::Long ImplGetExtraYOffset() const;
static SAL_DLLPRIVATE void ImplInvalidateOutermostBorder( vcl::Window* pWin );
css::uno::Reference<css::datatransfer::dnd::XDragSourceListener > mxDnDListener;
diff --git a/include/vcl/toolkit/fixedhyper.hxx b/include/vcl/toolkit/fixedhyper.hxx
index cb4e6bae2957..75516984bce0 100644
--- a/include/vcl/toolkit/fixedhyper.hxx
+++ b/include/vcl/toolkit/fixedhyper.hxx
@@ -31,7 +31,7 @@
class UNLESS_MERGELIBS(VCL_DLLPUBLIC) FixedHyperlink final : public FixedText
{
private:
- long m_nTextLen;
+ tools::Long m_nTextLen;
PointerStyle m_aOldPointer;
Link<FixedHyperlink&,void> m_aClickHdl;
OUString m_sURL;
diff --git a/include/vcl/toolkit/ivctrl.hxx b/include/vcl/toolkit/ivctrl.hxx
index 67efcf09da34..f4c50b48c84d 100644
--- a/include/vcl/toolkit/ivctrl.hxx
+++ b/include/vcl/toolkit/ivctrl.hxx
@@ -126,15 +126,15 @@ public:
class SvxIconChoiceCtrlColumnInfo
{
- long nWidth;
+ tools::Long nWidth;
public:
SvxIconChoiceCtrlColumnInfo() :
nWidth( 100 ) {}
SvxIconChoiceCtrlColumnInfo( const SvxIconChoiceCtrlColumnInfo& );
- void SetWidth( long nWd ) { nWidth = nWd; }
- long GetWidth() const { return nWidth; }
+ void SetWidth( tools::Long nWd ) { nWidth = nWd; }
+ tools::Long GetWidth() const { return nWidth; }
};
diff --git a/include/vcl/toolkit/lstbox.hxx b/include/vcl/toolkit/lstbox.hxx
index 01f76b58a3bd..fe67d90569cf 100644
--- a/include/vcl/toolkit/lstbox.hxx
+++ b/include/vcl/toolkit/lstbox.hxx
@@ -138,8 +138,8 @@ public:
virtual const Wallpaper& GetDisplayBackground() const override;
- virtual void setPosSizePixel( long nX, long nY,
- long nWidth, long nHeight, PosSizeFlags nFlags = PosSizeFlags::All ) override;
+ virtual void setPosSizePixel( tools::Long nX, tools::Long nY,
+ tools::Long nWidth, tools::Long nHeight, PosSizeFlags nFlags = PosSizeFlags::All ) override;
tools::Rectangle GetDropDownPosSizePixel() const;
@@ -246,7 +246,7 @@ public:
if no item is at that point.
*/
using Control::GetIndexForPoint;
- long GetIndexForPoint( const Point& rPoint, sal_Int32 & rPos ) const;
+ tools::Long GetIndexForPoint( const Point& rPoint, sal_Int32 & rPos ) const;
void setMaxWidthChars(sal_Int32 nWidth);
diff --git a/include/vcl/toolkit/prgsbar.hxx b/include/vcl/toolkit/prgsbar.hxx
index 7f248b19a210..3c0e121b0b0e 100644
--- a/include/vcl/toolkit/prgsbar.hxx
+++ b/include/vcl/toolkit/prgsbar.hxx
@@ -55,8 +55,8 @@ class UNLESS_MERGELIBS(VCL_DLLPUBLIC) ProgressBar final : public vcl::Window
{
private:
Point maPos;
- long mnPrgsWidth;
- long mnPrgsHeight;
+ tools::Long mnPrgsWidth;
+ tools::Long mnPrgsHeight;
sal_uInt16 mnPercent;
sal_uInt16 mnPercentCount;
bool mbCalcNew;
diff --git a/include/vcl/toolkit/spin.hxx b/include/vcl/toolkit/spin.hxx
index cc68f9d87e4c..6b152bbc16f8 100644
--- a/include/vcl/toolkit/spin.hxx
+++ b/include/vcl/toolkit/spin.hxx
@@ -43,10 +43,10 @@ private:
bool mbInitialDown : 1;
bool mbHorz : 1;
bool mbUpperIsFocused : 1;
- long mnMinRange;
- long mnMaxRange;
- long mnValue;
- long mnValueStep;
+ tools::Long mnMinRange;
+ tools::Long mnMaxRange;
+ tools::Long mnValue;
+ tools::Long mnValueStep;
SAL_DLLPRIVATE tools::Rectangle* ImplFindPartRect( const Point& rPt );
using Window::ImplInit;
@@ -70,15 +70,15 @@ public:
virtual void GetFocus() override;
virtual void LoseFocus() override;
- void SetRangeMin( long nNewRange );
- long GetRangeMin() const { return mnMinRange; }
- void SetRangeMax( long nNewRange );
- long GetRangeMax() const { return mnMaxRange; }
+ void SetRangeMin( tools::Long nNewRange );
+ tools::Long GetRangeMin() const { return mnMinRange; }
+ void SetRangeMax( tools::Long nNewRange );
+ tools::Long GetRangeMax() const { return mnMaxRange; }
void SetRange( const Range& rRange );
- void SetValue( long nValue );
- long GetValue() const { return mnValue; }
- void SetValueStep( long nNewStep ) { mnValueStep = nNewStep; }
- long GetValueStep() const { return mnValueStep; }
+ void SetValue( tools::Long nValue );
+ tools::Long GetValue() const { return mnValue; }
+ void SetValueStep( tools::Long nNewStep ) { mnValueStep = nNewStep; }
+ tools::Long GetValueStep() const { return mnValueStep; }
virtual bool PreNotify( NotifyEvent& rNEvt ) override;
private:
diff --git a/include/vcl/toolkit/svlbitm.hxx b/include/vcl/toolkit/svlbitm.hxx
index fa36fe88f9f6..ccb0f64301e5 100644
--- a/include/vcl/toolkit/svlbitm.hxx
+++ b/include/vcl/toolkit/svlbitm.hxx
@@ -63,8 +63,8 @@ class VCL_DLLPUBLIC SvLBoxButtonData
{
private:
Link<SvLBoxButtonData*,void> aLink;
- long nWidth;
- long nHeight;
+ tools::Long nWidth;
+ tools::Long nHeight;
std::unique_ptr<SvLBoxButtonData_Impl> pImpl;
bool bDataOk;
std::vector<Image> aBmps; // indices s. constants BMP_...
@@ -78,8 +78,8 @@ public:
~SvLBoxButtonData();
static SvBmp GetIndex( SvItemStateFlags nItemState );
- long Width();
- long Height();
+ tools::Long Width();
+ tools::Long Height();
void SetLink( const Link<SvLBoxButtonData*,void>& rLink) { aLink=rLink; }
bool IsRadio() const;
// as buttons are not derived from LinkHdl
diff --git a/include/vcl/toolkit/svtabbx.hxx b/include/vcl/toolkit/svtabbx.hxx
index e73cbc47c1e2..c1545c3a7c60 100644
--- a/include/vcl/toolkit/svtabbx.hxx
+++ b/include/vcl/toolkit/svtabbx.hxx
@@ -58,9 +58,9 @@ public:
SvTabListBox( vcl::Window* pParent, WinBits );
virtual ~SvTabListBox() override;
virtual void dispose() override;
- void SetTabs(sal_uInt16 nTabs, long const pTabPositions[], MapUnit = MapUnit::MapAppFont);
+ void SetTabs(sal_uInt16 nTabs, tools::Long const pTabPositions[], MapUnit = MapUnit::MapAppFont);
using SvTreeListBox::GetTab;
- long GetLogicTab( sal_uInt16 nTab );
+ tools::Long GetLogicTab( sal_uInt16 nTab );
virtual SvTreeListEntry* InsertEntry( const OUString& rText, SvTreeListEntry* pParent = nullptr,
bool bChildrenOnDemand = false,
@@ -133,10 +133,10 @@ public:
// Accessible -------------------------------------------------------------
- bool IsCellCheckBox( long _nRow, sal_uInt16 _nColumn, TriState& _rState );
+ bool IsCellCheckBox( tools::Long _nRow, sal_uInt16 _nColumn, TriState& _rState );
/** @return The count of the rows. */
- virtual long GetRowCount() const override;
+ virtual tools::Long GetRowCount() const override;
/** @return The count of the columns. */
virtual sal_uInt16 GetColumnCount() const override;
@@ -160,19 +160,19 @@ public:
virtual void SetNoSelection() override;
using SvTabListBox::SelectAll;
virtual void SelectAll() override;
- virtual void SelectRow( long _nRow, bool _bSelect = true, bool bExpand = true ) override;
+ virtual void SelectRow( tools::Long _nRow, bool _bSelect = true, bool bExpand = true ) override;
virtual void SelectColumn( sal_uInt16 _nColumn, bool _bSelect = true ) override;
virtual sal_Int32 GetSelectedRowCount() const override;
virtual sal_Int32 GetSelectedColumnCount() const override;
/** @return <TRUE/>, if the row is selected. */
- virtual bool IsRowSelected( long _nRow ) const override;
- virtual bool IsColumnSelected( long _nColumn ) const override;
+ virtual bool IsRowSelected( tools::Long _nRow ) const override;
+ virtual bool IsColumnSelected( tools::Long _nColumn ) const override;
virtual void GetAllSelectedRows( css::uno::Sequence< sal_Int32 >& _rRows ) const override;
virtual void GetAllSelectedColumns( css::uno::Sequence< sal_Int32 >& _rColumns ) const override;
/** @return <TRUE/>, if the cell is visible. */
virtual bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const override;
- virtual OUString GetAccessibleCellText( long _nRow, sal_uInt16 _nColumnPos ) const override;
+ virtual OUString GetAccessibleCellText( tools::Long _nRow, sal_uInt16 _nColumnPos ) const override;
virtual tools::Rectangle calcHeaderRect( bool _bIsColumnBar, bool _bOnScreen = true ) override;
virtual tools::Rectangle calcTableRect( bool _bOnScreen = true ) override;
diff --git a/include/vcl/toolkit/treelistbox.hxx b/include/vcl/toolkit/treelistbox.hxx
index 3ef56b39d67c..379401ac7ea5 100644
--- a/include/vcl/toolkit/treelistbox.hxx
+++ b/include/vcl/toolkit/treelistbox.hxx
@@ -102,19 +102,19 @@ enum class SvLBoxItemType {String, Button, ContextBmp};
class SvLBoxTab
{
- long nPos;
+ tools::Long nPos;
public:
SvLBoxTab();
- SvLBoxTab( long nPos, SvLBoxTabFlags nFlags );
+ SvLBoxTab( tools::Long nPos, SvLBoxTabFlags nFlags );
SvLBoxTab( const SvLBoxTab& );
~SvLBoxTab();
SvLBoxTabFlags nFlags;
bool IsDynamic() const { return bool(nFlags & SvLBoxTabFlags::DYNAMIC); }
- void SetPos( long nNewPos) { nPos = nNewPos; }
- long GetPos() const { return nPos; }
- long CalcOffset( long nItemLength, long nTabWidth );
+ void SetPos( tools::Long nNewPos) { nPos = nNewPos; }
+ tools::Long GetPos() const { return nPos; }
+ tools::Long CalcOffset( tools::Long nItemLength, tools::Long nTabWidth );
bool IsEditable() const { return bool(nFlags & SvLBoxTabFlags::EDITABLE); }
};
@@ -214,7 +214,7 @@ class VCL_DLLPUBLIC SvTreeListBox
short nFocusWidth;
sal_uInt16 nFirstSelTab;
sal_uInt16 nLastSelTab;
- long mnCheckboxItemWidth;
+ tools::Long mnCheckboxItemWidth;
bool mbContextBmpExpanded;
bool mbAlternatingRowColors;
bool mbUpdateAlternatingRows;
@@ -475,10 +475,10 @@ protected:
VCL_DLLPRIVATE void AdjustEntryHeight();
VCL_DLLPRIVATE void ImpEntryInserted( SvTreeListEntry* pEntry );
- VCL_DLLPRIVATE void PaintEntry1( SvTreeListEntry&, long nLine, vcl::RenderContext& rRenderContext );
+ VCL_DLLPRIVATE void PaintEntry1( SvTreeListEntry&, tools::Long nLine, vcl::RenderContext& rRenderContext );
VCL_DLLPRIVATE void InitTreeView();
- VCL_DLLPRIVATE SvLBoxItem* GetItem_Impl( SvTreeListEntry*, long nX, SvLBoxTab** ppTab );
+ VCL_DLLPRIVATE SvLBoxItem* GetItem_Impl( SvTreeListEntry*, tools::Long nX, SvLBoxTab** ppTab );
VCL_DLLPRIVATE void ImplInitStyle();
void SetupDragOrigin();
@@ -489,7 +489,7 @@ protected:
// Recalculate all tabs depending on TreeListStyle and Bitmap sizes
// Is called automatically when inserting/changing Bitmaps, changing the Model etc.
virtual void SetTabs();
- void AddTab( long nPos, SvLBoxTabFlags nFlags );
+ void AddTab( tools::Long nPos, SvLBoxTabFlags nFlags );
sal_uInt16 TabCount() const { return aTabs.size(); }
SvLBoxTab* GetFirstDynamicTab() const;
SvLBoxTab* GetFirstDynamicTab( sal_uInt16& rTabPos ) const;
@@ -502,7 +502,7 @@ protected:
void NotifyScrolled();
void SetScrolledHdl( const Link<SvTreeListBox*,void>& rLink ) { aScrolledHdl = rLink; }
- long GetXOffset() const { return GetMapMode().GetOrigin().X(); }
+ tools::Long GetXOffset() const { return GetMapMode().GetOrigin().X(); }
virtual void Command( const CommandEvent& rCEvt ) override;
@@ -629,12 +629,12 @@ public:
SvTreeListEntry* GetEntry( const Point& rPos, bool bHit = false ) const;
- virtual tools::Rectangle GetFocusRect(const SvTreeListEntry*, long nLine );
+ virtual tools::Rectangle GetFocusRect(const SvTreeListEntry*, tools::Long nLine );
// Respects indentation
sal_IntPtr GetTabPos(const SvTreeListEntry*, const SvLBoxTab*);
void InvalidateEntry( SvTreeListEntry* );
- SvLBoxItem* GetItem( SvTreeListEntry*, long nX, SvLBoxTab** ppTab);
- SvLBoxItem* GetItem( SvTreeListEntry*, long nX );
+ SvLBoxItem* GetItem( SvTreeListEntry*, tools::Long nX, SvLBoxTab** ppTab);
+ SvLBoxItem* GetItem( SvTreeListEntry*, tools::Long nX );
void SetDragDropMode( DragDropMode );
void SetSelectionMode( SelectionMode );
@@ -662,9 +662,9 @@ public:
SvTreeListEntry* GetFirstEntryInView() const;
SvTreeListEntry* GetNextEntryInView(SvTreeListEntry*) const;
- void ScrollToAbsPos( long nPos );
+ void ScrollToAbsPos( tools::Long nPos );
- long getPreferredDimensions(std::vector<long> &rWidths) const;
+ tools::Long getPreferredDimensions(std::vector<long> &rWidths) const;
virtual Size GetOptimalSize() const override;
diff --git a/include/vcl/toolkit/vclmedit.hxx b/include/vcl/toolkit/vclmedit.hxx
index 8a0088ab156d..e5e32244c32b 100644
--- a/include/vcl/toolkit/vclmedit.hxx
+++ b/include/vcl/toolkit/vclmedit.hxx
@@ -118,7 +118,7 @@ public:
virtual void SetMaxTextLen(sal_Int32 nMaxLen) override;
virtual sal_Int32 GetMaxTextLen() const override;
- void SetMaxTextWidth(long nMaxWidth);
+ void SetMaxTextWidth(tools::Long nMaxWidth);
virtual void SetSelection( const Selection& rSelection ) override;
virtual const Selection& GetSelection() const override;