LibreOffice Module sw (master)  1
Macros | Functions
doclay.cxx File Reference
#include <hintids.hxx>
#include <sot/exchange.hxx>
#include <svx/svdpage.hxx>
#include <editeng/keepitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/protitem.hxx>
#include <editeng/opaqitem.hxx>
#include <svx/svdouno.hxx>
#include <editeng/frmdiritem.hxx>
#include <swmodule.hxx>
#include <modcfg.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <SwStyleNameMapper.hxx>
#include <drawdoc.hxx>
#include <fchrfmt.hxx>
#include <frmatr.hxx>
#include <txatbase.hxx>
#include <fmtfld.hxx>
#include <fmtornt.hxx>
#include <fmtcntnt.hxx>
#include <fmtanchr.hxx>
#include <fmtfsize.hxx>
#include <fmtsrnd.hxx>
#include <fmtflcnt.hxx>
#include <frmfmt.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
#include <ndnotxt.hxx>
#include <ndole.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <DocumentSettingManager.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentState.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <rootfrm.hxx>
#include <pagefrm.hxx>
#include <cntfrm.hxx>
#include <txtfrm.hxx>
#include <notxtfrm.hxx>
#include <flyfrm.hxx>
#include <dflyobj.hxx>
#include <dcontact.hxx>
#include <swundo.hxx>
#include <flypos.hxx>
#include <UndoInsert.hxx>
#include <expfld.hxx>
#include <poolfmt.hxx>
#include <docary.hxx>
#include <swtable.hxx>
#include <tblsel.hxx>
#include <txtftn.hxx>
#include <ftnidx.hxx>
#include <ftninfo.hxx>
#include <pagedesc.hxx>
#include <strings.hrc>
#include <tools/datetimeutils.hxx>
#include <sortedobjs.hxx>
#include <vector>
Include dependency graph for doclay.cxx:

Go to the source code of this file.

Macros

#define DEF_FLY_WIDTH   2268
 

Functions

static bool lcl_IsItemSet (const SwContentNode &rNode, sal_uInt16 which)
 
static bool lcl_TstFlyRange (const SwPaM *pPam, const SwPosition *pFlyPos, RndStdIds nAnchorId)
 
static void lcl_CpyAttr (SfxItemSet &rNewSet, const SfxItemSet &rOldSet, sal_uInt16 nWhich)
 
static SwFlyFrameFormatlcl_InsertLabel (SwDoc &rDoc, SwTextFormatColls *const pTextFormatCollTable, SwUndoInsertLabel *const pUndo, SwLabelType const eType, OUString const &rText, OUString const &rSeparator, const OUString &rNumberingSeparator, const bool bBefore, const sal_uInt16 nId, const sal_uLong nNdIdx, const OUString &rCharacterStyle, const bool bCpyBrd)
 
static SwFlyFrameFormatlcl_InsertDrawLabel (SwDoc &rDoc, SwTextFormatColls *const pTextFormatCollTable, SwUndoInsertLabel *const pUndo, SwDrawFrameFormat *const pOldFormat, OUString const &rText, const OUString &rSeparator, const OUString &rNumberSeparator, const sal_uInt16 nId, const OUString &rCharacterStyle, SdrObject &rSdrObj)
 
static void lcl_collectUsedNums (std::vector< unsigned int > &rSetFlags, sal_Int32 nNmLen, const OUString &rName, const OUString &rCmpName)
 
static void lcl_collectUsedNums (std::vector< unsigned int > &rSetFlags, sal_Int32 nNmLen, const SdrObject &rObj, const OUString &rCmpName)
 
static OUString lcl_GetUniqueFlyName (const SwDoc *pDoc, const char *pDefStrId, sal_uInt16 eType)
 

Macro Definition Documentation

#define DEF_FLY_WIDTH   2268

Definition at line 91 of file doclay.cxx.

Referenced by SwDoc::MakeFlySection_().

Function Documentation

static void lcl_collectUsedNums ( std::vector< unsigned int > &  rSetFlags,
sal_Int32  nNmLen,
const OUString &  rName,
const OUString &  rCmpName 
)
static

Definition at line 1272 of file doclay.cxx.

Referenced by lcl_collectUsedNums(), and lcl_GetUniqueFlyName().

static void lcl_collectUsedNums ( std::vector< unsigned int > &  rSetFlags,
sal_Int32  nNmLen,
const SdrObject rObj,
const OUString &  rCmpName 
)
static
static void lcl_CpyAttr ( SfxItemSet rNewSet,
const SfxItemSet rOldSet,
sal_uInt16  nWhich 
)
static
static OUString lcl_GetUniqueFlyName ( const SwDoc pDoc,
const char *  pDefStrId,
sal_uInt16  eType 
)
static
static SwFlyFrameFormat* lcl_InsertDrawLabel ( SwDoc rDoc,
SwTextFormatColls *const  pTextFormatCollTable,
SwUndoInsertLabel *const  pUndo,
SwDrawFrameFormat *const  pOldFormat,
OUString const &  rText,
const OUString &  rSeparator,
const OUString &  rNumberSeparator,
const sal_uInt16  nId,
const OUString &  rCharacterStyle,
SdrObject rSdrObj 
)
static

Definition at line 987 of file doclay.cxx.

References ATT_MIN_SIZE, ChrFmt, SwAttrSet::Clone(), SwDrawFrameFormat::DelFrames(), DONTEXPAND, SwDoc::FindCharFormatByName(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetAttrSet(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), SdrObject::GetCurrentBoundRect(), GetDfltAttr(), SwNodes::GetEndOfAutotext(), IDocumentFieldsAccess::GetFieldTypes(), SwTextAttr::GetFlyCnt(), IDocumentStylePoolAccess::GetFrameFormatFromPool(), IDocumentDrawModelAccess::GetHeavenId(), IDocumentDrawModelAccess::GetHellId(), SwFormat::GetHoriOrient(), SwDoc::getIDocumentDrawModelAccess(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), IDocumentDrawModelAccess::GetInvisibleHeavenId(), IDocumentDrawModelAccess::GetInvisibleHellId(), SfxItemSet::GetItemState(), SdrObject::GetLayer(), SwFormat::GetLRSpace(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwStyleNameMapper::GetPoolIdFromUIName(), tools::Rectangle::GetSize(), SwTextNode::GetTextAttrForCharAt(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), SwFormat::GetULSpace(), SwDoc::GetUniqueFrameName(), SwFormat::GetVertOrient(), SwTextNode::HasHints(), i, SdrObject::IsMoveProtect(), SdrObject::IsResizeProtect(), lcl_CpyAttr(), SwDoc::MakeFlyFrameFormat(), SwFlyFrameFormat::MakeFrames(), SwNodes::MakeTextSection(), SwPosition::nContent, SwPosition::nNode, RES_BOX, RES_LR_SPACE, RES_OPAQUE, RES_POOLCOLL_LABEL, RES_POOLFRM_FRAME, RES_PROTECT, RES_SHADOW, RES_SURROUND, RES_TXTATR_FLYCNT, RES_UL_SPACE, SwFormatAnchor::SetAnchor(), SvxProtectItem::SetContentProtect(), SwUndoInsertLabel::SetDrawObj(), SetExp, SwUndoInsertLabel::SetFlys(), SwFormat::SetFormatAttr(), SdrObject::SetLayer(), SvxProtectItem::SetPosProtect(), SvxProtectItem::SetSizeProtect(), SwVectorModifyBase< Value >::size(), SVX_NUM_ARABIC, SW_MOD, SwFlyStartNode, USHRT_MAX, and SwTextAttr::Which().

Referenced by SwDoc::InsertDrawLabel().

static SwFlyFrameFormat* lcl_InsertLabel ( SwDoc rDoc,
SwTextFormatColls *const  pTextFormatCollTable,
SwUndoInsertLabel *const  pUndo,
SwLabelType const  eType,
OUString const &  rText,
OUString const &  rSeparator,
const OUString &  rNumberingSeparator,
const bool  bBefore,
const sal_uInt16  nId,
const sal_uLong  nNdIdx,
const OUString &  rCharacterStyle,
const bool  bCpyBrd 
)
static

Definition at line 624 of file doclay.cxx.

References ATT_MIN_SIZE, ChrFmt, SwFormatFrameSize::Clone(), SwAttrSet::Clone(), SwFrameFormat::DelFrames(), DONTEXPAND, SwNode::EndOfSectionIndex(), SwDoc::FindCharFormatByName(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetAttrSet(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), GetDfltAttr(), SwNodes::GetEndOfAutotext(), IDocumentFieldsAccess::GetFieldTypes(), SwTextAttr::GetFlyCnt(), SwFormatFlyCnt::GetFrameFormat(), SwTable::GetFrameFormat(), IDocumentStylePoolAccess::GetFrameFormatFromPool(), SwFormat::GetFrameSize(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentState(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), SwNode::GetIndex(), SwFormat::GetKeep(), SwAttrSet::GetKeep(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwOLEObj::GetObject(), SwOLENode::GetOLEObj(), SwStyleNameMapper::GetPoolIdFromUIName(), SwContentNode::GetSwAttrSet(), SwTableNode::GetTable(), SwTextNode::GetTextAttrForCharAt(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), SwDoc::GetUniqueFrameName(), SwTextNode::HasHints(), i, SwTextNode::InsertItem(), SwTextNode::InsertText(), svt::EmbeddedObjectRef::is(), SotExchange::IsMath(), lcl_CpyAttr(), LTYPE_FLY, LTYPE_OBJECT, LTYPE_TABLE, SwDoc::MakeFlyFrameFormat(), SwFlyFrameFormat::MakeFrames(), SwNodes::MakeTextNode(), SwNodes::MakeTextSection(), SwPosition::nContent, SwPosition::nNode, RES_BACKGROUND, RES_BOX, RES_HORI_ORIENT, RES_KEEP, RES_LR_SPACE, RES_OPAQUE, RES_POOLCOLL_LABEL, RES_POOLFRM_FRAME, RES_PRINT, RES_PROTECT, RES_SHADOW, RES_SURROUND, RES_TXTATR_FLYCNT, RES_UL_SPACE, RES_VERT_ORIENT, SwFormatAnchor::SetAnchor(), SwTextNode::SetAttr(), SetExp, SwUndoInsertLabel::SetFlys(), SwFormat::SetFormatAttr(), IDocumentState::SetModified(), SwUndoInsertLabel::SetNodePos(), SwUndoInsertLabel::SetUndoKeep(), SwVectorModifyBase< Value >::size(), SVX_NUM_ARABIC, SW_MOD, SwFlyStartNode, SwFormatFrameSize::SYNCED, USHRT_MAX, and SwTextAttr::Which().

Referenced by SwDoc::InsertLabel().

static bool lcl_IsItemSet ( const SwContentNode rNode,
sal_uInt16  which 
)
static

Definition at line 93 of file doclay.cxx.

References SfxItemSet::GetItemState(), and SwContentNode::GetSwAttrSet().

Referenced by SwDoc::MakeFlySection().

static bool lcl_TstFlyRange ( const SwPaM pPam,
const SwPosition pFlyPos,
RndStdIds  nAnchorId 
)
static