diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/qa/cppunit/test_starmath.cxx | 2 | ||||
-rw-r--r-- | starmath/source/accessibility.cxx | 2 | ||||
-rw-r--r-- | starmath/source/document.cxx | 8 | ||||
-rw-r--r-- | starmath/source/edit.cxx | 6 | ||||
-rw-r--r-- | starmath/source/view.cxx | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx index 7e344529c8ae..27e64d7fb3e5 100644 --- a/starmath/qa/cppunit/test_starmath.cxx +++ b/starmath/qa/cppunit/test_starmath.cxx @@ -78,7 +78,7 @@ void Test::setUp() SfxModelFlags::EMBEDDED_OBJECT | SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS | SfxModelFlags::DISABLE_DOCUMENT_RECOVERY); - m_xDocShRef->DoInitNew(0); + m_xDocShRef->DoInitNew(); SfxViewFrame *pViewFrame = SfxViewFrame::LoadHiddenDocument(*m_xDocShRef, 0); diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 1b859f34dbff..cd040781a2a4 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -968,7 +968,7 @@ OUString SmTextForwarder::GetText( const ESelection& rSel ) const EditEngine *pEditEngine = rEditAcc.GetEditEngine(); OUString aRet; if (pEditEngine) - aRet = pEditEngine->GetText( rSel, LINEEND_LF ); + aRet = pEditEngine->GetText( rSel ); return convertLineEnd(aRet, GetSystemLineEnd()); } diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index c240e7cdb962..a5c8ad1c0446 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -730,7 +730,7 @@ bool SmDocShell::ConvertFrom(SfxMedium &rMedium) Repaint(); } - FinishedLoading( SfxLoadedFlags::ALL ); + FinishedLoading(); return bSuccess; } @@ -780,7 +780,7 @@ bool SmDocShell::Load( SfxMedium& rMedium ) Repaint(); } - FinishedLoading( SfxLoadedFlags::ALL ); + FinishedLoading(); return bRet; } @@ -816,7 +816,7 @@ bool SmDocShell::ReplaceBadChars() if (pEditEngine) { - OUStringBuffer aBuf( pEditEngine->GetText( LINEEND_LF ) ); + OUStringBuffer aBuf( pEditEngine->GetText() ); for (sal_Int32 i = 0; i < aBuf.getLength(); ++i) { @@ -839,7 +839,7 @@ void SmDocShell::UpdateText() { if (pEditEngine && pEditEngine->IsModified()) { - OUString aEngTxt( pEditEngine->GetText( LINEEND_LF ) ); + OUString aEngTxt( pEditEngine->GetText() ); if (GetText() != aEngTxt) SetText( aEngTxt ); } diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index 59df24796109..788708a688e6 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -245,7 +245,7 @@ void SmEditWindow::DataChanged( const DataChangedEvent& ) // forces new settings to be used // unfortunately this resets the whole edit engine // 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->SetText( aTxt ); } @@ -657,7 +657,7 @@ OUString SmEditWindow::GetText() const EditEngine *pEditEngine = const_cast< SmEditWindow* >(this)->GetEditEngine(); OSL_ENSURE( pEditEngine, "EditEngine missing" ); if (pEditEngine) - aText = pEditEngine->GetText( LINEEND_LF ); + aText = pEditEngine->GetText(); return aText; } @@ -739,7 +739,7 @@ bool SmEditWindow::IsAllSelected() const sal_Int32 nParaCnt = pEditEngine->GetParagraphCount(); if (!(nParaCnt - 1)) { - sal_Int32 nTextLen = pEditEngine->GetText( LINEEND_LF ).getLength(); + sal_Int32 nTextLen = pEditEngine->GetText().getLength(); bRes = !eSelection.nStartPos && (eSelection.nEndPos == nTextLen - 1); } else diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 07cfe8c5727c..c8f03b56aaae 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -2046,7 +2046,7 @@ void SmViewShell::Activate( bool bIsMDIActivate ) //! synchronize the GraphicWindow display with the text in the //! EditEngine. SmDocShell *pDoc = GetDoc(); - pDoc->SetText( pDoc->GetEditEngine().GetText( LINEEND_LF ) ); + pDoc->SetText( pDoc->GetEditEngine().GetText() ); if ( bIsMDIActivate ) pEdit->GrabFocus(); |