INTEGRATION: CWS mba30patches01 (1.20.4); FILE MERGED

2008/04/23 10:49:54 mba 1.20.4.2: RESYNC: (1.20-1.21); FILE MERGED
2008/03/18 15:41:00 mba 1.20.4.1: #i86365#: remove unused code
This commit is contained in:
Kurt Zenker 2008-05-20 18:13:58 +00:00
parent 2d9d8c5be5
commit 20f4d9c27c

View file

@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: propertyeditor.cxx,v $
* $Revision: 1.21 $
* $Revision: 1.22 $
*
* This file is part of OpenOffice.org.
*
@ -282,15 +282,6 @@ namespace pcr
return 0;
}
//------------------------------------------------------------------
sal_uInt16 OPropertyEditor::CalcVisibleLines()
{
OBrowserPage* pPage = static_cast<OBrowserPage*>(m_aTabControl.GetTabPage(m_aTabControl.GetCurPageId()));
if (pPage)
return pPage->getListBox().CalcVisibleLines();
else return 0;
}
//------------------------------------------------------------------
void OPropertyEditor::Update(const ::std::mem_fun_t<void,OBrowserListBox>& _aUpdateFunction)
{
@ -453,16 +444,6 @@ namespace pcr
pPage->getListBox().SetPropertyValue( rEntryName, _rValue );
}
//------------------------------------------------------------------
Any OPropertyEditor::GetPropertyValue( const ::rtl::OUString& rEntryName ) const
{
Any aValue;
const OBrowserPage* pPage = getPage( rEntryName );
if ( pPage )
aValue = pPage->getListBox().GetPropertyValue( rEntryName );
return aValue;
}
//------------------------------------------------------------------
sal_uInt16 OPropertyEditor::GetPropertyPos( const ::rtl::OUString& rEntryName ) const
{
@ -473,22 +454,6 @@ namespace pcr
return nVal;
}
//------------------------------------------------------------------
sal_Bool OPropertyEditor::IsPropertyInputEnabled( const ::rtl::OUString& _rEntryName ) const
{
// "yes" if and only if all pages say "yes" (since pages which do not know this property
// will answer "yes")
for ( USHORT i = 0; i < m_aTabControl.GetPageCount(); ++i )
{
OBrowserPage* pPage = static_cast< OBrowserPage* >( m_aTabControl.GetTabPage( m_aTabControl.GetPageId( i ) ) );
if ( pPage )
if ( !pPage->getListBox().IsPropertyInputEnabled( _rEntryName) )
return sal_False;
}
return sal_True;
}
//------------------------------------------------------------------
void OPropertyEditor::ShowPropertyPage( sal_uInt16 _nPageId, bool _bShow )
{