LibreOffice Module sw (master)  1
Classes | Namespaces | Typedefs | Functions
writerhelper.hxx File Reference
#include <typeinfo>
#include <vector>
#include <map>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <sfx2/objsh.hxx>
#include <svl/itempool.hxx>
#include <svl/itemset.hxx>
#include <svx/svdtypes.hxx>
#include <format.hxx>
#include <node.hxx>
#include <pam.hxx>
#include <tools/poly.hxx>
#include <doc.hxx>
#include <vcl/graph.hxx>
Include dependency graph for writerhelper.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sw::util::ItemSort
 
class  ww8::Frame
 Make exporting a Writer Frame easy. More...
 
class  sw::util::SetLayer
 Make setting a drawing object's layer in a Writer document easy. More...
 
class  sw::hack::DrawingOLEAdaptor
 Make inserting an OLE object into a Writer document easy. More...
 

Namespaces

 sw
 Dialog to specify the properties of date form field.
 
 sw::util
 
 ww8
 
 sw::hack
 

Typedefs

typedef std::vector< SwTextFormatColl * > ww8::ParaStyles
 STL container of Paragraph Styles (SwTextFormatColl) More...
 
typedef std::map< sal_uInt16, const SfxPoolItem *, sw::util::ItemSortww8::PoolItems
 STL container of SfxPoolItems (Attributes) More...
 
typedef std::vector< Frame > ww8::Frames
 STL container of Frames. More...
 
typedef std::vector< Frame >::iterator ww8::FrameIter
 STL iterator for Frames. More...
 

Functions

template<class T >
const T & sw::util::item_cast (const SfxPoolItem &rItem)
 Provide a dynamic_cast style cast for SfxPoolItems. More...
 
template<class T >
const T * sw::util::item_cast (const SfxPoolItem *pItem)
 Provide a dynamic_cast style cast for SfxPoolItems. More...
 
template<class T >
const T & sw::util::ItemGet (const SwContentNode &rNode, sal_uInt16 eType)
 Extract a SfxPoolItem derived property from a SwContentNode. More...
 
template<class T >
const T & sw::util::ItemGet (const SwFormat &rFormat, sal_uInt16 eType)
 Extract a SfxPoolItem derived property from a SwFormat. More...
 
template<class T >
const T & sw::util::ItemGet (const SfxItemSet &rSet, sal_uInt16 eType)
 Extract a SfxPoolItem derived property from a SfxItemSet. More...
 
template<class T >
const T & sw::util::DefaultItemGet (const SfxItemPool &rPool, sal_uInt16 eType)
 Extract a default SfxPoolItem derived property from a SfxItemPool. More...
 
template<class T >
const T & sw::util::DefaultItemGet (const SwDoc &rDoc, sal_uInt16 eType)
 Extract a default SfxPoolItem derived property from a SwDoc. More...
 
ww8::ParaStyles sw::util::GetParaStyles (const SwDoc &rDoc)
 Get the Paragraph Styles of a SwDoc. More...
 
SwTextFormatCollsw::util::GetParaStyle (SwDoc &rDoc, const OUString &rName)
 Get a Paragraph Style which fits a given name. More...
 
SwCharFormatsw::util::GetCharStyle (SwDoc &rDoc, const OUString &rName)
 Get a Character Style which fits a given name. More...
 
void sw::util::SortByAssignedOutlineStyleListLevel (ww8::ParaStyles &rStyles)
 Sort sequence of Paragraph Styles by assigned outline style list level. More...
 
void sw::util::GetPoolItems (const SfxItemSet &rSet, ww8::PoolItems &rItems, bool bExportParentItemSet)
 Get the SfxPoolItems of a SfxItemSet. More...
 
const SfxPoolItemsw::util::SearchPoolItems (const ww8::PoolItems &rItems, sal_uInt16 eType)
 
template<class T >
const T * sw::util::HasItem (const ww8::PoolItems &rItems, sal_uInt16 eType)
 
void sw::util::ClearOverridesFromSet (const SwFormatCharFormat &rFormat, SfxItemSet &rSet)
 Remove properties from an SfxItemSet which a SwFormatCharFormat overrides. More...
 
ww8::Frames sw::util::GetFrames (const SwDoc &rDoc, SwPaM const *pPaM)
 Get the Floating elements in a SwDoc. More...
 
void sw::util::UpdateFramePositions (ww8::Frames &rFrames)
 fix up frame positions, must be called after SetRedlineFlags More...
 
ww8::Frames sw::util::GetFramesInNode (const ww8::Frames &rFrames, const SwNode &rNode)
 Get the Frames anchored to a given node. More...
 
const SwNumFormatsw::util::GetNumFormatFromTextNode (const SwTextNode &rTextNode)
 Get the Numbering Format used on a paragraph. More...
 
const SwNumFormatsw::util::GetNumFormatFromSwNumRuleLevel (const SwNumRule &rRule, int nLevel)
 Get the Numbering Format for a given level from a numbering rule. More...
 
const SwNumRulesw::util::GetNumRuleFromTextNode (const SwTextNode &rTextNode)
 
const SwNumRulesw::util::GetNormalNumRuleFromTextNode (const SwTextNode &rTextNode)
 
SwNoTextNodesw::util::GetNoTextNodeFromSwFrameFormat (const SwFrameFormat &rFormat)
 Get the SwNoTextNode associated with a SwFrameFormat if here is one. More...
 
bool sw::util::HasPageBreak (const SwNode &rNode)
 Does a node have a "page break before" applied. More...
 
tools::Polygon sw::util::PolygonFromPolyPolygon (const tools::PolyPolygon &rPolyPoly)
 Make a best fit Polygon from a PolyPolygon. More...
 
tools::Polygon sw::util::CorrectWordWrapPolygonForExport (const tools::PolyPolygon &rPolyPoly, const SwNoTextNode *pNd)
 Undo all scaling / move tricks of the wrap polygon done during import. More...
 
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. 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. More...