Convert 3 dialogs to .ui
I converted RID_DLG_LISTCOMBOWIZARD, RID_DLG_GROUPBOXWIZARD and RID_DLG_GRIDWIZARD to .ui Change-Id: I221f22edbe4c638bfa80065d7775f78af24590cc Reviewed-on: https://gerrit.libreoffice.org/10277 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
committed by
Caolán McNamara
parent
38d0bde62b
commit
415ae83522
@@ -275,9 +275,9 @@ namespace dbp
|
||||
//= OControlWizard
|
||||
|
||||
|
||||
OControlWizard::OControlWizard( Window* _pParent, const ResId& _rId,
|
||||
OControlWizard::OControlWizard( Window* _pParent,
|
||||
const Reference< XPropertySet >& _rxObjectModel, const Reference< XComponentContext >& _rxContext )
|
||||
:OWizardMachine(_pParent, _rId, WZB_CANCEL | WZB_PREVIOUS | WZB_NEXT | WZB_FINISH)
|
||||
:OWizardMachine(_pParent, WZB_CANCEL | WZB_PREVIOUS | WZB_NEXT | WZB_FINISH)
|
||||
,m_xContext(_rxContext)
|
||||
{
|
||||
m_aContext.xObjectModel = _rxObjectModel;
|
||||
|
||||
@@ -112,7 +112,6 @@ namespace dbp
|
||||
public:
|
||||
OControlWizard(
|
||||
Window* _pParent,
|
||||
const ResId& _rId,
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObjectModel,
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext
|
||||
);
|
||||
|
||||
@@ -19,37 +19,13 @@
|
||||
|
||||
#include "dbpresid.hrc"
|
||||
|
||||
ModalDialog RID_DLG_GROUPBOXWIZARD
|
||||
String RID_STR_GROUPWIZARD_TITLE
|
||||
{
|
||||
HelpID = "extensions:ModalDialog:RID_DLG_GROUPBOXWIZARD";
|
||||
Text [ en-US ] = "Group Element Wizard";
|
||||
|
||||
OutputSize = TRUE ;
|
||||
SVLook = TRUE ;
|
||||
Moveable = TRUE ;
|
||||
Closeable = TRUE ;
|
||||
Hide = TRUE;
|
||||
};
|
||||
|
||||
ModalDialog RID_DLG_LISTCOMBOWIZARD
|
||||
String RID_STR_GRIDWIZARD_TITLE
|
||||
{
|
||||
HelpID = "extensions:ModalDialog:RID_DLG_LISTCOMBOWIZARD";
|
||||
OutputSize = TRUE ;
|
||||
SVLook = TRUE ;
|
||||
Moveable = TRUE ;
|
||||
Closeable = TRUE ;
|
||||
Hide = TRUE;
|
||||
};
|
||||
|
||||
ModalDialog RID_DLG_GRIDWIZARD
|
||||
{
|
||||
HelpID = "extensions:ModalDialog:RID_DLG_GRIDWIZARD";
|
||||
OutputSize = TRUE ;
|
||||
SVLook = TRUE ;
|
||||
Moveable = TRUE ;
|
||||
Closeable = TRUE ;
|
||||
Hide = TRUE;
|
||||
|
||||
Text [ en-US ] = "Table Element Wizard";
|
||||
};
|
||||
|
||||
|
||||
@@ -44,18 +44,14 @@
|
||||
#define RID_STR_TYPE_COMMAND (RID_STRING_START + 10 )
|
||||
#define RID_STR_FIELDINFO_LISTBOX (RID_STRING_START + 11 )
|
||||
#define RID_STR_FIELDINFO_COMBOBOX (RID_STRING_START + 12 )
|
||||
#define RID_STR_GRIDWIZARD_TITLE (RID_STRING_START + 13 )
|
||||
#define RID_STR_GROUPWIZARD_TITLE (RID_STRING_START + 14 )
|
||||
|
||||
// please adjust RID_STRING_END (below) when adding new strings
|
||||
#define RID_STRING_END RID_STR_TIMEPOSTFIX
|
||||
|
||||
// dialogs
|
||||
|
||||
#define RID_DLG_GROUPBOXWIZARD ( RID_DIALOG_START + 1 )
|
||||
#define RID_DLG_LISTCOMBOWIZARD ( RID_DIALOG_START + 2 )
|
||||
#define RID_DLG_GRIDWIZARD ( RID_DIALOG_START + 3 )
|
||||
|
||||
// please adjust RID_DIALOG_END (below) when adding new dialogs
|
||||
#define RID_DIALOG_END RID_DLG_GRIDWIZARD
|
||||
#define RID_DIALOG_END ( RID_DIALOG_START + 3 )
|
||||
|
||||
// tab pages
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace dbp
|
||||
|
||||
OGridWizard::OGridWizard( Window* _pParent,
|
||||
const Reference< XPropertySet >& _rxObjectModel, const Reference< XComponentContext >& _rxContext )
|
||||
:OControlWizard(_pParent, ModuleRes(RID_DLG_GRIDWIZARD), _rxObjectModel, _rxContext)
|
||||
:OControlWizard(_pParent, _rxObjectModel, _rxContext)
|
||||
,m_bHadDataSelection(true)
|
||||
{
|
||||
initControlSettings(&m_aSettings);
|
||||
@@ -63,6 +63,7 @@ namespace dbp
|
||||
m_pNextPage->SetHelpId(HID_GRIDWIZARD_NEXT);
|
||||
m_pCancel->SetHelpId(HID_GRIDWIZARD_CANCEL);
|
||||
m_pFinish->SetHelpId(HID_GRIDWIZARD_FINISH);
|
||||
setTitleBase(ModuleRes(RID_STR_GRIDWIZARD_TITLE).toString());
|
||||
|
||||
// if we do not need the data source selection page ...
|
||||
if (!needDatasourceSelection())
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace dbp
|
||||
|
||||
OGroupBoxWizard::OGroupBoxWizard( Window* _pParent,
|
||||
const Reference< XPropertySet >& _rxObjectModel, const Reference< XComponentContext >& _rxContext )
|
||||
:OControlWizard(_pParent, ModuleRes(RID_DLG_GROUPBOXWIZARD), _rxObjectModel, _rxContext)
|
||||
:OControlWizard(_pParent, _rxObjectModel, _rxContext)
|
||||
,m_bVisitedDefault(false)
|
||||
,m_bVisitedDB(false)
|
||||
{
|
||||
@@ -59,6 +59,7 @@ namespace dbp
|
||||
m_pNextPage->SetHelpId(HID_GROUPWIZARD_NEXT);
|
||||
m_pCancel->SetHelpId(HID_GROUPWIZARD_CANCEL);
|
||||
m_pFinish->SetHelpId(HID_GROUPWIZARD_FINISH);
|
||||
setTitleBase(ModuleRes(RID_STR_GROUPWIZARD_TITLE).toString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace dbp
|
||||
|
||||
OListComboWizard::OListComboWizard( Window* _pParent,
|
||||
const Reference< XPropertySet >& _rxObjectModel, const Reference< XComponentContext >& _rxContext )
|
||||
:OControlWizard(_pParent, ModuleRes(RID_DLG_LISTCOMBOWIZARD), _rxObjectModel, _rxContext)
|
||||
:OControlWizard(_pParent, _rxObjectModel, _rxContext)
|
||||
,m_bListBox(false)
|
||||
,m_bHadDataSelection(true)
|
||||
{
|
||||
|
||||
@@ -177,6 +177,7 @@ namespace svt
|
||||
*/
|
||||
OWizardMachine(Window* _pParent, const ResId& _rRes, sal_uInt32 _nButtonFlags );
|
||||
OWizardMachine(Window* _pParent, const WinBits i_nStyle, sal_uInt32 _nButtonFlags );
|
||||
OWizardMachine(Window* _pParent, sal_uInt32 _nButtonFlags );
|
||||
virtual ~OWizardMachine();
|
||||
|
||||
/// enable (or disable) buttons
|
||||
|
||||
@@ -254,6 +254,7 @@ private:
|
||||
public:
|
||||
WizardDialog( Window* pParent, WinBits nStyle = WB_STDTABDIALOG );
|
||||
WizardDialog( Window* pParent, const ResId& rResId );
|
||||
WizardDialog( Window* pParent, const OString& rID, const OUString& rUIXMLDescription );
|
||||
virtual ~WizardDialog();
|
||||
|
||||
virtual void Resize() SAL_OVERRIDE;
|
||||
|
||||
@@ -12,11 +12,12 @@ $(eval $(call gb_UIConfig_UIConfig,svt))
|
||||
$(eval $(call gb_UIConfig_add_uifiles,svt,\
|
||||
svtools/uiconfig/ui/addresstemplatedialog \
|
||||
svtools/uiconfig/ui/graphicexport \
|
||||
svtools/uiconfig/ui/GraphicExportOptionsDialog \
|
||||
svtools/uiconfig/ui/placeedit \
|
||||
svtools/uiconfig/ui/printersetupdialog \
|
||||
svtools/uiconfig/ui/querydeletedialog \
|
||||
svtools/uiconfig/ui/restartdialog \
|
||||
svtools/uiconfig/ui/GraphicExportOptionsDialog \
|
||||
svtools/uiconfig/ui/wizarddialog \
|
||||
))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
||||
@@ -148,6 +148,19 @@ namespace svt
|
||||
}
|
||||
|
||||
|
||||
OWizardMachine::OWizardMachine(Window* _pParent, sal_uInt32 _nButtonFlags )
|
||||
:WizardDialog( _pParent, "WizardDialog", "svt/ui/wizarddialog.ui" )
|
||||
,m_pFinish(NULL)
|
||||
,m_pCancel(NULL)
|
||||
,m_pNextPage(NULL)
|
||||
,m_pPrevPage(NULL)
|
||||
,m_pHelp(NULL)
|
||||
,m_pImpl( new WizardMachineImplData )
|
||||
{
|
||||
implConstruct( _nButtonFlags );
|
||||
}
|
||||
|
||||
|
||||
void OWizardMachine::implConstruct( const sal_uInt32 _nButtonFlags )
|
||||
{
|
||||
m_pImpl->sTitleBase = GetText();
|
||||
|
||||
@@ -377,6 +377,14 @@ WizardDialog::WizardDialog( Window* pParent, const ResId& rResId ) :
|
||||
|
||||
|
||||
|
||||
WizardDialog::WizardDialog( Window* pParent, const OString& rID, const OUString& rUIXMLDescription ) :
|
||||
ModalDialog( pParent, rID, rUIXMLDescription )
|
||||
{
|
||||
ImplInitData();
|
||||
}
|
||||
|
||||
|
||||
|
||||
WizardDialog::~WizardDialog()
|
||||
{
|
||||
maWizardLayoutTimer.Stop();
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="WizardDialog">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="default_width">600</property>
|
||||
<property name="default_height">400</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
Reference in New Issue
Block a user