Kaydet (Commit) d598bb3e authored tarafından Matteo Casalin's avatar Matteo Casalin Kaydeden (comit) Michael Stahl

String to OUString

Change-Id: Icc70248f48dd24a2940552f88590f02492a38824
Reviewed-on: https://gerrit.libreoffice.org/5612Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst e593b3b3
......@@ -21,6 +21,7 @@
#include <com/sun/star/i18n/WordType.hpp>
#include <rtl/ustring.hxx>
#include <tools/string.hxx>
#include <tools/link.hxx>
#include <tools/rtti.hxx>
......@@ -665,8 +666,8 @@ public:
// in a headerframe otherwise in a footerframe
bool IsInHeaderFooter( sal_Bool* pbInHeader = 0 ) const;
sal_Bool GotoNextTOXBase( const String* = 0 );
sal_Bool GotoPrevTOXBase( const String* = 0 );
sal_Bool GotoNextTOXBase( const OUString* = 0 );
sal_Bool GotoPrevTOXBase( const OUString* = 0 );
sal_Bool GotoTOXMarkBase();
// jump to the next or previous index entry
sal_Bool GotoNxtPrvTOXMark( sal_Bool bNext = sal_True );
......
......@@ -284,7 +284,7 @@ sal_Bool SwCrsrShell::SetCrsrInHdFt( sal_uInt16 nDescNo, sal_Bool bInHeader )
}
/// jump to the next index
sal_Bool SwCrsrShell::GotoNextTOXBase( const String* pName )
sal_Bool SwCrsrShell::GotoNextTOXBase( const OUString* pName )
{
sal_Bool bRet = sal_False;
......@@ -335,7 +335,7 @@ sal_Bool SwCrsrShell::GotoNextTOXBase( const String* pName )
}
/// jump to previous index
sal_Bool SwCrsrShell::GotoPrevTOXBase( const String* pName )
sal_Bool SwCrsrShell::GotoPrevTOXBase( const OUString* pName )
{
sal_Bool bRet = sal_False;
......
......@@ -464,7 +464,7 @@ typedef sal_Bool (SwWrtShell:: *FNSimpleMove)();
bool GotoRegion( const String& rName );
sal_Bool GotoRefMark( const String& rRefMark, sal_uInt16 nSubType = 0,
sal_uInt16 nSeqNo = 0 );
sal_Bool GotoNextTOXBase( const String* pName = 0);
sal_Bool GotoNextTOXBase( const OUString* pName = 0);
bool GotoTable( const String& rName );
sal_Bool GotoFld( const SwFmtFld& rFld );
const SwRedline* GotoRedline( sal_uInt16 nArrPos, sal_Bool bSelect = sal_False);
......
......@@ -2963,8 +2963,9 @@ void SwContentTree::GotoContent(SwContent* pCnt)
break;
case CONTENT_TYPE_INDEX:
{
if (!pActiveShell->GotoNextTOXBase(&pCnt->GetName()))
pActiveShell->GotoPrevTOXBase(&pCnt->GetName());
const OUString sName(pCnt->GetName());
if (!pActiveShell->GotoNextTOXBase(&sName))
pActiveShell->GotoPrevTOXBase(&sName);
}
break;
case CONTENT_TYPE_POSTIT:
......
......@@ -1013,7 +1013,7 @@ void SwGlobalTree::GotoContent(const SwGlblDocContent* pCont)
break;
case GLBLDOC_TOXBASE:
{
String sName = pCont->GetTOX()->GetTOXName();
const OUString sName = pCont->GetTOX()->GetTOXName();
if (!pActiveShell->GotoNextTOXBase(&sName))
pActiveShell->GotoPrevTOXBase(&sName);
}
......
......@@ -650,7 +650,7 @@ sal_Bool SwWrtShell::GotoRefMark( const String& rRefMark, sal_uInt16 nSubType,
return bRet;
}
sal_Bool SwWrtShell::GotoNextTOXBase( const String* pName )
sal_Bool SwWrtShell::GotoNextTOXBase( const OUString* pName )
{
SwPosition aPos = *GetCrsr()->GetPoint();
bool bRet = SwCrsrShell::GotoNextTOXBase(pName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment