Kaydet (Commit) 0938ab46 authored tarafından Caolán McNamara's avatar Caolán McNamara

weld XMLFilterTestDialog

Change-Id: Iaf2af607af1a6f42ab3156fabbc468d80264b14a
Reviewed-on: https://gerrit.libreoffice.org/53141Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 308c2084
......@@ -759,8 +759,8 @@ void XMLFilterSettingsDialog::onTest()
{
filter_info_impl* pInfo = static_cast<filter_info_impl*>(pEntry->GetUserData());
ScopedVclPtrInstance< XMLFilterTestDialog > aDlg(this, mxContext);
aDlg->test( *pInfo );
XMLFilterTestDialog aDlg(GetFrameWeld(), mxContext);
aDlg.test( *pInfo );
}
}
......
......@@ -23,28 +23,24 @@
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/document/XDocumentEventBroadcaster.hpp>
#include <vcl/button.hxx>
#include <vcl/dialog.hxx>
#include <vcl/fixed.hxx>
#include <vcl/layout.hxx>
#include <vcl/weld.hxx>
#include <svl/poolitem.hxx>
class filter_info_impl;
class XMLFilterTestDialog : public ModalDialog
class XMLFilterTestDialog : public weld::GenericDialogController
{
public:
XMLFilterTestDialog(vcl::Window* pParent,
XMLFilterTestDialog(weld::Window* pParent,
const css::uno::Reference< css::uno::XComponentContext >& rxContext);
virtual ~XMLFilterTestDialog() override;
virtual void dispose() override;
void test( const filter_info_impl& rFilterInfo );
void updateCurrentDocumentButtonState( css::uno::Reference< css::lang::XComponent > const * pRef = nullptr );
private:
DECL_LINK(ClickHdl_Impl, Button *, void );
DECL_LINK(ClickHdl_Impl, weld::Button&, void);
void onExportBrowse();
void onExportCurrentDocument();
......@@ -64,27 +60,23 @@ private:
OUString m_sImportRecentFile;
OUString m_sExportRecentFile;
VclPtr<VclContainer> m_pExport;
VclPtr<FixedText> m_pFTExportXSLTFile;
VclPtr<PushButton> m_pPBExportBrowse;
VclPtr<PushButton> m_pPBCurrentDocument;
VclPtr<FixedText> m_pFTNameOfCurrentFile;
VclPtr<VclContainer> m_pImport;
VclPtr<FixedText> m_pFTImportXSLTFile;
VclPtr<FixedText> m_pFTImportTemplate;
VclPtr<FixedText> m_pFTImportTemplateFile;
VclPtr<CheckBox> m_pCBXDisplaySource;
VclPtr<PushButton> m_pPBImportBrowse;
VclPtr<PushButton> m_pPBRecentFile;
VclPtr<FixedText> m_pFTNameOfRecentFile;
VclPtr<CloseButton> m_pPBClose;
filter_info_impl* m_pFilterInfo;
filter_info_impl* m_xFilterInfo;
OUString m_sDialogTitle;
std::unique_ptr<weld::Widget> m_xExport;
std::unique_ptr<weld::Label> m_xFTExportXSLTFile;
std::unique_ptr<weld::Button> m_xPBExportBrowse;
std::unique_ptr<weld::Button> m_xPBCurrentDocument;
std::unique_ptr<weld::Label> m_xFTNameOfCurrentFile;
std::unique_ptr<weld::Widget> m_xImport;
std::unique_ptr<weld::Label> m_xFTImportXSLTFile;
std::unique_ptr<weld::Label> m_xFTImportTemplate;
std::unique_ptr<weld::Label> m_xFTImportTemplateFile;
std::unique_ptr<weld::CheckButton> m_xCBXDisplaySource;
std::unique_ptr<weld::Button> m_xPBImportBrowse;
std::unique_ptr<weld::Button> m_xPBRecentFile;
std::unique_ptr<weld::Label> m_xFTNameOfRecentFile;
std::unique_ptr<weld::Button> m_xPBClose;
};
#endif
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<!-- Generated with glade 3.20.4 -->
<interface domain="flt">
<requires lib="gtk+" version="3.18"/>
<object class="GtkDialog" id="TestXMLFilterDialog">
......@@ -7,6 +7,9 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" context="testxmlfilter|TestXMLFilterDialog">Test XML Filter: %s</property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="default_width">0</property>
<property name="default_height">0</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
......@@ -85,8 +88,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="testxmlfilter|label3">XSLT for export</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -98,8 +101,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="testxmlfilter|label4">Transform document</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -145,8 +148,8 @@
<object class="GtkLabel" id="currentfilename">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="width_chars">52</property>
<property name="xalign">1</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -201,8 +204,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="testxmlfilter|label5">XSLT for import</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -238,8 +241,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="testxmlfilter|templateimport">Template for import</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -277,8 +280,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="testxmlfilter|label6">Transform file</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -300,8 +303,8 @@
<object class="GtkLabel" id="recentfilename">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="width_chars">52</property>
<property name="xalign">1</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -349,6 +352,9 @@
<action-widget response="-7">close</action-widget>
<action-widget response="-11">help</action-widget>
</action-widgets>
<child>
<placeholder/>
</child>
</object>
<object class="GtkSizeGroup" id="sizegroup1">
<widgets>
......
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