summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-03 08:56:35 +0200
committerNoel Grandin <noel@peralex.com>2016-03-03 09:42:49 +0200
commitb76842f63b19e9855fbdfee7c201ff73672464b6 (patch)
tree4f536710463b12facc661a90ddbd5993b538bb6f /include/editeng
parent4dedf654d83ddc22c93d98fe6c7225b8e1e416bd (diff)
loplugin:unuseddefaultparams in editeng
Change-Id: I1dc0ba262c06bd69cf92aae20b344fe23f460f55
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/AccessibleParaManager.hxx3
-rw-r--r--include/editeng/borderline.hxx2
-rw-r--r--include/editeng/editeng.hxx12
-rw-r--r--include/editeng/editobj.hxx3
-rw-r--r--include/editeng/numitem.hxx2
-rw-r--r--include/editeng/outliner.hxx18
-rw-r--r--include/editeng/paperinf.hxx2
-rw-r--r--include/editeng/splwrap.hxx2
-rw-r--r--include/editeng/svxacorr.hxx3
-rw-r--r--include/editeng/svxrtf.hxx4
-rw-r--r--include/editeng/tstpitem.hxx3
11 files changed, 24 insertions, 30 deletions
diff --git a/include/editeng/AccessibleParaManager.hxx b/include/editeng/AccessibleParaManager.hxx
index 704af2e40767..cf527fdb8e9b 100644
--- a/include/editeng/AccessibleParaManager.hxx
+++ b/include/editeng/AccessibleParaManager.hxx
@@ -131,8 +131,7 @@ namespace accessibility
void FireEvent( sal_Int32 nPara,
const sal_Int16 nEventId,
- const css::uno::Any& rNewValue = css::uno::Any(),
- const css::uno::Any& rOldValue = css::uno::Any() ) const;
+ const css::uno::Any& rNewValue = css::uno::Any() ) const;
static bool IsReferencable(rtl::Reference<AccessibleEditableTextPara> const & aChild);
bool IsReferencable( sal_Int32 nChild ) const;
diff --git a/include/editeng/borderline.hxx b/include/editeng/borderline.hxx
index ef5ea81ab95e..c2b993c00867 100644
--- a/include/editeng/borderline.hxx
+++ b/include/editeng/borderline.hxx
@@ -114,7 +114,7 @@ namespace editeng {
void GuessLinesWidths( SvxBorderStyle nStyle, sal_uInt16 nOut, sal_uInt16 nIn = 0, sal_uInt16 nDist = 0 );
// TODO Hacky method to mirror lines in only a few cases
- void SetMirrorWidths( bool bMirror = true ) { m_bMirrorWidths = bMirror; }
+ void SetMirrorWidths() { m_bMirrorWidths = true; }
long GetWidth( ) const { return m_nWidth; }
sal_uInt16 GetOutWidth() const;
sal_uInt16 GetInWidth() const;
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index d99149d01a9a..1a0078c6a409 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -175,8 +175,7 @@ private:
css::uno::Reference<css::datatransfer::XTransferable >& rxDataObj,
const OUString& rBaseURL, const EditPaM& rPaM, bool bUseSpecial);
- EDITENG_DLLPRIVATE EditPaM EndOfWord(
- const EditPaM& rPaM, sal_Int16 nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES);
+ EDITENG_DLLPRIVATE EditPaM EndOfWord(const EditPaM& rPaM);
EDITENG_DLLPRIVATE EditPaM GetPaM(const Point& aDocPos, bool bSmart = true);
@@ -271,7 +270,7 @@ public:
void SetMaxAutoPaperSize( const Size& rSz );
OUString GetText( LineEnd eEnd = LINEEND_LF ) const;
- OUString GetText( const ESelection& rSelection, const LineEnd eEnd = LINEEND_LF ) const;
+ OUString GetText( const ESelection& rSelection ) const;
sal_uInt32 GetTextLen() const;
sal_uInt32 GetTextHeight() const;
sal_uInt32 GetTextHeightNTP() const;
@@ -551,8 +550,7 @@ public:
EditPaM InsertField(const EditSelection& rEditSelection, const SvxFieldItem& rFld);
EditPaM InsertText(const EditSelection& aCurEditSelection, const OUString& rStr);
EditSelection InsertText(const EditTextObject& rTextObject, const EditSelection& rSel);
- EditPaM InsertParaBreak(
- const EditSelection& rEditSelection, bool bKeepEndingAttribs = true);
+ EditPaM InsertParaBreak(const EditSelection& rEditSelection);
EditPaM InsertLineBreak(const EditSelection& rEditSelection);
EditPaM CursorLeft(
@@ -561,7 +559,7 @@ public:
const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode = css::i18n::CharacterIteratorMode::SKIPCELL);
void SeekCursor(
- ContentNode* pNode, sal_Int32 nPos, SvxFont& rFont, OutputDevice* pOut = nullptr, sal_uInt16 nIgnoreWhich = 0);
+ ContentNode* pNode, sal_Int32 nPos, SvxFont& rFont, OutputDevice* pOut = nullptr);
EditPaM DeleteSelection(const EditSelection& rSel);
@@ -572,7 +570,7 @@ public:
void SetParaAttribsOnly(sal_Int32 nPara, const SfxItemSet& rSet);
void SetAttribs(const EditSelection& rSel, const SfxItemSet& rSet, sal_uInt8 nSpecial = 0);
- OUString GetSelected(const EditSelection& rSel, const LineEnd eParaSep = LINEEND_LF) const;
+ OUString GetSelected(const EditSelection& rSel) const;
EditPaM DeleteSelected(const EditSelection& rSel);
SvtScriptType GetScriptType(const EditSelection& rSel) const;
diff --git a/include/editeng/editobj.hxx b/include/editeng/editobj.hxx
index 4a3939c2af97..2206cc9ded85 100644
--- a/include/editeng/editobj.hxx
+++ b/include/editeng/editobj.hxx
@@ -100,8 +100,7 @@ public:
void Store( SvStream& rOStream ) const;
- static EditTextObject* Create(
- SvStream& rIStream, SfxItemPool* pGlobalTextObjectPool = nullptr );
+ static EditTextObject* Create( SvStream& rIStream );
sal_Int32 GetParagraphCount() const;
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx
index 46043d0c2aeb..31f7569cae4b 100644
--- a/include/editeng/numitem.hxx
+++ b/include/editeng/numitem.hxx
@@ -284,7 +284,7 @@ public:
SvxNumRuleFlags GetFeatureFlags() const {return nFeatureFlags;}
void SetFeatureFlag( SvxNumRuleFlags nFlag, bool bSet = true ) { if(bSet) nFeatureFlags |= nFlag; else nFeatureFlags &= ~nFlag; }
- OUString MakeNumString( const SvxNodeNum&, bool bInclStrings = true ) const;
+ OUString MakeNumString( const SvxNodeNum& ) const;
SvxNumRuleType GetNumRuleType() const { return eNumberingType; }
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index f95a292e3d59..8405387f1881 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -293,7 +293,7 @@ public:
Pointer GetPointer( const Point& rPosPixel );
void Command( const CommandEvent& rCEvt );
- void StartSpeller( bool bMultipleDoc = false );
+ void StartSpeller();
EESpellState StartThesaurus();
sal_Int32 StartSearchAndReplace( const SvxSearchItem& rSearchItem );
@@ -361,7 +361,7 @@ public:
*/
void EnableBullets();
- bool IsCursorAtWrongSpelledWord( bool bMarkIfWrong = false );
+ bool IsCursorAtWrongSpelledWord();
bool IsWrongSpelledWordAtPos( const Point& rPosPixel, bool bMarkIfWrong = false );
void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void>* pCallBack = nullptr );
@@ -634,13 +634,13 @@ class EDITENG_DLLPUBLIC Outliner : public SfxBroadcaster
void ImplCalcBulletText( sal_Int32 nPara, bool bRecalcLevel, bool bRecalcChildren );
OUString ImplGetBulletText( sal_Int32 nPara );
void ImplCheckNumBulletItem( sal_Int32 nPara );
- void ImplInitDepth( sal_Int32 nPara, sal_Int16 nDepth, bool bCreateUndo, bool bUndoAction = false );
- void ImplSetLevelDependendStyleSheet( sal_Int32 nPara, SfxStyleSheet* pLevelStyle = nullptr );
+ void ImplInitDepth( sal_Int32 nPara, sal_Int16 nDepth, bool bCreateUndo );
+ void ImplSetLevelDependendStyleSheet( sal_Int32 nPara );
void ImplBlockInsertionCallbacks( bool b );
void ImpFilterIndents( sal_Int32 nFirstPara, sal_Int32 nLastPara );
- bool ImpConvertEdtToOut( sal_Int32 nPara, EditView* pView = nullptr );
+ bool ImpConvertEdtToOut( sal_Int32 nPara );
void ImpTextPasted( sal_Int32 nStartPara, sal_Int32 nCount );
vcl::Font ImpCalcBulletFont( sal_Int32 nPara ) const;
@@ -717,7 +717,7 @@ public:
void SetBackgroundColor( const Color& rColor );
Color GetBackgroundColor() const;
- void SetMaxDepth( sal_Int16 nDepth, bool bCheckParas = false );
+ void SetMaxDepth( sal_Int16 nDepth );
sal_Int16 GetMaxDepth() const { return nMaxDepth; }
void SetUpdateMode( bool bUpdate );
@@ -798,7 +798,7 @@ public:
Link<EditStatus&, void> GetStatusEventHdl() const;
void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect );
- void Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation = 0 );
+ void Draw( OutputDevice* pOutDev, const Point& rStartPos );
const Size& GetPaperSize() const;
void SetPaperSize( const Size& rSize );
@@ -885,7 +885,7 @@ public:
sal_uLong GetLineCount( sal_Int32 nParagraph ) const;
sal_Int32 GetLineLen( sal_Int32 nParagraph, sal_Int32 nLine ) const;
- sal_uLong GetLineHeight( sal_Int32 nParagraph, sal_Int32 nLine = 0 );
+ sal_uLong GetLineHeight( sal_Int32 nParagraph );
sal_uLong Read( SvStream& rInput, const OUString& rBaseURL, sal_uInt16, SvKeyValueIterator* pHTTPHeaderAttrs = nullptr );
@@ -900,7 +900,7 @@ public:
void QuickInsertText( const OUString& rText, const ESelection& rSel );
void QuickDelete( const ESelection& rSel );
void RemoveCharAttribs( sal_Int32 nPara, sal_uInt16 nWhich = 0 );
- void QuickFormatDoc( bool bFull = false );
+ void QuickFormatDoc();
bool UpdateFields();
void RemoveFields( bool bKeepFieldText, std::function<bool ( const SvxFieldData* )> isFieldData = [] (const SvxFieldData* ){return true;} );
diff --git a/include/editeng/paperinf.hxx b/include/editeng/paperinf.hxx
index e3574764a54d..d135170582c7 100644
--- a/include/editeng/paperinf.hxx
+++ b/include/editeng/paperinf.hxx
@@ -40,7 +40,7 @@ public:
static Size GetPaperSize( Paper ePaper, MapUnit eUnit = MAP_TWIP );
static Size GetPaperSize( const Printer* pPrinter );
static Paper GetSvxPaper( const Size &rSize, MapUnit eUnit = MAP_TWIP, bool bSloppy = false );
- static long GetSloppyPaperDimension( long nSize, MapUnit eUnit = MAP_TWIP );
+ static long GetSloppyPaperDimension( long nSize );
static OUString GetName( Paper ePaper );
};
diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx
index e2c0af79afa1..77df49accf34 100644
--- a/include/editeng/splwrap.hxx
+++ b/include/editeng/splwrap.hxx
@@ -95,7 +95,7 @@ public:
inline bool IsStartDone(){ return bStartDone; }
inline bool IsEndDone(){ return bEndDone; }
inline bool IsHyphen(){ return bHyphen; } // Split instead of Spell check
- inline void SetHyphen( const bool bNew = true ){ bHyphen = bNew; }
+ inline void SetHyphen() { bHyphen = true; }
inline bool IsAllRight() { return bAllRight; }
protected:
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx
index b5c54a0a0f8b..15558a490be8 100644
--- a/include/editeng/svxacorr.hxx
+++ b/include/editeng/svxacorr.hxx
@@ -395,8 +395,7 @@ public:
sal_Int32 nSttPos, sal_Int32 nEndPos,
LanguageType eLang = LANGUAGE_SYSTEM );
bool FnChgWeightUnderl( SvxAutoCorrDoc&, const OUString&,
- sal_Int32 nSttPos, sal_Int32 nEndPos,
- LanguageType eLang = LANGUAGE_SYSTEM );
+ sal_Int32 nSttPos, sal_Int32 nEndPos );
bool FnCapitalStartSentence( SvxAutoCorrDoc&, const OUString&, bool bNormalPos,
sal_Int32 nSttPos, sal_Int32 nEndPos,
LanguageType eLang = LANGUAGE_SYSTEM);
diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx
index 30b1dfc0ff0e..ba597e0f31c1 100644
--- a/include/editeng/svxrtf.hxx
+++ b/include/editeng/svxrtf.hxx
@@ -224,7 +224,7 @@ class EDITENG_DLLPUBLIC SvxRTFParser : public SvRTFParser
void ClearStyleTbl();
void ClearAttrStack();
- SvxRTFItemStackType* _GetAttrSet(bool bCopyAttr = false); // Create new ItemStackType:s
+ SvxRTFItemStackType* _GetAttrSet(); // Create new ItemStackType:s
void _ClearStyleAttr( SvxRTFItemStackType& rStkType );
// Sets all the attributes that are different from the current
@@ -268,7 +268,7 @@ protected:
// Read Document-Info
css::util::DateTime GetDateTimeStamp( );
OUString& GetTextToEndGroup( OUString& rStr );
- void ReadInfo( const sal_Char* pChkForVerNo = nullptr );
+ void ReadInfo();
inline SfxItemSet& GetAttrSet();
// no text yet inserted? (SttPos from the top stack entry!)
diff --git a/include/editeng/tstpitem.hxx b/include/editeng/tstpitem.hxx
index 5a9667b04b51..14dc78a551fa 100644
--- a/include/editeng/tstpitem.hxx
+++ b/include/editeng/tstpitem.hxx
@@ -117,8 +117,7 @@ public:
// unprivatized:
sal_uInt16 Count() const { return maTabStops.size(); }
bool Insert( const SvxTabStop& rTab );
- void Insert( const SvxTabStopItem* pTabs, sal_uInt16 nStart = 0,
- sal_uInt16 nEnd = USHRT_MAX );
+ void Insert( const SvxTabStopItem* pTabs, sal_uInt16 nStart = 0 );
void Remove( const sal_uInt16 nPos, const sal_uInt16 nLen = 1 )
{ maTabStops.erase( maTabStops.begin() + nPos, maTabStops.begin() + nPos + nLen ); }