Kaydet (Commit) 6c19b971 authored tarafından Pranav Kant's avatar Pranav Kant Kaydeden (comit) Jan Holesovsky

lokdialog: Emit callback when title is changed

The plan is to remove the getDialogInfo from LOK API but one more step
before doing that is to find out why the dialog size in 'created'
dialog callback is less than what the actual dialog after painting is.

Change-Id: I5176e175cbf7ed81c1465feeeea053c9a024fbd9
üst 2175822e
......@@ -59,6 +59,7 @@
#include <salframe.hxx>
#include <iostream>
#include <utility>
static OString ImplGetDialogText( Dialog* pDialog )
{
......@@ -691,6 +692,15 @@ void Dialog::StateChanged( StateChangedType nType )
ImplMouseAutoPos( this );
}
else if (nType == StateChangedType::Text)
{
if (const vcl::ILibreOfficeKitNotifier* pNotifier = GetLOKNotifier())
{
std::vector<vcl::LOKPayloadItem> aPayload;
aPayload.push_back(std::make_pair(OString("title"), GetText().toUtf8()));
pNotifier->notifyWindow(GetLOKWindowId(), "title_changed", aPayload);
}
}
SystemWindow::StateChanged( nType );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment