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

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

Change-Id: I276fdfe7ddd6cc0daa0ca7d6f51342fea718af8e
üst 04d44292
...@@ -539,7 +539,7 @@ SwEditRegionDlg::~SwEditRegionDlg( ) ...@@ -539,7 +539,7 @@ SwEditRegionDlg::~SwEditRegionDlg( )
delete m_pDocInserter; delete m_pDocInserter;
} }
void SwEditRegionDlg::SelectSection(const String& rSectionName) void SwEditRegionDlg::SelectSection(const OUString& rSectionName)
{ {
SvTreeListEntry* pEntry = m_pTree->First(); SvTreeListEntry* pEntry = m_pTree->First();
while(pEntry) while(pEntry)
...@@ -1604,7 +1604,7 @@ void SwInsertSectionTabPage::SetWrtShell(SwWrtShell& rSh) ...@@ -1604,7 +1604,7 @@ void SwInsertSectionTabPage::SetWrtShell(SwWrtShell& rSh)
m_pProtectCB->Check( 0 != pSectionData->IsProtectFlag() ); m_pProtectCB->Check( 0 != pSectionData->IsProtectFlag() );
m_sFileName = pSectionData->GetLinkFileName(); m_sFileName = pSectionData->GetLinkFileName();
m_sFilePasswd = pSectionData->GetLinkFilePassword(); m_sFilePasswd = pSectionData->GetLinkFilePassword();
m_pFileCB->Check( 0 != m_sFileName.Len() ); m_pFileCB->Check( !m_sFileName.isEmpty() );
m_pFileNameED->SetText( m_sFileName ); m_pFileNameED->SetText( m_sFileName );
UseFileHdl(m_pFileCB); UseFileHdl(m_pFileCB);
} }
......
...@@ -45,8 +45,8 @@ struct SwRedlineDataParent ...@@ -45,8 +45,8 @@ struct SwRedlineDataParent
{ {
const SwRedlineData* pData; // RedlineDataPtr const SwRedlineData* pData; // RedlineDataPtr
const SwRedlineDataChild* pNext; // link to stacked data const SwRedlineDataChild* pNext; // link to stacked data
SvTreeListEntry* pTLBParent; // corresponding TreeListBox entry SvTreeListEntry* pTLBParent; // corresponding TreeListBox entry
String sComment; // redline comment OUString sComment; // redline comment
inline sal_Bool operator==( const SwRedlineDataParent& rObj ) const inline sal_Bool operator==( const SwRedlineDataParent& rObj ) const
{ return (pData && pData->GetSeqNo() == rObj.pData->GetSeqNo()); } { return (pData && pData->GetSeqNo() == rObj.pData->GetSeqNo()); }
...@@ -76,13 +76,13 @@ class SW_DLLPUBLIC SwRedlineAcceptDlg ...@@ -76,13 +76,13 @@ class SW_DLLPUBLIC SwRedlineAcceptDlg
PopupMenu aPopup; PopupMenu aPopup;
Timer aDeselectTimer; Timer aDeselectTimer;
Timer aSelectTimer; Timer aSelectTimer;
String sInserted; OUString sInserted;
String sDeleted; OUString sDeleted;
String sFormated; OUString sFormated;
String sTableChgd; OUString sTableChgd;
String sFmtCollSet; OUString sFmtCollSet;
String sFilterAction; OUString sFilterAction;
String sAutoFormat; OUString sAutoFormat;
SvxTPView* pTPView; SvxTPView* pTPView;
SvxRedlinTable* pTable; // PB 2006/02/02 #i48648 now SvHeaderTabListBox SvxRedlinTable* pTable; // PB 2006/02/02 #i48648 now SvHeaderTabListBox
Link aOldSelectHdl; Link aOldSelectHdl;
...@@ -110,9 +110,9 @@ class SW_DLLPUBLIC SwRedlineAcceptDlg ...@@ -110,9 +110,9 @@ class SW_DLLPUBLIC SwRedlineAcceptDlg
SW_DLLPRIVATE void RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd); SW_DLLPRIVATE void RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd);
SW_DLLPRIVATE void InitAuthors(); SW_DLLPRIVATE void InitAuthors();
SW_DLLPRIVATE String GetRedlineText(const SwRedline& rRedln, DateTime &rDateTime, sal_uInt16 nStack = 0); SW_DLLPRIVATE OUString GetRedlineText(const SwRedline& rRedln, DateTime &rDateTime, sal_uInt16 nStack = 0);
SW_DLLPRIVATE const String& GetActionText(const SwRedline& rRedln, sal_uInt16 nStack = 0); SW_DLLPRIVATE OUString GetActionText(const SwRedline& rRedln, sal_uInt16 nStack = 0);
SW_DLLPRIVATE sal_uInt16 GetRedlinePos( const SvTreeListEntry& rEntry) const; SW_DLLPRIVATE sal_uInt16 GetRedlinePos( const SvTreeListEntry& rEntry) const;
public: public:
SwRedlineAcceptDlg(Dialog *pParent, sal_Bool bAutoFmt = sal_False); SwRedlineAcceptDlg(Dialog *pParent, sal_Bool bAutoFmt = sal_False);
...@@ -126,7 +126,7 @@ public: ...@@ -126,7 +126,7 @@ public:
void Init(sal_uInt16 nStart = 0); void Init(sal_uInt16 nStart = 0);
void CallAcceptReject( sal_Bool bSelect, sal_Bool bAccept ); void CallAcceptReject( sal_Bool bSelect, sal_Bool bAccept );
void Initialize(const String &rExtraData); void Initialize(const OUString &rExtraData);
void FillInfo(OUString &rExtraData) const; void FillInfo(OUString &rExtraData) const;
virtual void Activate(); virtual void Activate();
......
...@@ -135,7 +135,7 @@ public: ...@@ -135,7 +135,7 @@ public:
SwEditRegionDlg( Window* pParent, SwWrtShell& rWrtSh ); SwEditRegionDlg( Window* pParent, SwWrtShell& rWrtSh );
virtual ~SwEditRegionDlg(); virtual ~SwEditRegionDlg();
void SelectSection(const String& rSectionName); void SelectSection(const OUString& rSectionName);
}; };
...@@ -166,9 +166,9 @@ class SwInsertSectionTabPage : public SfxTabPage ...@@ -166,9 +166,9 @@ class SwInsertSectionTabPage : public SfxTabPage
// #114856# edit in readonly sections // #114856# edit in readonly sections
CheckBox* m_pEditInReadonlyCB; CheckBox* m_pEditInReadonlyCB;
String m_sFileName; OUString m_sFileName;
String m_sFilterName; OUString m_sFilterName;
String m_sFilePasswd; OUString m_sFilePasswd;
::com::sun::star::uno::Sequence <sal_Int8 > m_aNewPasswd; ::com::sun::star::uno::Sequence <sal_Int8 > m_aNewPasswd;
SwWrtShell* m_pWrtSh; SwWrtShell* m_pWrtSh;
......
...@@ -312,26 +312,26 @@ void SwRedlineAcceptDlg::InitAuthors() ...@@ -312,26 +312,26 @@ void SwRedlineAcceptDlg::InitAuthors()
!bOnlyFormatedRedlines ); !bOnlyFormatedRedlines );
} }
String SwRedlineAcceptDlg::GetRedlineText( const SwRedline& rRedln, OUString SwRedlineAcceptDlg::GetRedlineText( const SwRedline& rRedln,
DateTime &rDateTime, sal_uInt16 nStack) DateTime &rDateTime, sal_uInt16 nStack)
{ {
String sEntry(GetActionText(rRedln, nStack)); OUString sEntry(GetActionText(rRedln, nStack));
sEntry += '\t'; sEntry += "\t";
sEntry += rRedln.GetAuthorString(nStack); sEntry += rRedln.GetAuthorString(nStack);
sEntry += '\t'; sEntry += "\t";
const DateTime &rDT = rRedln.GetTimeStamp(nStack); const DateTime &rDT = rRedln.GetTimeStamp(nStack);
rDateTime = rDT; rDateTime = rDT;
sEntry += GetAppLangDateTimeString( rDT ); sEntry += GetAppLangDateTimeString( rDT );
sEntry += '\t'; sEntry += "\t";
sEntry += rRedln.GetComment(nStack); sEntry += rRedln.GetComment(nStack);
return sEntry; return sEntry;
} }
const String &SwRedlineAcceptDlg::GetActionText(const SwRedline& rRedln, sal_uInt16 nStack) OUString SwRedlineAcceptDlg::GetActionText(const SwRedline& rRedln, sal_uInt16 nStack)
{ {
switch( rRedln.GetType(nStack) ) switch( rRedln.GetType(nStack) )
{ {
...@@ -343,7 +343,7 @@ const String &SwRedlineAcceptDlg::GetActionText(const SwRedline& rRedln, sal_uIn ...@@ -343,7 +343,7 @@ const String &SwRedlineAcceptDlg::GetActionText(const SwRedline& rRedln, sal_uIn
default:;//prevent warning default:;//prevent warning
} }
return aEmptyStr; return OUString();
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
...@@ -534,8 +534,8 @@ void SwRedlineAcceptDlg::InsertChildren(SwRedlineDataParent *pParent, const SwRe ...@@ -534,8 +534,8 @@ void SwRedlineAcceptDlg::InsertChildren(SwRedlineDataParent *pParent, const SwRe
const SwRedlineData *pRedlineData = &rRedln.GetRedlineData(); const SwRedlineData *pRedlineData = &rRedln.GetRedlineData();
bool bAutoFmt = (rRedln.GetRealType() & nAutoFmt) != 0; bool bAutoFmt = (rRedln.GetRealType() & nAutoFmt) != 0;
const String *pAction = &GetActionText(rRedln); OUString sAction = GetActionText(rRedln);
sal_Bool bValidParent = !sFilterAction.Len() || sFilterAction == *pAction; sal_Bool bValidParent = sFilterAction.isEmpty() || sFilterAction == sAction;
bValidParent = bValidParent && pTable->IsValidEntry(rRedln.GetAuthorString(), rRedln.GetTimeStamp(), rRedln.GetComment()); bValidParent = bValidParent && pTable->IsValidEntry(rRedln.GetAuthorString(), rRedln.GetTimeStamp(), rRedln.GetComment());
if (nAutoFmt) if (nAutoFmt)
{ {
...@@ -573,8 +573,8 @@ void SwRedlineAcceptDlg::InsertChildren(SwRedlineDataParent *pParent, const SwRe ...@@ -573,8 +573,8 @@ void SwRedlineAcceptDlg::InsertChildren(SwRedlineDataParent *pParent, const SwRe
else else
pParent->pNext = pRedlineChild; pParent->pNext = pRedlineChild;
pAction = &GetActionText(rRedln, nStack); sAction = GetActionText(rRedln, nStack);
sal_Bool bValidChild = !sFilterAction.Len() || sFilterAction == *pAction; sal_Bool bValidChild = sFilterAction.isEmpty() || sFilterAction == sAction;
bValidChild = bValidChild && pTable->IsValidEntry(rRedln.GetAuthorString(nStack), rRedln.GetTimeStamp(nStack), rRedln.GetComment()); bValidChild = bValidChild && pTable->IsValidEntry(rRedln.GetAuthorString(nStack), rRedln.GetTimeStamp(nStack), rRedln.GetComment());
if (nAutoFmt) if (nAutoFmt)
bValidChild = bValidChild && bAutoFmt; bValidChild = bValidChild && bAutoFmt;
...@@ -1156,24 +1156,24 @@ IMPL_LINK_NOARG(SwRedlineAcceptDlg, CommandHdl) ...@@ -1156,24 +1156,24 @@ IMPL_LINK_NOARG(SwRedlineAcceptDlg, CommandHdl)
return 0; return 0;
} }
void SwRedlineAcceptDlg::Initialize(const String& rExtraData) void SwRedlineAcceptDlg::Initialize(const OUString& rExtraData)
{ {
if (rExtraData.Len()) if (!rExtraData.isEmpty())
{ {
sal_uInt16 nPos = rExtraData.Search(OUString("AcceptChgDat:")); sal_Int32 nPos = rExtraData.indexOf("AcceptChgDat:");
// try to read the alignment string "ALIGN:(...)"; if none existing, // try to read the alignment string "ALIGN:(...)"; if none existing,
// it's an old version // it's an old version
if (nPos != STRING_NOTFOUND) if (nPos != -1)
{ {
sal_uInt16 n1 = rExtraData.Search('(', nPos); sal_Int32 n1 = rExtraData.indexOf('(', nPos);
if (n1 != STRING_NOTFOUND) if (n1 != -1)
{ {
sal_uInt16 n2 = rExtraData.Search(')', n1); sal_Int32 n2 = rExtraData.indexOf(')', n1);
if (n2 != STRING_NOTFOUND) if (n2 != -1)
{ {
// cut out the alignment string // cut out the alignment string
String aStr = rExtraData.Copy(nPos, n2 - nPos + 1); String aStr = rExtraData.copy(nPos, n2 - nPos + 1);
aStr.Erase(0, n1 - nPos + 1); aStr.Erase(0, n1 - nPos + 1);
if (aStr.Len()) if (aStr.Len())
......
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