diff options
author | Philipp Riemer <ruderphilipp@gmail.com> | 2012-08-10 20:50:33 +0200 |
---|---|---|
committer | Philipp Riemer <ruderphilipp@gmail.com> | 2012-08-10 20:56:25 +0200 |
commit | 25a56559db5d7dbf6ebee979b0b1aaf6be2a64e3 (patch) | |
tree | 5e3202806f3d275844b4c86f4b7ac727d4bfe197 /dbaccess/source/ui/control/marktree.cxx | |
parent | 2058908d8ce86c9fec6db3ef3bc0be2ec20d1547 (diff) |
cleaned-up comments
Files were originally touched by b803fa2579256979bac83f0b193f2c30d524d76b.
This is just a follow-up patch.
Change-Id: I1e35d5e3c3d193bb5dfdb4b743328d8d22466a4d
Diffstat (limited to 'dbaccess/source/ui/control/marktree.cxx')
-rw-r--r-- | dbaccess/source/ui/control/marktree.cxx | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/dbaccess/source/ui/control/marktree.cxx b/dbaccess/source/ui/control/marktree.cxx index 830f1381ec73..7efa2491b516 100644 --- a/dbaccess/source/ui/control/marktree.cxx +++ b/dbaccess/source/ui/control/marktree.cxx @@ -17,23 +17,19 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include "marktree.hxx" #include "dbu_control.hrc" #include <vcl/svapp.hxx> -//......................................................................... namespace dbaui { using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::lang; -//......................................................................... + using namespace ::com::sun::star::lang; + #define SPACEBETWEENENTRIES 4 -//======================================================================== -//= OMarkableTreeListBox -//======================================================================== + DBG_NAME(OMarkableTreeListBox) -//------------------------------------------------------------------------ + OMarkableTreeListBox::OMarkableTreeListBox( Window* pParent, const Reference< XMultiServiceFactory >& _rxORB, WinBits nWinStyle ) : DBTreeListBox(pParent,_rxORB,nWinStyle) { @@ -41,7 +37,7 @@ OMarkableTreeListBox::OMarkableTreeListBox( Window* pParent, const Reference< XM InitButtonData(); } -//------------------------------------------------------------------------ + OMarkableTreeListBox::OMarkableTreeListBox( Window* pParent, const Reference< XMultiServiceFactory >& _rxORB, const ResId& rResId) : DBTreeListBox(pParent,_rxORB,rResId) { @@ -49,14 +45,14 @@ OMarkableTreeListBox::OMarkableTreeListBox( Window* pParent, const Reference< XM InitButtonData(); } -//------------------------------------------------------------------------ + OMarkableTreeListBox::~OMarkableTreeListBox() { delete m_pCheckButton; DBG_DTOR(OMarkableTreeListBox,NULL); } -//------------------------------------------------------------------------ + void OMarkableTreeListBox::Paint(const Rectangle& _rRect) { if (!IsEnabled()) @@ -74,13 +70,13 @@ void OMarkableTreeListBox::Paint(const Rectangle& _rRect) else DBTreeListBox::Paint(_rRect); } -//------------------------------------------------------------------------ + void OMarkableTreeListBox::InitButtonData() { m_pCheckButton = new SvLBoxButtonData( this ); EnableCheckButton( m_pCheckButton ); } -//------------------------------------------------------------------------ + void OMarkableTreeListBox::KeyInput( const KeyEvent& rKEvt ) { // nur wenn space @@ -102,9 +98,8 @@ void OMarkableTreeListBox::KeyInput( const KeyEvent& rKEvt ) } else DBTreeListBox::KeyInput(rKEvt); - } -//------------------------------------------------------------------------ + SvButtonState OMarkableTreeListBox::implDetermineState(SvLBoxEntry* _pEntry) { SvButtonState eState = GetCheckButtonState(_pEntry); @@ -167,11 +162,9 @@ SvButtonState OMarkableTreeListBox::implDetermineState(SvLBoxEntry* _pEntry) // finally set the entry to the state we just determined SetCheckButtonState(_pEntry, eState); - // outta here return eState; } -//------------------------------------------------------------------------ void OMarkableTreeListBox::CheckButtons() { SvLBoxEntry* pEntry = GetModel()->First(); @@ -181,7 +174,7 @@ void OMarkableTreeListBox::CheckButtons() pEntry = GetModel()->NextSibling(pEntry); } } -//------------------------------------------------------------------------ + void OMarkableTreeListBox::CheckButtonHdl() { checkedButton_noBroadcast(GetHdlEntry()); @@ -189,7 +182,6 @@ void OMarkableTreeListBox::CheckButtonHdl() m_aCheckButtonHandler.Call(this); } -//------------------------------------------------------------------------ void OMarkableTreeListBox::checkedButton_noBroadcast(SvLBoxEntry* _pEntry) { SvButtonState eState = GetCheckButtonState( _pEntry); @@ -223,9 +215,6 @@ void OMarkableTreeListBox::checkedButton_noBroadcast(SvLBoxEntry* _pEntry) CheckButtons(); } -//------------------------------------------------------------------------ -//......................................................................... -} // namespace dbaui -//......................................................................... +} // namespace /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |