Hello Carsten,

I've carried on an investigation in AddonsToolBarManager and
AddonsOptions. And I've written the new method whose several lines are
as follows:
void ToolBarManager::QueryAddonsImage()
{
...
for ( USHORT nPos = 0; nPos < m_pToolBar->GetItemCount(); nPos++ )
{
m_bIsHiContrast =
m_pToolBar->GetSettings().GetStyleSettings().GetFaceColor().IsDark();
sal_Bool bBigImages( SvtMiscOptions().AreCurrentSymbolsLarge() );
...
USHORT nId( m_pToolBar->GetItemId( nPos ) );
if ( nId > 0 )
{
OUString aURL = m_pToolBar->GetItemCommand( nId );
Image aImage = framework::AddonsOptions().GetImageFromURL( aURL,
bBigImages, m_bIsHiContrast );
m_pToolBar->SetItemImage( nId, aImage );
}
}
...
}

After it was compiled OOo's toolbar became confused, but the Addons'
icon appeared. I assume the other items of toolbar were set again,
however, I couldn't make clear how to get the ID of Addons and its URL.
So could you give me some more hints and tell me the mistakes in the
above lines of method?

Best regards,
Liang Weike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to