summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-08-15 09:18:29 +0200
committerJan Holesovsky <kendy@suse.cz>2011-08-15 13:11:53 +0200
commit099c219cf67e469c4177d41bfcdbfb70a9988931 (patch)
tree0f92efdbabbb38d37f437c081143b9f3cda5bcab /vcl
parentfc3d82ad7acaa63e852d1d4ee39324e96ecd8810 (diff)
callcatcher: Remove unused ButtonDialog methods.
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/btndlg.hxx6
-rw-r--r--vcl/source/window/btndlg.cxx62
2 files changed, 0 insertions, 68 deletions
diff --git a/vcl/inc/vcl/btndlg.hxx b/vcl/inc/vcl/btndlg.hxx
index ec537f517374..5c0348c8199d 100644
--- a/vcl/inc/vcl/btndlg.hxx
+++ b/vcl/inc/vcl/btndlg.hxx
@@ -81,7 +81,6 @@ protected:
public:
ButtonDialog( Window* pParent, WinBits nStyle = WB_STDDIALOG );
- ButtonDialog( Window* pParent, const ResId& rResId );
~ButtonDialog();
virtual void Resize();
@@ -96,18 +95,13 @@ public:
void AddButton( const XubString& rText, sal_uInt16 nId, sal_uInt16 nBtnFlags, long nSepPixel = 0 );
void AddButton( StandardButtonType eType, sal_uInt16 nId, sal_uInt16 nBtnFlags, long nSepPixel = 0 );
- void AddButton( PushButton* pBtn, sal_uInt16 nId, sal_uInt16 nBtnFlags, long nSepPixel = 0 );
void RemoveButton( sal_uInt16 nId );
void Clear();
sal_uInt16 GetButtonCount() const;
sal_uInt16 GetButtonId( sal_uInt16 nButton ) const;
PushButton* GetPushButton( sal_uInt16 nId ) const;
void SetButtonText( sal_uInt16 nId, const XubString& rText );
- XubString GetButtonText( sal_uInt16 nId ) const;
void SetButtonHelpText( sal_uInt16 nId, const XubString& rText );
- XubString GetButtonHelpText( sal_uInt16 nId ) const;
- void SetButtonHelpId( sal_uInt16 nId, const rtl::OString& rHelpId );
- rtl::OString GetButtonHelpId( sal_uInt16 nId ) const;
void SetFocusButton( sal_uInt16 nId = BUTTONDIALOG_BUTTON_NOTFOUND ) { mnFocusButtonId = nId; }
sal_uInt16 GetFocusButton() const { return mnFocusButtonId; }
diff --git a/vcl/source/window/btndlg.cxx b/vcl/source/window/btndlg.cxx
index add12e4427bb..702f28c812a3 100644
--- a/vcl/source/window/btndlg.cxx
+++ b/vcl/source/window/btndlg.cxx
@@ -70,15 +70,6 @@ ButtonDialog::ButtonDialog( Window* pParent, WinBits nStyle ) :
ImplInit( pParent, nStyle );
}
-ButtonDialog::ButtonDialog( Window* pParent, const ResId& rResId ) :
- Dialog( WINDOW_BUTTONDIALOG )
-{
- ImplInitButtonDialogData();
- rResId.SetRT( RSC_DIALOG ); // !!!!!!!!!! RSC_BUTTONDIALOG !!!!!!!!
- ImplInit( pParent, ImplInitRes( rResId ) );
- ImplLoadRes( rResId );
-}
-
ButtonDialog::~ButtonDialog()
{
for ( btn_iterator it = maItemList.begin(); it != maItemList.end(); ++it)
@@ -338,24 +329,6 @@ void ButtonDialog::AddButton( StandardButtonType eType, sal_uInt16 nId,
mbFormat = sal_True;
}
-void ButtonDialog::AddButton( PushButton* pBtn, sal_uInt16 nId,
- sal_uInt16 nBtnFlags, long nSepPixel )
-{
- // PageItem anlegen
- ImplBtnDlgItem* pItem = new ImplBtnDlgItem;
- pItem->mnId = nId;
- pItem->mbOwnButton = sal_False;
- pItem->mnSepSize = nSepPixel;
- pItem->mpPushButton = pBtn;
-
- if ( nBtnFlags & BUTTONDIALOG_FOCUSBUTTON )
- mnFocusButtonId = nId;
-
- maItemList.push_back(pItem);
-
- mbFormat = sal_True;
-}
-
void ButtonDialog::RemoveButton( sal_uInt16 nId )
{
btn_iterator it;
@@ -425,16 +398,6 @@ void ButtonDialog::SetButtonText( sal_uInt16 nId, const XubString& rText )
}
}
-XubString ButtonDialog::GetButtonText( sal_uInt16 nId ) const
-{
- ImplBtnDlgItem* pItem = ImplGetItem( nId );
-
- if ( pItem )
- return pItem->mpPushButton->GetText();
- else
- return ImplGetSVEmptyStr();
-}
-
void ButtonDialog::SetButtonHelpText( sal_uInt16 nId, const XubString& rText )
{
ImplBtnDlgItem* pItem = ImplGetItem( nId );
@@ -443,29 +406,4 @@ void ButtonDialog::SetButtonHelpText( sal_uInt16 nId, const XubString& rText )
pItem->mpPushButton->SetHelpText( rText );
}
-XubString ButtonDialog::GetButtonHelpText( sal_uInt16 nId ) const
-{
- ImplBtnDlgItem* pItem = ImplGetItem( nId );
-
- if ( pItem )
- return pItem->mpPushButton->GetHelpText();
- else
- return ImplGetSVEmptyStr();
-}
-
-void ButtonDialog::SetButtonHelpId( sal_uInt16 nId, const rtl::OString& rHelpId )
-{
- ImplBtnDlgItem* pItem = ImplGetItem( nId );
-
- if ( pItem )
- pItem->mpPushButton->SetHelpId( rHelpId );
-}
-
-rtl::OString ButtonDialog::GetButtonHelpId( sal_uInt16 nId ) const
-{
- ImplBtnDlgItem* pItem = ImplGetItem( nId );
-
- return pItem ? rtl::OString( pItem->mpPushButton->GetHelpId() ) : rtl::OString();
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */