Kaydet (Commit) b68b1616 authored tarafından Caolán McNamara's avatar Caolán McNamara

only allowed to create these via factory methods now

üst d63a3b88
...@@ -428,14 +428,14 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState ) ...@@ -428,14 +428,14 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
aTmpStr += TMP_STR_END; aTmpStr += TMP_STR_END;
XBitmapEntry* pEntry = new XBitmapEntry( pBitmapItem->GetBitmapValue(), aTmpStr ); XBitmapEntry* pEntry = new XBitmapEntry( pBitmapItem->GetBitmapValue(), aTmpStr );
XBitmapList aBitmapList( String::CreateFromAscii("TmpList") ); XBitmapListRef xBitmapList =
aBitmapList.Insert( pEntry ); XPropertyList::CreatePropertyList(XBITMAP_LIST,
aBitmapList.SetDirty( sal_False ); String::CreateFromAscii("TmpList"))->AsBitmapList();
//Bitmap* pBmp = aBitmapList.GetBitmap( 0 ); xBitmapList->Insert( pEntry );
//( (ListBox*)pFillAttrLB )->InsertEntry( pEntry->GetName(), *pBmp ); xBitmapList->SetDirty( sal_False );
pFillAttrLB->Fill( &aBitmapList ); pFillAttrLB->Fill( xBitmapList );
pFillAttrLB->SelectEntryPos( pFillAttrLB->GetEntryCount() - 1 ); pFillAttrLB->SelectEntryPos( pFillAttrLB->GetEntryCount() - 1 );
aBitmapList.Remove( 0 ); xBitmapList->Remove( 0 );
delete pEntry; delete pEntry;
} }
// NEU // NEU
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment