diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-12 08:36:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-12 09:02:03 +0100 |
commit | d24df3fc66614eda59d38f6ab409be73f8a20dad (patch) | |
tree | 0e8d4a1c123b12b6718b185e338ff6e1d0cb1d09 | |
parent | 4347d844646907ba31dc1e0c7f53c5a93d986c2a (diff) |
callcatcher: another round of ResId removals
Change-Id: Ia3acdb3501b7735820258cb090e731f5814bc07f
-rw-r--r-- | dbaccess/source/ui/control/curledit.cxx | 8 | ||||
-rw-r--r-- | dbaccess/source/ui/control/dbtreelistbox.cxx | 10 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/adminpages.cxx | 7 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/adminpages.hxx | 3 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/curledit.hxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/dbtreelistbox.hxx | 3 | ||||
-rw-r--r-- | include/sfx2/basedlgs.hxx | 1 | ||||
-rw-r--r-- | include/svtools/wizardmachine.hxx | 3 | ||||
-rw-r--r-- | include/vcl/scrbar.hxx | 1 | ||||
-rw-r--r-- | include/vcl/vclmedit.hxx | 6 | ||||
-rw-r--r-- | sfx2/source/dialog/basedlgs.cxx | 22 | ||||
-rw-r--r-- | svtools/source/dialogs/wizardmachine.cxx | 18 | ||||
-rw-r--r-- | vcl/source/control/scrbar.cxx | 18 | ||||
-rw-r--r-- | vcl/source/edit/vclmedit.cxx | 30 | ||||
-rw-r--r-- | xmlsecurity/source/dialogs/resourcemanager.cxx | 10 | ||||
-rw-r--r-- | xmlsecurity/source/dialogs/resourcemanager.hxx | 2 |
16 files changed, 2 insertions, 141 deletions
diff --git a/dbaccess/source/ui/control/curledit.cxx b/dbaccess/source/ui/control/curledit.cxx index 3a24c5891c40..3c856db50c18 100644 --- a/dbaccess/source/ui/control/curledit.cxx +++ b/dbaccess/source/ui/control/curledit.cxx @@ -24,14 +24,6 @@ namespace dbaui { -// OConnectionURLEdit -OConnectionURLEdit::OConnectionURLEdit(Window* _pParent, const ResId& _rResId,bool _bShowPrefix) - :Edit(_pParent, _rResId) - ,m_pTypeCollection(NULL) - ,m_pForcedPrefix(NULL) - ,m_bShowPrefix(_bShowPrefix) -{ -} OConnectionURLEdit::OConnectionURLEdit(Window* _pParent, WinBits _nBits,bool _bShowPrefix) :Edit(_pParent, _nBits) diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx index bd23fa942dce..cdc185fb3e4c 100644 --- a/dbaccess/source/ui/control/dbtreelistbox.cxx +++ b/dbaccess/source/ui/control/dbtreelistbox.cxx @@ -64,16 +64,6 @@ DBTreeListBox::DBTreeListBox( Window* pParent, WinBits nWinStyle ,bool _bHandleE init(); } -DBTreeListBox::DBTreeListBox( Window* pParent, const ResId& rResId,bool _bHandleEnterKey) - :SvTreeListBox(pParent,rResId) - ,m_pDragedEntry(NULL) - ,m_pActionListener(NULL) - ,m_pContextMenuProvider( NULL ) - ,m_bHandleEnterKey(_bHandleEnterKey) -{ - init(); -} - void DBTreeListBox::init() { sal_uInt16 nSize = SPACEBETWEENENTRIES; diff --git a/dbaccess/source/ui/dlg/adminpages.cxx b/dbaccess/source/ui/dlg/adminpages.cxx index 2673f574d48f..640db09da3de 100644 --- a/dbaccess/source/ui/dlg/adminpages.cxx +++ b/dbaccess/source/ui/dlg/adminpages.cxx @@ -221,13 +221,6 @@ namespace dbaui } } - void OGenericAdministrationPage::SetControlFontWeight(Window* _pWindow, FontWeight _eWeight) - { - Font aFont = _pWindow->GetControlFont(); - aFont.SetWeight( _eWeight ); - _pWindow->SetControlFont( aFont ); - } - IMPL_LINK(OGenericAdministrationPage, OnTestConnectionClickHdl, PushButton*, /*_pButton*/) { OSL_ENSURE(m_pAdminDialog,"No Admin dialog set! ->GPF"); diff --git a/dbaccess/source/ui/dlg/adminpages.hxx b/dbaccess/source/ui/dlg/adminpages.hxx index c56733c28c03..88a878437ebd 100644 --- a/dbaccess/source/ui/dlg/adminpages.hxx +++ b/dbaccess/source/ui/dlg/adminpages.hxx @@ -228,9 +228,6 @@ namespace dbaui static void fillString(SfxItemSet& _rSet,Edit* _pEdit,sal_uInt16 _nID, bool& _bChangedSomething); protected: - // used to set the right Pane header of a wizard to bold - void SetControlFontWeight(Window* _pWindow, FontWeight _eWeight = WEIGHT_BOLD); - /** This link be used for controls where the tabpage does not need to take any special action when the control is modified. The implementation just calls callModifiedHdl. */ diff --git a/dbaccess/source/ui/inc/curledit.hxx b/dbaccess/source/ui/inc/curledit.hxx index 9ff64d87847f..4a1238dbb4ad 100644 --- a/dbaccess/source/ui/inc/curledit.hxx +++ b/dbaccess/source/ui/inc/curledit.hxx @@ -41,7 +41,6 @@ class OConnectionURLEdit : public Edit bool m_bShowPrefix; // when <TRUE> the prefix will be visible, otherwise not public: - OConnectionURLEdit(Window* pParent, const ResId& rResId,bool _bShowPrefix = false); OConnectionURLEdit(Window* pParent, WinBits _nBits,bool _bShowPrefix = false); virtual ~OConnectionURLEdit(); diff --git a/dbaccess/source/ui/inc/dbtreelistbox.hxx b/dbaccess/source/ui/inc/dbtreelistbox.hxx index 259d03359d68..ce9ad84ea2d4 100644 --- a/dbaccess/source/ui/inc/dbtreelistbox.hxx +++ b/dbaccess/source/ui/inc/dbtreelistbox.hxx @@ -83,9 +83,6 @@ namespace dbaui DBTreeListBox( Window* pParent ,WinBits nWinStyle=0 ,bool _bHandleEnterKey = false); - DBTreeListBox( Window* pParent - ,const ResId& rResId - ,bool _bHandleEnterKey = false); virtual ~DBTreeListBox(); void setControlActionListener( IControlActionListener* _pListener ) { m_pActionListener = _pListener; } diff --git a/include/sfx2/basedlgs.hxx b/include/sfx2/basedlgs.hxx index f718f2208498..6d46b7ad7fb0 100644 --- a/include/sfx2/basedlgs.hxx +++ b/include/sfx2/basedlgs.hxx @@ -68,7 +68,6 @@ private: SAL_DLLPRIVATE void init(); protected: - SfxModalDialog(Window *pParent, const ResId& ); SfxModalDialog(Window *pParent, const OString& rID, const OUString& rUIXMLDescription); OUString& GetExtraData() { return aExtraData; } diff --git a/include/svtools/wizardmachine.hxx b/include/svtools/wizardmachine.hxx index 0170b2e5a377..5d780a88c620 100644 --- a/include/svtools/wizardmachine.hxx +++ b/include/svtools/wizardmachine.hxx @@ -171,11 +171,8 @@ namespace svt public: /** ctor - The ctor does not call FreeResource, this is the resposibility of the derived class. - For the button flags, use any combination of the WZB_* flags. */ - OWizardMachine(Window* _pParent, const ResId& _rRes, sal_uInt32 _nButtonFlags ); OWizardMachine(Window* _pParent, const WinBits i_nStyle, sal_uInt32 _nButtonFlags ); OWizardMachine(Window* _pParent, sal_uInt32 _nButtonFlags ); virtual ~OWizardMachine(); diff --git a/include/vcl/scrbar.hxx b/include/vcl/scrbar.hxx index c285c13361aa..febefc08c1fe 100644 --- a/include/vcl/scrbar.hxx +++ b/include/vcl/scrbar.hxx @@ -72,7 +72,6 @@ private: using Window::ImplInit; SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle ); SAL_DLLPRIVATE void ImplInitStyle( WinBits nStyle ); - SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); SAL_DLLPRIVATE void ImplUpdateRects( bool bUpdate = true ); SAL_DLLPRIVATE long ImplCalcThumbPos( long nPixPos ); SAL_DLLPRIVATE long ImplCalcThumbPosPix( long nPos ); diff --git a/include/vcl/vclmedit.hxx b/include/vcl/vclmedit.hxx index 6e292a41050b..29cb6fbcccf7 100644 --- a/include/vcl/vclmedit.hxx +++ b/include/vcl/vclmedit.hxx @@ -58,10 +58,8 @@ protected: ScrollBar* GetVScrollBar() const; public: - VclMultiLineEdit( Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER ); - VclMultiLineEdit( Window* pParent, const ResId& rResId ); - virtual ~VclMultiLineEdit(); - + VclMultiLineEdit( Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER ); + virtual ~VclMultiLineEdit(); void SelectionChanged(); void CaretChanged(); diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index a22f5fb64e8e..b3cce37aaef1 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -146,31 +146,11 @@ void SfxModalDialog::GetDialogData_Impl() } } - - void SfxModalDialog::init() { GetDialogData_Impl(); } - - -SfxModalDialog::SfxModalDialog(Window* pParent, const ResId &rResId ) - -/* [Description] - - Constructor of the general base class for modal Dialoge; - ResId is used as ID in ini-file. The saved position from there is set. -*/ - -: ModalDialog(pParent, rResId), - nUniqId(rResId.GetId()), - pInputSet(0), - pOutputSet(0) -{ - init(); -} - SfxModalDialog::SfxModalDialog(Window *pParent, const OString& rID, const OUString& rUIXMLDescription ) : ModalDialog(pParent, rID, rUIXMLDescription), nUniqId(0), //todo: remove this member when the ResId using ctor is removed @@ -180,8 +160,6 @@ SfxModalDialog::SfxModalDialog(Window *pParent, const OString& rID, const OUStri init(); } - - SfxModalDialog::~SfxModalDialog() /* [Description] diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx index f7bd865e8fbe..56bc3ee6deb8 100644 --- a/svtools/source/dialogs/wizardmachine.cxx +++ b/svtools/source/dialogs/wizardmachine.cxx @@ -118,23 +118,6 @@ namespace svt } }; - - //= OWizardMachine - - - OWizardMachine::OWizardMachine(Window* _pParent, const ResId& _rRes, sal_uInt32 _nButtonFlags ) - :WizardDialog( _pParent, _rRes ) - ,m_pFinish(NULL) - ,m_pCancel(NULL) - ,m_pNextPage(NULL) - ,m_pPrevPage(NULL) - ,m_pHelp(NULL) - ,m_pImpl( new WizardMachineImplData ) - { - implConstruct( _nButtonFlags ); - } - - OWizardMachine::OWizardMachine(Window* _pParent, const WinBits i_nStyle, sal_uInt32 _nButtonFlags ) :WizardDialog( _pParent, i_nStyle ) ,m_pFinish(NULL) @@ -147,7 +130,6 @@ namespace svt implConstruct( _nButtonFlags ); } - OWizardMachine::OWizardMachine(Window* _pParent, sal_uInt32 _nButtonFlags ) :WizardDialog( _pParent, "WizardDialog", "svt/ui/wizarddialog.ui" ) ,m_pFinish(NULL) diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index f7a87b3058ac..4351d6ff9e21 100644 --- a/vcl/source/control/scrbar.cxx +++ b/vcl/source/control/scrbar.cxx @@ -128,24 +128,6 @@ ScrollBar::~ScrollBar() delete mpData; } -void ScrollBar::ImplLoadRes( const ResId& rResId ) -{ - Control::ImplLoadRes( rResId ); - - sal_Int16 nMin = ReadShortRes(); - sal_Int16 nMax = ReadShortRes(); - sal_Int16 nThumbPos = ReadShortRes(); - sal_Int16 nPage = ReadShortRes(); - sal_Int16 nStep = ReadShortRes(); - sal_Int16 nVisibleSize = ReadShortRes(); - - SetRange( Range( nMin, nMax ) ); - SetLineSize( nStep ); - SetPageSize( nPage ); - SetVisibleSize( nVisibleSize ); - SetThumbPos( nThumbPos ); -} - void ScrollBar::ImplUpdateRects( bool bUpdate ) { sal_uInt16 nOldStateFlags = mnStateFlags; diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx index 5ce5b0fd5ebf..c26016faf2f0 100644 --- a/vcl/source/edit/vclmedit.cxx +++ b/vcl/source/edit/vclmedit.cxx @@ -938,36 +938,6 @@ VclMultiLineEdit::VclMultiLineEdit( Window* pParent, WinBits nWinStyle ) SetStyle( ImplInitStyle( nWinStyle ) ); } -VclMultiLineEdit::VclMultiLineEdit( Window* pParent, const ResId& rResId ) - : Edit( pParent, rResId.SetRT( RSC_MULTILINEEDIT ) ) -{ - SetType( WINDOW_MULTILINEEDIT ); - WinBits nWinStyle = rResId.GetWinBits(); - pImpVclMEdit = new ImpVclMEdit( this, nWinStyle ); - ImplInitSettings( true, true, true ); - pUpdateDataTimer = 0; - - sal_Int32 nMaxLen = Edit::GetMaxTextLen(); - if ( nMaxLen ) - SetMaxTextLen( nMaxLen ); - - SetText( Edit::GetText() ); - - if ( IsVisible() ) - pImpVclMEdit->Resize(); - - SetCompoundControl( true ); - SetStyle( ImplInitStyle( nWinStyle ) ); - - // Base Edit ctor could call Show already, but that would cause problems - // with accessibility, as Show might (indirectly) trigger a call to virtual - // GetComponentInterface, which is the Edit's base version instead of the - // VclMultiLineEdit's version while in the base Edit ctor: - if ((GetStyle() & WB_HIDE) == 0) - Show(); - -} - VclMultiLineEdit::~VclMultiLineEdit() { { diff --git a/xmlsecurity/source/dialogs/resourcemanager.cxx b/xmlsecurity/source/dialogs/resourcemanager.cxx index 7a6498acf3b2..6dc5703255ca 100644 --- a/xmlsecurity/source/dialogs/resourcemanager.cxx +++ b/xmlsecurity/source/dialogs/resourcemanager.cxx @@ -346,16 +346,6 @@ vector< pair< OUString, OUString> > parseDN(const OUString& rRawString) return aStr.makeStringAndClear(); } - - long ShrinkToFitWidth( Control& _rCtrl, long _nOffs ) - { - long nWidth = _rCtrl.GetTextWidth( _rCtrl.GetText() ); - Size aSize( _rCtrl.GetSizePixel() ); - nWidth += _nOffs; - aSize.Width() = nWidth; - _rCtrl.SetSizePixel( aSize ); - return nWidth; - } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlsecurity/source/dialogs/resourcemanager.hxx b/xmlsecurity/source/dialogs/resourcemanager.hxx index 3010f2abffdb..5d7cebcf4a73 100644 --- a/xmlsecurity/source/dialogs/resourcemanager.hxx +++ b/xmlsecurity/source/dialogs/resourcemanager.hxx @@ -48,8 +48,6 @@ namespace XmlSec OUString GetContentPart( const OUString& _rRawString ); OUString GetHexString( const ::com::sun::star::uno::Sequence< sal_Int8 >& _rSeq, const char* _pSep = ":", sal_uInt16 _nLineBreak = 0xFFFF ); - - long ShrinkToFitWidth( Control& _rCtrl, long _nOffs = 0 ); // return = new width } #define XMLSEC_RES(id) ResId(id,*XmlSec::GetResMgr()) |