LibreOffice Module sw (master)  1
Classes | Namespaces | Functions
txtfrm.cxx File Reference
#include <hintids.hxx>
#include <hints.hxx>
#include <svl/ctloptions.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/sfxuno.hxx>
#include <editeng/langitem.hxx>
#include <editeng/lspcitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/pgrditem.hxx>
#include <editeng/rsiditem.hxx>
#include <unotools/configmgr.hxx>
#include <swmodule.hxx>
#include <SwSmartTagMgr.hxx>
#include <doc.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <rootfrm.hxx>
#include <pagefrm.hxx>
#include <viewsh.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
#include <txtatr.hxx>
#include <paratr.hxx>
#include <viewopt.hxx>
#include <dflyobj.hxx>
#include <flyfrm.hxx>
#include <tabfrm.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include <pagedesc.hxx>
#include <tgrditem.hxx>
#include <dbg_lay.hxx>
#include <fmtfld.hxx>
#include <fmtftn.hxx>
#include <txtfld.hxx>
#include <txtftn.hxx>
#include <charatr.hxx>
#include <ftninfo.hxx>
#include <fmtline.hxx>
#include <txtfrm.hxx>
#include <notxtfrm.hxx>
#include <sectfrm.hxx>
#include "itrform2.hxx"
#include "widorp.hxx"
#include "txtcache.hxx"
#include <fntcache.hxx>
#include <SwGrammarMarkUp.hxx>
#include <lineinfo.hxx>
#include <SwPortionHandler.hxx>
#include <dcontact.hxx>
#include <sortedobjs.hxx>
#include <txtflcnt.hxx>
#include <fmtflcnt.hxx>
#include <fmtcntnt.hxx>
#include <numrule.hxx>
#include <swtable.hxx>
#include <fldupde.hxx>
#include <docufld.hxx>
#include <IGrammarContact.hxx>
#include <calbck.hxx>
#include <ftnidx.hxx>
#include <ftnfrm.hxx>
Include dependency graph for txtfrm.cxx:

Go to the source code of this file.

Classes

class  SwTestFormat
 Small Helper class: Prepares a test format. More...
 

Namespaces

 sw
 Dialog to specify the properties of date form field.
 

Functions

bool sw::FrameContainsNode (SwContentFrame const &rFrame, sal_uLong nNodeIndex)
 
bool sw::IsParaPropsNode (SwRootFrame const &rLayout, SwTextNode const &rNode)
 
SwTextNodesw::GetParaPropsNode (SwRootFrame const &rLayout, SwNodeIndex const &rNode)
 
SwPosition sw::GetParaPropsPos (SwRootFrame const &rLayout, SwPosition const &rPos)
 
std::pair< SwTextNode *, SwTextNode * > sw::GetFirstAndLastNode (SwRootFrame const &rLayout, SwNodeIndex const &rPos)
 
SwTextNode const & sw::GetAttrMerged (SfxItemSet &rFormatSet, SwTextNode const &rNode, SwRootFrame const *pLayout)
 
SwTextFramesw::MakeTextFrame (SwTextNode &rNode, SwFrame *, sw::FrameMode eMode)
 
void sw::RemoveFootnotesForNode (SwRootFrame const &rLayout, SwTextNode const &rTextNode, std::vector< std::pair< sal_Int32, sal_Int32 >> const *const pExtents)
 
static TextFrameIndex sw::UpdateMergedParaForInsert (MergedPara &rMerged, bool const isRealInsert, SwTextNode const &rNode, sal_Int32 const nIndex, sal_Int32 const nLen)
 
TextFrameIndex sw::UpdateMergedParaForDelete (MergedPara &rMerged, bool isRealDelete, SwTextNode const &rNode, sal_Int32 nIndex, sal_Int32 nLen)
 
std::pair< SwTextNode *, sal_Int32 > sw::MapViewToModel (MergedPara const &, TextFrameIndex nIndex)
 
TextFrameIndex sw::MapModelToView (MergedPara const &, SwTextNode const *pNode, sal_Int32 nIndex)
 
bool sw_HideObj (const SwTextFrame &_rFrame, const RndStdIds _eAnchorType, SwPosition const &rAnchorPos, SwAnchoredObject *_pAnchoredObj)
 as-character anchored graphics, which are used for a graphic bullet list. More...
 
static void lcl_SetWrong (SwTextFrame &rFrame, SwTextNode const &rNode, sal_Int32 const nPos, sal_Int32 const nCnt, bool const bMove)
 
static void lcl_SetScriptInval (SwTextFrame &rFrame, TextFrameIndex const nPos)
 
static void lcl_ModifyOfst (SwTextFrame &rFrame, TextFrameIndex const nPos, TextFrameIndex const nLen, TextFrameIndex(*op)(TextFrameIndex const &, TextFrameIndex const &))
 
static bool isA11yRelevantAttribute (sal_uInt16 nWhich)
 Related: fdo#56031 filter out attribute changes that don't matter for humans/a11y to stop flooding the destination mortal with useless noise. More...
 
static bool hasA11yRelevantAttribute (const std::vector< sal_uInt16 > &rWhichFmtAttr)
 
static bool lcl_ErgoVadis (SwTextFrame *pFrame, TextFrameIndex &rPos, const PrepareHint ePrep)
 
static SwTwips lcl_CalcFlyBasePos (const SwTextFrame &rFrame, SwRect aFlyRect, SwTextFly const &rTextFly)
 Helper function for SwTextFrame::CalcBasePosForFly() More...
 

Function Documentation

static bool hasA11yRelevantAttribute ( const std::vector< sal_uInt16 > &  rWhichFmtAttr)
static

Definition at line 1953 of file txtfrm.cxx.

References isA11yRelevantAttribute().

Referenced by SwTextFrame::SwClientNotify().

static bool isA11yRelevantAttribute ( sal_uInt16  nWhich)
static

Related: fdo#56031 filter out attribute changes that don't matter for humans/a11y to stop flooding the destination mortal with useless noise.

Definition at line 1948 of file txtfrm.cxx.

References RES_CHRATR_RSID.

Referenced by hasA11yRelevantAttribute(), and SwTextFrame::SwClientNotify().

static SwTwips lcl_CalcFlyBasePos ( const SwTextFrame rFrame,
SwRect  aFlyRect,
SwTextFly const &  rTextFly 
)
static
static bool lcl_ErgoVadis ( SwTextFrame pFrame,
TextFrameIndex rPos,
const PrepareHint  ePrep 
)
static
static void lcl_ModifyOfst ( SwTextFrame rFrame,
TextFrameIndex const  nPos,
TextFrameIndex const  nLen,
TextFrameIndex(*)(TextFrameIndex const &, TextFrameIndex const &)  op 
)
static
static void lcl_SetScriptInval ( SwTextFrame rFrame,
TextFrameIndex const  nPos 
)
static
static void lcl_SetWrong ( SwTextFrame rFrame,
SwTextNode const &  rNode,
sal_Int32 const  nPos,
sal_Int32 const  nCnt,
bool const  bMove 
)
static
bool sw_HideObj ( const SwTextFrame _rFrame,
const RndStdIds  _eAnchorType,
SwPosition const &  rAnchorPos,
SwAnchoredObject _pAnchoredObj 
)

as-character anchored graphics, which are used for a graphic bullet list.

As long as these graphic bullet list aren't imported, do not hide a at-character anchored object, if (a) the document is an imported WW8 document - checked by checking certain compatibility options - (b) the paragraph is the last content in the document and (c) the anchor character is an as-character anchored graphic.

Definition at line 1483 of file txtfrm.cxx.

References CH_TXTATR_BREAKWORD, CONSIDER_WRAP_ON_OBJECT_POSITION, SwFrame::FindNextCnt(), sw::FrameContainsNode(), IDocumentSettingAccess::get(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwTextFrame::GetDoc(), SwFrameAreaDefinition::getFrameArea(), SwDoc::getIDocumentSettingAccess(), SwIndex::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetTextNode(), SwRectFnSet::GetTop(), SwFrame::IsInDocBody(), SwNode::IsNoTextNode(), SwAnchoredObject::maLastCharRect, SwAnchoredObject::mnLastTopOfLine, SwPosition::nContent, SwPosition::nNode, OLD_LINE_SPACING, RES_FLYFRMFMT, RES_TXTATR_FLYCNT, SwRectFnSet::SetWidth(), USE_FORMER_OBJECT_POS, USE_FORMER_TEXT_WRAPPING, and SwFormat::Which().

Referenced by SwTextFrame::HideAndShowObjects().