diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-04-20 15:47:55 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-25 14:04:06 -0400 |
commit | 0b75d1985f8fb019e1df6acfbee0b237c9771c21 (patch) | |
tree | bcf7bccbba4b1fd18f50c28ab7baae26278854aa /sc/inc/externalrefmgr.hxx | |
parent | Remove some unneeded #include <tools/unqidx.hxx> (diff) | |
download | core-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.hxx | 7 |
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); |