diff options
Diffstat (limited to 'vcl/source/window/msgbox.cxx')
-rw-r--r-- | vcl/source/window/msgbox.cxx | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx index 9efff517e601..7a3c597c40a0 100644 --- a/vcl/source/window/msgbox.cxx +++ b/vcl/source/window/msgbox.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <tools/rc.h> #include <svids.hrc> @@ -35,9 +34,6 @@ #include <vcl/mnemonic.hxx> #include <vcl/settings.hxx> - - - static void ImplInitMsgBoxImageList() { ImplSVData* pSVData = ImplGetSVData(); @@ -54,8 +50,6 @@ static void ImplInitMsgBoxImageList() } } - - void MessBox::ImplInitMessBoxData() { mpVCLMultiLineEdit = NULL; @@ -65,8 +59,6 @@ void MessBox::ImplInitMessBoxData() mbCheck = false; } - - void MessBox::ImplInitButtons() { WinBits nStyle = GetStyle(); @@ -144,8 +136,6 @@ void MessBox::ImplInitButtons() } } - - MessBox::MessBox( Window* pParent, WinBits nStyle, const OUString& rTitle, const OUString& rMessage ) : ButtonDialog( WINDOW_MESSBOX ), @@ -159,8 +149,6 @@ MessBox::MessBox( Window* pParent, WinBits nStyle, SetText( rTitle ); } - - MessBox::MessBox( Window* pParent, const ResId& rResId ) : ButtonDialog( WINDOW_MESSBOX ) { @@ -182,8 +170,6 @@ MessBox::MessBox( Window* pParent, const ResId& rResId ) : ImplInitButtons(); } - - void MessBox::ImplLoadRes( const ResId& ) { SetText( ReadStringRes() ); @@ -191,8 +177,6 @@ void MessBox::ImplLoadRes( const ResId& ) SetHelpText( ReadStringRes() ); } - - MessBox::~MessBox() { delete mpVCLMultiLineEdit; @@ -200,8 +184,6 @@ MessBox::~MessBox() delete mpCheckBox; } - - void MessBox::ImplPosControls() { if ( !GetHelpId().isEmpty() ) @@ -397,8 +379,6 @@ void MessBox::ImplPosControls() SetPageSizePixel( aPageSize ); } - - void MessBox::StateChanged( StateChangedType nType ) { if ( nType == STATE_CHANGE_INITSHOW ) @@ -408,31 +388,23 @@ void MessBox::StateChanged( StateChangedType nType ) ButtonDialog::StateChanged( nType ); } - - bool MessBox::GetCheckBoxState() const { return mpCheckBox ? mpCheckBox->IsChecked() : mbCheck; } - - void MessBox::SetCheckBoxState( bool bCheck ) { if( mpCheckBox ) mpCheckBox->Check( bCheck ); mbCheck = bCheck; } - - Size MessBox::GetOptimalSize() const { // FIXME: base me on the font size ? return Size( 250, 100 ); } - - void InfoBox::ImplInitInfoBoxData() { // Default Text is the display title from the application @@ -442,40 +414,30 @@ void InfoBox::ImplInitInfoBoxData() SetImage( InfoBox::GetStandardImage() ); } - - InfoBox::InfoBox( Window* pParent, const OUString& rMessage ) : MessBox( pParent, WB_OK | WB_DEF_OK, OUString(), rMessage ) { ImplInitInfoBoxData(); } - - InfoBox::InfoBox( Window* pParent, const ResId & rResId ) : MessBox( pParent, rResId.SetRT( RSC_INFOBOX ) ) { ImplInitInfoBoxData(); } - - InfoBox::InfoBox( Window* pParent, WinBits nStyle, const OUString& rMessage ) : MessBox( pParent, nStyle, OUString(), rMessage ) { ImplInitInfoBoxData(); } - - Image InfoBox::GetStandardImage() { ImplInitMsgBoxImageList(); return ImplGetSVData()->maWinData.mpMsgBoxImgList->GetImage( 4 ); } - - void WarningBox::ImplInitWarningBoxData() { // Default Text is the display title from the application @@ -485,8 +447,6 @@ void WarningBox::ImplInitWarningBoxData() SetImage( WarningBox::GetStandardImage() ); } - - WarningBox::WarningBox( Window* pParent, WinBits nStyle, const OUString& rMessage ) : MessBox( pParent, nStyle, OUString(), rMessage ) @@ -494,16 +454,12 @@ WarningBox::WarningBox( Window* pParent, WinBits nStyle, ImplInitWarningBoxData(); } - - WarningBox::WarningBox( Window* pParent, const ResId& rResId ) : MessBox( pParent, rResId.SetRT( RSC_WARNINGBOX ) ) { ImplInitWarningBoxData(); } - - void WarningBox::SetDefaultCheckBoxText() { ResMgr* pResMgr = ImplGetResMgr(); @@ -511,16 +467,12 @@ void WarningBox::SetDefaultCheckBoxText() maCheckBoxText = ResId(SV_STDTEXT_DONTWARNAGAIN, *pResMgr).toString(); } - - Image WarningBox::GetStandardImage() { ImplInitMsgBoxImageList(); return ImplGetSVData()->maWinData.mpMsgBoxImgList->GetImage( 3 ); } - - void ErrorBox::ImplInitErrorBoxData() { // Default Text is the display title from the application @@ -530,8 +482,6 @@ void ErrorBox::ImplInitErrorBoxData() SetImage( ErrorBox::GetStandardImage() ); } - - ErrorBox::ErrorBox( Window* pParent, WinBits nStyle, const OUString& rMessage ) : MessBox( pParent, nStyle, OUString(), rMessage ) @@ -539,16 +489,12 @@ ErrorBox::ErrorBox( Window* pParent, WinBits nStyle, ImplInitErrorBoxData(); } - - ErrorBox::ErrorBox( Window* pParent, const ResId& rResId ) : MessBox( pParent, rResId.SetRT( RSC_ERRORBOX ) ) { ImplInitErrorBoxData(); } - - Image ErrorBox::GetStandardImage() { try @@ -564,8 +510,6 @@ Image ErrorBox::GetStandardImage() return ImplGetSVData()->maWinData.mpMsgBoxImgList->GetImage( 1 ); } - - void QueryBox::ImplInitQueryBoxData() { // Default Text is the display title from the application @@ -575,24 +519,18 @@ void QueryBox::ImplInitQueryBoxData() SetImage( QueryBox::GetStandardImage() ); } - - QueryBox::QueryBox( Window* pParent, WinBits nStyle, const OUString& rMessage ) : MessBox( pParent, nStyle, OUString(), rMessage ) { ImplInitQueryBoxData(); } - - QueryBox::QueryBox( Window* pParent, const ResId& rResId ) : MessBox( pParent, rResId.SetRT( RSC_QUERYBOX ) ) { ImplInitQueryBoxData(); } - - void QueryBox::SetDefaultCheckBoxText() { ResMgr* pResMgr = ImplGetResMgr(); @@ -600,8 +538,6 @@ void QueryBox::SetDefaultCheckBoxText() maCheckBoxText = ResId(SV_STDTEXT_DONTASKAGAIN, *pResMgr).toString(); } - - Image QueryBox::GetStandardImage() { ImplInitMsgBoxImageList(); |