summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-16 08:49:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-16 08:42:37 +0000
commitf0f973da8560e16cba85d2c9465c3a8c4c0ebbb3 (patch)
tree0b6d78c3b16acc698dee15d83422a924be71097f /include/vcl
parent6eb91bdf75fe0085584efa6abf955c14c7acb9fd (diff)
loplugin:constantparams in vcl/
also some improvements to the plugin Change-Id: I0e3a519d70756e577fcb1bd47dd66864b5b4c871 Reviewed-on: https://gerrit.libreoffice.org/23289 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/animate.hxx4
-rw-r--r--include/vcl/button.hxx4
-rw-r--r--include/vcl/decoview.hxx2
-rw-r--r--include/vcl/event.hxx3
-rw-r--r--include/vcl/gfxlink.hxx2
-rw-r--r--include/vcl/graph.hxx5
-rw-r--r--include/vcl/implimagetree.hxx2
-rw-r--r--include/vcl/layout.hxx8
-rw-r--r--include/vcl/lstbox.hxx2
-rw-r--r--include/vcl/menu.hxx2
-rw-r--r--include/vcl/metaact.hxx2
-rw-r--r--include/vcl/outdev.hxx6
-rw-r--r--include/vcl/pdfextoutdevdata.hxx5
-rw-r--r--include/vcl/pdfwriter.hxx4
-rw-r--r--include/vcl/print.hxx7
-rw-r--r--include/vcl/salbtype.hxx5
-rw-r--r--include/vcl/salnativewidgets.hxx22
-rw-r--r--include/vcl/splitwin.hxx6
-rw-r--r--include/vcl/status.hxx8
-rw-r--r--include/vcl/tabctrl.hxx2
-rw-r--r--include/vcl/texteng.hxx2
-rw-r--r--include/vcl/textview.hxx2
-rw-r--r--include/vcl/throbber.hxx2
-rw-r--r--include/vcl/toolbox.hxx4
-rw-r--r--include/vcl/unowrap.hxx2
-rw-r--r--include/vcl/window.hxx15
26 files changed, 56 insertions, 72 deletions
diff --git a/include/vcl/animate.hxx b/include/vcl/animate.hxx
index 9b3856aec6e8..bedb8364b1b7 100644
--- a/include/vcl/animate.hxx
+++ b/include/vcl/animate.hxx
@@ -149,9 +149,7 @@ public:
public:
bool Convert( BmpConversion eConversion );
- bool ReduceColors(
- sal_uInt16 nNewColorCount,
- BmpReduce eReduce = BMP_REDUCE_SIMPLE );
+ bool ReduceColors( sal_uInt16 nNewColorCount );
bool Invert();
bool Mirror( BmpMirrorFlags nMirrorFlags );
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx
index bf19a6a9e953..e6eb44625805 100644
--- a/include/vcl/button.hxx
+++ b/include/vcl/button.hxx
@@ -126,7 +126,7 @@ protected:
SAL_DLLPRIVATE WinBits ImplInitStyle( const vcl::Window* pPrevWindow, WinBits nStyle );
SAL_DLLPRIVATE void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
SAL_DLLPRIVATE void ImplDrawPushButtonContent(OutputDevice* pDev, DrawFlags nDrawFlags,
- const Rectangle& rRect, bool bLayout, bool bMenuBtnSep);
+ const Rectangle& rRect, bool bMenuBtnSep);
SAL_DLLPRIVATE void ImplDrawPushButton(vcl::RenderContext& rRenderContext);
using Button::ImplGetTextStyle;
SAL_DLLPRIVATE DrawTextFlags ImplGetTextStyle( DrawFlags nDrawFlags ) const;
@@ -419,7 +419,7 @@ private:
SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags,
const Point& rPos, const Size& rSize,
const Size& rImageSize, Rectangle& rStateRect,
- Rectangle& rMouseRect, bool bLayout );
+ Rectangle& rMouseRect );
SAL_DLLPRIVATE void ImplDrawCheckBox(vcl::RenderContext& rRenderContext );
SAL_DLLPRIVATE long ImplGetImageToTextDistance() const;
SAL_DLLPRIVATE Size ImplGetCheckImageSize() const;
diff --git a/include/vcl/decoview.hxx b/include/vcl/decoview.hxx
index 1b11d91f753f..ac640ef35e0d 100644
--- a/include/vcl/decoview.hxx
+++ b/include/vcl/decoview.hxx
@@ -111,7 +111,7 @@ public:
const Color& rLeftTopColor,
const Color& rRightBottomColor );
void DrawHighlightFrame( const Rectangle& rRect,
- DrawHighlightFrameStyle nStyle = DrawHighlightFrameStyle::Out, bool bTestBackground = false );
+ DrawHighlightFrameStyle nStyle = DrawHighlightFrameStyle::Out );
Rectangle DrawFrame( const Rectangle& rRect, DrawFrameStyle nStyle = DrawFrameStyle::Out, DrawFrameFlags nFlags = DrawFrameFlags::NONE );
Rectangle DrawButton( const Rectangle& rRect, DrawButtonFlags nStyle );
void DrawSeparator( const Point& rStart, const Point& rStop, bool bVertical = true );
diff --git a/include/vcl/event.hxx b/include/vcl/event.hxx
index da551edfeb66..562ab4c46950 100644
--- a/include/vcl/event.hxx
+++ b/include/vcl/event.hxx
@@ -396,8 +396,7 @@ private:
public:
NotifyEvent( MouseNotifyEvent nEventType,
vcl::Window* pWindow,
- const void* pEvent = nullptr,
- long nRet = 0 );
+ const void* pEvent = nullptr );
MouseNotifyEvent GetType() const { return mnEventType; }
vcl::Window* GetWindow() const { return mpWindow; }
diff --git a/include/vcl/gfxlink.hxx b/include/vcl/gfxlink.hxx
index 3e1c8cbf9f17..9be44e989ab3 100644
--- a/include/vcl/gfxlink.hxx
+++ b/include/vcl/gfxlink.hxx
@@ -125,7 +125,7 @@ public:
GfxLink();
GfxLink( const GfxLink& );
GfxLink( const OUString& rPath, GfxLinkType nType );
- GfxLink( sal_uInt8* pBuf, sal_uInt32 nBufSize, GfxLinkType nType, bool bOwns );
+ GfxLink( sal_uInt8* pBuf, sal_uInt32 nBufSize, GfxLinkType nType );
~GfxLink();
GfxLink& operator=( const GfxLink& );
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx
index 0c10149c30a8..6f71d24924f9 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -89,13 +89,12 @@ public:
const Size& rSizePixel = Size(),
bool bUnlimitedSize = false,
bool bAntiAliase = false,
- bool bSnapHorVerLines = false,
- bool bScaleHighQuality = false)
+ bool bSnapHorVerLines = false)
: maSizePixel(rSizePixel),
mbUnlimitedSize(bUnlimitedSize),
mbAntiAliase(bAntiAliase),
mbSnapHorVerLines(bSnapHorVerLines),
- mbScaleHighQuality(bScaleHighQuality)
+ mbScaleHighQuality(false)
{
}
diff --git a/include/vcl/implimagetree.hxx b/include/vcl/implimagetree.hxx
index f0e1b576b3dd..154b56ac7007 100644
--- a/include/vcl/implimagetree.hxx
+++ b/include/vcl/implimagetree.hxx
@@ -45,7 +45,7 @@ public:
bool loadImage(
OUString const & name, OUString const & style,
- BitmapEx & bitmap, bool localized = false, bool loadMissing = false );
+ BitmapEx & bitmap, bool localized = false );
bool loadDefaultImage(
OUString const & style,
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index 6bdef038d016..a968040b9c29 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -226,8 +226,8 @@ private:
class VCL_DLLPUBLIC VclVButtonBox : public VclButtonBox
{
public:
- VclVButtonBox(vcl::Window *pParent, int nSpacing = 0)
- : VclButtonBox(pParent, nSpacing)
+ VclVButtonBox(vcl::Window *pParent)
+ : VclButtonBox(pParent, 0)
{
m_bVerticalContainer = true;
}
@@ -265,8 +265,8 @@ protected:
class VCL_DLLPUBLIC VclHButtonBox : public VclButtonBox
{
public:
- VclHButtonBox(vcl::Window *pParent, int nSpacing = 0)
- : VclButtonBox(pParent, nSpacing)
+ VclHButtonBox(vcl::Window *pParent)
+ : VclButtonBox(pParent, 0)
{
m_bVerticalContainer = false;
}
diff --git a/include/vcl/lstbox.hxx b/include/vcl/lstbox.hxx
index 5a5bc4dadd2c..09067d26b712 100644
--- a/include/vcl/lstbox.hxx
+++ b/include/vcl/lstbox.hxx
@@ -226,7 +226,7 @@ public:
void EnableUserDraw( bool bUserDraw );
- void DrawEntry( const UserDrawEvent& rEvt, bool bDrawImage, bool bDrawText, bool bDrawTextAtImagePos = false );
+ void DrawEntry( const UserDrawEvent& rEvt, bool bDrawImage, bool bDrawTextAtImagePos );
void SetSelectHdl( const Link<ListBox&,void>& rLink ) { maSelectHdl = rLink; }
const Link<ListBox&,void>& GetSelectHdl() const { return maSelectHdl; }
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx
index 73e5c4dae4d8..277819960347 100644
--- a/include/vcl/menu.hxx
+++ b/include/vcl/menu.hxx
@@ -422,7 +422,7 @@ class VCL_DLLPUBLIC MenuBar : public Menu
SAL_DLLPRIVATE static vcl::Window* ImplCreate(vcl::Window* pParent, vcl::Window* pWindow, MenuBar* pMenu);
SAL_DLLPRIVATE static void ImplDestroy(MenuBar* pMenu, bool bDelete);
- SAL_DLLPRIVATE bool ImplHandleKeyEvent(const KeyEvent& rKEvent, bool bFromMenu = true);
+ SAL_DLLPRIVATE bool ImplHandleKeyEvent(const KeyEvent& rKEvent);
SAL_DLLPRIVATE bool ImplHandleCmdEvent(const CommandEvent& rCEvent);
protected:
diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx
index 044cb5072ede..9f3457c370ed 100644
--- a/include/vcl/metaact.hxx
+++ b/include/vcl/metaact.hxx
@@ -1439,7 +1439,7 @@ protected:
virtual ~MetaCommentAction();
public:
- explicit MetaCommentAction( sal_Int32 nValue = 0L );
+ explicit MetaCommentAction();
explicit MetaCommentAction( const MetaCommentAction& rAct );
explicit MetaCommentAction( const OString& rComment, sal_Int32 nValue = 0L, const sal_uInt8* pData = nullptr, sal_uInt32 nDataSize = 0UL );
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index fc0f765e2e26..f31eab287d17 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -1112,13 +1112,13 @@ public:
Rectangle ImplGetTextBoundRect( const SalLayout& );
bool GetTextOutline( tools::PolyPolygon&,
- const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0,
- sal_Int32 nLen = -1, bool bOptimize = true,
+ const OUString& rStr,
+ sal_Int32 nLen = -1,
sal_uLong nLayoutWidth = 0, const long* pDXArray = nullptr ) const;
bool GetTextOutlines( PolyPolyVector&,
const OUString& rStr, sal_Int32 nBase = 0, sal_Int32 nIndex = 0,
- sal_Int32 nLen = -1, bool bOptimize = true,
+ sal_Int32 nLen = -1,
sal_uLong nLayoutWidth = 0, const long* pDXArray = nullptr ) const;
bool GetTextOutlines( basegfx::B2DPolyPolygonVector &rVector,
diff --git a/include/vcl/pdfextoutdevdata.hxx b/include/vcl/pdfextoutdevdata.hxx
index 6fcb45eed90c..9ba411e5acde 100644
--- a/include/vcl/pdfextoutdevdata.hxx
+++ b/include/vcl/pdfextoutdevdata.hxx
@@ -207,14 +207,11 @@ public:
number of page the dest is on (as returned by NewPage)
or -1 in which case the current page is used
- @param eType
- what dest type to use
-
@returns
the destination id (to be used in SetLinkDest) or
-1 if page id does not exist
*/
- sal_Int32 CreateNamedDest( const OUString& sDestName, const Rectangle& rRect, sal_Int32 nPageNr = -1, PDFWriter::DestAreaType eType = PDFWriter::XYZ );
+ sal_Int32 CreateNamedDest( const OUString& sDestName, const Rectangle& rRect, sal_Int32 nPageNr = -1 );
/** registers a destination for which a destinatin ID needs to be known immediately, instead of later on setting it via
SetLinkDest.
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx
index 6f859bdf095c..8a95b6a4707e 100644
--- a/include/vcl/pdfwriter.hxx
+++ b/include/vcl/pdfwriter.hxx
@@ -1256,10 +1256,8 @@ The following structure describes the permissions used in PDF security
@param pStream
the interface to the additional stream
- @param bCompress
- specifies whether the stream should be flat encoded by PDFWriter or not
*/
- void AddStream( const OUString& rMimeType, PDFOutputStream* pStream, bool bCompress );
+ void AddStream( const OUString& rMimeType, PDFOutputStream* pStream );
};
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index 7664bc47c237..55784a37d380 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -636,14 +636,13 @@ public:
UIControlOptions( const OUString& i_rDependsOnName = OUString(),
sal_Int32 i_nDependsOnEntry = -1, bool i_bAttachToDependency = false,
- const OUString& i_rGroupHint = OUString(), bool i_bInternalOnly = false,
- bool i_bEnabled = true)
+ const OUString& i_rGroupHint = OUString())
: maDependsOnName( i_rDependsOnName )
, mnDependsOnEntry( i_nDependsOnEntry )
, mbAttachToDependency( i_bAttachToDependency )
, maGroupHint( i_rGroupHint )
- , mbInternalOnly( i_bInternalOnly )
- , mbEnabled( i_bEnabled ) {}
+ , mbInternalOnly( false )
+ , mbEnabled( true ) {}
};
// note: in the following helper functions HelpIds are expected as an OUString
diff --git a/include/vcl/salbtype.hxx b/include/vcl/salbtype.hxx
index 9476c031a27f..36da41db3593 100644
--- a/include/vcl/salbtype.hxx
+++ b/include/vcl/salbtype.hxx
@@ -226,12 +226,11 @@ public:
ColorMask(const ColorMaskElement& rRedMask = ColorMaskElement(),
const ColorMaskElement& rGreenMask = ColorMaskElement(),
- const ColorMaskElement& rBlueMask = ColorMaskElement(),
- sal_uInt32 nAlphaChannel = 0)
+ const ColorMaskElement& rBlueMask = ColorMaskElement())
: maR(rRedMask)
, maG(rGreenMask)
, maB(rBlueMask)
- , mnAlphaChannel(nAlphaChannel)
+ , mnAlphaChannel(0)
{
}
diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx
index 0b60312df0e2..8dc05a223ec0 100644
--- a/include/vcl/salnativewidgets.hxx
+++ b/include/vcl/salnativewidgets.hxx
@@ -333,9 +333,9 @@ class VCL_DLLPUBLIC ImplControlValue
ButtonValue mTristate; // Tristate value: on, off, mixed
long mNumber; // numeric value
protected:
- ImplControlValue( ControlType i_eType, ButtonValue i_eTriState, long i_nNumber )
+ ImplControlValue( ControlType i_eType, long i_nNumber )
: mType( i_eType )
- , mTristate( i_eTriState )
+ , mTristate( BUTTONVALUE_DONTKNOW )
, mNumber( i_nNumber )
{}
@@ -381,7 +381,7 @@ class VCL_DLLPUBLIC ScrollbarValue : public ImplControlValue
ControlState mnPage2State;
inline ScrollbarValue()
- : ImplControlValue( CTRL_SCROLLBAR, BUTTONVALUE_DONTKNOW, 0 )
+ : ImplControlValue( CTRL_SCROLLBAR, 0 )
{
mnMin = 0; mnMax = 0; mnCur = 0; mnVisibleSize = 0;
mnButton1State = ControlState::NONE; mnButton2State = ControlState::NONE;
@@ -401,7 +401,7 @@ class VCL_DLLPUBLIC SliderValue : public ImplControlValue
ControlState mnThumbState;
SliderValue()
- : ImplControlValue( CTRL_SLIDER, BUTTONVALUE_DONTKNOW, 0 )
+ : ImplControlValue( CTRL_SLIDER, 0 )
, mnMin( 0 ), mnMax( 0 ), mnCur( 0 ), mnThumbState( ControlState::NONE )
{}
virtual ~SliderValue();
@@ -434,7 +434,7 @@ class VCL_DLLPUBLIC TabitemValue : public ImplControlValue
Rectangle maContentRect;
TabitemValue(const Rectangle &rContentRect)
- : ImplControlValue( CTRL_TAB_ITEM, BUTTONVALUE_DONTKNOW, 0 )
+ : ImplControlValue( CTRL_TAB_ITEM, 0 )
, mnAlignment(TabitemFlags::NONE)
, maContentRect(rContentRect)
{
@@ -468,7 +468,7 @@ class VCL_DLLPUBLIC SpinbuttonValue : public ImplControlValue
int mnLowerPart;
SpinbuttonValue()
- : ImplControlValue( CTRL_SPINBUTTONS, BUTTONVALUE_DONTKNOW, 0 )
+ : ImplControlValue( CTRL_SPINBUTTONS, 0 )
, mnUpperState(ControlState::NONE)
, mnLowerState(ControlState::NONE)
, mnUpperPart(0)
@@ -487,7 +487,7 @@ class VCL_DLLPUBLIC SpinbuttonValue : public ImplControlValue
class VCL_DLLPUBLIC ToolbarValue : public ImplControlValue
{
public:
- ToolbarValue() : ImplControlValue( CTRL_TOOLBAR, BUTTONVALUE_DONTKNOW, 0 )
+ ToolbarValue() : ImplControlValue( CTRL_TOOLBAR, 0 )
{ mbIsTopDockingArea = false; }
virtual ~ToolbarValue();
virtual ToolbarValue* clone() const override;
@@ -503,7 +503,7 @@ public:
class VCL_DLLPUBLIC MenubarValue : public ImplControlValue
{
public:
- MenubarValue() : ImplControlValue( CTRL_MENUBAR, BUTTONVALUE_DONTKNOW, 0 )
+ MenubarValue() : ImplControlValue( CTRL_MENUBAR, 0 )
{ maTopDockingAreaHeight=0; }
virtual ~MenubarValue();
virtual MenubarValue* clone() const override;
@@ -518,10 +518,10 @@ public:
class VCL_DLLPUBLIC MenupopupValue : public ImplControlValue
{
public:
- MenupopupValue() : ImplControlValue( CTRL_MENU_POPUP, BUTTONVALUE_DONTKNOW, 0 )
+ MenupopupValue() : ImplControlValue( CTRL_MENU_POPUP, 0 )
{}
MenupopupValue( long i_nGutterWidth, const Rectangle& i_rItemRect )
- : ImplControlValue( CTRL_MENU_POPUP, BUTTONVALUE_DONTKNOW, i_nGutterWidth )
+ : ImplControlValue( CTRL_MENU_POPUP, i_nGutterWidth )
, maItemRect( i_rItemRect )
{}
virtual ~MenupopupValue();
@@ -537,7 +537,7 @@ class VCL_DLLPUBLIC PushButtonValue : public ImplControlValue
{
public:
PushButtonValue()
- : ImplControlValue( CTRL_PUSHBUTTON, BUTTONVALUE_DONTKNOW, 0 )
+ : ImplControlValue( CTRL_PUSHBUTTON, 0 )
, mbBevelButton( false ), mbSingleLine( true ) {}
virtual ~PushButtonValue();
virtual PushButtonValue* clone() const override;
diff --git a/include/vcl/splitwin.hxx b/include/vcl/splitwin.hxx
index 5bb540b86c9d..fc9b23e4adce 100644
--- a/include/vcl/splitwin.hxx
+++ b/include/vcl/splitwin.hxx
@@ -99,9 +99,9 @@ private:
SAL_DLLPRIVATE void ImplGetFadeInRect( Rectangle& rRect, bool bTest = false ) const;
SAL_DLLPRIVATE void ImplGetFadeOutRect( Rectangle& rRect, bool bTest = false ) const;
SAL_DLLPRIVATE void ImplDrawButtonRect(vcl::RenderContext& rRenderContext, const Rectangle& rRect, long nSize);
- SAL_DLLPRIVATE void ImplDrawAutoHide(vcl::RenderContext& rRenderContext, bool bInPaint);
- SAL_DLLPRIVATE void ImplDrawFadeIn(vcl::RenderContext& rRenderContext, bool bInPaint);
- SAL_DLLPRIVATE void ImplDrawFadeOut(vcl::RenderContext& rRenderContext, bool bInPaint);
+ SAL_DLLPRIVATE void ImplDrawAutoHide(vcl::RenderContext& rRenderContext);
+ SAL_DLLPRIVATE void ImplDrawFadeIn(vcl::RenderContext& rRenderContext);
+ SAL_DLLPRIVATE void ImplDrawFadeOut(vcl::RenderContext& rRenderContext);
SAL_DLLPRIVATE void ImplNewAlign();
SAL_DLLPRIVATE void ImplDrawGrip(vcl::RenderContext& rRenderContext, const Rectangle& rRect, bool bHorz, bool bLeft);
SAL_DLLPRIVATE void ImplStartSplit( const MouseEvent& rMEvt );
diff --git a/include/vcl/status.hxx b/include/vcl/status.hxx
index 9c04e0df0117..7bb969d898de 100644
--- a/include/vcl/status.hxx
+++ b/include/vcl/status.hxx
@@ -86,12 +86,10 @@ private:
SAL_DLLPRIVATE void ImplFormat();
SAL_DLLPRIVATE bool ImplIsItemUpdate();
- SAL_DLLPRIVATE void ImplDrawText(vcl::RenderContext& rRenderContext, bool bOffScreen,
- long nOldTextWidth);
+ SAL_DLLPRIVATE void ImplDrawText(vcl::RenderContext& rRenderContext);
SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, bool bOffScreen,
- sal_uInt16 nPos, bool bDrawText, bool bDrawFrame);
- SAL_DLLPRIVATE void ImplDrawProgress(vcl::RenderContext& rRenderContext, bool bPaint,
- sal_uInt16 nOldPerc, sal_uInt16 nNewPerc);
+ sal_uInt16 nPos);
+ SAL_DLLPRIVATE void ImplDrawProgress(vcl::RenderContext& rRenderContext, sal_uInt16 nNewPerc);
SAL_DLLPRIVATE void ImplCalcProgressRect();
SAL_DLLPRIVATE Rectangle ImplGetItemRectPos( sal_uInt16 nPos ) const;
SAL_DLLPRIVATE sal_uInt16 ImplGetFirstVisiblePos() const;
diff --git a/include/vcl/tabctrl.hxx b/include/vcl/tabctrl.hxx
index 314477ed6149..2f0b1d9dd6d1 100644
--- a/include/vcl/tabctrl.hxx
+++ b/include/vcl/tabctrl.hxx
@@ -71,7 +71,7 @@ private:
SAL_DLLPRIVATE void ImplActivateTabPage( bool bNext );
SAL_DLLPRIVATE void ImplShowFocus();
SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem* pItem,
- const Rectangle& rCurRect, bool bLayout = false, bool bFirstInGroup = false,
+ const Rectangle& rCurRect, bool bFirstInGroup = false,
bool bLastInGroup = false, bool bIsCurrentItem = false);
SAL_DLLPRIVATE void ImplPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect);
SAL_DLLPRIVATE void ImplFreeLayoutData();
diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx
index eaaa6213d8fd..988bd3c35988 100644
--- a/include/vcl/texteng.hxx
+++ b/include/vcl/texteng.hxx
@@ -297,7 +297,7 @@ public:
const TextAttrib* FindAttrib( const TextPaM& rPaM, sal_uInt16 nWhich ) const;
const TextCharAttrib* FindCharAttrib( const TextPaM& rPaM, sal_uInt16 nWhich ) const;
- void RemoveAttribs( sal_uInt32 nPara, sal_uInt16 nWhich, bool bIdleFormatAndUpdate );
+ void RemoveAttribs( sal_uInt32 nPara, sal_uInt16 nWhich );
void RemoveAttrib( sal_uInt32 nPara, const TextCharAttrib& rAttrib );
void RemoveAttribs( sal_uInt32 nPara );
void SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32 nStart, sal_Int32 nEnd, bool bIdleFormatAndUpdate = true );
diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx
index e4507d439868..8b398e6b65df 100644
--- a/include/vcl/textview.hxx
+++ b/include/vcl/textview.hxx
@@ -70,7 +70,7 @@ protected:
bool IsInSelection( const TextPaM& rPaM );
void ImpPaint(vcl::RenderContext& rRenderContext, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = nullptr, TextSelection const* pSelection = nullptr);
- void ImpPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect, bool bUseVirtDev);
+ void ImpPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect);
void ImpShowCursor( bool bGotoCursor, bool bForceVisCursor, bool bEndKey );
void ImpHighlight( const TextSelection& rSel );
void ImpSetSelection( const TextSelection& rSelection );
diff --git a/include/vcl/throbber.hxx b/include/vcl/throbber.hxx
index be9ee33654c3..898fee4e3ba8 100644
--- a/include/vcl/throbber.hxx
+++ b/include/vcl/throbber.hxx
@@ -46,7 +46,7 @@ public:
};
public:
- Throbber(vcl::Window* i_parentWindow, WinBits i_style, const ImageSet i_imageSet = IMAGES_AUTO);
+ Throbber(vcl::Window* i_parentWindow, WinBits i_style);
virtual ~Throbber();
virtual void dispose() override;
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index b0a686f36f02..d559c59c7d9e 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -168,9 +168,9 @@ private:
SAL_DLLPRIVATE bool ImplCalcItem();
SAL_DLLPRIVATE sal_uInt16 ImplCalcBreaks( long nWidth, long* pMaxLineWidth, bool bCalcHorz );
SAL_DLLPRIVATE void ImplFormat( bool bResize = false );
- SAL_DLLPRIVATE void ImplDrawSpin(vcl::RenderContext& rRenderContext, bool bUpperIn, bool bLowerIn);
+ SAL_DLLPRIVATE void ImplDrawSpin(vcl::RenderContext& rRenderContext);
SAL_DLLPRIVATE void ImplDrawSeparator(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, const Rectangle& rRect);
- SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, sal_uInt16 nHighlight = 0, bool bPaint = false, bool bLayout = false );
+ SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, sal_uInt16 nHighlight = 0 );
using Window::ImplInvalidate;
SAL_DLLPRIVATE void ImplInvalidate( bool bNewCalc = false, bool bFullPaint = false );
SAL_DLLPRIVATE void ImplUpdateItem( sal_uInt16 nIndex = 0xFFFF );
diff --git a/include/vcl/unowrap.hxx b/include/vcl/unowrap.hxx
index 066c700d518f..44c86f2cc041 100644
--- a/include/vcl/unowrap.hxx
+++ b/include/vcl/unowrap.hxx
@@ -67,7 +67,7 @@ public:
virtual void ReleaseAllGraphics( OutputDevice* pOutDev ) = 0;
// Window
- virtual css::uno::Reference< css::awt::XWindowPeer> GetWindowInterface( vcl::Window* pWindow, bool bCreate ) = 0;
+ virtual css::uno::Reference< css::awt::XWindowPeer> GetWindowInterface( vcl::Window* pWindow ) = 0;
virtual void SetWindowInterface( vcl::Window* pWindow, css::uno::Reference< css::awt::XWindowPeer > xIFace ) = 0;
virtual void WindowDestroyed( vcl::Window* pWindow ) = 0;
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 3e61c779a3f0..2cb6701b792d 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -603,7 +603,7 @@ protected:
SAL_DLLPRIVATE void ImplInvalidateParentFrameRegion( vcl::Region& rRegion );
SAL_DLLPRIVATE void ImplValidateFrameRegion( const vcl::Region* rRegion, ValidateFlags nFlags );
- SAL_DLLPRIVATE void ImplValidate( ValidateFlags nFlags );
+ SAL_DLLPRIVATE void ImplValidate();
SAL_DLLPRIVATE void ImplMoveInvalidateRegion( const Rectangle& rRect, long nHorzScroll, long nVertScroll, bool bChildren );
SAL_DLLPRIVATE void ImplMoveAllInvalidateRegions( const Rectangle& rRect, long nHorzScroll, long nVertScroll, bool bChildren );
@@ -680,7 +680,7 @@ private:
SAL_DLLPRIVATE void ImplIntersectAndUnionOverlapWindows2( const vcl::Region& rInterRegion, vcl::Region& rRegion );
SAL_DLLPRIVATE void ImplCalcOverlapRegionOverlaps( const vcl::Region& rInterRegion, vcl::Region& rRegion );
SAL_DLLPRIVATE void ImplCalcOverlapRegion( const Rectangle& rSourceRect, vcl::Region& rRegion,
- bool bChildren, bool bParent, bool bSiblings );
+ bool bChildren, bool bSiblings );
/** Invoke the actual painting.
@@ -744,7 +744,7 @@ private:
SAL_DLLPRIVATE void ImplPaintToDevice( ::OutputDevice* pTargetOutDev, const Point& rPos );
SAL_DLLPRIVATE css::uno::Reference< css::rendering::XCanvas >
- ImplGetCanvas( const Size& rFullscreenSize, bool bFullscreen, bool bSpriteCanvas ) const;
+ ImplGetCanvas( bool bSpriteCanvas ) const;
public:
virtual vcl::Region GetActiveClipRegion() const override;
@@ -974,8 +974,7 @@ public:
bool IsEnabled() const;
void EnableInput( bool bEnable = true, bool bChild = true );
- void EnableInput( bool bEnable, bool bChild, bool bSysWin,
- const vcl::Window* pExcludeWindow = nullptr );
+ void EnableInput( bool bEnable, const vcl::Window* pExcludeWindow );
bool IsInputEnabled() const;
/** Override <code>EnableInput</code>. This can be necessary due to other people
@@ -1186,9 +1185,9 @@ public:
void HideFocus();
// transparent background for selected or checked items in toolboxes etc.
- void DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlight, bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly );
+ void DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlight, bool bChecked, bool bDrawBorder );
// support rounded edges in the selection rect
- void DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlight, bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly, long nCornerRadius, Color* pSelectionTextColor, Color* pPaintColor );
+ void DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlight, bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly, Color* pSelectionTextColor, Color* pPaintColor );
void ShowTracking( const Rectangle& rRect,
sal_uInt16 nFlags = SHOWTRACK_SMALL );
@@ -1297,8 +1296,6 @@ private:
SAL_DLLPRIVATE bool ImplIsAccessibleCandidate() const;
SAL_DLLPRIVATE bool ImplIsAccessibleNativeFrame() const;
- SAL_DLLPRIVATE sal_uInt16 ImplGetAccessibleCandidateChildWindowCount( GetWindowType nFirstWindowType ) const;
- SAL_DLLPRIVATE vcl::Window* ImplGetAccessibleCandidateChild( sal_uInt16 nChild, sal_uInt16& rChildCount, GetWindowType nFirstWindowType, bool bTopLevel = true ) const;
///@}
/*