summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-11-22 22:25:20 +0530
committerAndras Timar <andras.timar@collabora.com>2018-03-19 14:55:32 +0100
commit6044786138197429de0ba8fc3b7bdacd894c53d9 (patch)
treef61f7284348375ee47c6c0015904eaef20611309 /tools
parentadfb5fd51f3c84dd530d27a403eec72da53f0a26 (diff)
lokdialog: Changed dialog painting to allow for modal dialogs
Split IDialogNotifier from IDialogRenderable and make SfxViewShell implement it. We now just send the dialog UNO command to the backend and wait for core to emit a 'created' dialog callback which signals dialog creation in the backend. The client is then supposed to send the paint commands for rendering the dialog. Change-Id: I1bfbce83c17955fa0212408376d6bcd1b2d2d1dd (cherry picked from commit 871eb68e14631d22aeb00ec33f0e5d801291942e)
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/gen.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx
index a3bf8d754aa4..2627d9202842 100644
--- a/tools/source/generic/gen.cxx
+++ b/tools/source/generic/gen.cxx
@@ -41,6 +41,16 @@ SvStream& WritePair( SvStream& rOStream, const Pair& rPair )
return rOStream;
}
+rtl::OString Pair::toString() const
+{
+ std::stringstream ss;
+ // Note that this is not just used for debugging output but the
+ // format is parsed by external code (passed in callbacks to
+ // LibreOfficeKit clients). So don't change.
+ ss << A() << ", " << B();
+ return ss.str().c_str();
+}
+
void tools::Rectangle::SetSize( const Size& rSize )
{
if ( rSize.Width() < 0 )