LibreOffice Module sw (master)  1
Macros | Functions
porlay.cxx File Reference
#include "porlay.hxx"
#include "itrform2.hxx"
#include "porglue.hxx"
#include "porexp.hxx"
#include <blink.hxx>
#include "redlnitr.hxx"
#include "porfly.hxx"
#include "porrst.hxx"
#include "pormulti.hxx"
#include "pordrop.hxx"
#include <breakit.hxx>
#include <unicode/uchar.h>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <com/sun/star/i18n/CTLScriptType.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <paratr.hxx>
#include <sal/log.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/scripttypeitem.hxx>
#include <editeng/charhiddenitem.hxx>
#include <vcl/outdev.hxx>
#include <svl/asiancfg.hxx>
#include <editeng/blinkitem.hxx>
#include <tools/multisel.hxx>
#include <unotools/charclass.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <charfmt.hxx>
#include <fchrfmt.hxx>
#include <docary.hxx>
#include <redline.hxx>
#include <section.hxx>
#include <calbck.hxx>
#include <doc.hxx>
#include <swscanner.hxx>
#include <txatbase.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentContentOperations.hxx>
#include <IMark.hxx>
#include <unicode/ubidi.h>
#include <i18nutil/scripttypedetector.hxx>
#include <i18nutil/unicode.hxx>
Include dependency graph for porlay.cxx:

Go to the source code of this file.

Macros

#define IS_JOINING_GROUP(c, g)   ( u_getIntPropertyValue( (c), UCHAR_JOINING_GROUP ) == U_JG_##g )
 
#define isAinChar(c)    IS_JOINING_GROUP((c), AIN)
 
#define isAlefChar(c)    IS_JOINING_GROUP((c), ALEF)
 
#define isDalChar(c)    IS_JOINING_GROUP((c), DAL)
 
#define isFehChar(c)    IS_JOINING_GROUP((c), FEH)
 
#define isGafChar(c)    IS_JOINING_GROUP((c), GAF)
 
#define isHehChar(c)    IS_JOINING_GROUP((c), HEH)
 
#define isKafChar(c)    IS_JOINING_GROUP((c), KAF)
 
#define isLamChar(c)    IS_JOINING_GROUP((c), LAM)
 
#define isQafChar(c)    IS_JOINING_GROUP((c), QAF)
 
#define isRehChar(c)    IS_JOINING_GROUP((c), REH)
 
#define isTahChar(c)    IS_JOINING_GROUP((c), TAH)
 
#define isTehMarbutaChar(c)   IS_JOINING_GROUP((c), TEH_MARBUTA)
 
#define isWawChar(c)    IS_JOINING_GROUP((c), WAW)
 
#define isSeenOrSadChar(c)   (IS_JOINING_GROUP((c), SAD) || IS_JOINING_GROUP((c), SEEN))
 

Functions

static bool isBehChar (sal_Unicode cCh)
 
static bool isYehChar (sal_Unicode cCh)
 
static bool isTransparentChar (sal_Unicode cCh)
 
static bool lcl_IsLigature (sal_Unicode cCh, sal_Unicode cNextCh)
 
static bool lcl_ConnectToPrev (sal_Unicode cCh, sal_Unicode cPrevCh)
 
static bool lcl_HasStrongLTR (const OUString &rText, sal_Int32 nStart, sal_Int32 nEnd)
 
static bool lcl_HasOnlyBlanks (const OUString &rText, TextFrameIndex nStt, TextFrameIndex nEnd)
 
static SwFontScript lcl_ScriptToFont (sal_uInt16 const nScript)
 

Macro Definition Documentation

#define IS_JOINING_GROUP (   c,
 
)    ( u_getIntPropertyValue( (c), UCHAR_JOINING_GROUP ) == U_JG_##g )

Definition at line 69 of file porlay.cxx.

#define isAinChar (   c)    IS_JOINING_GROUP((c), AIN)

Definition at line 70 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isAlefChar (   c)    IS_JOINING_GROUP((c), ALEF)

Definition at line 71 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo(), and lcl_IsLigature().

#define isDalChar (   c)    IS_JOINING_GROUP((c), DAL)

Definition at line 72 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isFehChar (   c)    IS_JOINING_GROUP((c), FEH)

Definition at line 76 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isGafChar (   c)    IS_JOINING_GROUP((c), GAF)

Definition at line 78 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isHehChar (   c)    IS_JOINING_GROUP((c), HEH)

Definition at line 79 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isKafChar (   c)    IS_JOINING_GROUP((c), KAF)

Definition at line 80 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isLamChar (   c)    IS_JOINING_GROUP((c), LAM)

Definition at line 81 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo(), and lcl_IsLigature().

#define isQafChar (   c)    IS_JOINING_GROUP((c), QAF)

Definition at line 85 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isRehChar (   c)    IS_JOINING_GROUP((c), REH)

Definition at line 87 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isSeenOrSadChar (   c)    (IS_JOINING_GROUP((c), SAD) || IS_JOINING_GROUP((c), SEEN))

Definition at line 91 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isTahChar (   c)    IS_JOINING_GROUP((c), TAH)

Definition at line 88 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isTehMarbutaChar (   c)    IS_JOINING_GROUP((c), TEH_MARBUTA)

Definition at line 89 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

#define isWawChar (   c)    IS_JOINING_GROUP((c), WAW)

Definition at line 90 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

Function Documentation

static bool isBehChar ( sal_Unicode  cCh)
static

Definition at line 94 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

static bool isTransparentChar ( sal_Unicode  cCh)
static

Definition at line 139 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

static bool isYehChar ( sal_Unicode  cCh)
static

Definition at line 119 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

static bool lcl_ConnectToPrev ( sal_Unicode  cCh,
sal_Unicode  cPrevCh 
)
static

Definition at line 152 of file porlay.cxx.

References lcl_IsLigature().

Referenced by SwScriptInfo::InitScriptInfo().

static bool lcl_HasOnlyBlanks ( const OUString &  rText,
TextFrameIndex  nStt,
TextFrameIndex  nEnd 
)
static

Definition at line 316 of file porlay.cxx.

References CH_FULL_BLANK, and CH_SIX_PER_EM.

Referenced by SwLineLayout::CalcLine().

static bool lcl_HasStrongLTR ( const OUString &  rText,
sal_Int32  nStart,
sal_Int32  nEnd 
)
static

Definition at line 164 of file porlay.cxx.

Referenced by SwScriptInfo::InitScriptInfo().

static bool lcl_IsLigature ( sal_Unicode  cCh,
sal_Unicode  cNextCh 
)
static

Definition at line 145 of file porlay.cxx.

References isAlefChar, and isLamChar.

Referenced by lcl_ConnectToPrev().

static SwFontScript lcl_ScriptToFont ( sal_uInt16 const  nScript)
static

Definition at line 712 of file porlay.cxx.

References CJK, CTL, and Latin.

Referenced by SwScriptInfo::WhichFont().