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

convert sc/inc/externalrefmgr.hxx from String to OUString

Change-Id: I71c755f05eb47e26193ae87cb2f9cd618cfaf13d
üst 4f684749
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
class ScDocument; class ScDocument;
class ScTokenArray; class ScTokenArray;
class String;
class SfxObjectShellRef; class SfxObjectShellRef;
class Window; class Window;
class ScFormulaCell; class ScFormulaCell;
...@@ -53,7 +52,7 @@ class ScExternalRefCache; ...@@ -53,7 +52,7 @@ class ScExternalRefCache;
class ScExternalRefLink : public ::sfx2::SvBaseLink class ScExternalRefLink : public ::sfx2::SvBaseLink
{ {
public: public:
ScExternalRefLink(ScDocument* pDoc, sal_uInt16 nFileId, const String& rFilter); ScExternalRefLink(ScDocument* pDoc, sal_uInt16 nFileId, const OUString& rFilter);
virtual ~ScExternalRefLink(); virtual ~ScExternalRefLink();
virtual void Closed(); virtual void Closed();
...@@ -70,7 +69,7 @@ private: ...@@ -70,7 +69,7 @@ private:
DECL_LINK( ExternalRefEndEditHdl, void* ); DECL_LINK( ExternalRefEndEditHdl, void* );
sal_uInt16 mnFileId; sal_uInt16 mnFileId;
String maFilterName; OUString maFilterName;
ScDocument* mpDoc; ScDocument* mpDoc;
bool mbDoRefresh; bool mbDoRefresh;
}; };
...@@ -242,7 +241,7 @@ public: ...@@ -242,7 +241,7 @@ public:
bool isDocInitialized(sal_uInt16 nFileId); bool isDocInitialized(sal_uInt16 nFileId);
void initializeDoc(sal_uInt16 nFileId, const ::std::vector<OUString>& rTabNames); void initializeDoc(sal_uInt16 nFileId, const ::std::vector<OUString>& rTabNames);
String getTableName(sal_uInt16 nFileId, size_t nCacheId) const; OUString getTableName(sal_uInt16 nFileId, size_t nCacheId) const;
void getAllTableNames(sal_uInt16 nFileId, ::std::vector<OUString>& rTabNames) const; void getAllTableNames(sal_uInt16 nFileId, ::std::vector<OUString>& rTabNames) const;
SCsTAB getTabSpan( sal_uInt16 nFileId, const OUString& rStartTabName, const OUString& rEndTabName ) const; SCsTAB getTabSpan( sal_uInt16 nFileId, const OUString& rStartTabName, const OUString& rEndTabName ) const;
void getAllNumberFormats(::std::vector<sal_uInt32>& rNumFmts) const; void getAllNumberFormats(::std::vector<sal_uInt32>& rNumFmts) const;
...@@ -413,7 +412,7 @@ public: ...@@ -413,7 +412,7 @@ public:
OUString maFilterOptions; OUString maFilterOptions;
bool bUnsaved; bool bUnsaved;
void maybeCreateRealFileName(const String& rOwnDocName); void maybeCreateRealFileName(const OUString& rOwnDocName);
}; };
public: public:
...@@ -573,7 +572,7 @@ public: ...@@ -573,7 +572,7 @@ public:
* If false, it returns an URI adjusted for * If false, it returns an URI adjusted for
* relocated document. * relocated document.
* *
* @return const String* external document URI. * @return const OUString* external document URI.
*/ */
const OUString* getExternalFileName(sal_uInt16 nFileId, bool bForceOriginal = false); const OUString* getExternalFileName(sal_uInt16 nFileId, bool bForceOriginal = false);
bool hasExternalFile(sal_uInt16 nFileId) const; bool hasExternalFile(sal_uInt16 nFileId) const;
......
...@@ -866,7 +866,7 @@ void ScExternalRefCache::initializeDoc(sal_uInt16 nFileId, const vector<OUString ...@@ -866,7 +866,7 @@ void ScExternalRefCache::initializeDoc(sal_uInt16 nFileId, const vector<OUString
pDoc->mbInitFromSource = true; pDoc->mbInitFromSource = true;
} }
String ScExternalRefCache::getTableName(sal_uInt16 nFileId, size_t nCacheId) const OUString ScExternalRefCache::getTableName(sal_uInt16 nFileId, size_t nCacheId) const
{ {
if( DocItem* pDoc = getDocItem( nFileId ) ) if( DocItem* pDoc = getDocItem( nFileId ) )
if( nCacheId < pDoc->maTableNames.size() ) if( nCacheId < pDoc->maTableNames.size() )
...@@ -1201,7 +1201,7 @@ ScExternalRefCache::DocItem* ScExternalRefCache::getDocItem(sal_uInt16 nFileId) ...@@ -1201,7 +1201,7 @@ ScExternalRefCache::DocItem* ScExternalRefCache::getDocItem(sal_uInt16 nFileId)
// ============================================================================ // ============================================================================
ScExternalRefLink::ScExternalRefLink(ScDocument* pDoc, sal_uInt16 nFileId, const String& rFilter) : ScExternalRefLink::ScExternalRefLink(ScDocument* pDoc, sal_uInt16 nFileId, const OUString& rFilter) :
::sfx2::SvBaseLink(::sfx2::LINKUPDATE_ONCALL, FORMAT_FILE), ::sfx2::SvBaseLink(::sfx2::LINKUPDATE_ONCALL, FORMAT_FILE),
mnFileId(nFileId), mnFileId(nFileId),
maFilterName(rFilter), maFilterName(rFilter),
...@@ -2323,7 +2323,7 @@ void ScExternalRefManager::maybeLinkExternalFile(sal_uInt16 nFileId) ...@@ -2323,7 +2323,7 @@ void ScExternalRefManager::maybeLinkExternalFile(sal_uInt16 nFileId)
maLinkedDocs.insert(LinkedDocMap::value_type(nFileId, true)); maLinkedDocs.insert(LinkedDocMap::value_type(nFileId, true));
} }
void ScExternalRefManager::SrcFileData::maybeCreateRealFileName(const String& rOwnDocName) void ScExternalRefManager::SrcFileData::maybeCreateRealFileName(const OUString& rOwnDocName)
{ {
if (maRelativeName.isEmpty()) if (maRelativeName.isEmpty())
// No relative path given. Nothing to do. // No relative path given. Nothing to do.
......
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