INTEGRATION: CWS formcelllinkage (1.4.94); FILE MERGED
2003/10/01 09:17:49 fs 1.4.94.1: #i18994# merging the changes from the CWS fs002
This commit is contained in:
parent
e09cb8c317
commit
6958454dd5
2 changed files with 31 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: browserline.cxx,v $
|
||||
*
|
||||
* $Revision: 1.4 $
|
||||
* $Revision: 1.5 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2003-03-25 16:03:46 $
|
||||
* last change: $Author: obo $ $Date: 2003-10-21 09:03:32 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -247,6 +247,16 @@ namespace pcr
|
|||
return m_aOutputSize;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------
|
||||
void OBrowserLine::Enable( sal_Bool _bDoEnable )
|
||||
{
|
||||
m_aFtTitle.Enable( _bDoEnable );
|
||||
if ( m_pBrowserControl )
|
||||
m_pBrowserControl->EnableControl( _bDoEnable );
|
||||
if ( m_pXButton )
|
||||
m_pXButton->Enable( _bDoEnable );
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------
|
||||
void OBrowserLine::Show(sal_Bool bFlag)
|
||||
{
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: browserlistbox.cxx,v $
|
||||
*
|
||||
* $Revision: 1.4 $
|
||||
* $Revision: 1.5 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2003-03-25 16:03:47 $
|
||||
* last change: $Author: obo $ $Date: 2003-10-21 09:03:53 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -393,6 +393,23 @@ namespace pcr
|
|||
return nRet;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
void OBrowserListBox::EnablePropertyLine( const ::rtl::OUString& _rEntryName, bool _bEnable )
|
||||
{
|
||||
// TODO: O(log n) search
|
||||
sal_uInt16 i, nEnd = m_aLines.size();
|
||||
for ( i = 0 ; i<nEnd ; ++i )
|
||||
{
|
||||
OBrowserLine* pLine = m_aLines[i];
|
||||
IBrowserControl* pControl = pLine->getControl();
|
||||
if ( pControl && ( pControl->GetMyName() == _rEntryName ) )
|
||||
{
|
||||
pLine->Enable( _bEnable );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
IBrowserControl* OBrowserListBox::GetPropertyControl(const ::rtl::OUString& _rEntryName)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue