summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx4
-rw-r--r--editeng/source/accessibility/AccessibleParaManager.cxx2
-rw-r--r--editeng/source/editeng/editdoc.cxx6
-rw-r--r--editeng/source/editeng/editdoc.hxx4
-rw-r--r--editeng/source/editeng/editeng.cxx12
-rw-r--r--editeng/source/editeng/editundo.cxx4
-rw-r--r--editeng/source/editeng/editview.cxx2
-rw-r--r--editeng/source/editeng/eertfpar.cxx2
-rw-r--r--editeng/source/editeng/eertfpar.hxx2
-rw-r--r--editeng/source/editeng/impedit.cxx8
-rw-r--r--editeng/source/editeng/impedit.hxx40
-rw-r--r--editeng/source/editeng/impedit2.cxx14
-rw-r--r--editeng/source/editeng/impedit3.cxx8
-rw-r--r--editeng/source/editeng/impedit4.cxx8
-rw-r--r--editeng/source/editeng/impedit5.cxx2
-rw-r--r--editeng/source/items/flditem.cxx6
-rw-r--r--editeng/source/misc/svxacorr.cxx6
-rw-r--r--include/editeng/AccessibleEditableTextPara.hxx2
-rw-r--r--include/editeng/editeng.hxx12
-rw-r--r--include/editeng/editview.hxx2
-rw-r--r--include/editeng/flditem.hxx6
-rw-r--r--include/editeng/svxacorr.hxx2
-rw-r--r--lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx6
-rw-r--r--lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx6
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.cxx6
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.hxx6
26 files changed, 89 insertions, 89 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index a23dfecff852..bedc5da073ce 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -543,7 +543,7 @@ namespace accessibility
return GetTextForwarder().HaveImageBullet( GetParagraphIndex() );
}
- tools::Rectangle AccessibleEditableTextPara::LogicToPixel( const tools::Rectangle& rRect, const MapMode& rMapMode, SvxViewForwarder& rForwarder )
+ tools::Rectangle AccessibleEditableTextPara::LogicToPixel( const tools::Rectangle& rRect, const MapMode& rMapMode, SvxViewForwarder const & rForwarder )
{
// convert to screen coordinates
return tools::Rectangle( rForwarder.LogicToPixel( rRect.TopLeft(), rMapMode ),
@@ -848,7 +848,7 @@ namespace accessibility
namespace
{
- OUString GetFieldTypeNameFromField(EFieldInfo &ree)
+ OUString GetFieldTypeNameFromField(EFieldInfo const &ree)
{
OUString strFldType;
sal_Int32 nFieldType = -1;
diff --git a/editeng/source/accessibility/AccessibleParaManager.cxx b/editeng/source/accessibility/AccessibleParaManager.cxx
index 6acfee2abd8c..db535ac7cd40 100644
--- a/editeng/source/accessibility/AccessibleParaManager.cxx
+++ b/editeng/source/accessibility/AccessibleParaManager.cxx
@@ -295,7 +295,7 @@ namespace accessibility
mnEventId( nEventId ),
mrNewValue( rNewValue ),
mrOldValue( rOldValue ) {}
- void operator()( ::accessibility::AccessibleEditableTextPara& rPara )
+ void operator()( ::accessibility::AccessibleEditableTextPara const & rPara )
{
rPara.FireEvent( mnEventId, mrNewValue, mrOldValue );
}
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 6d655349c392..c324c8c35708 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1166,14 +1166,14 @@ void EditPaM::SetNode(ContentNode* p)
pNode = p;
}
-bool EditPaM::DbgIsBuggy( EditDoc& rDoc )
+bool EditPaM::DbgIsBuggy( EditDoc const & rDoc )
{
return !pNode ||
rDoc.GetPos( pNode ) >= rDoc.Count() ||
nIndex > pNode->Len();
}
-bool EditSelection::DbgIsBuggy( EditDoc& rDoc )
+bool EditSelection::DbgIsBuggy( EditDoc const & rDoc )
{
return aStartPaM.DbgIsBuggy( rDoc ) || aEndPaM.DbgIsBuggy( rDoc );
}
@@ -2003,7 +2003,7 @@ public:
struct ClearSpellErrorsHandler
{
- void operator() (std::unique_ptr<ContentNode>& rNode)
+ void operator() (std::unique_ptr<ContentNode> const & rNode)
{
rNode->DestroyWrongList();
}
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx
index 5f490173a0e8..6a3a700df70e 100644
--- a/editeng/source/editeng/editdoc.hxx
+++ b/editeng/source/editeng/editdoc.hxx
@@ -323,7 +323,7 @@ public:
sal_Int32 GetIndex() const { return nIndex; }
void SetIndex( sal_Int32 n ) { nIndex = n; }
- bool DbgIsBuggy( EditDoc& rDoc );
+ bool DbgIsBuggy( EditDoc const & rDoc );
EditPaM& operator = ( const EditPaM& rPaM );
friend bool operator == ( const EditPaM& r1, const EditPaM& r2 );
@@ -702,7 +702,7 @@ public:
bool HasRange() const { return aStartPaM != aEndPaM; }
bool IsInvalid() const { return !aStartPaM || !aEndPaM; }
- bool DbgIsBuggy( EditDoc& rDoc );
+ bool DbgIsBuggy( EditDoc const & rDoc );
void Adjust( const EditDoc& rNodes );
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx
index 7828eb843b45..71cf7d36f347 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -652,12 +652,12 @@ bool EditEngine::IsIdleFormatterActive() const
return pImpEditEngine->aIdleFormatter.IsActive();
}
-ParaPortion* EditEngine::FindParaPortion(ContentNode* pNode)
+ParaPortion* EditEngine::FindParaPortion(ContentNode const * pNode)
{
return pImpEditEngine->FindParaPortion(pNode);
}
-const ParaPortion* EditEngine::FindParaPortion(ContentNode* pNode) const
+const ParaPortion* EditEngine::FindParaPortion(ContentNode const * pNode) const
{
return pImpEditEngine->FindParaPortion(pNode);
}
@@ -2160,7 +2160,7 @@ Reference< XSpellChecker1 > EditEngine::GetSpeller()
return pImpEditEngine->GetSpeller();
}
-void EditEngine::SetHyphenator( Reference< XHyphenator > & xHyph )
+void EditEngine::SetHyphenator( Reference< XHyphenator > const & xHyph )
{
pImpEditEngine->SetHyphenator( xHyph );
}
@@ -2208,17 +2208,17 @@ void EditEngine::ClearSpellErrors()
pImpEditEngine->ClearSpellErrors();
}
-bool EditEngine::SpellSentence(EditView& rView, svx::SpellPortions& rToFill )
+bool EditEngine::SpellSentence(EditView const & rView, svx::SpellPortions& rToFill )
{
return pImpEditEngine->SpellSentence( rView, rToFill );
}
-void EditEngine::PutSpellingToSentenceStart( EditView& rEditView )
+void EditEngine::PutSpellingToSentenceStart( EditView const & rEditView )
{
pImpEditEngine->PutSpellingToSentenceStart( rEditView );
}
-void EditEngine::ApplyChangedSentence(EditView& rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck )
+void EditEngine::ApplyChangedSentence(EditView const & rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck )
{
pImpEditEngine->ApplyChangedSentence( rEditView, rNewPortions, bRecheck );
}
diff --git a/editeng/source/editeng/editundo.cxx b/editeng/source/editeng/editundo.cxx
index a3dfdbe9c445..ca074815d6d4 100644
--- a/editeng/source/editeng/editundo.cxx
+++ b/editeng/source/editeng/editundo.cxx
@@ -28,7 +28,7 @@
#include <editeng/editeng.hxx>
-static void lcl_DoSetSelection( EditView* pView, sal_uInt16 nPara )
+static void lcl_DoSetSelection( EditView const * pView, sal_uInt16 nPara )
{
EPaM aEPaM( nPara, 0 );
EditPaM aPaM( pView->GetImpEditEngine()->CreateEditPaM( aEPaM ) );
@@ -515,7 +515,7 @@ struct RemoveAttribsFromPool
SfxItemPool& mrPool;
public:
explicit RemoveAttribsFromPool(SfxItemPool& rPool) : mrPool(rPool) {}
- void operator() (std::unique_ptr<ContentAttribsInfo>& rInfo)
+ void operator() (std::unique_ptr<ContentAttribsInfo> const & rInfo)
{
rInfo->RemoveAllCharAttribsFromPool(mrPool);
}
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index 1695d6b07780..6ff7bd229ba3 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -810,7 +810,7 @@ bool EditView::IsWrongSpelledWordAtPos( const Point& rPosPixel, bool bMarkIfWron
return pImpEditView->IsWrongSpelledWord( aPaM , bMarkIfWrong );
}
-void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void>* pCallBack )
+void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void> const * pCallBack )
{
Point aPos ( pImpEditView->GetWindow()->PixelToLogic( rPosPixel ) );
aPos = pImpEditView->GetDocPos( aPos );
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx
index abac78f78d4e..b64cc7bf10ed 100644
--- a/editeng/source/editeng/eertfpar.cxx
+++ b/editeng/source/editeng/eertfpar.cxx
@@ -445,7 +445,7 @@ SvxRTFStyleType* EditRTFParser::FindStyleSheet( const OUString& rName )
return nullptr;
}
-SfxStyleSheet* EditRTFParser::CreateStyleSheet( SvxRTFStyleType* pRTFStyle )
+SfxStyleSheet* EditRTFParser::CreateStyleSheet( SvxRTFStyleType const * pRTFStyle )
{
// Check if a template exists, then it will not be changed!
SfxStyleSheet* pStyle = static_cast<SfxStyleSheet*>(mpEditEngine->GetStyleSheetPool()->Find( pRTFStyle->sName, SfxStyleFamily::All ));
diff --git a/editeng/source/editeng/eertfpar.hxx b/editeng/source/editeng/eertfpar.hxx
index f2e6b7e37f59..f2f4bc9909a5 100644
--- a/editeng/source/editeng/eertfpar.hxx
+++ b/editeng/source/editeng/eertfpar.hxx
@@ -50,7 +50,7 @@ protected:
virtual bool IsEndPara( EditNodeIdx* pNd, sal_Int32 nCnt ) const override;
virtual void CalcValue() override;
void CreateStyleSheets();
- SfxStyleSheet* CreateStyleSheet( SvxRTFStyleType* pRTFStyle );
+ SfxStyleSheet* CreateStyleSheet( SvxRTFStyleType const * pRTFStyle );
SvxRTFStyleType* FindStyleSheet( const OUString& rName );
void AddRTFDefaultValues( const EditPaM& rStart, const EditPaM& rEnd );
void ReadField();
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 7bfc830731e8..565e8003d0aa 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -50,7 +50,7 @@ using namespace ::com::sun::star::linguistic2;
#define SCRLRANGE 20 // Scroll 1/20 of the width/height, when in QueryDrop
-static inline void lcl_AllignToPixel( Point& rPoint, OutputDevice* pOutDev, short nDiffX, short nDiffY )
+static inline void lcl_AllignToPixel( Point& rPoint, OutputDevice const * pOutDev, short nDiffX, short nDiffY )
{
rPoint = pOutDev->LogicToPixel( rPoint );
@@ -155,7 +155,7 @@ void ImpEditView::SetEditSelection( const EditSelection& rEditSelection )
}
/// Translate absolute <-> relative twips: LOK wants absolute coordinates as output and gives absolute coordinates as input.
-void lcl_translateTwips(vcl::Window& rParent, vcl::Window& rChild)
+void lcl_translateTwips(vcl::Window const & rParent, vcl::Window& rChild)
{
// Don't translate if we already have a non-zero origin.
// This prevents multiple translate calls that negate
@@ -1456,7 +1456,7 @@ bool ImpEditView::IsBulletArea( const Point& rPos, sal_Int32* pPara )
return false;
}
-void ImpEditView::CutCopy( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard, bool bCut )
+void ImpEditView::CutCopy( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard, bool bCut )
{
if ( rxClipboard.is() && GetEditSelection().HasRange() )
{
@@ -1491,7 +1491,7 @@ void ImpEditView::CutCopy( css::uno::Reference< css::datatransfer::clipboard::XC
}
}
-void ImpEditView::Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard, bool bUseSpecial )
+void ImpEditView::Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard, bool bUseSpecial )
{
if ( !rxClipboard.is() )
return;
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index cd78e2a916ce..3c7c02e699ba 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -303,8 +303,8 @@ public:
bool MouseMove( const MouseEvent& rMouseEvent );
void Command( const CommandEvent& rCEvt );
- void CutCopy( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard, bool bCut );
- void Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard, bool bUseSpecial = false );
+ void CutCopy( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard, bool bCut );
+ void Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard, bool bUseSpecial = false );
void SetVisDocStartPos( const Point& rPos ) { aVisDocStartPos = rPos; }
@@ -521,7 +521,7 @@ private:
void CursorMoved( ContentNode* pPrevNode );
- void ParaAttribsChanged( ContentNode* pNode );
+ void ParaAttribsChanged( ContentNode const * pNode );
void TextModified();
void CalcHeight( ParaPortion* pPortion );
@@ -562,7 +562,7 @@ private:
void RecalcFormatterFontMetrics( FormatterFontMetric& rCurMetrics, SvxFont& rFont );
void CheckAutoPageSize();
- void ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, TextPortion* pPortion, sal_Int32 nPortionStart, long nRemainingWidth, bool bCanHyphenate );
+ void ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, TextPortion const * pPortion, sal_Int32 nPortionStart, long nRemainingWidth, bool bCanHyphenate );
void ImpAdjustBlocks( ParaPortion* pParaPortion, EditLine* pLine, long nRemainingSpace );
EditPaM ImpConnectParagraphs( ContentNode* pLeft, ContentNode* pRight, bool bBackward = false );
EditPaM ImpDeleteSelection(const EditSelection& rCurSel);
@@ -589,10 +589,10 @@ private:
void ShowParagraph( sal_Int32 nParagraph, bool bShow );
- EditPaM PageUp( const EditPaM& rPaM, EditView* pView);
- EditPaM PageDown( const EditPaM& rPaM, EditView* pView);
- EditPaM CursorUp( const EditPaM& rPaM, EditView* pEditView );
- EditPaM CursorDown( const EditPaM& rPaM, EditView* pEditView );
+ EditPaM PageUp( const EditPaM& rPaM, EditView const * pView);
+ EditPaM PageDown( const EditPaM& rPaM, EditView const * pView);
+ EditPaM CursorUp( const EditPaM& rPaM, EditView const * pEditView );
+ EditPaM CursorDown( const EditPaM& rPaM, EditView const * pEditView );
EditPaM CursorLeft( const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode = css::i18n::CharacterIteratorMode::SKIPCELL );
EditPaM CursorRight( const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode = css::i18n::CharacterIteratorMode::SKIPCELL );
EditPaM CursorStartOfLine( const EditPaM& rPaM );
@@ -607,8 +607,8 @@ private:
EditPaM EndOfWord( const EditPaM& rPaM );
EditSelection SelectWord( const EditSelection& rCurSelection, sal_Int16 nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES, bool bAcceptStartOfWord = true );
EditSelection SelectSentence( const EditSelection& rCurSel ) const;
- EditPaM CursorVisualLeftRight( EditView* pEditView, const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode, bool bToLeft );
- EditPaM CursorVisualStartEnd( EditView* pEditView, const EditPaM& rPaM, bool bStart );
+ EditPaM CursorVisualLeftRight( EditView const * pEditView, const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode, bool bToLeft );
+ EditPaM CursorVisualStartEnd( EditView const * pEditView, const EditPaM& rPaM, bool bStart );
void InitScriptTypes( sal_Int32 nPara );
@@ -648,8 +648,8 @@ private:
inline short GetYValue( short nYValue ) const;
inline sal_uInt16 GetYValue( sal_uInt16 nYValue ) const;
- ContentNode* GetPrevVisNode( ContentNode* pCurNode );
- ContentNode* GetNextVisNode( ContentNode* pCurNode );
+ ContentNode* GetPrevVisNode( ContentNode const * pCurNode );
+ ContentNode* GetNextVisNode( ContentNode const * pCurNode );
const ParaPortion* GetPrevVisPortion( const ParaPortion* pCurPortion ) const;
const ParaPortion* GetNextVisPortion( const ParaPortion* pCurPortion ) const;
@@ -676,7 +676,7 @@ private:
void CheckIdleFormatter();
inline const ParaPortion* FindParaPortion( const ContentNode* pNode ) const;
- inline ParaPortion* FindParaPortion( ContentNode* pNode );
+ inline ParaPortion* FindParaPortion( ContentNode const * pNode );
css::uno::Reference< css::datatransfer::XTransferable > CreateTransferable( const EditSelection& rSelection );
@@ -882,7 +882,7 @@ public:
SfxStyleSheet* GetStyleSheet( sal_Int32 nPara );
void UpdateParagraphsWithStyleSheet( SfxStyleSheet* pStyle );
- void RemoveStyleFromParagraphs( SfxStyleSheet* pStyle );
+ void RemoveStyleFromParagraphs( SfxStyleSheet const * pStyle );
OutputDevice* GetRefDevice() const { return pRefDev.get(); }
void SetRefDevice( OutputDevice* pRefDef );
@@ -911,7 +911,7 @@ public:
{ xSpeller = xSpl; }
const css::uno::Reference< css::linguistic2::XHyphenator >&
GetHyphenator() const { return xHyphenator; }
- void SetHyphenator( css::uno::Reference< css::linguistic2::XHyphenator > &xHyph )
+ void SetHyphenator( css::uno::Reference< css::linguistic2::XHyphenator > const &xHyph )
{ xHyphenator = xHyph; }
void GetAllMisspellRanges( std::vector<editeng::MisspellRanges>& rRanges ) const;
@@ -950,14 +950,14 @@ public:
css::uno::Reference< css::linguistic2::XSpellAlternatives >
ImpFindNextError(EditSelection& rSelection);
//spell and return a sentence
- bool SpellSentence(EditView& rView, svx::SpellPortions& rToFill );
+ bool SpellSentence(EditView const & rView, svx::SpellPortions& rToFill );
//put spelling back to start of current sentence - needed after switch of grammar support
- void PutSpellingToSentenceStart( EditView& rEditView );
+ void PutSpellingToSentenceStart( EditView const & rEditView );
//applies a changed sentence
- void ApplyChangedSentence(EditView& rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck );
+ void ApplyChangedSentence(EditView const & rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck );
//adds one or more portions of text to the SpellPortions depending on language changes
void AddPortionIterated(
- EditView& rEditView,
+ EditView const & rEditView,
const EditSelection &rSel,
const css::uno::Reference< css::linguistic2::XSpellAlternatives >& xAlt,
svx::SpellPortions& rToFill);
@@ -1134,7 +1134,7 @@ inline const ParaPortion* ImpEditEngine::FindParaPortion( const ContentNode* pNo
return GetParaPortions()[ nPos ];
}
-inline ParaPortion* ImpEditEngine::FindParaPortion( ContentNode* pNode )
+inline ParaPortion* ImpEditEngine::FindParaPortion( ContentNode const * pNode )
{
sal_Int32 nPos = aEditDoc.GetPos( pNode );
DBG_ASSERT( nPos < GetParaPortions().Count(), "Portionloser Node?" );
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index f866f808f74c..58c736dd4905 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -728,7 +728,7 @@ void ImpEditEngine::TextModified()
}
-void ImpEditEngine::ParaAttribsChanged( ContentNode* pNode )
+void ImpEditEngine::ParaAttribsChanged( ContentNode const * pNode )
{
assert(pNode && "ParaAttribsChanged: Which one?");
@@ -926,7 +926,7 @@ EditSelection ImpEditEngine::MoveCursor( const KeyEvent& rKeyEvent, EditView* pE
return pEditView->pImpEditView->GetEditSelection();
}
-EditPaM ImpEditEngine::CursorVisualStartEnd( EditView* pEditView, const EditPaM& rPaM, bool bStart )
+EditPaM ImpEditEngine::CursorVisualStartEnd( EditView const * pEditView, const EditPaM& rPaM, bool bStart )
{
EditPaM aPaM( rPaM );
@@ -983,7 +983,7 @@ EditPaM ImpEditEngine::CursorVisualStartEnd( EditView* pEditView, const EditPaM&
return aPaM;
}
-EditPaM ImpEditEngine::CursorVisualLeftRight( EditView* pEditView, const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode, bool bVisualToLeft )
+EditPaM ImpEditEngine::CursorVisualLeftRight( EditView const * pEditView, const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode, bool bVisualToLeft )
{
EditPaM aPaM( rPaM );
@@ -1216,7 +1216,7 @@ EditPaM ImpEditEngine::CursorRight( const EditPaM& rPaM, sal_uInt16 nCharacterIt
return aNewPaM;
}
-EditPaM ImpEditEngine::CursorUp( const EditPaM& rPaM, EditView* pView )
+EditPaM ImpEditEngine::CursorUp( const EditPaM& rPaM, EditView const * pView )
{
assert(pView && "No View - No Cursor Movement!");
@@ -1260,7 +1260,7 @@ EditPaM ImpEditEngine::CursorUp( const EditPaM& rPaM, EditView* pView )
return aNewPaM;
}
-EditPaM ImpEditEngine::CursorDown( const EditPaM& rPaM, EditView* pView )
+EditPaM ImpEditEngine::CursorDown( const EditPaM& rPaM, EditView const * pView )
{
OSL_ENSURE( pView, "No View - No Cursor Movement!" );
@@ -1386,7 +1386,7 @@ EditPaM ImpEditEngine::CursorEndOfDoc()
return aPaM;
}
-EditPaM ImpEditEngine::PageUp( const EditPaM& rPaM, EditView* pView )
+EditPaM ImpEditEngine::PageUp( const EditPaM& rPaM, EditView const * pView )
{
tools::Rectangle aRect = PaMtoEditCursor( rPaM );
Point aTopLeft = aRect.TopLeft();
@@ -1399,7 +1399,7 @@ EditPaM ImpEditEngine::PageUp( const EditPaM& rPaM, EditView* pView )
return GetPaM( aTopLeft );
}
-EditPaM ImpEditEngine::PageDown( const EditPaM& rPaM, EditView* pView )
+EditPaM ImpEditEngine::PageDown( const EditPaM& rPaM, EditView const * pView )
{
tools::Rectangle aRect = PaMtoEditCursor( rPaM );
Point aBottomRight = aRect.BottomRight();
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index b836e18627b3..372e0993723f 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -157,7 +157,7 @@ static void lcl_DrawRedLines( OutputDevice* pOutDev,
size_t nIndex,
size_t nMaxEnd,
const long* pDXArray,
- WrongList* pWrongs,
+ WrongList const * pWrongs,
short nOrientation,
const Point& rOrigin,
bool bVertical,
@@ -1774,7 +1774,7 @@ bool ImpEditEngine::FinishCreateLines( ParaPortion* pParaPortion )
return bRet;
}
-void ImpEditEngine::ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, TextPortion* pPortion, sal_Int32 nPortionStart, long nRemainingWidth, bool bCanHyphenate )
+void ImpEditEngine::ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, TextPortion const * pPortion, sal_Int32 nPortionStart, long nRemainingWidth, bool bCanHyphenate )
{
ContentNode* const pNode = pParaPortion->GetNode();
@@ -4028,7 +4028,7 @@ void ImpEditEngine::CallStatusHdl()
}
}
-ContentNode* ImpEditEngine::GetPrevVisNode( ContentNode* pCurNode )
+ContentNode* ImpEditEngine::GetPrevVisNode( ContentNode const * pCurNode )
{
const ParaPortion* pPortion = FindParaPortion( pCurNode );
DBG_ASSERT( pPortion, "GetPrevVisibleNode: No matching portion!" );
@@ -4038,7 +4038,7 @@ ContentNode* ImpEditEngine::GetPrevVisNode( ContentNode* pCurNode )
return nullptr;
}
-ContentNode* ImpEditEngine::GetNextVisNode( ContentNode* pCurNode )
+ContentNode* ImpEditEngine::GetNextVisNode( ContentNode const * pCurNode )
{
const ParaPortion* pPortion = FindParaPortion( pCurNode );
DBG_ASSERT( pPortion, "GetNextVisibleNode: No matching portion!" );
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 38b3d4e2dcc9..7e6d2c769952 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -1948,7 +1948,7 @@ Reference< XSpellAlternatives > ImpEditEngine::ImpFindNextError(EditSelection& r
return xSpellAlt;
}
-bool ImpEditEngine::SpellSentence(EditView& rEditView,
+bool ImpEditEngine::SpellSentence(EditView const & rEditView,
svx::SpellPortions& rToFill )
{
bool bRet = false;
@@ -2032,7 +2032,7 @@ void ImpEditEngine::AddPortion(
// Adds one or more portions of text to the SpellPortions depending on language changes
void ImpEditEngine::AddPortionIterated(
- EditView& rEditView,
+ EditView const & rEditView,
const EditSelection& rSel,
const Reference< XSpellAlternatives >& xAlt,
svx::SpellPortions& rToFill)
@@ -2099,7 +2099,7 @@ void ImpEditEngine::AddPortionIterated(
}
}
-void ImpEditEngine::ApplyChangedSentence(EditView& rEditView,
+void ImpEditEngine::ApplyChangedSentence(EditView const & rEditView,
const svx::SpellPortions& rNewPortions,
bool bRecheck )
{
@@ -2227,7 +2227,7 @@ void ImpEditEngine::ApplyChangedSentence(EditView& rEditView,
}
}
-void ImpEditEngine::PutSpellingToSentenceStart( EditView& rEditView )
+void ImpEditEngine::PutSpellingToSentenceStart( EditView const & rEditView )
{
if( pSpellInfo && !pSpellInfo->aLastSpellContentSelections.empty() )
{
diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx
index 702774511d86..5ec8e65e32d6 100644
--- a/editeng/source/editeng/impedit5.cxx
+++ b/editeng/source/editeng/impedit5.cxx
@@ -125,7 +125,7 @@ void ImpEditEngine::UpdateParagraphsWithStyleSheet( SfxStyleSheet* pStyle )
}
}
-void ImpEditEngine::RemoveStyleFromParagraphs( SfxStyleSheet* pStyle )
+void ImpEditEngine::RemoveStyleFromParagraphs( SfxStyleSheet const * pStyle )
{
for ( sal_Int32 nNode = 0; nNode < aEditDoc.Count(); nNode++ )
{
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index deff10eb19b6..50dc38219431 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -426,7 +426,7 @@ OUString SvxDateField::GetFormatted( SvNumberFormatter& rFormatter, LanguageType
return GetFormatted( aDate, eFormat, rFormatter, eLang );
}
-OUString SvxDateField::GetFormatted( Date& aDate, SvxDateFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLang )
+OUString SvxDateField::GetFormatted( Date const & aDate, SvxDateFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLang )
{
if ( eFormat == SVXDATEFORMAT_SYSTEM )
{
@@ -828,7 +828,7 @@ OUString SvxExtTimeField::GetFormatted( SvNumberFormatter& rFormatter, LanguageT
return GetFormatted( aTime, eFormat, rFormatter, eLang );
}
-OUString SvxExtTimeField::GetFormatted( tools::Time& aTime, SvxTimeFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLang )
+OUString SvxExtTimeField::GetFormatted( tools::Time const & aTime, SvxTimeFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLang )
{
switch( eFormat )
{
@@ -1223,7 +1223,7 @@ void SvxDateTimeField::Save( SvPersistStream & /*rStm*/ )
SvxDateTimeField::SvxDateTimeField() {}
OUString SvxDateTimeField::GetFormatted(
- Date& rDate, tools::Time& rTime, int eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage )
+ Date const & rDate, tools::Time const & rTime, int eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage )
{
OUString aRet;
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 7a96b9741532..75528c98f1fa 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -129,7 +129,7 @@ static inline bool IsUpperLetter( sal_Int32 nCharType )
( css::i18n::KCharacterType::UPPER & nCharType);
}
-bool lcl_IsUnsupportedUnicodeChar( CharClass& rCC, const OUString& rTxt,
+bool lcl_IsUnsupportedUnicodeChar( CharClass const & rCC, const OUString& rTxt,
sal_Int32 nStt, sal_Int32 nEnd )
{
for( ; nStt < nEnd; ++nStt )
@@ -157,7 +157,7 @@ bool lcl_IsUnsupportedUnicodeChar( CharClass& rCC, const OUString& rTxt,
return false;
}
-static bool lcl_IsSymbolChar( CharClass& rCC, const OUString& rTxt,
+static bool lcl_IsSymbolChar( CharClass const & rCC, const OUString& rTxt,
sal_Int32 nStt, sal_Int32 nEnd )
{
for( ; nStt < nEnd; ++nStt )
@@ -1204,7 +1204,7 @@ void SvxAutoCorrect::InsertQuote( SvxAutoCorrDoc& rDoc, sal_Int32 nInsPos,
rDoc.Replace( nInsPos, sChg );
}
-OUString SvxAutoCorrect::GetQuote( SvxAutoCorrDoc& rDoc, sal_Int32 nInsPos,
+OUString SvxAutoCorrect::GetQuote( SvxAutoCorrDoc const & rDoc, sal_Int32 nInsPos,
sal_Unicode cInsChar, bool bSttQuote )
{
LanguageType eLang = rDoc.GetLanguage( nInsPos );
diff --git a/include/editeng/AccessibleEditableTextPara.hxx b/include/editeng/AccessibleEditableTextPara.hxx
index bb4ce4f17cad..142634783b2f 100644
--- a/include/editeng/AccessibleEditableTextPara.hxx
+++ b/include/editeng/AccessibleEditableTextPara.hxx
@@ -234,7 +234,7 @@ namespace accessibility
/// Unsets the given state on the internal state set and fires STATE_CHANGE event. Don't hold locks when calling this!
void UnSetState( const sal_Int16 nStateId );
- static tools::Rectangle LogicToPixel( const tools::Rectangle& rRect, const MapMode& rMapMode, SvxViewForwarder& rForwarder );
+ static tools::Rectangle LogicToPixel( const tools::Rectangle& rRect, const MapMode& rMapMode, SvxViewForwarder const & rForwarder );
SvxEditSourceAdapter& GetEditSource() const;
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index 2e364af0f75f..5ecb5ddb1008 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -165,8 +165,8 @@ private:
EDITENG_DLLPRIVATE void CursorMoved(ContentNode* pPrevNode);
EDITENG_DLLPRIVATE void CheckIdleFormatter();
EDITENG_DLLPRIVATE bool IsIdleFormatterActive() const;
- EDITENG_DLLPRIVATE ParaPortion* FindParaPortion(ContentNode* pNode);
- EDITENG_DLLPRIVATE const ParaPortion* FindParaPortion(ContentNode* pNode) const;
+ EDITENG_DLLPRIVATE ParaPortion* FindParaPortion(ContentNode const * pNode);
+ EDITENG_DLLPRIVATE const ParaPortion* FindParaPortion(ContentNode const * pNode) const;
EDITENG_DLLPRIVATE const ParaPortion* GetPrevVisPortion(const ParaPortion* pCurPortion) const;
EDITENG_DLLPRIVATE css::uno::Reference<
@@ -421,7 +421,7 @@ public:
css::linguistic2::XSpellChecker1 >
GetSpeller();
void SetHyphenator( css::uno::Reference<
- css::linguistic2::XHyphenator >& xHyph );
+ css::linguistic2::XHyphenator > const & xHyph );
void GetAllMisspellRanges( std::vector<editeng::MisspellRanges>& rRanges ) const;
void SetAllMisspellRanges( const std::vector<editeng::MisspellRanges>& rRanges );
@@ -442,11 +442,11 @@ public:
bool HasText( const SvxSearchItem& rSearchItem );
//spell and return a sentence
- bool SpellSentence(EditView& rEditView, svx::SpellPortions& rToFill );
+ bool SpellSentence(EditView const & rEditView, svx::SpellPortions& rToFill );
// put spell position to start of current sentence
- void PutSpellingToSentenceStart( EditView& rEditView );
+ void PutSpellingToSentenceStart( EditView const & rEditView );
//applies a changed sentence
- void ApplyChangedSentence(EditView& rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck );
+ void ApplyChangedSentence(EditView const & rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck );
// for text conversion (see also HasSpellErrors)
bool HasConvertibleTextPortion( LanguageType nLang );
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index 62e5de2aad2b..bbf70718c5bc 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -230,7 +230,7 @@ public:
bool IsCursorAtWrongSpelledWord();
bool IsWrongSpelledWordAtPos( const Point& rPosPixel, bool bMarkIfWrong = false );
- void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void>* pCallBack );
+ void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void> const * pCallBack );
void InsertField( const SvxFieldItem& rFld );
const SvxFieldItem* GetFieldUnderMousePointer() const;
diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx
index 2ab51cd62b4c..66ef6fad2570 100644
--- a/include/editeng/flditem.hxx
+++ b/include/editeng/flditem.hxx
@@ -128,7 +128,7 @@ public:
// If eLanguage==LANGUAGE_DONTKNOW the language/country
// used in number formatter initialization is taken.
OUString GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLanguage ) const;
- static OUString GetFormatted( Date& rDate, SvxDateFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
+ static OUString GetFormatted( Date const & rDate, SvxDateFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
virtual SvxFieldData* Clone() const override;
virtual bool operator==( const SvxFieldData& ) const override;
@@ -287,7 +287,7 @@ public:
// If eLanguage==LANGUAGE_DONTKNOW the language/country
// used in number formatter initialization is taken.
OUString GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLanguage ) const;
- static OUString GetFormatted( tools::Time& rTime, SvxTimeFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
+ static OUString GetFormatted( tools::Time const & rTime, SvxTimeFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
virtual SvxFieldData* Clone() const override;
virtual bool operator==( const SvxFieldData& ) const override;
@@ -403,7 +403,7 @@ public:
SV_DECL_PERSIST1( SvxDateTimeField, css::text::textfield::Type::PRESENTATION_DATE_TIME )
SvxDateTimeField();
- static OUString GetFormatted( Date& rDate, tools::Time& rTime, int eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
+ static OUString GetFormatted( Date const & rDate, tools::Time const & rTime, int eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
virtual SvxFieldData* Clone() const override;
virtual bool operator==( const SvxFieldData& ) const override;
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx
index 1cc14c0214ae..f5d3ddf0652c 100644
--- a/include/editeng/svxacorr.hxx
+++ b/include/editeng/svxacorr.hxx
@@ -309,7 +309,7 @@ public:
void SetStartDoubleQuote( const sal_Unicode cStart ) { cStartDQuote = cStart; }
void SetEndDoubleQuote( const sal_Unicode cEnd ) { cEndDQuote = cEnd; }
- OUString GetQuote( SvxAutoCorrDoc& rDoc, sal_Int32 nInsPos,
+ OUString GetQuote( SvxAutoCorrDoc const & rDoc, sal_Int32 nInsPos,
sal_Unicode cInsChar, bool bSttQuote );
void InsertQuote( SvxAutoCorrDoc& rDoc, sal_Int32 nInsPos,
sal_Unicode cInsChar, bool bSttQuote, bool bIns );
diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
index 836722c5000e..45fbf3dc5dc0 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
@@ -719,21 +719,21 @@ Reference< XPossibleHyphens > SAL_CALL Hyphenator::createPossibleHyphens( const
return nullptr;
}
-OUString SAL_CALL Hyphenator::makeLowerCase(const OUString& aTerm, CharClass * pCC)
+OUString SAL_CALL Hyphenator::makeLowerCase(const OUString& aTerm, CharClass const * pCC)
{
if (pCC)
return pCC->lowercase(aTerm);
return aTerm;
}
-OUString SAL_CALL Hyphenator::makeUpperCase(const OUString& aTerm, CharClass * pCC)
+OUString SAL_CALL Hyphenator::makeUpperCase(const OUString& aTerm, CharClass const * pCC)
{
if (pCC)
return pCC->uppercase(aTerm);
return aTerm;
}
-OUString SAL_CALL Hyphenator::makeInitCap(const OUString& aTerm, CharClass * pCC)
+OUString SAL_CALL Hyphenator::makeInitCap(const OUString& aTerm, CharClass const * pCC)
{
sal_Int32 tlen = aTerm.getLength();
if (pCC && tlen)
diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx
index cb3d07d2a631..75406e898831 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx
@@ -119,9 +119,9 @@ public:
static Sequence< OUString > getSupportedServiceNames_Static() throw();
private:
- static OUString SAL_CALL makeLowerCase(const OUString&, CharClass *);
- static OUString SAL_CALL makeUpperCase(const OUString&, CharClass *);
- static OUString SAL_CALL makeInitCap(const OUString&, CharClass *);
+ static OUString SAL_CALL makeLowerCase(const OUString&, CharClass const *);
+ static OUString SAL_CALL makeUpperCase(const OUString&, CharClass const *);
+ static OUString SAL_CALL makeInitCap(const OUString&, CharClass const *);
};
inline OUString Hyphenator::getImplementationName_Static() throw()
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
index e271689287de..19906445ce0f 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
@@ -546,21 +546,21 @@ void SAL_CALL Thesaurus::initialize( const Sequence< Any >& rArguments )
}
}
-OUString SAL_CALL Thesaurus::makeLowerCase(const OUString& aTerm, CharClass * pCC)
+OUString SAL_CALL Thesaurus::makeLowerCase(const OUString& aTerm, CharClass const * pCC)
{
if (pCC)
return pCC->lowercase(aTerm);
return aTerm;
}
-OUString SAL_CALL Thesaurus::makeUpperCase(const OUString& aTerm, CharClass * pCC)
+OUString SAL_CALL Thesaurus::makeUpperCase(const OUString& aTerm, CharClass const * pCC)
{
if (pCC)
return pCC->uppercase(aTerm);
return aTerm;
}
-OUString SAL_CALL Thesaurus::makeInitCap(const OUString& aTerm, CharClass * pCC)
+OUString SAL_CALL Thesaurus::makeInitCap(const OUString& aTerm, CharClass const * pCC)
{
sal_Int32 tlen = aTerm.getLength();
if (pCC && tlen)
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx
index 2039ecc0aa09..17f1249c1b11 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx
@@ -120,9 +120,9 @@ public:
getSupportedServiceNames_Static() throw();
private:
- static OUString SAL_CALL makeLowerCase(const OUString&, CharClass *);
- static OUString SAL_CALL makeUpperCase(const OUString&, CharClass *);
- static OUString SAL_CALL makeInitCap(const OUString&, CharClass *);
+ static OUString SAL_CALL makeLowerCase(const OUString&, CharClass const *);
+ static OUString SAL_CALL makeUpperCase(const OUString&, CharClass const *);
+ static OUString SAL_CALL makeInitCap(const OUString&, CharClass const *);
};
inline OUString Thesaurus::getImplementationName_Static() throw()