convert OTableSubscriptionDialog to SfxSingleTabDialog
Change-Id: I8335012139ccaf58bc18d0779e63a5bc388c9fb4
This commit is contained in:
@@ -19,6 +19,7 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \
|
|||||||
dbaccess/uiconfig/ui/querypropertiesdialog \
|
dbaccess/uiconfig/ui/querypropertiesdialog \
|
||||||
dbaccess/uiconfig/ui/rowheightdialog \
|
dbaccess/uiconfig/ui/rowheightdialog \
|
||||||
dbaccess/uiconfig/ui/sortdialog \
|
dbaccess/uiconfig/ui/sortdialog \
|
||||||
|
dbaccess/uiconfig/ui/tablesfilterdialog \
|
||||||
))
|
))
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
# vim: set noet sw=4 ts=4:
|
||||||
|
@@ -42,10 +42,11 @@ OTableSubscriptionDialog::OTableSubscriptionDialog(Window* pParent
|
|||||||
,SfxItemSet* _pItems
|
,SfxItemSet* _pItems
|
||||||
,const Reference< XComponentContext >& _rxORB
|
,const Reference< XComponentContext >& _rxORB
|
||||||
,const ::com::sun::star::uno::Any& _aDataSourceName)
|
,const ::com::sun::star::uno::Any& _aDataSourceName)
|
||||||
:SfxNoLayoutSingleTabDialog(pParent,DLG_TABLE_FILTER,_pItems)
|
: SfxSingleTabDialog(pParent, _pItems, "TablesFilterDialog",
|
||||||
,m_pImpl( new ODbDataSourceAdministrationHelper( _rxORB, pParent, this ) )
|
"dbaccess/ui/tablesfilterdialog.ui")
|
||||||
,m_bStopExecution(sal_False)
|
, m_pImpl( new ODbDataSourceAdministrationHelper( _rxORB, pParent, this ) )
|
||||||
,m_pOutSet(_pItems)
|
, m_bStopExecution(sal_False)
|
||||||
|
, m_pOutSet(_pItems)
|
||||||
{
|
{
|
||||||
DBG_CTOR(OTableSubscriptionDialog,NULL);
|
DBG_CTOR(OTableSubscriptionDialog,NULL);
|
||||||
m_pImpl->setDataSourceOrName(_aDataSourceName);
|
m_pImpl->setDataSourceOrName(_aDataSourceName);
|
||||||
@@ -55,9 +56,9 @@ OTableSubscriptionDialog::OTableSubscriptionDialog(Window* pParent
|
|||||||
m_pImpl->translateProperties(xDatasource, *m_pOutSet);
|
m_pImpl->translateProperties(xDatasource, *m_pOutSet);
|
||||||
SetInputSet(m_pOutSet);
|
SetInputSet(m_pOutSet);
|
||||||
|
|
||||||
OTableSubscriptionPage* pTabPage = new OTableSubscriptionPage(this,*m_pOutSet,this);
|
OTableSubscriptionPage* pTabPage = new OTableSubscriptionPage(get_content_area(), *m_pOutSet, this);
|
||||||
pTabPage->SetServiceFactory(_rxORB);
|
pTabPage->SetServiceFactory(_rxORB);
|
||||||
SetTabPage(pTabPage);
|
setTabPage(pTabPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
OTableSubscriptionDialog::~OTableSubscriptionDialog()
|
OTableSubscriptionDialog::~OTableSubscriptionDialog()
|
||||||
@@ -71,7 +72,7 @@ short OTableSubscriptionDialog::Execute()
|
|||||||
short nRet = RET_CANCEL;
|
short nRet = RET_CANCEL;
|
||||||
if ( !m_bStopExecution )
|
if ( !m_bStopExecution )
|
||||||
{
|
{
|
||||||
nRet = SfxNoLayoutSingleTabDialog::Execute();
|
nRet = SfxSingleTabDialog::Execute();
|
||||||
if ( nRet == RET_OK )
|
if ( nRet == RET_OK )
|
||||||
{
|
{
|
||||||
m_pOutSet->Put(*GetOutputItemSet());
|
m_pOutSet->Put(*GetOutputItemSet());
|
||||||
|
@@ -40,7 +40,7 @@ namespace dbaui
|
|||||||
{
|
{
|
||||||
class ODbDataSourceAdministrationHelper;
|
class ODbDataSourceAdministrationHelper;
|
||||||
// OTableSubscriptionDialog
|
// OTableSubscriptionDialog
|
||||||
class OTableSubscriptionDialog : public SfxNoLayoutSingleTabDialog, public IItemSetHelper
|
class OTableSubscriptionDialog : public SfxSingleTabDialog, public IItemSetHelper
|
||||||
{
|
{
|
||||||
::std::auto_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
|
::std::auto_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
|
||||||
sal_Bool m_bStopExecution; // set when the dialog should not be executed
|
sal_Bool m_bStopExecution; // set when the dialog should not be executed
|
||||||
|
@@ -98,7 +98,6 @@
|
|||||||
#define DLG_DATABASE_TYPE_CHANGE RID_DIALOG_START + 28
|
#define DLG_DATABASE_TYPE_CHANGE RID_DIALOG_START + 28
|
||||||
#define DLG_DATABASE_WIZARD RID_DIALOG_START + 29
|
#define DLG_DATABASE_WIZARD RID_DIALOG_START + 29
|
||||||
#define DLG_TEXT_CONNECTION_SETTINGS RID_DIALOG_START + 31
|
#define DLG_TEXT_CONNECTION_SETTINGS RID_DIALOG_START + 31
|
||||||
#define DLG_TABLE_FILTER RID_DIALOG_START + 32
|
|
||||||
//========================================================================
|
//========================================================================
|
||||||
// tab pages
|
// tab pages
|
||||||
|
|
||||||
|
82
dbaccess/uiconfig/ui/tablesfilterdialog.ui
Normal file
82
dbaccess/uiconfig/ui/tablesfilterdialog.ui
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Generated with glade 3.16.0 on Tue Jan 21 09:32:06 2014 -->
|
||||||
|
<interface>
|
||||||
|
<!-- interface-requires gtk+ 3.0 -->
|
||||||
|
<object class="GtkDialog" id="TablesFilterDialog">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="border_width">6</property>
|
||||||
|
<property name="title" translatable="yes">Tables Filter</property>
|
||||||
|
<property name="type_hint">dialog</property>
|
||||||
|
<child internal-child="vbox">
|
||||||
|
<object class="GtkBox" id="dialog-vbox1">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<child internal-child="action_area">
|
||||||
|
<object class="GtkButtonBox" id="dialog-action_area1">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="layout_style">end</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="ok">
|
||||||
|
<property name="label">gtk-ok</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="can_default">True</property>
|
||||||
|
<property name="has_default">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="cancel">
|
||||||
|
<property name="label">gtk-cancel</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="help">
|
||||||
|
<property name="label">gtk-help</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="pack_type">end</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<placeholder/>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<action-widgets>
|
||||||
|
<action-widget response="0">ok</action-widget>
|
||||||
|
<action-widget response="0">cancel</action-widget>
|
||||||
|
<action-widget response="0">help</action-widget>
|
||||||
|
</action-widgets>
|
||||||
|
</object>
|
||||||
|
</interface>
|
Reference in New Issue
Block a user