loplugin:defaultparams
Change-Id: Ib596b759e876a4a7d341e1b476bfec9f7a54069e
This commit is contained in:
@@ -78,7 +78,7 @@ void Test::setUp()
|
|||||||
SfxModelFlags::EMBEDDED_OBJECT |
|
SfxModelFlags::EMBEDDED_OBJECT |
|
||||||
SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS |
|
SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS |
|
||||||
SfxModelFlags::DISABLE_DOCUMENT_RECOVERY);
|
SfxModelFlags::DISABLE_DOCUMENT_RECOVERY);
|
||||||
m_xDocShRef->DoInitNew(0);
|
m_xDocShRef->DoInitNew();
|
||||||
|
|
||||||
SfxViewFrame *pViewFrame = SfxViewFrame::LoadHiddenDocument(*m_xDocShRef, 0);
|
SfxViewFrame *pViewFrame = SfxViewFrame::LoadHiddenDocument(*m_xDocShRef, 0);
|
||||||
|
|
||||||
|
@@ -968,7 +968,7 @@ OUString SmTextForwarder::GetText( const ESelection& rSel ) const
|
|||||||
EditEngine *pEditEngine = rEditAcc.GetEditEngine();
|
EditEngine *pEditEngine = rEditAcc.GetEditEngine();
|
||||||
OUString aRet;
|
OUString aRet;
|
||||||
if (pEditEngine)
|
if (pEditEngine)
|
||||||
aRet = pEditEngine->GetText( rSel, LINEEND_LF );
|
aRet = pEditEngine->GetText( rSel );
|
||||||
return convertLineEnd(aRet, GetSystemLineEnd());
|
return convertLineEnd(aRet, GetSystemLineEnd());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -730,7 +730,7 @@ bool SmDocShell::ConvertFrom(SfxMedium &rMedium)
|
|||||||
Repaint();
|
Repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
FinishedLoading( SfxLoadedFlags::ALL );
|
FinishedLoading();
|
||||||
return bSuccess;
|
return bSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -780,7 +780,7 @@ bool SmDocShell::Load( SfxMedium& rMedium )
|
|||||||
Repaint();
|
Repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
FinishedLoading( SfxLoadedFlags::ALL );
|
FinishedLoading();
|
||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -816,7 +816,7 @@ bool SmDocShell::ReplaceBadChars()
|
|||||||
|
|
||||||
if (pEditEngine)
|
if (pEditEngine)
|
||||||
{
|
{
|
||||||
OUStringBuffer aBuf( pEditEngine->GetText( LINEEND_LF ) );
|
OUStringBuffer aBuf( pEditEngine->GetText() );
|
||||||
|
|
||||||
for (sal_Int32 i = 0; i < aBuf.getLength(); ++i)
|
for (sal_Int32 i = 0; i < aBuf.getLength(); ++i)
|
||||||
{
|
{
|
||||||
@@ -839,7 +839,7 @@ void SmDocShell::UpdateText()
|
|||||||
{
|
{
|
||||||
if (pEditEngine && pEditEngine->IsModified())
|
if (pEditEngine && pEditEngine->IsModified())
|
||||||
{
|
{
|
||||||
OUString aEngTxt( pEditEngine->GetText( LINEEND_LF ) );
|
OUString aEngTxt( pEditEngine->GetText() );
|
||||||
if (GetText() != aEngTxt)
|
if (GetText() != aEngTxt)
|
||||||
SetText( aEngTxt );
|
SetText( aEngTxt );
|
||||||
}
|
}
|
||||||
|
@@ -245,7 +245,7 @@ void SmEditWindow::DataChanged( const DataChangedEvent& )
|
|||||||
// forces new settings to be used
|
// forces new settings to be used
|
||||||
// unfortunately this resets the whole edit engine
|
// unfortunately this resets the whole edit engine
|
||||||
// thus we need to save at least the text
|
// thus we need to save at least the text
|
||||||
OUString aTxt( pEditEngine->GetText( LINEEND_LF ) );
|
OUString aTxt( pEditEngine->GetText() );
|
||||||
pEditEngine->Clear(); //incorrect font size
|
pEditEngine->Clear(); //incorrect font size
|
||||||
pEditEngine->SetText( aTxt );
|
pEditEngine->SetText( aTxt );
|
||||||
}
|
}
|
||||||
@@ -657,7 +657,7 @@ OUString SmEditWindow::GetText() const
|
|||||||
EditEngine *pEditEngine = const_cast< SmEditWindow* >(this)->GetEditEngine();
|
EditEngine *pEditEngine = const_cast< SmEditWindow* >(this)->GetEditEngine();
|
||||||
OSL_ENSURE( pEditEngine, "EditEngine missing" );
|
OSL_ENSURE( pEditEngine, "EditEngine missing" );
|
||||||
if (pEditEngine)
|
if (pEditEngine)
|
||||||
aText = pEditEngine->GetText( LINEEND_LF );
|
aText = pEditEngine->GetText();
|
||||||
return aText;
|
return aText;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -739,7 +739,7 @@ bool SmEditWindow::IsAllSelected() const
|
|||||||
sal_Int32 nParaCnt = pEditEngine->GetParagraphCount();
|
sal_Int32 nParaCnt = pEditEngine->GetParagraphCount();
|
||||||
if (!(nParaCnt - 1))
|
if (!(nParaCnt - 1))
|
||||||
{
|
{
|
||||||
sal_Int32 nTextLen = pEditEngine->GetText( LINEEND_LF ).getLength();
|
sal_Int32 nTextLen = pEditEngine->GetText().getLength();
|
||||||
bRes = !eSelection.nStartPos && (eSelection.nEndPos == nTextLen - 1);
|
bRes = !eSelection.nStartPos && (eSelection.nEndPos == nTextLen - 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -2046,7 +2046,7 @@ void SmViewShell::Activate( bool bIsMDIActivate )
|
|||||||
//! synchronize the GraphicWindow display with the text in the
|
//! synchronize the GraphicWindow display with the text in the
|
||||||
//! EditEngine.
|
//! EditEngine.
|
||||||
SmDocShell *pDoc = GetDoc();
|
SmDocShell *pDoc = GetDoc();
|
||||||
pDoc->SetText( pDoc->GetEditEngine().GetText( LINEEND_LF ) );
|
pDoc->SetText( pDoc->GetEditEngine().GetText() );
|
||||||
|
|
||||||
if ( bIsMDIActivate )
|
if ( bIsMDIActivate )
|
||||||
pEdit->GrabFocus();
|
pEdit->GrabFocus();
|
||||||
|
Reference in New Issue
Block a user