LibreOffice Module sw (master)  1
Classes | Namespaces | Typedefs | Functions
findattr.cxx File Reference
#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 <unotools/syslocale.hxx>
#include <hintids.hxx>
#include <svl/itemiter.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 <boost/optional.hpp>
#include <algorithm>
#include <memory>
Include dependency graph for findattr.cxx:

Go to the source code of this file.


struct  SwSrchChrAttr
 search for multiple text attributes More...
class  SwAttrCheckArr
struct  SwFindParaAttr
 parameters for search for attributes More...


 Dialog to specify the properties of date form field.


typedef std::set< SwFormat * > SwpFormats
typedef bool(* FnSearchAttr) (const SwTextNode &, SwAttrCheckArr &, SwPaM &)


static bool CmpAttr (const SfxPoolItem &rItem1, const SfxPoolItem &rItem2)
const SwTextAttrGetFrwrdTextHint (const SwpHints &rHtsArr, size_t &rPos, sal_Int32 nContentPos)
const SwTextAttrGetBkwrdTextHint (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 Documentation

typedef bool(* FnSearchAttr) (const SwTextNode &, SwAttrCheckArr &, SwPaM &)

Definition at line 1018 of file findattr.cxx.

Definition at line 52 of file findattr.cxx.

Function Documentation

static bool CmpAttr ( const SfxPoolItem rItem1,
const SfxPoolItem rItem2 
static bool FindAttrsImpl ( SwPaM rSearchPam,
const SfxItemSet rSet,
bool  bNoColls,
SwMoveFnCollection const &  fnMove,
const SwPaM rRegion,
bool  bInReadOnly,
bool  bMoveFirst,
SwRootFrame const *const  pLayout 
const SwTextAttr* GetBkwrdTextHint ( const SwpHints rHtsArr,
size_t &  rPos,
sal_Int32  nContentPos 

Definition at line 106 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 93 of file findattr.cxx.

References SwpHints::Count(), SwpHints::Get(), and SwTextAttr::GetStart().

static bool lcl_IsAttributeIgnorable ( sal_Int32 const  nNdStart,
sal_Int32 const  nNdEnd,
SwSrchChrAttr const &  rTmp 
static bool lcl_Search ( const SwContentNode rCNd,
const SfxItemSet rCmpSet,
bool  bNoColls 
static bool lcl_SearchAttr ( const SwTextNode rTextNd,
SwPaM rPam,
const SfxPoolItem rCmpItem,
SwMoveFnCollection const &  fnMove 

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).

rTextNdText node to search in.
Returns <true> if found, <false> otherwise.

Definition at line 156 of file findattr.cxx.

References SwpHints::Count(), SwTextAttr::End(), SwMoveFnCollection::fnGetHint, fnMoveForward, SwIndex::GetIndex(), SwPaM::GetPoint(), SwTextAttr::GetStart(), SwTextNode::GetSwpHints(), SwTextNode::HasHints(), lcl_SetAttrPam(), SwPosition::nContent, nPos, SfxPoolItem::Which(), and SwTextAttr::Which().

Referenced by sw::FindAttrImpl().

static bool lcl_SearchBackward ( const SwTextNode rTextNd,
SwAttrCheckArr rCmpArr,
SwPaM rPam 
static bool lcl_SearchForward ( const SwTextNode rTextNd,
SwAttrCheckArr rCmpArr,
SwPaM rPam 
static void lcl_SetAttrPam ( SwPaM rPam,
sal_Int32  nStart,
const sal_Int32 *  pEnd,
const bool  bSaveMark