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