Kaydet (Commit) 175c49ba authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:countusersofdefaultparams

Change-Id: I2ed581e58523ac8b52aa520f7a02f69f408665fe
Reviewed-on: https://gerrit.libreoffice.org/28587Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst a8a7b711
......@@ -178,7 +178,7 @@ private:
Name of the property.
*/
SVX_DLLPRIVATE void AddString (const OUString& sPropertyName,
const OUString& sLocalizedName, long nWhichId = -1);
const OUString& sLocalizedName, long nWhichId);
/** Add a property value formatted as fill style to the description
string. If the fill style is <const>HATCH</const>,
......
......@@ -62,7 +62,7 @@ public:
/** Returns sal_True, if the item represents STACKED state. */
bool IsStacked() const;
/** Returns the rotation this item represents (returns nStdAngle for STANDARD and STACKED state). */
sal_Int32 GetRotation( sal_Int32 nStdAngle = 0 ) const;
sal_Int32 GetRotation( sal_Int32 nStdAngle ) const;
/** Fills this item according to passed item values. */
void SetFromRotation( sal_Int32 nRotation, bool bStacked );
};
......
......@@ -50,7 +50,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC Camera3D : public Viewport3D
Camera3D();
void SetDefaults(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLookAt,
double fFocalLen = 35.0, double fBankAng = 0);
double fFocalLen, double fBankAng = 0);
void SetViewWindow(double fX, double fY, double fW, double fH);
......@@ -66,7 +66,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC Camera3D : public Viewport3D
// Bank angle links/rechts
void SetBankAngle(double fAngle);
void SetAutoAdjustProjection(bool bAdjust = true)
void SetAutoAdjustProjection(bool bAdjust)
{ bAutoAdjustProjection = bAdjust; }
};
......
......@@ -69,7 +69,7 @@ public:
const void* GetEditingObject() const;
void Update( const Graphic& rGraphic, bool bGraphicLinked,
const tools::PolyPolygon* pPolyPoly = nullptr, void* pEditingObj = nullptr );
const tools::PolyPolygon* pPolyPoly, void* pEditingObj = nullptr );
static tools::PolyPolygon CreateAutoContour( const Graphic& rGraphic,
const Rectangle* pRect = nullptr,
......
......@@ -117,15 +117,15 @@ public:
virtual void dispose() override;
// For FilterPage only {
void SetFilterDate(bool bFlag=true);
void SetFilterDate(bool bFlag);
void SetDateTimeMode(SvxRedlinDateMode nMode);
void SetFirstDate(const Date&);
void SetLastDate(const Date&);
void SetFirstTime(const tools::Time&);
void SetLastTime(const tools::Time&);
void SetFilterAuthor(bool bFlag=true);
void SetFilterAuthor(bool bFlag);
void SetAuthor(const OUString &);
void SetFilterComment(bool bFlag=true);
void SetFilterComment(bool bFlag);
void SetCommentParams( const utl::SearchParam* pSearchPara );
void UpdateFilterTest();
......@@ -149,7 +149,7 @@ public:
The rStr contains the entire redline entry; the columns are delimited by '\t'.
*/
SvTreeListEntry* InsertEntry(const OUString &rStr, RedlinData *pUserData, const Color&,
SvTreeListEntry* pParent = nullptr, sal_uIntPtr nPos = TREELIST_APPEND);
SvTreeListEntry* pParent, sal_uIntPtr nPos = TREELIST_APPEND);
/** Insert a redline entry.
......@@ -157,7 +157,7 @@ public:
rStr contains the rest of the redline entry; the columns are delimited by '\t'.
*/
SvTreeListEntry* InsertEntry(const Image &rRedlineType, const OUString &rStr, RedlinData *pUserData,
SvTreeListEntry* pParent = nullptr, sal_uIntPtr nPos = TREELIST_APPEND);
SvTreeListEntry* pParent, sal_uIntPtr nPos = TREELIST_APPEND);
virtual SvTreeListEntry* CreateEntry() const override;
......@@ -251,11 +251,11 @@ public:
void ShowAction(bool bShow=true);
void CheckDate(bool bFlag=true);
void CheckAuthor(bool bFlag=true);
void CheckRange(bool bFlag=true);
void CheckAction(bool bFlag=true);
void CheckComment(bool bFlag=true);
void CheckDate(bool bFlag);
void CheckAuthor(bool bFlag);
void CheckRange(bool bFlag);
void CheckAction(bool bFlag);
void CheckComment(bool bFlag);
ListBox* GetLbAction() { return m_pLbAction;}
......@@ -305,10 +305,10 @@ public:
void InsertCalcHeader();
SvxRedlinTable* GetTableControl() { return m_pViewData;}
void EnableAccept(bool bFlag=true);
void EnableAcceptAll(bool bFlag=true);
void EnableReject(bool bFlag=true);
void EnableRejectAll(bool bFlag=true);
void EnableAccept(bool bFlag);
void EnableAcceptAll(bool bFlag);
void EnableReject(bool bFlag);
void EnableRejectAll(bool bFlag);
void EnableUndo(bool bFlag=true);
void DisableUndo() {EnableUndo(false);}
void ShowUndo();
......
......@@ -109,7 +109,7 @@ protected:
public:
SvxRectCtl( vcl::Window* pParent, RectPoint eRpt = RectPoint::MM,
sal_uInt16 nBorder = 200, sal_uInt16 nCircle = 80 );
void SetControlSettings(RectPoint eRpt = RectPoint::MM, sal_uInt16 nBorder = 200,
void SetControlSettings(RectPoint eRpt, sal_uInt16 nBorder = 200,
sal_uInt16 nCircle = 80);
virtual ~SvxRectCtl();
virtual void dispose() override;
......
......@@ -201,7 +201,7 @@ private:
SVX_DLLPRIVATE void Reset();
SVX_DLLPRIVATE bool LBSelectColor( ColorLB* pLb, const Color& rColor );
SVX_DLLPRIVATE sal_uInt16 GetLightSource( const PushButton* pBtn = nullptr );
SVX_DLLPRIVATE sal_uInt16 GetLightSource( const PushButton* pBtn );
SVX_DLLPRIVATE ColorLB* GetLbByButton( const PushButton* pBtn = nullptr );
SVX_DLLPRIVATE bool GetUILightState( const PushButton& rBtn ) const;
......
......@@ -78,8 +78,8 @@ namespace vcl { class Window; }
// displaying a database exception for the user
// display info about a simple css::sdbc::SQLException
void displayException(const css::sdbc::SQLException&, vcl::Window* _pParent = nullptr);
SVX_DLLPUBLIC void displayException(const css::sdb::SQLContext&, vcl::Window* _pParent = nullptr);
void displayException(const css::sdbc::SQLException&, vcl::Window* _pParent);
SVX_DLLPUBLIC void displayException(const css::sdb::SQLContext&, vcl::Window* _pParent);
void displayException(const css::sdb::SQLErrorEvent&);
void displayException(const css::uno::Any&, vcl::Window* _pParent = nullptr);
......
......@@ -85,7 +85,7 @@ public:
void SetFontEscapement( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc );
void SetFromItemSet( const SfxItemSet &rSet,
bool bPreviewBackgroundToCharacter = false );
bool bPreviewBackgroundToCharacter );
virtual Size GetOptimalSize() const override;
};
......
......@@ -140,9 +140,9 @@ public:
void Set( const Color& rColorPrim, const Color& rColorSecn, const Color& rColorGap, bool bUseGapColor,
double nP, double nD, double nS );
/** Sets the frame style to the passed SvxBorderLine struct. */
void Set( const editeng::SvxBorderLine& rBorder, double fScale = 1.0, sal_uInt16 nMaxWidth = SAL_MAX_UINT16 );
void Set( const editeng::SvxBorderLine& rBorder, double fScale, sal_uInt16 nMaxWidth = SAL_MAX_UINT16 );
/** Sets the frame style to the passed SvxBorderLine struct. Clears the style, if pBorder is 0. */
void Set( const editeng::SvxBorderLine* pBorder, double fScale = 1.0, sal_uInt16 nMaxWidth = SAL_MAX_UINT16 );
void Set( const editeng::SvxBorderLine* pBorder, double fScale, sal_uInt16 nMaxWidth = SAL_MAX_UINT16 );
/** Sets a new reference point handling mode, does not modify other settings. */
inline void SetRefMode( RefMode eRefMode ) { meRefMode = eRefMode; }
......@@ -446,7 +446,7 @@ SVX_DLLPUBLIC drawinglayer::primitive2d::Primitive2DContainer CreateBorderPrimit
const Style& rRFromB, /// Vertical frame border from bottom to right end of rBorder.
const DiagStyle& rRFromBL, /// Diagonal frame border from bottom-left to right end of rBorder.
const Color* pForceColor = nullptr,/// If specified, overrides frame border color.
const Color* pForceColor, /// If specified, overrides frame border color.
const long rRotationT = 9000, /// Angle of the top slanted frames in 100th of degree
const long rRotationB = 9000 /// Angle of the bottom slanted frames in 100th of degree
);
......@@ -464,7 +464,7 @@ SVX_DLLPUBLIC drawinglayer::primitive2d::Primitive2DContainer CreateBorderPrimit
const Style& rRFromR, /// Horizontal frame border from right to right end of rBorder.
const Style& rRFromB, /// Vertical frame border from bottom to right end of rBorder.
const Color* pForceColor = nullptr,/// If specified, overrides frame border color.
const Color* pForceColor, /// If specified, overrides frame border color.
const long rRotationT = 9000, /// Angle of the top slanted frame in 100th of degrees
const long rRotationB = 9000 /// Angle of the bottom slanted frame in 100th of degrees
);
......@@ -624,7 +624,7 @@ SVX_DLLPUBLIC void DrawDiagFrameBorders(
const Style& rTRFromB, /// Vertical frame border from bottom to top-right end of rBLTR.
const Style& rTRFromL, /// Horizontal frame border from left to top-right end of rBLTR.
const Color* pForceColor = nullptr, /// If specified, overrides frame border color.
const Color* pForceColor, /// If specified, overrides frame border color.
bool bDiagDblClip = false /// true = Use clipping for crossing double frame borders.
);
......
......@@ -82,7 +82,7 @@ public:
size_t GetCellCount() const;
/** Returns the cell index from the cell address (nCol,nRow). */
size_t GetCellIndex( size_t nCol, size_t nRow, bool bRTL = false) const;
size_t GetCellIndex( size_t nCol, size_t nRow, bool bRTL) const;
// cell border styles -----------------------------------------------------
......@@ -334,7 +334,7 @@ public:
void DrawRange( drawinglayer::processor2d::BaseProcessor2D* rDev,
size_t nFirstCol, size_t nFirstRow,
size_t nLastCol, size_t nLastRow,
const Color* pForceColor = nullptr ) const;
const Color* pForceColor ) const;
/** Draws the part of the specified range, that is inside the clipping range.
@param pForceColor
......
......@@ -145,7 +145,7 @@ public:
/** Returns true, if any of the enabled frame borders is selected. */
bool IsAnyBorderSelected() const;
/** Selects or deselects all frame borders. */
void SelectAllBorders( bool bSelect = true );
void SelectAllBorders( bool bSelect );
/** Deselects all frame borders. */
inline void DeselectAllBorders() { SelectAllBorders( false ); }
......
......@@ -62,19 +62,19 @@ public:
static bool InsertURL( sal_uInt32 nThemeId, const OUString& rURL );
static bool GetGraphicObj( const OUString& rThemeName, sal_uInt32 nPos,
Graphic* pGraphic = nullptr, BitmapEx* pThumb = nullptr,
Graphic* pGraphic, BitmapEx* pThumb = nullptr,
bool bProgess = false );
static bool GetGraphicObj( sal_uInt32 nThemeId, sal_uInt32 nPos,
Graphic* pGraphic = nullptr, BitmapEx* pThumb = nullptr,
Graphic* pGraphic, BitmapEx* pThumb = nullptr,
bool bProgess = false );
static sal_uInt32 GetSdrObjCount( const OUString& rThemeName );
static sal_uInt32 GetSdrObjCount( sal_uInt32 nThemeId );
static bool GetSdrObj( const OUString& rThemeName, sal_uInt32 nSdrModelPos,
SdrModel* pModel = nullptr, BitmapEx* pThumb = nullptr );
SdrModel* pModel, BitmapEx* pThumb = nullptr );
static bool GetSdrObj( sal_uInt32 nThemeId, sal_uInt32 nSdrModelPos,
SdrModel* pModel = nullptr, BitmapEx* pThumb = nullptr );
SdrModel* pModel, BitmapEx* pThumb = nullptr );
static bool BeginLocking( const OUString& rThemeName );
static bool BeginLocking( sal_uInt32 nThemeId );
......
......@@ -132,7 +132,7 @@ public:
SAL_DLLPRIVATE const OUString& GetRealName() const;
// used for building gallery themes during compilation:
SAL_DLLPRIVATE void SetDestDir(const OUString& rDestDir, bool bRelative = true)
SAL_DLLPRIVATE void SetDestDir(const OUString& rDestDir, bool bRelative)
{ m_aDestDir = rDestDir; m_bDestDirRelative = bRelative; }
SAL_DLLPRIVATE const INetURLObject& GetThmURL() const;
......@@ -185,17 +185,17 @@ public:
SAL_DLLPRIVATE bool GetThumb( sal_uIntPtr nPos, BitmapEx& rBmp, bool bProgress = false );
bool GetGraphic( sal_uIntPtr nPos, Graphic& rGraphic, bool bProgress = false );
bool InsertGraphic( const Graphic& rGraphic, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
bool InsertGraphic( const Graphic& rGraphic, sal_uIntPtr nInsertPos );
bool GetModel( sal_uIntPtr nPos, SdrModel& rModel, bool bProgress = false );
bool InsertModel( const FmFormModel& rModel, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
bool InsertModel( const FmFormModel& rModel, sal_uIntPtr nInsertPos );
SAL_DLLPRIVATE bool GetModelStream( sal_uIntPtr nPos, tools::SvRef<SotStorageStream>& rModelStreamRef );
SAL_DLLPRIVATE bool InsertModelStream( const tools::SvRef<SotStorageStream>& rModelStream, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
SAL_DLLPRIVATE bool InsertModelStream( const tools::SvRef<SotStorageStream>& rModelStream, sal_uIntPtr nInsertPos );
SAL_DLLPRIVATE bool GetURL( sal_uIntPtr nPos, INetURLObject& rURL );
bool InsertURL( const INetURLObject& rURL, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
SAL_DLLPRIVATE bool InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, sal_uIntPtr nInsertPos = CONTAINER_APPEND );
SAL_DLLPRIVATE bool InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, sal_uIntPtr nInsertPos );
SAL_DLLPRIVATE bool InsertTransferable( const css::uno::Reference< css::datatransfer::XTransferable >& rxTransferable, sal_uIntPtr nInsertPos );
......
......@@ -51,7 +51,7 @@ class SVX_DLLPUBLIC SvxIMapDlgChildWindow : public SfxChildWindow
SFX_DECL_CHILDWINDOW_WITHID( SvxIMapDlgChildWindow );
static void UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* pImageMap = nullptr,
static void UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* pImageMap,
const TargetList* pTargetList = nullptr, void* pEditingObj = nullptr );
};
......@@ -152,7 +152,7 @@ public:
void SetTargetList( const TargetList& rTargetList );
void UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap = nullptr,
void UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap,
const TargetList* pTargetList = nullptr, void* pEditingObj = nullptr );
virtual void KeyInput( const KeyEvent& rKEvt ) override;
......
......@@ -209,9 +209,9 @@ class SVX_DLLPUBLIC NBOTypeMgrBase
}
virtual ~NBOTypeMgrBase() {}
virtual void Init()=0;
virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0)=0;
virtual void RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF)=0;
virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF, bool isDefault=false,bool isResetSize=false)=0;
virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) = 0;
virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) = 0;
virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) = 0;
virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false)=0;
virtual bool IsCustomized(sal_uInt16 nIndex)=0;
static sal_uInt16 IsSingleLevel(sal_uInt16 nCurLevel);
......@@ -242,8 +242,8 @@ class SVX_DLLPUBLIC BulletsTypeMgr: public NBOTypeMgrBase
virtual ~BulletsTypeMgr() {}
virtual void Init() override;
virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) override;
virtual void RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF) override;
virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) override;
virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) override;
virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) override;
virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false) override;
virtual bool IsCustomized(sal_uInt16 nIndex) override;
static sal_Unicode GetBulChar(sal_uInt16 nIndex);
......@@ -264,8 +264,8 @@ class SVX_DLLPUBLIC GraphyicBulletsTypeMgr: public NBOTypeMgrBase
virtual ~GraphyicBulletsTypeMgr();
virtual void Init() override;
virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) override;
virtual void RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF) override;
virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) override;
virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) override;
virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) override;
virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false) override;
virtual bool IsCustomized(sal_uInt16 nIndex) override;
OUString GetGrfName(sal_uInt16 nIndex);
......@@ -285,8 +285,8 @@ class SVX_DLLPUBLIC MixBulletsTypeMgr: public NBOTypeMgrBase
virtual ~MixBulletsTypeMgr() {}
virtual void Init() override;
virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) override;
virtual void RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF) override;
virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) override;
virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) override;
virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) override;
virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false) override;
virtual bool IsCustomized(sal_uInt16 nIndex) override;
static MixBulletsTypeMgr& GetInstance();
......@@ -303,8 +303,8 @@ class SVX_DLLPUBLIC NumberingTypeMgr: public NBOTypeMgrBase
virtual ~NumberingTypeMgr();
virtual void Init() override;
virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) override;
virtual void RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF) override;
virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) override;
virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) override;
virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) override;
virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false) override;
virtual bool IsCustomized(sal_uInt16 nIndex) override;
static NumberingTypeMgr& GetInstance();
......@@ -321,8 +321,8 @@ class SVX_DLLPUBLIC OutlineTypeMgr: public NBOTypeMgrBase
virtual ~OutlineTypeMgr() {}
virtual void Init() override;
virtual sal_uInt16 GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLevel,sal_uInt16 nFromIndex=0) override;
virtual void RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF) override;
virtual void ApplyNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_uInt16 mLevel=(sal_uInt16)0xFFFF,bool isDefault=false,bool isResetSize=false) override;
virtual void RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel) override;
virtual void ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt16 mLevel, bool isDefault=false,bool isResetSize=false) override;
virtual OUString GetDescription(sal_uInt16 nIndex,bool isDefault=false) override;
virtual bool IsCustomized(sal_uInt16 nIndex) override;
static OutlineTypeMgr& GetInstance();
......
......@@ -81,7 +81,7 @@ public:
sal_uInt32 nFormatKey,
SvxNumberValueType eNumValType,
double nNumVal,
const OUString* pNumStr = nullptr );
const OUString* pNumStr );
void GetInitSettings( sal_uInt16& nCatLbPos,
......
......@@ -73,7 +73,7 @@ public:
void Enable( bool bEnable = true );
/** Shows or hides the dial control and all dependent windows. */
void Show( bool bShow = true );
void Show( bool bShow );
/** Hides the dial control and all dependent windows. */
inline void Hide() { Show( false ); }
......@@ -83,7 +83,7 @@ public:
TriState GetStackedState() const;
/** Enables/disables the "don't know" state of the "Stacked text" check box. */
void EnableStackedTriState( bool bEnable = true );
void EnableStackedTriState( bool bEnable );
private:
std::unique_ptr< OrientationHelper_Impl > mpImpl;
......
......@@ -42,7 +42,7 @@ protected:
public:
SvxRelativeField(vcl::Window* pParent, WinBits nBits, FieldUnit eUnit);
void EnableRelativeMode( sal_uInt16 nMin = 50, sal_uInt16 nMax = 150,
void EnableRelativeMode( sal_uInt16 nMin, sal_uInt16 nMax = 150,
sal_uInt16 nStep = 5 );
void SetRelative( bool bRelative );
bool IsRelative() const { return bRelative; }
......
......@@ -127,7 +127,7 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
void StartListening_Impl();
long GetCorrectedDragPos(bool bLeft = true, bool bRight = true );
void DrawLine_Impl(long &lTabPos, int, bool Horizontal = true);
void DrawLine_Impl(long &lTabPos, int, bool Horizontal);
sal_uInt16 GetObjectBordersOff(sal_uInt16 nIdx) const;
// page borders or surrounding frame
......@@ -224,7 +224,7 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
MoveLeft,
MoveRight
};
void UpdateParaContents_Impl(long lDiff, UpdateType = UpdateType::MoveAll);
void UpdateParaContents_Impl(long lDiff, UpdateType);
protected:
virtual void Command( const CommandEvent& rCEvt ) override;
......@@ -267,7 +267,7 @@ public:
void SetDefTabDist(long);
// set/get NullOffset in logic units
void SetNullOffsetLogic(long lOff = 0);
void SetNullOffsetLogic(long lOff);
void SetActive(bool bOn = true);
......@@ -277,7 +277,7 @@ public:
}
//#i24363# tab stops relative to indent
void SetTabsRelativeToIndent( bool bRel = true );
void SetTabsRelativeToIndent( bool bRel );
};
#endif
......
......@@ -118,15 +118,15 @@ namespace sdr
// stripe support ColA
const Color& getStripeColorA() const { return maStripeColorA; }
void setStripeColorA(Color aNew= Color(COL_BLACK));
void setStripeColorA(Color aNew);
// stripe support ColB
const Color& getStripeColorB() const { return maStripeColorB; }
void setStripeColorB(Color aNew = Color(COL_WHITE));
void setStripeColorB(Color aNew);
// stripe support StripeLengthPixel
sal_uInt32 getStripeLengthPixel() const { return mnStripeLengthPixel; }
void setStripeLengthPixel(sal_uInt32 nNew = 5L);
void setStripeLengthPixel(sal_uInt32 nNew);
// access to maDrawinglayerOpt
const SvtOptionsDrawinglayer& getDrawinglayerOpt() const { return maDrawinglayerOpt; }
......
......@@ -76,7 +76,7 @@ namespace sdr
// clear single item direct, do not do any notifies or things like that.
// Also supports complete deleteion of items when default parameter 0 is used.
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) override;
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override;
// set complete item set
virtual void SetObjectItemSet(const SfxItemSet& rSet) override;
......
......@@ -126,12 +126,12 @@ namespace sdr
// Clear a single item, iterate over hierarchies if necessary. Default
// Implementation falls back to ClearObjectItem().
virtual void ClearMergedItem(const sal_uInt16 nWhich = 0);
virtual void ClearMergedItem(const sal_uInt16 nWhich);
// Clear single item direct. Only uses AllowItemChange() and ItemChange(),
// but not PostItemChange() and ItemSetChanged() calls.
// Also supports complete deletion of items when default parameter 0 is used.
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) = 0;
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) = 0;
// Set a new StyleSheet. Registers as listener at the StyleSheet to get knowledge
// of StyleSheet changes.
......@@ -146,7 +146,7 @@ namespace sdr
// Move local items to a new ItemPool.
// Override this to do it for hierarchical objects like e.g. groups.
virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel = nullptr);
virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel);
// Set new model.
virtual void SetModel(SdrModel* pOldModel, SdrModel* pNewModel);
......
......@@ -134,7 +134,7 @@ private:
SVX_DLLPRIVATE void MergeRange( sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow );
SVX_DLLPRIVATE void EditCell( const CellPos& rPos, vcl::Window* pWindow, const css::awt::MouseEvent* pMouseEvent = nullptr, sal_uInt16 nAction = 0 );
SVX_DLLPRIVATE void EditCell( const CellPos& rPos, vcl::Window* pWindow, const css::awt::MouseEvent* pMouseEvent, sal_uInt16 nAction = 0 );
SVX_DLLPRIVATE void StopTextEdit();
SVX_DLLPRIVATE sal_uInt16 getKeyboardAction( const KeyEvent& rKEvt, vcl::Window* pWindow );
......
......@@ -148,7 +148,7 @@ public:
// Attributes of the object that is in the process of being created
/* new interface src537 */
bool GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr=false) const;
bool GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr) const;
bool SetAttributes(const SfxItemSet& rSet, bool bReplaceAll);
SfxStyleSheet* GetStyleSheet() const; // SfxStyleSheet* GetStyleSheet(bool& rOk) const;
......
......@@ -89,12 +89,12 @@ public:
// In case of return value 'false', the position could not be
// determined (e.g. point shift, multiple selection, shift of the
// mirror axis,...)
bool TakeDragObjAnchorPos(Point& rPos, bool bTopRight = false ) const;
bool TakeDragObjAnchorPos(Point& rPos, bool bTopRight ) const;
// If pForcedMeth is passed, then pHdl, ... is not evaluated, but this Drag
// method is used. In this, the ownership of the instance passes
// to the View and is destroyed at the end of the dragging.
virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut=nullptr, SdrHdl* pHdl=nullptr, short nMinMov=-3, SdrDragMethod* pForcedMeth=nullptr);
virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl=nullptr, short nMinMov=-3, SdrDragMethod* pForcedMeth=nullptr);
void MovDragObj(const Point& rPnt);
bool EndDragObj(bool bCopy=false);
void BrkDragObj();
......
......@@ -83,7 +83,7 @@ public:
// Access to the default attributes.
E3dDefaultAttributes& Get3DDefaultAttributes() { return a3DDefaultAttr; }
virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut = nullptr, SdrHdl* pHdl = nullptr, short nMinMov = -3, SdrDragMethod* pForcedMeth = nullptr) override;
virtual bool BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl = nullptr, short nMinMov = -3, SdrDragMethod* pForcedMeth = nullptr) override;
virtual void CheckPossibilities() override;
// Get/Set Event
......
......@@ -70,7 +70,7 @@ namespace sdr
virtual SfxStyleSheet* GetStyleSheet() const override;
// Move properties to a new ItemPool.
virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel = nullptr) override;
virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel) override;
// Set new model.
virtual void SetModel(SdrModel* pOldModel, SdrModel* pNewModel) override;
......
......@@ -54,7 +54,7 @@ namespace sdr
// clear single item direct, do not do any notifies or things like that.
// Also supports complete deleteion of items when default parameter 0 is used.
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) override;
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override;
public:
......
......@@ -63,7 +63,7 @@ namespace sdr
virtual void SetMergedItem(const SfxPoolItem& rItem) override;
// Clear a single item, iterate over hierarchies if necessary.
virtual void ClearMergedItem(const sal_uInt16 nWhich = 0) override;
virtual void ClearMergedItem(const sal_uInt16 nWhich) override;
// set a new StyleSheet and broadcast
virtual void SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr) override;
......@@ -72,7 +72,7 @@ namespace sdr
virtual SfxStyleSheet* GetStyleSheet() const override;
// Move properties to a new ItemPool. Default implementation does nothing.
virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel = nullptr) override;
virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel) override;
// Special for scene:
void SetSceneItemsFromCamera();
......
......@@ -75,7 +75,7 @@ namespace sdr
// clear single item direct, do not do any notifies or things like that.
// Also supports complete deleteion of items when default parameter 0 is used.
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) override;
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override;
// set complete item set
virtual void SetObjectItemSet(const SfxItemSet& rSet) override;
......
......@@ -82,13 +82,13 @@ namespace sdr
// clear single item direct, do not do any notifies or things like that.
// Also supports complete deleteion of items when default parameter 0 is used.
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) override;
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override;
// Set a single item, iterate over hierarchies if necessary.
virtual void SetMergedItem(const SfxPoolItem& rItem) override;
// Clear a single item, iterate over hierarchies if necessary.
virtual void ClearMergedItem(const sal_uInt16 nWhich = 0) override;
virtual void ClearMergedItem(const sal_uInt16 nWhich) override;
// set complete item set
virtual void SetObjectItemSet(const SfxItemSet& rSet) override;
......@@ -104,7 +104,7 @@ namespace sdr
virtual void ForceDefaultAttributes() override;
// Move properties to a new ItemPool.
virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel = nullptr) override;
virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel) override;
// force all attributes which come from styles to hard attributes
// to be able to live without the style.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment