summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorArmin Le Grand (Allotropia) <Armin.Le.Grand@me.com>2022-01-18 17:43:16 +0100
committerArmin Le Grand <Armin.Le.Grand@me.com>2022-01-24 14:55:26 +0100
commit310d196d7df37921e71f500869fca68cf00797d5 (patch)
tree7f7470c6398135d58d4074d3da519726a8fdf958 /sw/inc
parent54cda94175f372695c55576817e3ae14655598ea (diff)
tdf#122995 Trigger Chart refresh directly in UpdateCharts for SW
For OLE/Charts in SW we do not (yet) have a refresh mechanism or embedding of the primitive represetation, so this needs to be done locally here (simple solution). To have the Chart already invalidated at the next repaint, I needed to add a 'immediate' mode to InvalidateTable. Note: The text there claiming that the framework should do this is correct, but as long as the mechanism is incomplete (VC/VOC/OC in SW) direct refresh is needed. Change-Id: I3c845b3ec46fbb494e7bce163cfe105145421450 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128572 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com> (cherry picked from commit d769e75de28a1afbb1df31b48840626cb35ed7ba) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128810 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/unochart.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/unochart.hxx b/sw/inc/unochart.hxx
index 49f8a295dfe1..b0bce6465eef 100644
--- a/sw/inc/unochart.hxx
+++ b/sw/inc/unochart.hxx
@@ -175,7 +175,8 @@ public:
void RemoveDataSequence( const SwTable &rTable, css::uno::Reference< css::chart2::data::XDataSequence > const &rxDataSequence );
// will send modified events for all data-sequences of the table
- void InvalidateTable( const SwTable *pTable );
+ // tdf#122995 added Immediate-Mode to allow non-timer-delayed Chart invalidation
+ void InvalidateTable( const SwTable *pTable, bool bImmediate = false );
void DeleteBox( const SwTable *pTable, const SwTableBox &rBox );
void DisposeAllDataSequences( const SwTable *pTable );