summaryrefslogtreecommitdiffstats
path: root/sc/inc/externalrefmgr.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-04-20 15:47:55 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-05-25 14:04:06 -0400
commit0b75d1985f8fb019e1df6acfbee0b237c9771c21 (patch)
treebcf7bccbba4b1fd18f50c28ab7baae26278854aa /sc/inc/externalrefmgr.hxx
parentRemove some unneeded #include <tools/unqidx.hxx> (diff)
downloadcore-0b75d1985f8fb019e1df6acfbee0b237c9771c21.tar.gz
core-0b75d1985f8fb019e1df6acfbee0b237c9771c21.zip
Check if the referenced file is loadable, and if not, don't update.
Diffstat (limited to 'sc/inc/externalrefmgr.hxx')
-rw-r--r--sc/inc/externalrefmgr.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index 834a4fee8536..13cbeae3ac3e 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -672,6 +672,12 @@ public:
*/
void notifyAllLinkListeners(sal_uInt16 nFileId, LinkUpdateType eType);
+ /**
+ * Check if the file specified by the path is a legitimate file that
+ * exists & can be loaded.
+ */
+ bool isFileLoadable(const String& rFile) const;
+
private:
ScExternalRefManager();
ScExternalRefManager(const ScExternalRefManager&);
@@ -722,7 +728,6 @@ private:
const ScDocument* getInMemorySrcDocument(sal_uInt16 nFileId);
const ScDocument* getSrcDocument(sal_uInt16 nFileId);
SfxObjectShellRef loadSrcDocument(sal_uInt16 nFileId, String& rFilter);
- bool isFileLoadable(const String& rFile) const;
void maybeLinkExternalFile(sal_uInt16 nFileId);