Kaydet (Commit) 02039def authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#36534 rework SvxSimpleTable to not manage its own parent

üst a76ca532
......@@ -139,19 +139,6 @@ public:
};
//=============================================================================
// class ScConflictsListBox
//=============================================================================
class ScConflictsListBox: public SvxRedlinTable
{
private:
public:
ScConflictsListBox( Window* pParent, const ResId& rResId );
~ScConflictsListBox();
};
//=============================================================================
// class ScConflictsDlg
//=============================================================================
......@@ -160,7 +147,8 @@ class ScConflictsDlg : public ModalDialog
{
private:
FixedText maFtConflicts;
ScConflictsListBox maLbConflicts;
SvxSimpleTableContainer m_aLbConflictsContainer;
SvxRedlinTable maLbConflicts;
PushButton maBtnKeepMine;
PushButton maBtnKeepOther;
FixedLine maFlConflicts;
......
......@@ -49,6 +49,7 @@ private:
FixedText maFtWarning;
FixedLine maFlUsers;
FixedText maFtUsers;
SvxSimpleTableContainer m_aLbUsersContainer;
SvxSimpleTable maLbUsers;
FixedLine maFlEnd;
HelpButton maBtnHelp;
......
......@@ -393,20 +393,6 @@ void ScConflictsResolver::HandleAction( ScChangeAction* pAction, bool bIsSharedA
}
}
//=============================================================================
// class ScConflictsListBox
//=============================================================================
ScConflictsListBox::ScConflictsListBox( Window* pParent, const ResId& rResId )
:SvxRedlinTable( pParent, rResId )
{
}
ScConflictsListBox::~ScConflictsListBox()
{
}
//=============================================================================
// class ScConflictsDlg
//=============================================================================
......@@ -414,7 +400,8 @@ ScConflictsListBox::~ScConflictsListBox()
ScConflictsDlg::ScConflictsDlg( Window* pParent, ScViewData* pViewData, ScDocument* pSharedDoc, ScConflictsList& rConflictsList )
:ModalDialog( pParent, ScResId( RID_SCDLG_CONFLICTS ) )
,maFtConflicts ( this, ScResId( FT_CONFLICTS ) )
,maLbConflicts ( this, ScResId( LB_CONFLICTS ) )
,m_aLbConflictsContainer(this, ScResId( LB_CONFLICTS))
,maLbConflicts(m_aLbConflictsContainer)
,maBtnKeepMine ( this, ScResId( BTN_KEEPMINE ) )
,maBtnKeepOther ( this, ScResId( BTN_KEEPOTHER ) )
,maFlConflicts ( this, ScResId( FL_CONFLICTS ) )
......@@ -753,8 +740,8 @@ void ScConflictsDlg::Resize()
lcl_ChangeControlWidth( maFtConflicts, nDeltaWidth );
lcl_ChangeControlWidth( maLbConflicts, nDeltaWidth );
lcl_ChangeControlHeight( maLbConflicts, nDeltaHeight );
lcl_ChangeControlWidth( m_aLbConflictsContainer, nDeltaWidth );
lcl_ChangeControlHeight( m_aLbConflictsContainer, nDeltaHeight );
lcl_MoveControlX( maBtnKeepMine, nDeltaWidth / 2 );
lcl_MoveControlY( maBtnKeepMine, nDeltaHeight );
......
......@@ -61,7 +61,8 @@ ScShareDocumentDlg::ScShareDocumentDlg( Window* pParent, ScViewData* pViewData )
,maFtWarning ( this, ScResId( FT_WARNING ) )
,maFlUsers ( this, ScResId( FL_USERS ) )
,maFtUsers ( this, ScResId( FT_USERS ) )
,maLbUsers ( this, ScResId( LB_USERS ) )
,m_aLbUsersContainer(this, ScResId(LB_USERS))
,maLbUsers(m_aLbUsersContainer)
,maFlEnd ( this, ScResId( FL_END ) )
,maBtnHelp ( this, ScResId( BTN_HELP ) )
,maBtnOK ( this, ScResId( BTN_OK ) )
......
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