summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/about.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/about.cxx')
-rw-r--r--cui/source/dialogs/about.cxx23
1 files changed, 21 insertions, 2 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 009bcfeca92d..e0e04c5fab04 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -105,6 +105,8 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId) :
aInfoLink ( this, ResId( ABOUT_FTXT_LINK, *rId.GetResMgr() ) ),
aTdfLink ( this, ResId( ABOUT_TDFSTR_LINK, *rId.GetResMgr() ) ),
aFeaturesLink ( this, ResId( ABOUT_FEATURES_LINK, *rId.GetResMgr() ) ),
+ aButtonsLine ( this, ResId( ABOUT_BUTTONS_LINE, *rId.GetResMgr() ) ),
+ aCancelButton ( this, ResId( ABOUT_BTN_CANCEL, *rId.GetResMgr() ) ),
aVersionTextStr(ResId(ABOUT_STR_VERSION, *rId.GetResMgr())),
m_aVendorTextStr(ResId(ABOUT_STR_VENDOR, *rId.GetResMgr())),
m_aOracleCopyrightTextStr(ResId(ABOUT_STR_COPYRIGHT_ORACLE_DERIVED, *rId.GetResMgr())),
@@ -254,9 +256,26 @@ AboutDialog::AboutDialog( Window* pParent, const ResId& rId) :
aLTPnt.Y() = aLTPnt.Y() + aLTSize.Height() + nLineSpace;
aInfoLink.SetPosSizePixel( aLTPnt, aLTSize );
- nY += aLTSize.Height() + nLineSpace;
+ nY += aLTSize.Height();
+
+ // buttons delimiter line
+ Size aBDSize = aButtonsLine.GetSizePixel();
+ aBDSize.Width() = aOutSiz.Width();
+ Point aBDPnt;
+ aBDPnt.X() = 0;
+ aBDPnt.Y() = nY + nCtrlMargin / 2 + aBDSize.Height() / 2;
+ aButtonsLine.SetPosSizePixel( aBDPnt, aBDSize );
+
+ nY += nCtrlMargin + aBDSize.Height();
+
+ // Cancel-Button-Position (at the bottom and in the right)
+ Size aCancelSiz = aCancelButton.GetSizePixel();
+ Point aCancelPnt;
+ aCancelPnt.X() = aOutSiz.Width() - aCancelSiz.Width() - nDlgMargin / 2;
+ aCancelPnt.Y() = nY;
+ aCancelButton.SetPosPixel( aCancelPnt );
- nY += nCtrlMargin;
+ nY += aCancelSiz.Height() + nCtrlMargin / 2;
aOutSiz.Height() = nY;