summaryrefslogtreecommitdiff
path: root/sw/source/ui/uno/unotxvw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/uno/unotxvw.cxx')
-rw-r--r--sw/source/ui/uno/unotxvw.cxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx
index 98adb3a5f67f..f1f6dea9bdc1 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -945,7 +945,7 @@ void SwXTextViewCursor::collapseToStart(void) throw( uno::RuntimeException )
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
SwWrtShell& rSh = m_pView->GetWrtShell();
if(rSh.HasSelection())
@@ -968,7 +968,7 @@ void SwXTextViewCursor::collapseToEnd(void) throw( uno::RuntimeException )
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
SwWrtShell& rSh = m_pView->GetWrtShell();
if(rSh.HasSelection())
@@ -992,7 +992,7 @@ sal_Bool SwXTextViewCursor::isCollapsed(void) throw( uno::RuntimeException )
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
const SwWrtShell& rSh = m_pView->GetWrtShell();
bRet = !rSh.HasSelection();
@@ -1010,7 +1010,7 @@ sal_Bool SwXTextViewCursor::goLeft(sal_Int16 nCount, sal_Bool bExpand) throw( un
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
for( sal_uInt16 i = 0; i < nCount; i++ )
bRet = m_pView->GetWrtShell().Left( CRSR_SKIP_CHARS, bExpand, 1, sal_True );
@@ -1027,7 +1027,7 @@ sal_Bool SwXTextViewCursor::goRight(sal_Int16 nCount, sal_Bool bExpand) throw( u
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
for( sal_uInt16 i = 0; i < nCount; i++ )
bRet = m_pView->GetWrtShell().Right( CRSR_SKIP_CHARS, bExpand, 1, sal_True );
@@ -1047,7 +1047,7 @@ void SwXTextViewCursor::gotoRange(
if(m_pView && xRange.is())
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
SwUnoInternalPaM rDestPam(*m_pView->GetDocShell()->GetDoc());
if (!::sw::XTextRangeToSwPaM(rDestPam, xRange))
@@ -1186,7 +1186,7 @@ void SwXTextViewCursor::gotoStart(sal_Bool bExpand) throw( uno::RuntimeException
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
m_pView->GetWrtShell().SttDoc( bExpand );
}
@@ -1200,7 +1200,7 @@ void SwXTextViewCursor::gotoEnd(sal_Bool bExpand) throw( uno::RuntimeException )
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
m_pView->GetWrtShell().EndDoc( bExpand );
}
@@ -1358,7 +1358,7 @@ uno::Reference< text::XText > SwXTextViewCursor::getText(void) throw( uno::Runt
if(m_pView)
{
if (!IsTextSelection( sal_False ))
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
SwWrtShell& rSh = m_pView->GetWrtShell();
SwPaM* pShellCrsr = rSh.GetCrsr();
@@ -1377,7 +1377,7 @@ uno::Reference< text::XTextRange > SwXTextViewCursor::getStart(void) throw( uno
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
SwWrtShell& rSh = m_pView->GetWrtShell();
SwPaM* pShellCrsr = rSh.GetCrsr();
@@ -1396,7 +1396,7 @@ uno::Reference< text::XTextRange > SwXTextViewCursor::getEnd(void) throw( uno::
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
SwWrtShell& rSh = m_pView->GetWrtShell();
SwPaM* pShellCrsr = rSh.GetCrsr();
@@ -1415,7 +1415,7 @@ OUString SwXTextViewCursor::getString(void) throw( uno::RuntimeException )
if(m_pView)
{
if (!IsTextSelection( sal_False ))
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
ShellModes eSelMode = m_pView->GetShellMode();
switch(eSelMode)
@@ -1445,7 +1445,7 @@ void SwXTextViewCursor::setString(const OUString& aString) throw( uno::RuntimeEx
if(m_pView)
{
if (!IsTextSelection( sal_False ))
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
ShellModes eSelMode = m_pView->GetShellMode();
switch(eSelMode)
@@ -1603,7 +1603,7 @@ sal_Bool SwXTextViewCursor::goDown(sal_Int16 nCount, sal_Bool bExpand) throw( un
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
for( sal_uInt16 i = 0; i < nCount; i++ )
bRet = m_pView->GetWrtShell().Down( bExpand, 1, sal_True );
@@ -1620,7 +1620,7 @@ sal_Bool SwXTextViewCursor::goUp(sal_Int16 nCount, sal_Bool bExpand) throw( uno:
if(m_pView)
{
if (!IsTextSelection())
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
for( sal_uInt16 i = 0; i < nCount; i++ )
bRet = m_pView->GetWrtShell().Up( bExpand, 1, sal_True );
@@ -1637,7 +1637,7 @@ sal_Bool SwXTextViewCursor::isAtStartOfLine(void) throw( uno::RuntimeException )
if(m_pView)
{
if (!IsTextSelection( sal_False ))
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
bRet = m_pView->GetWrtShell().IsAtLeftMargin();
}
@@ -1653,7 +1653,7 @@ sal_Bool SwXTextViewCursor::isAtEndOfLine(void) throw( uno::RuntimeException )
if(m_pView)
{
if (!IsTextSelection( sal_False ))
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
bRet = m_pView->GetWrtShell().IsAtRightMargin(sal_True);
}
@@ -1668,7 +1668,7 @@ void SwXTextViewCursor::gotoEndOfLine(sal_Bool bExpand) throw( uno::RuntimeExcep
if(m_pView)
{
if (!IsTextSelection( sal_False ))
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
m_pView->GetWrtShell().RightMargin(bExpand, sal_True);
}
@@ -1682,7 +1682,7 @@ void SwXTextViewCursor::gotoStartOfLine(sal_Bool bExpand) throw( uno::RuntimeExc
if(m_pView)
{
if (!IsTextSelection( sal_False ))
- throw uno::RuntimeException( OUString( "no text selection" ), static_cast < cppu::OWeakObject * > ( this ) );
+ throw uno::RuntimeException("no text selection", static_cast < cppu::OWeakObject * > ( this ) );
m_pView->GetWrtShell().LeftMargin(bExpand, sal_True);
}