LibreOffice Module sw (master) 1
|
Classes | |
class | DrawingOLEAdaptor |
Make inserting an OLE object into a Writer document easy. More... | |
class | Position |
Functions | |
sal_uInt16 | TransformWhichBetweenPools (const SfxItemPool &rDestPool, const SfxItemPool &rSrcPool, sal_uInt16 nWhich) |
Map an ID valid in one SfxItemPool to its equivalent in another. More... | |
sal_uInt16 | GetSetWhichFromSwDocWhich (const SfxItemSet &rSet, const SwDoc &rDoc, sal_uInt16 nWhich) |
Map a SwDoc WhichId to the equivalent Id for a given SfxItemSet. More... | |
sal_uInt16 sw::hack::GetSetWhichFromSwDocWhich | ( | const SfxItemSet & | rSet, |
const SwDoc & | rDoc, | ||
sal_uInt16 | nWhich | ||
) |
Map a SwDoc WhichId to the equivalent Id for a given SfxItemSet.
Given a WhichId (the id that identifies a property e.g. bold) which is correct for a Writer document, get the equivalent whichId which for a given SfxItemSet.
This arises because the drawing layer uses the same properties as writer e.g. SvxWeight, but for some reason uses different ids for the same properties as writer.
This is effectively the same as TransformWhichBetweenPools except at a slightly different layer.
rSet | The SfxItemSet in whose terms the Id is returned |
rDoc | The SwDoc in whose terms the Id is passed in |
nWhich | The Id to transform from writer to the SfxItemSet's domain |
Definition at line 268 of file writerhelper.cxx.
References SwDoc::GetAttrPool(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), RES_WHICHHINT_END(), rSet, and TransformWhichBetweenPools().
Referenced by MSWordExportBase::GetItem(), MSWord_SdrAttrIter::GetItem(), and MSWordExportBase::HasItem().
sal_uInt16 sw::hack::TransformWhichBetweenPools | ( | const SfxItemPool & | rDestPool, |
const SfxItemPool & | rSrcPool, | ||
sal_uInt16 | nWhich | ||
) |
Map an ID valid in one SfxItemPool to its equivalent in another.
Given a WhichId (the id that identifies a property e.g. bold) which is correct in a given SfxItemPool, get the equivalent whichId in another SfxItemPool
This arises because the drawing layer uses the same properties as writer e.g. SvxWeight, but for some reason uses different ids for the same properties as writer.
rDestPool | The SfxItemPool in whose terms the Id is returned |
rSrcPool | The SfxItemPool in whose terms the Id is passed in |
nWhich | The Id to transform from source to dest |
Definition at line 257 of file writerhelper.cxx.
References SfxItemPool::GetSlotId(), and SfxItemPool::GetWhich().
Referenced by GetSetWhichFromSwDocWhich(), MSWord_SdrAttrIter::HasTextItem(), and MSWord_SdrAttrIter::SetItemsThatDifferFromStandard().