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 <osl/diagnose.h>
#include <svx/svdouno.hxx>
#include <editeng/frmdiritem.hxx>
#include <istype.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 <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 <frameformats.hxx>
#include <tools/datetimeutils.hxx>
#include <comphelper/string.hxx>
#include <o3tl/string_view.hxx>
#include <sortedobjs.hxx>
#include <string_view>
#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 SwFormatAnchor &rFlyFormatAnchor)
 
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, std::u16string_view rText, std::u16string_view rSeparator, const OUString &rNumberingSeparator, const bool bBefore, const sal_uInt16 nId, const SwNodeOffset 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, std::u16string_view rName, std::u16string_view 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 &rDoc, TranslateId pDefStrId, sal_uInt16 eType, std::u16string_view rPrefix=std::u16string_view(), SwNodeType nNdTyp=SwNodeType::NONE)
 

Macro Definition Documentation

◆ DEF_FLY_WIDTH

#define DEF_FLY_WIDTH   2268

Definition at line 96 of file doclay.cxx.

Function Documentation

◆ lcl_collectUsedNums() [1/2]

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

◆ lcl_collectUsedNums() [2/2]

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

Definition at line 1288 of file doclay.cxx.

References o3tl::starts_with(), and o3tl::toInt32().

Referenced by lcl_collectUsedNums(), and lcl_GetUniqueFlyName().

◆ lcl_CpyAttr()

static void lcl_CpyAttr ( SfxItemSet rNewSet,
const SfxItemSet rOldSet,
sal_uInt16  nWhich 
)
static

◆ lcl_GetUniqueFlyName()

static OUString lcl_GetUniqueFlyName ( const SwDoc rDoc,
TranslateId  pDefStrId,
sal_uInt16  eType,
std::u16string_view  rPrefix = std::u16string_view(),
SwNodeType  nNdTyp = SwNodeType::NONE 
)
static

◆ lcl_InsertDrawLabel()

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 1004 of file doclay.cxx.

References ChrFmt, SwAttrSet::Clone(), SwDrawFrameFormat::DelFrames(), DONTEXPAND, SwDoc::FindCharFormatByName(), sw::proofreadingiterator::get(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorContentOffset(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwFormat::GetAttrSet(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SwFormat::GetContent(), 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(), IDocumentDrawModelAccess::GetInvisibleHeavenId(), IDocumentDrawModelAccess::GetInvisibleHellId(), SfxItemSet::GetItemState(), SdrObject::GetLayer(), SwFormat::GetLRSpace(), SwFieldType::GetName(), GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwStyleNameMapper::GetPoolIdFromUIName(), tools::Rectangle::GetSize(), SwTextNode::GetTextAttrForCharAt(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), SwFormat::GetULSpace(), SwDoc::GetUniqueFrameName(), SwFormat::GetVertOrient(), SwTextNode::HasHints(), Size::Height(), i, SwTextNode::InsertItem(), SwTextNode::InsertText(), SdrObject::IsMoveProtect(), SdrObject::IsResizeProtect(), lcl_CpyAttr(), SwDoc::MakeFlyFrameFormat(), SwFlyFrameFormat::MakeFrames(), SwNodes::MakeTextSection(), Minimum, nId, 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, SwFieldType::Which(), SwTextAttr::Which(), and Size::Width().

Referenced by SwDoc::InsertDrawLabel().

◆ lcl_InsertLabel()

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

Definition at line 642 of file doclay.cxx.

References ChrFmt, SwAttrSet::Clone(), SwFormatFrameSize::Clone(), SwFrameFormat::DelFrames(), DONTEXPAND, SwNode::EndOfSectionIndex(), eType, SwDoc::FindCharFormatByName(), Fly, sw::proofreadingiterator::get(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorContentOffset(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwFormat::GetAttrSet(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), GetDfltAttr(), SwNodes::GetEndOfAutotext(), IDocumentFieldsAccess::GetFieldTypes(), SwTextAttr::GetFlyCnt(), SwTable::GetFrameFormat(), SwFormatFlyCnt::GetFrameFormat(), IDocumentStylePoolAccess::GetFrameFormatFromPool(), SwFormat::GetFrameSize(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentState(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SwNode::GetIndex(), SwFormat::GetKeep(), SwAttrSet::GetKeep(), SwFieldType::GetName(), GetName(), 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(), SwDoc::MakeFlyFrameFormat(), SwFlyFrameFormat::MakeFrames(), SwNodes::MakeTextNode(), SwNodes::MakeTextSection(), Minimum, nId, Object, 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, Table, SwFieldType::Which(), and SwTextAttr::Which().

Referenced by SwDoc::InsertLabel().

◆ lcl_IsItemSet()

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

Definition at line 98 of file doclay.cxx.

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

Referenced by SwDoc::MakeFlySection().

◆ lcl_TstFlyRange()

static bool lcl_TstFlyRange ( const SwPaM pPam,
const SwFormatAnchor rFlyFormatAnchor 
)
static