diff options
Diffstat (limited to 'include/svtools')
24 files changed, 80 insertions, 98 deletions
diff --git a/include/svtools/PlaceEditDialog.hxx b/include/svtools/PlaceEditDialog.hxx index 2c274c4b861f..b2f65b530f0a 100644 --- a/include/svtools/PlaceEditDialog.hxx +++ b/include/svtools/PlaceEditDialog.hxx @@ -76,7 +76,7 @@ public : OUString GetUser() { return m_pEDUsername->GetText(); }; bool IsRememberChecked() { return m_pCBPassword->IsChecked(); } - void ShowPasswordControl( bool bShow = true ) { m_bShowPassword = bShow; } + void ShowPasswordControl() { m_bShowPassword = true; } private: diff --git a/include/svtools/accessibletable.hxx b/include/svtools/accessibletable.hxx index 3615c82550c7..8dd059f9bd88 100644 --- a/include/svtools/accessibletable.hxx +++ b/include/svtools/accessibletable.hxx @@ -71,12 +71,10 @@ public: /** return the description of the specified object. @param eObjType The type to ask for - @param _nPosition - The position of a tablecell (index position), header bar column/row cell @return The description of the specified object. */ - virtual OUString GetAccessibleObjectDescription(AccessibleTableControlObjType eObjType, sal_Int32 _nPosition = -1) const= 0; + virtual OUString GetAccessibleObjectDescription(AccessibleTableControlObjType eObjType) const= 0; /** Fills the StateSet with all states (except DEFUNC and SHOWING, done by the accessible object), depending on the specified object type. */ @@ -86,7 +84,7 @@ public: // Window virtual Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const = 0; virtual void GrabFocus()= 0; - virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible( bool bCreate = true )= 0; + virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible()= 0; virtual vcl::Window* GetAccessibleParentWindow() const= 0; virtual vcl::Window* GetWindowInstance()= 0; virtual sal_Int32 GetAccessibleControlCount() const = 0; @@ -94,9 +92,9 @@ public: virtual long GetRowCount() const= 0; virtual long GetColumnCount() const= 0; virtual bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_Int32& _rnColPos, const Point& _rPoint )= 0; - virtual Rectangle calcHeaderRect( bool _bIsColumnBar, bool _bOnScreen = true ) = 0; + virtual Rectangle calcHeaderRect( bool _bIsColumnBar ) = 0; virtual Rectangle calcHeaderCellRect( bool _bColHeader, sal_Int32 _nPos ) = 0; - virtual Rectangle calcTableRect( bool _bOnScreen = true ) = 0; + virtual Rectangle calcTableRect() = 0; virtual Rectangle calcCellRect( sal_Int32 _nRowPos, sal_Int32 _nColPos ) = 0; virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex)= 0; virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint)= 0; diff --git a/include/svtools/accessibletableprovider.hxx b/include/svtools/accessibletableprovider.hxx index 6e460ec11c0b..5856890d4b94 100644 --- a/include/svtools/accessibletableprovider.hxx +++ b/include/svtools/accessibletableprovider.hxx @@ -116,7 +116,7 @@ public: // Window virtual Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const = 0; virtual void GrabFocus() = 0; - virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible( bool bCreate = true ) = 0; + virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible() = 0; virtual vcl::Window* GetAccessibleParentWindow() const = 0; virtual vcl::Window* GetWindowInstance() = 0; diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index f81fb46fe4eb..0dcc075855a5 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -285,7 +285,7 @@ private: private: SVT_DLLPRIVATE void ConstructImpl(BrowserMode nMode); SVT_DLLPRIVATE void ExpandRowSelection( const BrowserMouseEvent& rEvt ); - SVT_DLLPRIVATE void ToggleSelection( bool bForce = false ); + SVT_DLLPRIVATE void ToggleSelection(); SVT_DLLPRIVATE void UpdateScrollbars(); SVT_DLLPRIVATE void AutoSizeLastColumn(); @@ -460,7 +460,7 @@ public: void SetColumnTitle( sal_uInt16 nColumnId, const OUString &rTitle ); void SetColumnWidth( sal_uInt16 nColumnId, sal_uLong nWidth ); void SetColumnPos( sal_uInt16 nColumnId, sal_uInt16 nPos ); - void FreezeColumn( sal_uInt16 nColumnId, bool bFreeze = true ); + void FreezeColumn( sal_uInt16 nColumnId ); void RemoveColumn( sal_uInt16 nColumnId ); void RemoveColumns(); @@ -496,13 +496,13 @@ public: virtual void SelectRow( long nRow, bool _bSelect = true, bool bExpand = true ) override; void SelectColumnPos( sal_uInt16 nCol, bool _bSelect = true ) { SelectColumnPos( nCol, _bSelect, true); } - void SelectColumnId( sal_uInt16 nColId, bool _bSelect = true ) - { SelectColumnPos( GetColumnPos(nColId), _bSelect, true); } + void SelectColumnId( sal_uInt16 nColId ) + { SelectColumnPos( GetColumnPos(nColId), true, true); } long GetSelectRowCount() const; sal_uInt16 GetSelectColumnCount() const; virtual bool IsRowSelected( long nRow ) const override; bool IsColumnSelected( sal_uInt16 nColumnId ) const; - long FirstSelectedRow( bool bInverse = false ); + long FirstSelectedRow(); long LastSelectedRow(); long NextSelectedRow(); const MultiSelection* GetColumnSelection() const { return pColSel; } @@ -514,9 +514,8 @@ public: bool IsResizing() const { return bResizing; } // access to positions of fields, column and rows - vcl::Window& GetDataWindow() const { return *pDataWin; } - Rectangle GetRowRectPixel( long nRow, - bool bRelToBrowser = true ) const; + vcl::Window& GetDataWindow() const { return *pDataWin; } + Rectangle GetRowRectPixel( long nRow ) const; Rectangle GetFieldRectPixel( long nRow, sal_uInt16 nColId, bool bRelToBrowser = true) const; bool IsFieldVisible( long nRow, sal_uInt16 nColId, @@ -548,7 +547,7 @@ public: Note that this works only if there's a handle column, since only in this case, there *is* something for the user to click onto */ - void EnableInteractiveRowHeight( bool _bEnable = true ) { mbInteractiveRowHeight = _bEnable; } + void EnableInteractiveRowHeight() { mbInteractiveRowHeight = true; } bool IsInteractiveRowHeightEnabled( ) const { return mbInteractiveRowHeight; } /// access to selected methods, to be granted to the BrowserColumn @@ -776,7 +775,7 @@ public: virtual bool GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) override; virtual Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const override; virtual void GrabFocus() override; - virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible( bool bCreate = true ) override; + virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible() override; virtual vcl::Window* GetAccessibleParentWindow() const override; virtual vcl::Window* GetWindowInstance() override; diff --git a/include/svtools/calendar.hxx b/include/svtools/calendar.hxx index 265a5983ea80..bb51ec75399b 100644 --- a/include/svtools/calendar.hxx +++ b/include/svtools/calendar.hxx @@ -224,7 +224,7 @@ private: SVT_DLLPRIVATE void ImplFormat(); using Window::ImplHitTest; SVT_DLLPRIVATE sal_uInt16 ImplHitTest( const Point& rPos, Date& rDate ) const; - SVT_DLLPRIVATE void ImplDrawSpin(vcl::RenderContext& rRenderContext, bool bDrawPrev = true, bool bDrawNext = true); + SVT_DLLPRIVATE void ImplDrawSpin(vcl::RenderContext& rRenderContext, bool bDrawPrev = true); SVT_DLLPRIVATE void ImplDrawDate(vcl::RenderContext& rRenderContext, long nX, long nY, sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear, DayOfWeek eDayOfWeek, bool bBack = true, @@ -272,7 +272,7 @@ public: void SetNoSelection(); bool IsDateSelected( const Date& rDate ) const; Date GetFirstSelectedDate() const; - void EnableCallEverySelect( bool bEvery = true ) { mbAllSel = bEvery; } + void EnableCallEverySelect() { mbAllSel = true; } void SetCurDate( const Date& rNewDate ); void SetFirstDate( const Date& rNewFirstDate ); @@ -289,8 +289,7 @@ public: bool IsTravelSelect() const { return mbTravelSelect; } - Size CalcWindowSizePixel( long nCalcMonthPerLine = 1, - long nCalcLines = 1 ) const; + Size CalcWindowSizePixel( long nCalcMonthPerLine = 1 ) const; void SetSelectHdl( const Link<Calendar*,void>& rLink ) { maSelectHdl = rLink; } }; @@ -360,8 +359,8 @@ public: VclPtr<Calendar> CreateCalendar( vcl::Window* pParent ); Calendar* GetCalendar(); - void EnableToday( bool bToday = true ) { mbToday = bToday; } - void EnableNone( bool bNone = true ) { mbNone = bNone; } + void EnableToday() { mbToday = true; } + void EnableNone() { mbNone = true; } protected: virtual void StateChanged( StateChangedType nStateChange ) override; diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index f4b5dd5105c6..acb68242f449 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -175,10 +175,10 @@ public: sal_Int32 GetEntryPos( const Color& rColor ) const; Color GetEntryColor( sal_Int32 nPos ) const; - void SelectEntry( const OUString& rStr, bool bSelect = true ) - { ListBox::SelectEntry( rStr, bSelect ); } - void SelectEntry( const Color& rColor, bool bSelect = true ); - Color GetSelectEntryColor( sal_Int32 nSelIndex = 0 ) const; + void SelectEntry( const OUString& rStr ) + { ListBox::SelectEntry( rStr ); } + void SelectEntry( const Color& rColor ); + Color GetSelectEntryColor() const; bool IsEntrySelected(const OUString& rStr ) const { return ListBox::IsEntrySelected(rStr); @@ -198,16 +198,16 @@ private: ColorListBox& operator =( const ColorListBox& ) = delete; }; -inline void ColorListBox::SelectEntry( const Color& rColor, bool bSelect ) +inline void ColorListBox::SelectEntry( const Color& rColor ) { sal_Int32 nPos = GetEntryPos( rColor ); if ( nPos != LISTBOX_ENTRY_NOTFOUND ) - ListBox::SelectEntryPos( nPos, bSelect ); + ListBox::SelectEntryPos( nPos ); } -inline Color ColorListBox::GetSelectEntryColor( sal_Int32 nSelIndex ) const +inline Color ColorListBox::GetSelectEntryColor() const { - sal_Int32 nPos = GetSelectEntryPos( nSelIndex ); + sal_Int32 nPos = GetSelectEntryPos(); Color aColor; if ( nPos != LISTBOX_ENTRY_NOTFOUND ) aColor = GetEntryColor( nPos ); @@ -328,7 +328,7 @@ public: sal_uInt16 GetEntryStyle( sal_Int32 nPos ) const; void SelectEntry( sal_uInt16 nStyle = css::table::BorderLineStyle::SOLID, bool bSelect = true ); - sal_uInt16 GetSelectEntryStyle( sal_Int32 nSelIndex = 0 ) const; + sal_uInt16 GetSelectEntryStyle() const; inline void SetUnit( FieldUnit eNewUnit ) { eUnit = eNewUnit; } @@ -384,8 +384,8 @@ private: SVT_DLLPRIVATE void ImplDestroyFontList(); protected: - void LoadMRUEntries( const OUString& aFontMRUEntriesFile, sal_Unicode cSep = ';' ); - void SaveMRUEntries( const OUString& aFontMRUEntriesFile, sal_Unicode cSep = ';' ) const; + void LoadMRUEntries( const OUString& aFontMRUEntriesFile ); + void SaveMRUEntries( const OUString& aFontMRUEntriesFile ) const; public: FontNameBox( vcl::Window* pParent, WinBits nWinStyle = WB_SORT ); diff --git a/include/svtools/embedhlp.hxx b/include/svtools/embedhlp.hxx index 29ac2dcd011c..70277a9aea35 100644 --- a/include/svtools/embedhlp.hxx +++ b/include/svtools/embedhlp.hxx @@ -92,7 +92,7 @@ public: sal_Int64 GetViewAspect() const; void SetViewAspect( sal_Int64 nAspect ); - const Graphic* GetGraphic( OUString* pMediaType = nullptr ) const; + const Graphic* GetGraphic() const; // the original size of the object ( size of the icon for iconified object ) // no conversion is done if no target mode is provided diff --git a/include/svtools/fmtfield.hxx b/include/svtools/fmtfield.hxx index 1256e5b8de61..c6ff30c82eba 100644 --- a/include/svtools/fmtfield.hxx +++ b/include/svtools/fmtfield.hxx @@ -222,7 +222,7 @@ public: InputLine format. That's also what you get in Calc when you edit a cell using F2 */ - void UseInputStringForFormatting( bool bUseInputStr = true ); + void UseInputStringForFormatting(); bool IsUsingInputStringForFormatting() const { return m_bUseInputStringForFormatting;} protected: diff --git a/include/svtools/htmlout.hxx b/include/svtools/htmlout.hxx index 50d2c8b8cf06..1547550b5bb8 100644 --- a/include/svtools/htmlout.hxx +++ b/include/svtools/htmlout.hxx @@ -66,8 +66,7 @@ struct HTMLOutFuncs SVT_DLLPUBLIC static SvStream& Out_String( SvStream&, const OUString&, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, OUString *pNonConvertableChars = nullptr ); - SVT_DLLPUBLIC static SvStream& Out_Hex( SvStream&, sal_uLong nHex, sal_uInt8 nLen, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252 ); + SVT_DLLPUBLIC static SvStream& Out_Hex( SvStream&, sal_uLong nHex, sal_uInt8 nLen ); SVT_DLLPUBLIC static SvStream& Out_Color( SvStream&, const Color&, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252 ); SVT_DLLPUBLIC static SvStream& Out_ImageMap( SvStream&, const OUString&, const ImageMap&, const OUString&, diff --git a/include/svtools/imagemgr.hxx b/include/svtools/imagemgr.hxx index 2df64635f8dc..2b44953b1afb 100644 --- a/include/svtools/imagemgr.hxx +++ b/include/svtools/imagemgr.hxx @@ -67,9 +67,9 @@ private: public: SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, bool bBig = false ); - SVT_DLLPUBLIC static Image GetFileImage( const INetURLObject& rURL, bool bBig = false ); + SVT_DLLPUBLIC static Image GetFileImage( const INetURLObject& rURL ); SVT_DLLPUBLIC static Image GetImageNoDefault( const INetURLObject& rURL, bool bBig = false ); - SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, bool bBig = false ); + SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo ); SVT_DLLPUBLIC static rtl::OUString GetDescription( const INetURLObject& rObject ); SVT_DLLPUBLIC static rtl::OUString GetFileDescription( const INetURLObject& rObject ); diff --git a/include/svtools/ivctrl.hxx b/include/svtools/ivctrl.hxx index 98c27ed38107..b1130e562da7 100644 --- a/include/svtools/ivctrl.hxx +++ b/include/svtools/ivctrl.hxx @@ -248,7 +248,7 @@ public: void SetStyle( WinBits nWinStyle ); WinBits GetStyle() const; - void SetChoiceWithCursor ( bool bDo = true ); + void SetChoiceWithCursor(); void SetFont( const vcl::Font& rFont ); void SetPointFont( const vcl::Font& rFont ); @@ -265,8 +265,7 @@ public: SvxIconChoiceCtrlEntry* InsertEntry( const OUString& rText, const Image& rImage, sal_uLong nPos = CONTAINER_APPEND, - const Point* pPos = nullptr, - SvxIconViewFlags nFlags = SvxIconViewFlags::NONE + const Point* pPos = nullptr ); /** creates automatic mnemonics for all icon texts in the control @@ -292,9 +291,8 @@ public: // Re-calculation of cached view-data and invalidatiopn of those in the view void InvalidateEntry( SvxIconChoiceCtrlEntry* pEntry ); - // bHit == false: Entry is selectd, if the BoundRect is selected - // == true : Bitmap or Text must be selected - SvxIconChoiceCtrlEntry* GetEntry( const Point& rPosPixel, bool bHit = false ) const; + // Entry is selectd, if the BoundRect is selected + SvxIconChoiceCtrlEntry* GetEntry( const Point& rPosPixel ) const; // sal_uLong is the position of the selected element in the list SvxIconChoiceCtrlEntry* GetSelectedEntry() const; diff --git a/include/svtools/parhtml.hxx b/include/svtools/parhtml.hxx index a32cd0cc399d..5a2c19605afa 100644 --- a/include/svtools/parhtml.hxx +++ b/include/svtools/parhtml.hxx @@ -174,15 +174,15 @@ public: bool IsReadStyle() const { return bReadStyle; } // start PRE-/LISTING or XMP mode or filter tags respectively - inline void StartPRE( bool bRestart=false ); + inline void StartPRE(); void FinishPRE() { bReadPRE = false; } int FilterPRE( int nToken ); - inline void StartListing( bool bRestart=false ); + inline void StartListing(); void FinishListing() { bReadListing = false; } int FilterListing( int nToken ); - inline void StartXMP( bool bRestart=false ); + inline void StartXMP(); void FinishXMP() { bReadXMP = false; } int FilterXMP( int nToken ); @@ -243,24 +243,24 @@ public: bool SetEncodingByHTTPHeader( SvKeyValueIterator *pHTTPHeader ); }; -inline void HTMLParser::StartPRE( bool bRestart ) +inline void HTMLParser::StartPRE() { bReadPRE = true; - bPre_IgnoreNewPara = !bRestart; + bPre_IgnoreNewPara = true; nPre_LinePos = 0UL; } -inline void HTMLParser::StartListing( bool bRestart ) +inline void HTMLParser::StartListing() { bReadListing = true; - bPre_IgnoreNewPara = !bRestart; + bPre_IgnoreNewPara = true; nPre_LinePos = 0UL; } -inline void HTMLParser::StartXMP( bool bRestart ) +inline void HTMLParser::StartXMP() { bReadXMP = true; - bPre_IgnoreNewPara = !bRestart; + bPre_IgnoreNewPara = true; nPre_LinePos = 0UL; } diff --git a/include/svtools/parrtf.hxx b/include/svtools/parrtf.hxx index 8fc852d3e5a3..f98dc7bfb8c2 100644 --- a/include/svtools/parrtf.hxx +++ b/include/svtools/parrtf.hxx @@ -47,7 +47,7 @@ private: protected: sal_Unicode GetHexValue(); - void ScanText( const sal_Unicode = 0 ); + void ScanText(); void SkipGroup(); // scanne das naechste Token, diff --git a/include/svtools/svmedit2.hxx b/include/svtools/svmedit2.hxx index 3069349cd62d..b89d54a93e5f 100644 --- a/include/svtools/svmedit2.hxx +++ b/include/svtools/svmedit2.hxx @@ -30,7 +30,7 @@ public: ExtMultiLineEdit( vcl::Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER ); // methods of TextView - void InsertText( const OUString& rNew, bool bSelect = false ); + void InsertText( const OUString& rNew ); void SetAutoScroll( bool bAutoScroll ); // methods of TextEngine diff --git a/include/svtools/svtabbx.hxx b/include/svtools/svtabbx.hxx index 1fddbe071da4..6d4f6e500093 100644 --- a/include/svtools/svtabbx.hxx +++ b/include/svtools/svtabbx.hxx @@ -236,7 +236,7 @@ public: // Window virtual Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const override; virtual void GrabFocus() override; - virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible( bool bCreate = true ) override; + virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible() override; virtual vcl::Window* GetAccessibleParentWindow() const override; /** Creates and returns the accessible object of the whole BrowseBox. */ diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx index 1918dd28bff4..a84cd2ecbeb7 100644 --- a/include/svtools/tabbar.hxx +++ b/include/svtools/tabbar.hxx @@ -431,7 +431,7 @@ public: void SetMaxPageWidth( long nMaxWidth ); - void EnableEditMode( bool bEnable = true ) { mbAutoEditMode = bEnable; } + void EnableEditMode() { mbAutoEditMode = true; } bool StartEditMode( sal_uInt16 nPageId ); void EndEditMode( bool bCancel = false ); void SetEditText( const OUString& rText ) { maEditText = rText; } diff --git a/include/svtools/templatefoldercache.hxx b/include/svtools/templatefoldercache.hxx index 886a731ca49f..842f19111b99 100644 --- a/include/svtools/templatefoldercache.hxx +++ b/include/svtools/templatefoldercache.hxx @@ -75,22 +75,13 @@ namespace svt ~TemplateFolderCache( ); /** determines whether or not the template configuration needs to be updated - @param _bForceCheck - set this to <TRUE/> if you want the object to rescan the template folders in every case. The default (<FALSE/>) - means that once the information has been retrieved in a first call, every second call returns the same result - as the first one, even if in the meantime the template folders changed. @return <TRUE/> if the template configuration needs to be updated */ - bool needsUpdate( bool _bForceCheck = false ); + bool needsUpdate(); - /** stores the current state of the template folders in the cache - @param _bForceRetrieval - if set to <TRUE/>, the current state of the template folders is retrieved again, even if it is already known. - Usually, you set this to <FALSE/>: After calling <method>needsUpdate</method>, the state is know and does not - need to be read again. - */ - void storeState( bool _bForceRetrieval = false ); + /** stores the current state of the template folders in the cache */ + void storeState(); }; diff --git a/include/svtools/toolbarmenu.hxx b/include/svtools/toolbarmenu.hxx index 255ac20a2fef..86eca3e9d155 100644 --- a/include/svtools/toolbarmenu.hxx +++ b/include/svtools/toolbarmenu.hxx @@ -64,8 +64,8 @@ public: virtual void LoseFocus() override; void appendEntry( int nEntryId, const OUString& rStr, MenuItemBits nItemBits = MenuItemBits::NONE ); - void appendEntry( int nEntryId, const OUString& rStr, const Image& rImage, MenuItemBits nItemBits = MenuItemBits::NONE ); - void appendEntry( int nEntryId, Control* pControl, MenuItemBits nItemBits = MenuItemBits::NONE ); + void appendEntry( int nEntryId, const OUString& rStr, const Image& rImage ); + void appendEntry( int nEntryId, Control* pControl ); void appendSeparator(); /** creates an empty ValueSet that is initialized and can be inserted with appendEntry. */ diff --git a/include/svtools/transfer.hxx b/include/svtools/transfer.hxx index 1ade1a986d11..333fa87d986f 100644 --- a/include/svtools/transfer.hxx +++ b/include/svtools/transfer.hxx @@ -370,8 +370,7 @@ public: static TransferableDataHelper CreateFromSystemClipboard( vcl::Window * pWindow ); static TransferableDataHelper CreateFromSelection( vcl::Window * pWindow ); static bool IsEqual( const css::datatransfer::DataFlavor& rInternalFlavor, - const css::datatransfer::DataFlavor& rRequestFlavor, - bool bCompareParameters = false ); + const css::datatransfer::DataFlavor& rRequestFlavor ); }; class SVT_DLLPUBLIC DragSourceHelper @@ -517,8 +516,7 @@ public: using TransferableHelper::StartDrag; void StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions, const Link<sal_Int8,void>& rCallbck, - sal_Int32 nDragPointer = DND_POINTER_NONE, - sal_Int32 nDragImage = DND_IMAGE_NONE ); + sal_Int32 nDragPointer = DND_POINTER_NONE ); }; #endif diff --git a/include/svtools/treelist.hxx b/include/svtools/treelist.hxx index b7b42e3dc983..fb21e9b209ba 100644 --- a/include/svtools/treelist.hxx +++ b/include/svtools/treelist.hxx @@ -272,11 +272,11 @@ public: SvTreeListEntry* NextVisible( SvTreeListEntry* pEntry, sal_uInt16* pDepth=nullptr ) const { return pModel->NextVisible(this,pEntry,pDepth); } - SvTreeListEntry* PrevVisible( SvTreeListEntry* pEntry, sal_uInt16* pDepth=nullptr ) const - { return pModel->PrevVisible(this,pEntry,pDepth); } + SvTreeListEntry* PrevVisible( SvTreeListEntry* pEntry ) const + { return pModel->PrevVisible(this,pEntry); } - SvTreeListEntry* LastVisible( sal_uInt16* pDepth=nullptr ) const - { return pModel->LastVisible(this,pDepth); } + SvTreeListEntry* LastVisible() const + { return pModel->LastVisible(this); } SvTreeListEntry* NextVisible( SvTreeListEntry* pEntry, sal_uInt16& rDelta ) const { return pModel->NextVisible(this,pEntry,rDelta); } diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index 8bcf3d800395..2a4a36c8664d 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -376,13 +376,13 @@ public: { return pModel ? pModel->First() : nullptr; } - SvTreeListEntry* Next( SvTreeListEntry* pEntry, sal_uInt16* pDepth = nullptr ) const + SvTreeListEntry* Next( SvTreeListEntry* pEntry ) const { - return pModel->Next(pEntry, pDepth); + return pModel->Next(pEntry); } - SvTreeListEntry* Prev( SvTreeListEntry* pEntry, sal_uInt16* pDepth = nullptr ) const + SvTreeListEntry* Prev( SvTreeListEntry* pEntry ) const { - return pModel->Prev(pEntry, pDepth); + return pModel->Prev(pEntry); } SvTreeListEntry* Last() const { @@ -440,7 +440,7 @@ public: Be aware that enabling mnemonics gets more expensive as you add to the list. */ - void EnableEntryMnemonics( bool _bEnable = true ); + void EnableEntryMnemonics(); bool IsEntryMnemonicsEnabled() const; /** Handles the given key event. @@ -678,8 +678,8 @@ public: Link<SvTreeListBox*,void> GetCheckButtonHdl() const { return aCheckButtonHdl; } virtual void CheckButtonHdl(); - void SetSublistOpenWithReturn( bool bMode = true ); // open/close sublist with return/enter - void SetSublistOpenWithLeftRight( bool bMode = true ); // open/close sublist with cursor left/right + void SetSublistOpenWithReturn(); // open/close sublist with return/enter + void SetSublistOpenWithLeftRight(); // open/close sublist with cursor left/right void EnableInplaceEditing( bool bEnable ); // Edits the Entry's first StringItem, 0 == Cursor @@ -711,7 +711,7 @@ public: void ScrollOutputArea( short nDeltaEntries ); short GetEntryHeight() const { return nEntryHeight; } - void SetEntryHeight( short nHeight, bool bAlways = false ); + void SetEntryHeight( short nHeight ); Size GetOutputSizePixel() const; short GetIndent() const { return nIndent; } void SetIndent( short nIndent ); diff --git a/include/svtools/unitconv.hxx b/include/svtools/unitconv.hxx index 33fb8dd06740..8d0e19deefd6 100644 --- a/include/svtools/unitconv.hxx +++ b/include/svtools/unitconv.hxx @@ -32,7 +32,7 @@ typedef long (*FUNC_CONVERT)(long); // Functions ------------------------------------------------------------- SVT_DLLPUBLIC void SetFieldUnit( MetricField& rCtrl, FieldUnit eUnit, bool bAll = false ); -SVT_DLLPUBLIC void SetFieldUnit( MetricBox& rCtrl, FieldUnit eUnit, bool bAll = false ); +SVT_DLLPUBLIC void SetFieldUnit( MetricBox& rCtrl, FieldUnit eUnit ); SVT_DLLPUBLIC long CalcToUnit( float nIn, SfxMapUnit eUnit ); SVT_DLLPUBLIC long CalcToPoint( long nIn, SfxMapUnit eUnit, sal_uInt16 nFactor ); diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index 93ab5891955f..3a0cd0b9459e 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -260,7 +260,7 @@ private: SVT_DLLPRIVATE void ImplDraw(vcl::RenderContext& rRenderContext); using Window::ImplScroll; SVT_DLLPRIVATE bool ImplScroll( const Point& rPos ); - SVT_DLLPRIVATE size_t ImplGetItem( const Point& rPoint, bool bMove = false ) const; + SVT_DLLPRIVATE size_t ImplGetItem( const Point& rPoint ) const; SVT_DLLPRIVATE ValueSetItem* ImplGetItem( size_t nPos ); SVT_DLLPRIVATE ValueSetItem* ImplGetFirstItem(); SVT_DLLPRIVATE sal_uInt16 ImplGetVisibleItemCount() const; @@ -307,13 +307,13 @@ public: virtual void UserDraw( const UserDrawEvent& rUDEvt ); /// Insert @rImage item. - void InsertItem(sal_uInt16 nItemId, const Image& rImage, size_t nPos = VALUESET_APPEND); + void InsertItem(sal_uInt16 nItemId, const Image& rImage); /// Insert @rImage item with @rStr as either a legend or tooltip depending on @bShowLegend. void InsertItem(sal_uInt16 nItemId, const Image& rImage, const OUString& rStr, size_t nPos = VALUESET_APPEND, bool bShowLegend = false); /// Insert an @rColor item with @rStr tooltip. void InsertItem(sal_uInt16 nItemId, const Color& rColor, - const OUString& rStr, size_t nPos = VALUESET_APPEND); + const OUString& rStr); /// Insert an User Drawn item. void InsertItem(sal_uInt16 nItemId, size_t nPos = VALUESET_APPEND); /// Insert an User Drawn item with @rStr tooltip. @@ -382,7 +382,7 @@ public: void SetExtraSpacing( sal_uInt16 nNewSpacing ); void Format(vcl::RenderContext& rRenderContext); - void SetFormat(bool bFormat = true); + void SetFormat(); void StartSelection(); void EndSelection(); @@ -390,7 +390,7 @@ public: Size CalcWindowSizePixel(const Size& rItemSize, sal_uInt16 nCalcCols = 0, sal_uInt16 nCalcLines = 0) const; - Size CalcItemSizePixel(const Size& rSize, bool bOut = true) const; + Size CalcItemSizePixel(const Size& rSize) const; long GetScrollWidth() const; void SetSelectHdl(const Link<ValueSet*,void>& rLink) diff --git a/include/svtools/wizardmachine.hxx b/include/svtools/wizardmachine.hxx index df848febc39c..4c8159dcb20d 100644 --- a/include/svtools/wizardmachine.hxx +++ b/include/svtools/wizardmachine.hxx @@ -261,7 +261,7 @@ namespace svt If this is <TRUE/>, then upon entering a new state, the "Next" button will automatically be enabled if and only if determineNextState does not return WZS_INVALID_STATE. */ - void enableAutomaticNextButtonState( bool _bEnable = true ); + void enableAutomaticNextButtonState(); bool isAutomaticNextButtonStateEnabled() const; /** removes a page from the history. Should be called when the page is being disabled @@ -282,7 +282,7 @@ namespace svt @see skipUntil @see skipBackwardUntil */ - void skip( sal_Int32 _nSteps = 1 ); + void skip(); /** skips one or more states, until a given state is reached |