20 #ifndef INCLUDED_SW_SOURCE_FILTER_WW8_WRITERHELPER_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_WW8_WRITERHELPER_HXX
25 #include <com/sun/star/embed/XEmbeddedObject.hpp>
56 bool operator()(sal_uInt16 nA, sal_uInt16 nB)
const;
66 typedef std::map<sal_uInt16, const SfxPoolItem *, sw::util::ItemSort>
PoolItems;
170 return (maGrf == rOther.
maGrf);
225 assert(dynamic_cast<const T *>(&rItem) &&
"bad type cast");
226 return static_cast<const T &
>(rItem);
246 return dynamic_cast<const T *
>(pItem);
558 const SwDoc &rDoc, sal_uInt16 nWhich);
577 css::uno::Reference < css::embed::XEmbeddedObject >
mxIPRef;
bool TransferToDoc(OUString &rName)
Transfer ownership of the OLE object to a document's SvPersist.
SwNoTextNode * GetNoTextNodeFromSwFrameFormat(const SwFrameFormat &rFormat)
Get the SwNoTextNode associated with a SwFrameFormat if here is one.
Represents the style of a paragraph.
Marks a position in the document model.
ww8::Frames GetFramesInNode(const ww8::Frames &rFrames, const SwNode &rNode)
Get the Frames anchored to a given node.
const SfxPoolItem * SearchPoolItems(const ww8::PoolItems &rItems, sal_uInt16 eType)
Frame(const SwFrameFormat &rFlyFrame, const SwPosition &rPos)
Make inserting an OLE object into a Writer document easy.
Dialog to specify the properties of date form field.
tools::Polygon PolygonFromPolyPolygon(const tools::PolyPolygon &rPolyPoly)
Make a best fit Polygon from a PolyPolygon.
Make setting a drawing object's layer in a Writer document easy.
void GetPoolItems(const SfxItemSet &rSet, ww8::PoolItems &rItems, bool bExportParentItemSet)
Get the SfxPoolItems of a SfxItemSet.
~DrawingOLEAdaptor()
Destructor will destroy the owned OLE object if not transferred.
const SwFrameFormat * mpFlyFrame
SetLayer(const SwDoc &rDoc)
Normal constructor.
const Size & GetLayoutSize() const
The layout size of the contained element.
bool operator()(sal_uInt16 nA, sal_uInt16 nB) const
const SwNumRule * GetNumRuleFromTextNode(const SwTextNode &rTextNode)
const SwCharFormat * GetSwCharFormat(const SwFormatINetFormat &rINet, SwDoc &rDoc)
const SwFrameFormat & GetFrameFormat() const
Get the writer SwFrameFormat that this object describes.
const T & item_cast(const SfxPoolItem &rItem)
Provide a dynamic_cast style cast for SfxPoolItems.
void SendObjectToHeaven(SdrObject &rObject) const
Make Object lives in the top layer.
PaM is Point and Mark: a selection of the document model.
tools::Polygon CorrectWordWrapPolygonForExport(const tools::PolyPolygon &rPolyPoly, const SwNoTextNode *pNd, bool bCorrectCrop)
Undo all scaling / move tricks of the wrap polygon done during import.
bool HasPageBreak(const SwNode &rNd)
Does a node have a "page break before" applied.
void UpdateFramePositions(ww8::Frames &rFrames)
fix up frame positions, must be called after SetRedlineFlags
std::map< sal_uInt16, const SfxPoolItem *, sw::util::ItemSort > PoolItems
STL container of SfxPoolItems (Attributes)
std::vector< Frame >::iterator FrameIter
STL iterator for Frames.
void SortByAssignedOutlineStyleListLevel(ww8::ParaStyles &rStyles)
Sort sequence of Paragraph Styles by assigned outline style list level.
SwContentNode * GetContentNode()
bool RefersToSameFrameAs(const Frame &rOther) const
Does this ww8::Frame refer to the same writer content as another.
const Graphic & GetGraphic() const
Layout frame for SwNoTextNode, i.e. graphics and OLE nodes (including charts).
const SwNumRule * GetNormalNumRuleFromTextNode(const SwTextNode &rTextNode)
void ForceTreatAsInline()
Even if the frame isn't an inline frame, force it to behave as one.
void SetPosition(SwPosition const &rPos)
void SetObjectLayer(SdrObject &rObject, Layer eLayer) const
sal_uInt16 TransformWhichBetweenPools(const SfxItemPool &rDestPool, const SfxItemPool &rSrcPool, sal_uInt16 nWhich)
Map an ID valid in one SfxItemPool to its equivalent in another.
SwTextFormatColl * GetParaStyle(SwDoc &rDoc, const OUString &rName)
Get a Paragraph Style which fits a given name.
const SwNode * GetContent() const
Get the first node of content in the frame.
SwTextNode is a paragraph in the document model.
Make exporting a Writer Frame easy.
const SwContentNode * GetContentNode() const
Get the node this frame is anchored into.
DrawingOLEAdaptor(SdrOle2Obj &rObj, SfxObjectShell &rPers)
Take ownership of a SdrOle2Objs OLE object.
const T * HasItem(const ww8::PoolItems &rItems, sal_uInt16 eType)
const Size & GetSize() const
The Size of the contained element.
ww8::ParaStyles GetParaStyles(const SwDoc &rDoc)
Get the Paragraph Styles of a SwDoc.
css::uno::Reference< css::embed::XEmbeddedObject > mxIPRef
WriterSource meWriterType
DrawingOLEAdaptor & operator=(const DrawingOLEAdaptor &)=delete
const SwNode * mpStartFrameContent
ww8::Frames GetFrames(const SwDoc &rDoc, SwPaM const *pPaM)
Get the Floating elements in a SwDoc.
const SwNumFormat * GetNumFormatFromTextNode(const SwTextNode &rTextNode)
Get the Numbering Format used on a paragraph.
void SendObjectToHell(SdrObject &rObject) const
Make Object live in the bottom drawing layer.
bool IsInline() const
Is this frame inline (as character)
WriterSource GetWriterType() const
Get the type of frame that this wraps.
const SwNumFormat * GetNumFormatFromSwNumRuleLevel(const SwNumRule &rRule, int nLevel)
Get the Numbering Format for a given level from a numbering rule.
sal_uInt16 GetSetWhichFromSwDocWhich(const SfxItemSet &rSet, const SwDoc &rDoc, sal_uInt16 nWhich)
Map a SwDoc WhichId to the equivalent Id for a given SfxItemSet.
std::vector< SwTextFormatColl * > ParaStyles
STL container of Paragraph Styles (SwTextFormatColl)
void ClearOverridesFromSet(const SwFormatCharFormat &rFormat, SfxItemSet &rSet)
Remove properties from an SfxItemSet which a SwFormatCharFormat overrides.
SwCharFormat * GetCharStyle(SwDoc &rDoc, const OUString &rName)
Get a Character Style which fits a given name.
const SwPosition & GetPosition() const
Get the position this frame is anchored at.
std::vector< Frame > Frames
STL container of Frames.
const Graphic * mpGraphic
Base class of the Writer document model elements.