LibreOffice Module sw (master) 1
Namespaces | Functions
reffld.cxx File Reference
#include <com/sun/star/text/ReferenceFieldPart.hpp>
#include <com/sun/star/text/ReferenceFieldSource.hpp>
#include <o3tl/unreachable.hxx>
#include <unotools/localedatawrapper.hxx>
#include <unotools/charclass.hxx>
#include <doc.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentMarkAccess.hxx>
#include <pam.hxx>
#include <cntfrm.hxx>
#include <pagefrm.hxx>
#include <rootfrm.hxx>
#include <modeltoviewhelper.hxx>
#include <fmtfld.hxx>
#include <txtfld.hxx>
#include <txtftn.hxx>
#include <fmtrfmrk.hxx>
#include <txtrfmrk.hxx>
#include <fmtftn.hxx>
#include <ndtxt.hxx>
#include <chpfld.hxx>
#include <reffld.hxx>
#include <expfld.hxx>
#include <txtfrm.hxx>
#include <flyfrm.hxx>
#include <pagedesc.hxx>
#include <IMark.hxx>
#include <crossrefbookmark.hxx>
#include <ftnidx.hxx>
#include <utility>
#include <viewsh.hxx>
#include <unofldmid.h>
#include <SwStyleNameMapper.hxx>
#include <shellres.hxx>
#include <poolfmt.hxx>
#include <strings.hrc>
#include <numrule.hxx>
#include <SwNodeNum.hxx>
#include <calbck.hxx>
#include <cstddef>
#include <memory>
#include <vector>
#include <set>
#include <string_view>
#include <map>
#include <algorithm>
Include dependency graph for reffld.cxx:

Go to the source code of this file.

Namespaces

namespace  sw
 Dialog to specify the properties of date form field.
 

Functions

static std::pair< OUString, bool > MakeRefNumStr (SwRootFrame const *pLayout, const SwTextNode &rTextNodeOfField, const SwTextNode &rTextNodeOfReferencedItem, sal_uInt32 nRefNumFormat)
 
static void lcl_GetLayTree (const SwFrame *pFrame, std::vector< const SwFrame * > &rArr)
 
bool IsFrameBehind (const SwTextNode &rMyNd, sal_Int32 nMySttPos, const SwTextNode &rBehindNd, sal_Int32 nSttPos)
 
static void lcl_formatReferenceLanguage (OUString &rRefText, bool bClosingParenthesis, LanguageType eLang, std::u16string_view rReferenceLanguage)
 
static OUString lcl_formatStringByCombiningCharacter (std::u16string_view sText, const sal_Unicode cChar)
 
static void FilterText (OUString &rText, LanguageType const eLang, std::u16string_view rSetReferenceLanguage)
 
bool sw::IsMarkHintHidden (SwRootFrame const &rLayout, SwTextNode const &rNode, SwTextAttrEnd const &rHint)
 

Function Documentation

◆ FilterText()

static void FilterText ( OUString &  rText,
LanguageType const  eLang,
std::u16string_view  rSetReferenceLanguage 
)
static

Definition at line 455 of file reffld.cxx.

References aBuf, i, lcl_formatReferenceLanguage(), and u.

Referenced by SwGetRefField::UpdateField().

◆ IsFrameBehind()

bool IsFrameBehind ( const SwTextNode rMyNd,
sal_Int32  nMySttPos,
const SwTextNode rBehindNd,
sal_Int32  nSttPos 
)

◆ lcl_formatReferenceLanguage()

static void lcl_formatReferenceLanguage ( OUString &  rRefText,
bool  bClosingParenthesis,
LanguageType  eLang,
std::u16string_view  rReferenceLanguage 
)
static

◆ lcl_formatStringByCombiningCharacter()

static OUString lcl_formatStringByCombiningCharacter ( std::u16string_view  sText,
const sal_Unicode  cChar 
)
static

Definition at line 402 of file reffld.cxx.

References i.

Referenced by SwGetRefField::GetExpandedTextOfReferencedTextNode().

◆ lcl_GetLayTree()

static void lcl_GetLayTree ( const SwFrame pFrame,
std::vector< const SwFrame * > &  rArr 
)
static

◆ MakeRefNumStr()

static std::pair< OUString, bool > MakeRefNumStr ( SwRootFrame const *  pLayout,
const SwTextNode rTextNodeOfField,
const SwTextNode rTextNodeOfReferencedItem,
sal_uInt32  nRefNumFormat 
)
static