Hi Jake,
sd::View::GetAttributes to my knowledge returns the attributes of the
currently selected objects. If there is nothing selected than you get
the pool defaults.
So what do you mean with 'the current font' ?
Regards,
Christian
zhaosheng wrote:
Hi:
I am trying to get the SfxPoolItem,which contains the current font settings in
Sd::View.
I did this:
SfxItemSet aEditAttr( GetDoc()->GetPool() );
GetAttributes( aEditAttr );
SfxItemPool& rPool = pView->GetDoc()->GetPool();
const SfxPoolItem& pI =aEditAttr.Get( rPool.GetWhich(SID_ATTR_CHAR_FONT) );
but, it seems aEditAttr is always the standard item set, because, it always
contain the Arial font, even when the font is changed.
Somebody know how to solve this ? thanks
zhaosheng
2007-03-27
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]