|
LibreOffice Module sw (master) 1
|
#include <com/sun/star/lang/Locale.hpp>#include <com/sun/star/util/SearchAlgorithms2.hpp>#include <com/sun/star/util/SearchFlags.hpp>#include <i18nlangtag/languagetag.hxx>#include <i18nutil/searchopt.hxx>#include <osl/diagnose.h>#include <unotools/syslocale.hxx>#include <hintids.hxx>#include <svl/itemiter.hxx>#include <svl/srchitem.hxx>#include <svl/whiter.hxx>#include <editeng/colritem.hxx>#include <editeng/fontitem.hxx>#include <fmtpdsc.hxx>#include <txatbase.hxx>#include <charfmt.hxx>#include <crsrsh.hxx>#include <doc.hxx>#include <IDocumentUndoRedo.hxx>#include <IDocumentState.hxx>#include <swcrsr.hxx>#include <ndtxt.hxx>#include <pamtyp.hxx>#include <txtfrm.hxx>#include <swundo.hxx>#include <optional>#include <algorithm>#include <memory>Go to the source code of this file.
Namespaces | |
| namespace | sw |
| Dialog to specify the properties of date form field. | |
Typedefs | |
| typedef bool(* | FnSearchAttr) (const SwTextNode &, SwAttrCheckArr &, SwPaM &) |
Functions | |
| static bool | CmpAttr (const SfxPoolItem &rItem1, const SfxPoolItem &rItem2) |
| const SwTextAttr * | GetFrwrdTextHint (const SwpHints &rHtsArr, size_t &rPos, sal_Int32 nContentPos) |
| const SwTextAttr * | GetBkwrdTextHint (const SwpHints &rHtsArr, size_t &rPos, sal_Int32 nContentPos) |
| static void | lcl_SetAttrPam (SwPaM &rPam, sal_Int32 nStart, const sal_Int32 *pEnd, const bool bSaveMark) |
| static bool | lcl_SearchAttr (const SwTextNode &rTextNd, SwPaM &rPam, const SfxPoolItem &rCmpItem, SwMoveFnCollection const &fnMove) |
| search for a text attribute More... | |
| static bool | lcl_IsAttributeIgnorable (sal_Int32 const nNdStart, sal_Int32 const nNdEnd, SwSrchChrAttr const &rTmp) |
| static bool | lcl_SearchForward (const SwTextNode &rTextNd, SwAttrCheckArr &rCmpArr, SwPaM &rPam) |
| static bool | lcl_SearchBackward (const SwTextNode &rTextNd, SwAttrCheckArr &rCmpArr, SwPaM &rPam) |
| static bool | lcl_Search (const SwContentNode &rCNd, const SfxItemSet &rCmpSet, bool bNoColls) |
| bool | sw::FindAttrImpl (SwPaM &rSearchPam, const SfxPoolItem &rAttr, SwMoveFnCollection const &fnMove, const SwPaM &rRegion, bool bInReadOnly, SwRootFrame const *const pLayout) |
| static bool | FindAttrsImpl (SwPaM &rSearchPam, const SfxItemSet &rSet, bool bNoColls, SwMoveFnCollection const &fnMove, const SwPaM &rRegion, bool bInReadOnly, bool bMoveFirst, SwRootFrame const *const pLayout) |
| typedef bool(* FnSearchAttr) (const SwTextNode &, SwAttrCheckArr &, SwPaM &) |
Definition at line 1040 of file findattr.cxx.
|
static |
Definition at line 55 of file findattr.cxx.
References RES_CHRATR_COLOR(), RES_CHRATR_FONT(), RES_PAGEDESC(), SfxPoolItem::StaticWhichCast(), and SfxPoolItem::Which().
Referenced by lcl_Search().
|
static |
Definition at line 1042 of file findattr.cxx.
References sw::MergedPara::extents, fnMoveForward, SwMoveFnCollection::fnPos, SwDoc::GetAttrPool(), SwPosition::GetContentIndex(), SwPaM::GetDoc(), SwContentNode::GetFormatColl(), SwNode::GetIndex(), SwContentNode::getLayoutFrame(), SwPaM::GetMark(), SwTextFrame::GetMergedPara(), SwPosition::GetNode(), GetNode(), SwPosition::GetNodeIndex(), SwPaM::GetPoint(), SwTextFrame::GetText(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeForParaProps(), SwContentNode::HasSwAttrSet(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwNode::IsTextNode(), lcl_Search(), lcl_SearchBackward(), lcl_SearchForward(), SwContentNode::Len(), sw::MakeRegion(), SwTextFrame::MapViewToModelPos(), min(), SwPaM::Normalize(), RES_GRFATR_END(), RES_PARATR_BEGIN(), rSet, SwPosition::SetContent(), and SwPaM::SetMark().
| const SwTextAttr * GetBkwrdTextHint | ( | const SwpHints & | rHtsArr, |
| size_t & | rPos, | ||
| sal_Int32 | nContentPos | ||
| ) |
Definition at line 89 of file findattr.cxx.
References SwpHints::Get(), and SwTextAttr::GetStart().
| const SwTextAttr * GetFrwrdTextHint | ( | const SwpHints & | rHtsArr, |
| size_t & | rPos, | ||
| sal_Int32 | nContentPos | ||
| ) |
Definition at line 76 of file findattr.cxx.
References SwpHints::Count(), SwpHints::Get(), and SwTextAttr::GetStart().
|
static |
Definition at line 307 of file findattr.cxx.
|
static |
Definition at line 874 of file findattr.cxx.
References CmpAttr(), SfxItemSet::Get(), SfxItemIter::GetCurItem(), SfxItemIter::GetCurPos(), SfxItemPool::GetDefaultItem(), SfxItemSet::GetItemState(), SfxItemSet::GetPool(), SwContentNode::GetSwAttrSet(), SfxItemSet::GetWhichByPos(), SwContentNode::HasSwAttrSet(), IsInvalidItem(), SfxItemIter::NextItem(), and SfxPoolItem::Which().
Referenced by FindAttrsImpl().
|
static |
search for a text attribute
This function searches in a text node for a given attribute. If that is found then the SwPaM contains the section that surrounds the attribute (w.r.t. the search area).
| rTextNd | Text node to search in. |
| rPam | ??? |
| rCmpItem | ??? |
| fnMove | ??? |
Definition at line 138 of file findattr.cxx.
References SwpHints::Count(), SwTextAttr::End(), SwMoveFnCollection::fnGetHint, fnMoveForward, SwPosition::GetContentIndex(), SwPaM::GetPoint(), SwTextAttr::GetStart(), SwTextNode::GetSwpHints(), SwTextNode::HasHints(), lcl_SetAttrPam(), nPos, SfxPoolItem::Which(), and SwTextAttr::Which().
Referenced by sw::FindAttrImpl().
|
static |
Definition at line 783 of file findattr.cxx.
References SwpHints::Count(), SwTextAttr::End(), SwTextAttr::GetAnyEnd(), SwpHints::GetSortedByEnd(), SwTextNode::GetSwpHints(), SwTextNode::HasHints(), lcl_SetAttrPam(), and nPos.
Referenced by FindAttrsImpl().
|
static |
Definition at line 695 of file findattr.cxx.
References SwpHints::Count(), SwpHints::Get(), SwTextAttr::GetStart(), SwTextNode::GetSwpHints(), SwTextNode::HasHints(), lcl_SetAttrPam(), and nPos.
Referenced by FindAttrsImpl().
|
static |
Definition at line 102 of file findattr.cxx.
References SwPosition::GetContentIndex(), SwPaM::GetMark(), SwPosition::GetNode(), SwPaM::GetPoint(), SwPosition::SetContent(), and SwPaM::SetMark().
Referenced by sw::FindAttrImpl(), lcl_SearchAttr(), lcl_SearchBackward(), and lcl_SearchForward().