Kaydet (Commit) 9ecc2d4d authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: send signal when modeless dialog is ready

Change-Id: Iacd066d1ebfc5dd48c1be6ac0905ad39ef33d261
üst 36b39fe4
......@@ -730,6 +730,16 @@ void Dialog::StateChanged( StateChangedType nType )
ImplInitSettings();
Invalidate();
}
if (!mbModalMode && nType == StateChangedType::Visible)
{
css::uno::Reference< css::uno::XComponentContext > xContext(
comphelper::getProcessComponentContext() );
css::uno::Reference<css::frame::XGlobalEventBroadcaster> xEventBroadcaster(css::frame::theGlobalEventBroadcaster::get(xContext), css::uno::UNO_QUERY_THROW);
css::document::DocumentEvent aObject;
aObject.EventName = "ModelessDialogVisible";
xEventBroadcaster->documentEventOccured(aObject);
}
}
void Dialog::DataChanged( const DataChangedEvent& rDCEvt )
......
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