This one changes the button text and dialog header.
This commit is contained in:
parent
58ee09b87b
commit
55d2e9992a
3 changed files with 7 additions and 15 deletions
|
@ -165,21 +165,13 @@ void SfxAlienWarningDialog::InitSize()
|
|||
// recalculate the size and position of the buttons
|
||||
m_aMoreInfoBtn.Hide();
|
||||
nTxtW = m_aKeepCurrentBtn.GetCtrlTextWidth( m_aKeepCurrentBtn.GetText() );
|
||||
long nTemp = m_aSaveODFBtn.GetCtrlTextWidth( m_aSaveODFBtn.GetText() );
|
||||
if ( nTemp > nTxtW )
|
||||
nTxtW = nTemp;
|
||||
nTxtW += IMPL_EXTRA_BUTTON_WIDTH;
|
||||
Size a3Size = LogicToPixel( Size( 3, 3 ), MAP_APPFONT );
|
||||
Point aPos = m_aKeepCurrentBtn.GetPosPixel();
|
||||
aPos.X() = ( aNewSize.Width() - (2*nTxtW) - a3Size.Width() ) / 2;
|
||||
long nDefX = m_aWarningOnBox.GetPosPixel().X();
|
||||
if ( nDefX < aPos.X() )
|
||||
aPos.X() = nDefX;
|
||||
aNewSize = m_aKeepCurrentBtn.GetSizePixel();
|
||||
aNewSize.Width() = nTxtW;
|
||||
m_aKeepCurrentBtn.SetPosSizePixel( aPos, aNewSize );
|
||||
aPos.X() += nTxtW + a3Size.Width();
|
||||
m_aSaveODFBtn.SetPosSizePixel( aPos, aNewSize );
|
||||
m_aKeepCurrentBtn.SetSizePixel( aNewSize );
|
||||
Point aPos = m_aSaveODFBtn.GetPosPixel();
|
||||
aPos.X() = AW_COL_3 + nTxtW;
|
||||
m_aSaveODFBtn.SetPosPixel( aPos );
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
// --------- general metrics ---------
|
||||
|
||||
#define SYMBOL_EDGE 20
|
||||
#define DIALOG_WIDTH 270
|
||||
#define DIALOG_WIDTH 250
|
||||
#define INFO_TEXT_LINES 11
|
||||
|
||||
#define AW_COL_1 (RSC_SP_DLG_INNERBORDER_LEFT)
|
||||
|
|
|
@ -38,7 +38,7 @@ ModalDialog RID_DLG_ALIEN_WARNING
|
|||
Moveable = TRUE;
|
||||
SVLook = TRUE;
|
||||
|
||||
Text = "%PRODUCTNAME %PRODUCTVERSION %PRODUCTEXTENSION";
|
||||
Text = "Save";
|
||||
|
||||
FixedImage FI_QUERY
|
||||
{
|
||||
|
@ -65,7 +65,7 @@ ModalDialog RID_DLG_ALIEN_WARNING
|
|||
{
|
||||
Pos = MAP_APPFONT( AW_COL_3, AW_ROW_2 );
|
||||
Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
|
||||
Text [ en-US ] = "Use Default ~ODF Format";
|
||||
Text [ en-US ] = "Use ~ODF Format";
|
||||
};
|
||||
HelpButton PB_MOREINFO
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue