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

convert remnants of String in SD to OUString

Change-Id: Ia09dab36376e0169cddb5e8b0aa096d5327a8213
üst bc3b7ca3
...@@ -39,7 +39,7 @@ class MasterPageObserver ...@@ -39,7 +39,7 @@ class MasterPageObserver
: public SdGlobalResource : public SdGlobalResource
{ {
public: public:
typedef ::std::set<String> MasterPageNameSet; typedef ::std::set<OUString> MasterPageNameSet;
/** Return the single instance of this class. /** Return the single instance of this class.
*/ */
......
...@@ -104,7 +104,7 @@ public: ...@@ -104,7 +104,7 @@ public:
{ bOldDimHide = bTheOldDimHide; bNewDimHide = bTheNewDimHide; } { bOldDimHide = bTheOldDimHide; bNewDimHide = bTheNewDimHide; }
void SetSoundOn(sal_Bool bTheOldSoundOn, sal_Bool bTheNewSoundOn) void SetSoundOn(sal_Bool bTheOldSoundOn, sal_Bool bTheNewSoundOn)
{ bOldSoundOn = bTheOldSoundOn; bNewSoundOn = bTheNewSoundOn; } { bOldSoundOn = bTheOldSoundOn; bNewSoundOn = bTheNewSoundOn; }
void SetSound(String aTheOldSound, OUString aTheNewSound) void SetSound(OUString aTheOldSound, OUString aTheNewSound)
{ aOldSoundFile = aTheOldSound; aNewSoundFile = aTheNewSound; } { aOldSoundFile = aTheOldSound; aNewSoundFile = aTheNewSound; }
void SetBlueScreen(Color aTheOldBlueScreen, Color aTheNewBlueScreen) void SetBlueScreen(Color aTheOldBlueScreen, Color aTheNewBlueScreen)
{ aOldBlueScreen = aTheOldBlueScreen; aNewBlueScreen = aTheNewBlueScreen; } { aOldBlueScreen = aTheOldBlueScreen; aNewBlueScreen = aTheNewBlueScreen; }
...@@ -114,7 +114,7 @@ public: ...@@ -114,7 +114,7 @@ public:
{ pOldPathObj = pTheOldPath; pNewPathObj = pTheNewPath; } { pOldPathObj = pTheOldPath; pNewPathObj = pTheNewPath; }
void SetClickAction(::com::sun::star::presentation::ClickAction eTheOldAction, ::com::sun::star::presentation::ClickAction eTheNewAction) void SetClickAction(::com::sun::star::presentation::ClickAction eTheOldAction, ::com::sun::star::presentation::ClickAction eTheNewAction)
{ eOldClickAction = eTheOldAction; eNewClickAction = eTheNewAction; } { eOldClickAction = eTheOldAction; eNewClickAction = eTheNewAction; }
void SetBookmark(String aTheOldBookmark, OUString aTheNewBookmark) void SetBookmark(OUString aTheOldBookmark, OUString aTheNewBookmark)
{ aOldBookmark = aTheOldBookmark; aNewBookmark = aTheNewBookmark; } { aOldBookmark = aTheOldBookmark; aNewBookmark = aTheNewBookmark; }
void SetInvisibleInPres(sal_Bool bTheOldInvisibleInPres, sal_Bool bTheNewInvisibleInPres) void SetInvisibleInPres(sal_Bool bTheOldInvisibleInPres, sal_Bool bTheNewInvisibleInPres)
{ bOldInvisibleInPres = bTheOldInvisibleInPres; bNewInvisibleInPres = bTheNewInvisibleInPres; } { bOldInvisibleInPres = bTheOldInvisibleInPres; bNewInvisibleInPres = bTheNewInvisibleInPres; }
......
...@@ -137,7 +137,7 @@ void CurrentMasterPagesSelector::Fill (ItemList& rItemList) ...@@ -137,7 +137,7 @@ void CurrentMasterPagesSelector::Fill (ItemList& rItemList)
SdPage* pMasterPage; SdPage* pMasterPage;
// Remember the names of the master pages that have been inserted to // Remember the names of the master pages that have been inserted to
// avoid double insertion. // avoid double insertion.
::std::set<String> aMasterPageNames; ::std::set<OUString> aMasterPageNames;
for (sal_uInt16 nIndex=0; nIndex<nPageCount; nIndex++) for (sal_uInt16 nIndex=0; nIndex<nPageCount; nIndex++)
{ {
pMasterPage = mrDocument.GetMasterSdPage (nIndex, PK_STANDARD); pMasterPage = mrDocument.GetMasterSdPage (nIndex, PK_STANDARD);
...@@ -188,7 +188,7 @@ void CurrentMasterPagesSelector::UpdateSelection (void) ...@@ -188,7 +188,7 @@ void CurrentMasterPagesSelector::UpdateSelection (void)
// their master page into a set. // their master page into a set.
sal_uInt16 nPageCount = mrDocument.GetSdPageCount(PK_STANDARD); sal_uInt16 nPageCount = mrDocument.GetSdPageCount(PK_STANDARD);
SdPage* pPage; SdPage* pPage;
::std::set<String> aNames; ::std::set<OUString> aNames;
sal_uInt16 nIndex; sal_uInt16 nIndex;
bool bLoop (true); bool bLoop (true);
for (nIndex=0; nIndex<nPageCount && bLoop; nIndex++) for (nIndex=0; nIndex<nPageCount && bLoop; nIndex++)
......
...@@ -229,7 +229,7 @@ void MasterPageObserver::Implementation::AddEventListener ( ...@@ -229,7 +229,7 @@ void MasterPageObserver::Implementation::AddEventListener (
aDocumentIterator!=maUsedMasterPages.end(); aDocumentIterator!=maUsedMasterPages.end();
++aDocumentIterator) ++aDocumentIterator)
{ {
::std::set<String>::reverse_iterator aNameIterator; ::std::set<OUString>::reverse_iterator aNameIterator;
for (aNameIterator=aDocumentIterator->second.rbegin(); for (aNameIterator=aDocumentIterator->second.rbegin();
aNameIterator!=aDocumentIterator->second.rend(); aNameIterator!=aDocumentIterator->second.rend();
++aNameIterator) ++aNameIterator)
...@@ -317,7 +317,7 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages ( ...@@ -317,7 +317,7 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages (
{ {
// Create a set of names of the master pages used by the given document. // Create a set of names of the master pages used by the given document.
sal_uInt16 nMasterPageCount = rDocument.GetMasterSdPageCount(PK_STANDARD); sal_uInt16 nMasterPageCount = rDocument.GetMasterSdPageCount(PK_STANDARD);
::std::set<String> aCurrentMasterPages; ::std::set<OUString> aCurrentMasterPages;
for (sal_uInt16 nIndex=0; nIndex<nMasterPageCount; nIndex++) for (sal_uInt16 nIndex=0; nIndex<nMasterPageCount; nIndex++)
{ {
SdPage* pMasterPage = rDocument.GetMasterSdPage (nIndex, PK_STANDARD); SdPage* pMasterPage = rDocument.GetMasterSdPage (nIndex, PK_STANDARD);
...@@ -329,7 +329,7 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages ( ...@@ -329,7 +329,7 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages (
RTL_TEXTENCODING_UTF8).getStr()); RTL_TEXTENCODING_UTF8).getStr());
} }
typedef ::std::vector<String> StringList; typedef ::std::vector<OUString> StringList;
StringList aNewMasterPages; StringList aNewMasterPages;
StringList aRemovedMasterPages; StringList aRemovedMasterPages;
MasterPageContainer::iterator aOldMasterPagesDescriptor ( MasterPageContainer::iterator aOldMasterPagesDescriptor (
...@@ -338,7 +338,7 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages ( ...@@ -338,7 +338,7 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages (
{ {
StringList::iterator I; StringList::iterator I;
::std::set<String>::iterator J; ::std::set<OUString>::iterator J;
int i=0; int i=0;
for (J=aOldMasterPagesDescriptor->second.begin(); for (J=aOldMasterPagesDescriptor->second.begin();
J!=aOldMasterPagesDescriptor->second.end(); J!=aOldMasterPagesDescriptor->second.end();
......
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