diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-09 21:46:34 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-09 21:55:14 -0400 |
commit | b023565d4f064cd0312e8c1fcc23a9f552112935 (patch) | |
tree | 3bce431d963ef388c109ec145436dff4a0bcd805 /include/svx/svdoole2.hxx | |
parent | 4468ab0e0c0ecb50de68d2ecce327756a50eb0ae (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...
Change-Id: I7dd92550880efb4db8fc843cf1c915c712166da4
Diffstat (limited to 'include/svx/svdoole2.hxx')
-rw-r--r-- | include/svx/svdoole2.hxx | 7 |
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(); |