summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-20 05:18:26 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-20 06:56:28 +0100
commit2b995d9f9a4f5b99a1c6e80be77a0a6dea2c968a (patch)
tree5a11b9e2039aede57b6a973e81bbdc87a27f87cd /sc/inc
parentbacf1f9d7be4030b292e4f586654907601b9e4ed (diff)
add a warning dialog if we have ext refs to unsaved docs
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/externalrefmgr.hxx13
-rw-r--r--sc/inc/globstr.hrc3
2 files changed, 9 insertions, 7 deletions
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index b3a640e9cc78..c44c8f1dc623 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -687,6 +687,13 @@ public:
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+ /**
+ * If we still contain unsaved files we should warn the user before saving
+ *
+ * @return true if the document still contains references to an unsaved file
+ */
+ bool containsUnsavedReferences() { return !maUnsavedDocShells.empty(); }
+
private:
ScExternalRefManager();
ScExternalRefManager(const ScExternalRefManager&);
@@ -763,12 +770,6 @@ private:
sal_uInt32 getMappedNumberFormat(sal_uInt16 nFileId, sal_uInt32 nNumFmt, const ScDocument* pSrcDoc);
- /**
- * If we still contain unsaved files we should warn the user before saving
- *
- * @return true if the document still contains references to an unsaved file
- */
- bool containsUnsavedReferences() { return !maUnsavedDocShells.empty(); }
private:
/** cache of referenced ranges and names from source documents. */
diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc
index 2363aaf326fa..a545a0e69e17 100644
--- a/sc/inc/globstr.hrc
+++ b/sc/inc/globstr.hrc
@@ -599,8 +599,9 @@
#define STR_ERR_NAME_EXISTS 463
#define STR_ERR_NAME_INVALID 464
+#define STR_UNSAVED_EXT_REF 465
-#define STR_COUNT 465
+#define STR_COUNT 466
#endif