convert GetSurroundingText family to OUString
Change-Id: Ifbb21fc26eedfde4afe2e3faf637346554f63d94
This commit is contained in:
@@ -242,7 +242,7 @@ void AnnotationTextWindow::LoseFocus()
|
||||
Window::LoseFocus();
|
||||
}
|
||||
|
||||
XubString AnnotationTextWindow::GetSurroundingText() const
|
||||
rtl::OUString AnnotationTextWindow::GetSurroundingText() const
|
||||
{
|
||||
if( mpOutlinerView )
|
||||
{
|
||||
@@ -252,12 +252,10 @@ XubString AnnotationTextWindow::GetSurroundingText() const
|
||||
else
|
||||
{
|
||||
ESelection aSelection = mpOutlinerView->GetEditView().GetSelection();
|
||||
XubString aStr = aEditEngine->GetText(aSelection.nStartPara);
|
||||
return aStr;
|
||||
return aEditEngine->GetText(aSelection.nStartPara);
|
||||
}
|
||||
}
|
||||
else
|
||||
return XubString::EmptyString();
|
||||
return rtl::OUString();
|
||||
}
|
||||
|
||||
Selection AnnotationTextWindow::GetSurroundingTextSelection() const
|
||||
|
@@ -78,7 +78,7 @@ public:
|
||||
|
||||
void SetOutlinerView( OutlinerView* pOutlinerView ) { mpOutlinerView = pOutlinerView; }
|
||||
|
||||
virtual XubString GetSurroundingText() const;
|
||||
virtual rtl::OUString GetSurroundingText() const;
|
||||
virtual Selection GetSurroundingTextSelection() const;
|
||||
|
||||
virtual void GetFocus();
|
||||
|
@@ -209,7 +209,7 @@ protected:
|
||||
::com::sun::star::accessibility::XAccessible>
|
||||
CreateAccessible (void);
|
||||
|
||||
XubString GetSurroundingText() const;
|
||||
rtl::OUString GetSurroundingText() const;
|
||||
Selection GetSurroundingTextSelection() const;
|
||||
};
|
||||
|
||||
|
@@ -1179,21 +1179,16 @@ void Window::DropScroll(const Point& rMousePos)
|
||||
}
|
||||
}
|
||||
|
||||
XubString Window::GetSurroundingText() const
|
||||
rtl::OUString Window::GetSurroundingText() const
|
||||
{
|
||||
if ( mpViewShell->GetShellType() == ViewShell::ST_OUTLINE )
|
||||
{
|
||||
return XubString();
|
||||
}
|
||||
return rtl::OUString();
|
||||
else if ( mpViewShell->GetView()->IsTextEdit() )
|
||||
{
|
||||
OutlinerView *pOLV = mpViewShell->GetView()->GetTextEditOutlinerView();
|
||||
return pOLV->GetEditView().GetSurroundingText();
|
||||
}
|
||||
else
|
||||
{
|
||||
return XubString();
|
||||
}
|
||||
return rtl::OUString();
|
||||
}
|
||||
|
||||
Selection Window::GetSurroundingTextSelection() const
|
||||
|
@@ -392,12 +392,11 @@ void SidebarTxtControl::Command( const CommandEvent& rCEvt )
|
||||
}
|
||||
}
|
||||
|
||||
XubString SidebarTxtControl::GetSurroundingText() const
|
||||
rtl::OUString SidebarTxtControl::GetSurroundingText() const
|
||||
{
|
||||
if( GetTextView() )
|
||||
if (GetTextView())
|
||||
return GetTextView()->GetSurroundingText();
|
||||
else
|
||||
return XubString::EmptyString();
|
||||
return rtl::OUString();
|
||||
}
|
||||
|
||||
Selection SidebarTxtControl::GetSurroundingTextSelection() const
|
||||
|
@@ -58,7 +58,7 @@ class SidebarTxtControl : public Control
|
||||
virtual void Command( const CommandEvent& rCEvt );
|
||||
virtual void LoseFocus();
|
||||
virtual void RequestHelp(const HelpEvent &rEvt);
|
||||
virtual XubString GetSurroundingText() const;
|
||||
virtual rtl::OUString GetSurroundingText() const;
|
||||
virtual Selection GetSurroundingTextSelection() const;
|
||||
|
||||
DECL_LINK( Select, Menu* );
|
||||
|
@@ -5717,7 +5717,7 @@ void SwEditWin::SetUseInputLanguage( sal_Bool bNew )
|
||||
bUseInputLanguage = bNew;
|
||||
}
|
||||
|
||||
XubString SwEditWin::GetSurroundingText() const
|
||||
rtl::OUString SwEditWin::GetSurroundingText() const
|
||||
{
|
||||
String sReturn;
|
||||
SwWrtShell& rSh = rView.GetWrtShell();
|
||||
|
@@ -221,7 +221,7 @@ protected:
|
||||
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
|
||||
virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
|
||||
|
||||
virtual XubString GetSurroundingText() const;
|
||||
virtual rtl::OUString GetSurroundingText() const;
|
||||
virtual Selection GetSurroundingTextSelection() const;
|
||||
|
||||
void ShowAutoTextCorrectQuickHelp( const String& rWord, SvxAutoCorrCfg* pACfg,
|
||||
|
@@ -246,7 +246,7 @@ public:
|
||||
static PopupMenu* CreatePopupMenu();
|
||||
static void DeletePopupMenu( PopupMenu* pMenu );
|
||||
|
||||
virtual XubString GetSurroundingText() const;
|
||||
virtual rtl::OUString GetSurroundingText() const;
|
||||
virtual Selection GetSurroundingTextSelection() const;
|
||||
|
||||
// returns the minimum size a bordered Edit should have given the current
|
||||
|
@@ -1089,7 +1089,7 @@ public:
|
||||
|
||||
void SimulateKeyPress( sal_uInt16 nKeyCode ) const;
|
||||
|
||||
virtual XubString GetSurroundingText() const;
|
||||
virtual rtl::OUString GetSurroundingText() const;
|
||||
virtual Selection GetSurroundingTextSelection() const;
|
||||
|
||||
// ExtImpl
|
||||
|
@@ -3147,11 +3147,10 @@ void ImplSubEdit::Modify()
|
||||
GetParent()->Modify();
|
||||
}
|
||||
|
||||
XubString Edit::GetSurroundingText() const
|
||||
rtl::OUString Edit::GetSurroundingText() const
|
||||
{
|
||||
if ( mpSubEdit )
|
||||
return mpSubEdit->GetSurroundingText();
|
||||
else
|
||||
if (mpSubEdit)
|
||||
return mpSubEdit->GetSurroundingText();
|
||||
return maText;
|
||||
}
|
||||
|
||||
|
@@ -9579,9 +9579,9 @@ void Window::PaintToDevice( OutputDevice* pDev, const Point& rPos, const Size& /
|
||||
SetParent( pRealParent );
|
||||
}
|
||||
|
||||
XubString Window::GetSurroundingText() const
|
||||
rtl::OUString Window::GetSurroundingText() const
|
||||
{
|
||||
return XubString::EmptyString();
|
||||
return rtl::OUString();
|
||||
}
|
||||
|
||||
Selection Window::GetSurroundingTextSelection() const
|
||||
|
Reference in New Issue
Block a user