summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/querydesign/querydlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/querydesign/querydlg.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.cxx22
1 files changed, 8 insertions, 14 deletions
diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx
index e382fda8f23f..3229a55daa63 100644
--- a/dbaccess/source/ui/querydesign/querydlg.cxx
+++ b/dbaccess/source/ui/querydesign/querydlg.cxx
@@ -47,6 +47,7 @@ public:
OJoinControl(Window* _pParent,const ResId& _rResId);
};
+
OJoinControl::OJoinControl(Window* _pParent,const ResId& _rResId)
: Window(_pParent,_rResId)
,aFL_Join( this, ResId( FL_JOIN,*_rResId.GetResMgr() ) )
@@ -56,9 +57,9 @@ OJoinControl::OJoinControl(Window* _pParent,const ResId& _rResId)
{
FreeResource();
}
-// -----------------------------------------------------------------------------
+
} // dbaui
-// -----------------------------------------------------------------------------
+
DBG_NAME(DlgQryJoin)
DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
const TTableConnectionData::value_type& _pData,
@@ -81,7 +82,6 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
DBG_CTOR(DlgQryJoin,NULL);
aML_HelpText.SetControlBackground( GetSettings().GetStyleSettings().GetFaceColor() );
- //////////////////////////////////////////////////////////////////////
// Connection kopieren
m_pConnData.reset(_pData->NewInstance());
m_pConnData->CopyFrom(*_pData);
@@ -160,14 +160,13 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
FreeResource();
}
-//------------------------------------------------------------------------
DlgQryJoin::~DlgQryJoin()
{
DBG_DTOR(DlgQryJoin,NULL);
delete m_pJoinControl;
delete m_pTableControl;
}
-// -----------------------------------------------------------------------------
+
IMPL_LINK( DlgQryJoin, LBChangeHdl, ListBox*, /*pListBox*/ )
{
DBG_CHKTHIS(DlgQryJoin,NULL);
@@ -256,7 +255,6 @@ IMPL_LINK( DlgQryJoin, LBChangeHdl, ListBox*, /*pListBox*/ )
aML_HelpText.SetText( sHelpText );
return 1;
}
-// -----------------------------------------------------------------------------
IMPL_LINK( DlgQryJoin, OKClickHdl, Button*, /*pButton*/ )
{
@@ -268,7 +266,6 @@ IMPL_LINK( DlgQryJoin, OKClickHdl, Button*, /*pButton*/ )
EndDialog(RET_OK);
return 1;
}
-// -----------------------------------------------------------------------------
IMPL_LINK( DlgQryJoin, NaturalToggleHdl, CheckBox*, /*pButton*/ )
{
@@ -301,24 +298,24 @@ IMPL_LINK( DlgQryJoin, NaturalToggleHdl, CheckBox*, /*pButton*/ )
return 1;
}
-// -----------------------------------------------------------------------------
+
TTableConnectionData::value_type DlgQryJoin::getConnectionData() const
{
return m_pConnData;
}
-// -----------------------------------------------------------------------------
+
void DlgQryJoin::setValid(sal_Bool _bValid)
{
aPB_OK.Enable(_bValid || eJoinType == CROSS_JOIN );
}
-// -----------------------------------------------------------------------------
+
void DlgQryJoin::notifyConnectionChange( )
{
setJoinType( static_cast<OQueryTableConnectionData*>(m_pConnData.get())->GetJoinType() );
m_pJoinControl->m_aCBNatural.Check(static_cast<OQueryTableConnectionData*>(m_pConnData.get())->isNatural());
NaturalToggleHdl(&m_pJoinControl->m_aCBNatural);
}
-// -----------------------------------------------------------------------------
+
void DlgQryJoin::setJoinType(EJoinType _eNewJoinType)
{
eJoinType = _eNewJoinType;
@@ -357,8 +354,5 @@ void DlgQryJoin::setJoinType(EJoinType _eNewJoinType)
LBChangeHdl(&m_pJoinControl->aLB_JoinType);
}
-// -----------------------------------------------------------------------------
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */