summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-07-09 21:46:34 -0400
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-07-10 05:04:38 +0000
commit2ced18a6e90e3c9494e48994af39c5d710188c44 (patch)
treee91800849311f584d78762d4d0d0ed36c835f74f /include
parentcd8acfacdc02dc6dbfc6a73ef64c5bec8eefebf4 (diff)
bnc#883684: Make chart objects exempt from automatic unloading.
The Memory option page contains "Number of objects" setting which controls how many OLE objects can be loaded at any given time. When the number of total OLE objects exceeds this number the oldest ones get unloaded. Note that the total number is across all open documents, not per document. Technically, chart objects are OLE objects, but unlike other OLE objects that are embedded Calc, Writer, Draw documents, chart objects normally "belong" to the host document. It therefore makes no sense to subject chart objects to this automatic unloading. In the future we may want to apply this exemption to other types of OLE objects, like formula objects for example.. Or maybe this setting can be removed altogether... (cherry picked from commit b023565d4f064cd0312e8c1fcc23a9f552112935) Conflicts: svx/source/svdraw/svdetc.cxx Change-Id: I7dd92550880efb4db8fc843cf1c915c712166da4 Reviewed-on: https://gerrit.libreoffice.org/10179 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdoole2.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/svx/svdoole2.hxx b/include/svx/svdoole2.hxx
index 68ad43e7afc8..21d3b5629b53 100644
--- a/include/svx/svdoole2.hxx
+++ b/include/svx/svdoole2.hxx
@@ -171,6 +171,13 @@ public:
bool IsChart() const;
bool IsCalc() const;
+ /**
+ * Unloadable OLE objects are subject to automatic unloading per memory
+ * setting. The "Number of objects" setting in the Memory option controls
+ * how many OLE objects can be loaded at any given moment.
+ */
+ bool IsUnloadable() const;
+
bool UpdateLinkURL_Impl();
void BreakFileLink_Impl();
void DisconnectFileLink_Impl();