Kaydet (Commit) e8d04825 authored tarafından Noel Grandin's avatar Noel Grandin

convert sw/source/ui/inc/g*.hxx from String to OUString

Change-Id: I612c4f99349eea8efceb5cd83a2533f478b74d39
üst d57c0f79
...@@ -2516,12 +2516,12 @@ KEYINPUT_CHECKTABLE_INSDEL: ...@@ -2516,12 +2516,12 @@ KEYINPUT_CHECKTABLE_INSDEL:
// replace the word or abbreviation with the auto text // replace the word or abbreviation with the auto text
rSh.StartUndo( UNDO_START ); rSh.StartUndo( UNDO_START );
String sFnd( aTmpQHD.m_aHelpStrings[ aTmpQHD.nCurArrPos ] ); OUString sFnd( aTmpQHD.m_aHelpStrings[ aTmpQHD.nCurArrPos ] );
if( aTmpQHD.m_bIsAutoText ) if( aTmpQHD.m_bIsAutoText )
{ {
SwGlossaryList* pList = ::GetGlossaryList(); SwGlossaryList* pList = ::GetGlossaryList();
String sShrtNm; OUString sShrtNm;
String sGroup; OUString sGroup;
if(pList->GetShortName( sFnd, sShrtNm, sGroup)) if(pList->GetShortName( sFnd, sShrtNm, sGroup))
{ {
rSh.SttSelect(); rSh.SttSelect();
...@@ -2534,7 +2534,8 @@ KEYINPUT_CHECKTABLE_INSDEL: ...@@ -2534,7 +2534,8 @@ KEYINPUT_CHECKTABLE_INSDEL:
} }
else else
{ {
rSh.Insert( sFnd.Erase( 0, aTmpQHD.nLen )); sFnd = sFnd.copy( aTmpQHD.nLen );
rSh.Insert( sFnd );
m_pQuickHlpData->m_bAppendSpace = !pACorr || m_pQuickHlpData->m_bAppendSpace = !pACorr ||
pACorr->GetSwFlags().bAutoCmpltAppendBlanc; pACorr->GetSwFlags().bAutoCmpltAppendBlanc;
} }
......
...@@ -52,9 +52,9 @@ public: ...@@ -52,9 +52,9 @@ public:
struct GlosBibUserData struct GlosBibUserData
{ {
String sPath; OUString sPath;
String sGroupName; OUString sGroupName;
String sGroupTitle; OUString sGroupTitle;
}; };
class SwGlossaryGroupTLB : public SvTabListBox class SwGlossaryGroupTLB : public SvTabListBox
...@@ -90,7 +90,7 @@ class SwGlossaryGroupDlg : public SvxStandardDialog ...@@ -90,7 +90,7 @@ class SwGlossaryGroupDlg : public SvxStandardDialog
SwGlossaryHdl *pGlosHdl; SwGlossaryHdl *pGlosHdl;
String sCreatedGroup; OUString sCreatedGroup;
sal_Bool IsDeleteAllowed(const OUString &rGroup); sal_Bool IsDeleteAllowed(const OUString &rGroup);
...@@ -108,7 +108,7 @@ public: ...@@ -108,7 +108,7 @@ public:
SwGlossaryHdl *pGlosHdl); SwGlossaryHdl *pGlosHdl);
~SwGlossaryGroupDlg(); ~SwGlossaryGroupDlg();
const String& GetCreatedGroupName() const {return sCreatedGroup;} const OUString& GetCreatedGroupName() const {return sCreatedGroup;}
}; };
#endif #endif
......
...@@ -57,8 +57,8 @@ public: ...@@ -57,8 +57,8 @@ public:
~SwGlossaryList(); ~SwGlossaryList();
bool HasLongName(const OUString& rBegin, std::vector<OUString> *pLongNames); bool HasLongName(const OUString& rBegin, std::vector<OUString> *pLongNames);
sal_Bool GetShortName(const String& rLongName, sal_Bool GetShortName(const OUString& rLongName,
String& rShortName, String& rGroupName ); OUString& rShortName, OUString& rGroupName );
sal_uInt16 GetGroupCount(); sal_uInt16 GetGroupCount();
OUString GetGroupName(sal_uInt16 nPos, bool bNoPath = true); OUString GetGroupName(sal_uInt16 nPos, bool bNoPath = true);
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
class SwGlosDocShell : public SwDocShell class SwGlosDocShell : public SwDocShell
{ {
String aLongName; OUString aLongName;
String aShortName; OUString aShortName;
String aGroupName; OUString aGroupName;
using SotObject::GetInterface; using SotObject::GetInterface;
...@@ -41,21 +41,21 @@ public: ...@@ -41,21 +41,21 @@ public:
void Execute( SfxRequest& ); void Execute( SfxRequest& );
void GetState( SfxItemSet& ); void GetState( SfxItemSet& );
void SetLongName( const String& rLongName ) void SetLongName( const OUString& rLongName )
{ aLongName = rLongName; } { aLongName = rLongName; }
void SetShortName( const String& rShortName ) void SetShortName( const OUString& rShortName )
{ aShortName = rShortName; } { aShortName = rShortName; }
void SetGroupName( const String& rGroupName ) void SetGroupName( const OUString& rGroupName )
{ aGroupName = rGroupName; } { aGroupName = rGroupName; }
const String& GetShortName(){return aShortName;} const OUString& GetShortName(){return aShortName;}
}; };
class SwWebGlosDocShell : public SwWebDocShell class SwWebGlosDocShell : public SwWebDocShell
{ {
String aLongName; OUString aLongName;
String aShortName; OUString aShortName;
String aGroupName; OUString aGroupName;
using SotObject::GetInterface; using SotObject::GetInterface;
...@@ -72,13 +72,13 @@ public: ...@@ -72,13 +72,13 @@ public:
void Execute( SfxRequest& ); void Execute( SfxRequest& );
void GetState( SfxItemSet& ); void GetState( SfxItemSet& );
void SetLongName( const String& rLongName ) void SetLongName( const OUString& rLongName )
{ aLongName = rLongName; } { aLongName = rLongName; }
void SetShortName( const String& rShortName ) void SetShortName( const OUString& rShortName )
{ aShortName = rShortName; } { aShortName = rShortName; }
void SetGroupName( const String& rGroupName ) void SetGroupName( const OUString& rGroupName )
{ aGroupName = rGroupName; } { aGroupName = rGroupName; }
const String& GetShortName(){return aShortName;} const OUString& GetShortName(){return aShortName;}
}; };
#endif #endif
......
...@@ -170,7 +170,7 @@ void SwGlossaryGroupDlg::Apply() ...@@ -170,7 +170,7 @@ void SwGlossaryGroupDlg::Apply()
if( sNewGroup != aActGroup ) if( sNewGroup != aActGroup )
{ {
pGlosHdl->NewGroup(sNewGroup, sNewTitle); pGlosHdl->NewGroup(sNewGroup, sNewTitle);
if(!sCreatedGroup.Len()) if(sCreatedGroup.isEmpty())
sCreatedGroup = sNewGroup; sCreatedGroup = sNewGroup;
} }
} }
...@@ -437,7 +437,7 @@ void SwGlossaryGroupTLB::RequestHelp( const HelpEvent& rHEvt ) ...@@ -437,7 +437,7 @@ void SwGlossaryGroupTLB::RequestHelp( const HelpEvent& rHEvt )
GlosBibUserData* pData = (GlosBibUserData*)pEntry->GetUserData(); GlosBibUserData* pData = (GlosBibUserData*)pEntry->GetUserData();
sMsg = pData->sPath; sMsg = pData->sPath;
sMsg += INET_PATH_TOKEN; sMsg += INET_PATH_TOKEN;
sMsg += pData->sGroupName.GetToken(0, GLOS_DELIM); sMsg += pData->sGroupName.getToken(0, GLOS_DELIM);
sMsg += SwGlossaries::GetExtension(); sMsg += SwGlossaries::GetExtension();
Help::ShowQuickHelp( this, aItemRect, sMsg, Help::ShowQuickHelp( this, aItemRect, sMsg,
......
...@@ -103,8 +103,8 @@ SwGlossaryList::~SwGlossaryList() ...@@ -103,8 +103,8 @@ SwGlossaryList::~SwGlossaryList()
// will be filled. Otherwise also rGroupName will be set and // will be filled. Otherwise also rGroupName will be set and
// on demand asked for the right group. // on demand asked for the right group.
sal_Bool SwGlossaryList::GetShortName(const String& rLongName, sal_Bool SwGlossaryList::GetShortName(const OUString& rLongName,
String& rShortName, String& rGroupName ) OUString& rShortName, OUString& rGroupName )
{ {
if(!bFilled) if(!bFilled)
Update(); Update();
...@@ -116,7 +116,7 @@ sal_Bool SwGlossaryList::GetShortName(const String& rLongName, ...@@ -116,7 +116,7 @@ sal_Bool SwGlossaryList::GetShortName(const String& rLongName,
for(sal_uInt16 i = 0; i < nCount; i++ ) for(sal_uInt16 i = 0; i < nCount; i++ )
{ {
AutoTextGroup* pGroup = aGroupArr[i]; AutoTextGroup* pGroup = aGroupArr[i];
if(rGroupName.Len() && rGroupName != pGroup->sName) if(!rGroupName.isEmpty() && rGroupName != pGroup->sName)
continue; continue;
for(sal_uInt16 j = 0; j < pGroup->nCount; j++) for(sal_uInt16 j = 0; j < pGroup->nCount; j++)
......
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