LibreOffice Module sw (master) 1
|
#include <sal/config.h>
#include <string_view>
#include "porlay.hxx"
#include "itrform2.hxx"
#include "porglue.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/UnicodeType.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <paratr.hxx>
#include <sal/log.hxx>
#include <optional>
#include <editeng/adjustitem.hxx>
#include <editeng/charhiddenitem.hxx>
#include <svl/asiancfg.hxx>
#include <svl/languageoptions.hxx>
#include <tools/multisel.hxx>
#include <unotools/charclass.hxx>
#include <charfmt.hxx>
#include <docary.hxx>
#include <fmtanchr.hxx>
#include <redline.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 <sortedobjs.hxx>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/text/XBookmarksSupplier.hpp>
#include <officecfg/Office/Common.hxx>
#include <comphelper/processfactory.hxx>
#include <docsh.hxx>
#include <unobookmark.hxx>
#include <unocrsrhelper.hxx>
#include <frmatr.hxx>
#include <vcl/kernarray.hxx>
#include <editeng/ulspitem.hxx>
#include <com/sun/star/rdf/Statement.hpp>
#include <com/sun/star/rdf/URI.hpp>
#include <com/sun/star/rdf/URIs.hpp>
#include <com/sun/star/rdf/XDocumentMetadataAccess.hpp>
#include <com/sun/star/rdf/XLiteral.hpp>
#include <com/sun/star/text/XTextContent.hpp>
#include <unicode/ubidi.h>
#include <i18nutil/scripttypedetector.hxx>
#include <i18nutil/unicode.hxx>
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) || IS_JOINING_GROUP((c), AFRICAN_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) || IS_JOINING_GROUP((c), AFRICAN_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 (std::u16string_view rText, sal_Int32 nStart, sal_Int32 nEnd) |
static bool | lcl_HasOnlyBlanks (std::u16string_view rText, TextFrameIndex nStt, TextFrameIndex nEnd) |
static SwFontScript | lcl_ScriptToFont (sal_uInt16 const nScript) |
static Color | getBookmarkColor (const SwTextNode &rNode, const sw::mark::IBookmark *pBookmark) |
static void | InitBookmarks (std::optional< std::vector< sw::Extent >::const_iterator > oPrevIter, std::vector< sw::Extent >::const_iterator iter, std::vector< sw::Extent >::const_iterator const end, TextFrameIndex nOffset, std::vector< std::pair< sw::mark::IBookmark const *, SwScriptInfo::MarkKind > > &rBookmarks, std::vector< std::tuple< TextFrameIndex, SwScriptInfo::MarkKind, Color, OUString > > &o_rBookmarks) |
#define IS_JOINING_GROUP | ( | c, | |
g | |||
) | ( u_getIntPropertyValue( (c), UCHAR_JOINING_GROUP ) == U_JG_##g ) |
Definition at line 113 of file porlay.cxx.
#define isAinChar | ( | c | ) | IS_JOINING_GROUP((c), AIN) |
Definition at line 114 of file porlay.cxx.
#define isAlefChar | ( | c | ) | IS_JOINING_GROUP((c), ALEF) |
Definition at line 115 of file porlay.cxx.
#define isDalChar | ( | c | ) | IS_JOINING_GROUP((c), DAL) |
Definition at line 116 of file porlay.cxx.
#define isFehChar | ( | c | ) | (IS_JOINING_GROUP((c), FEH) || IS_JOINING_GROUP((c), AFRICAN_FEH)) |
Definition at line 117 of file porlay.cxx.
#define isGafChar | ( | c | ) | IS_JOINING_GROUP((c), GAF) |
Definition at line 118 of file porlay.cxx.
#define isHehChar | ( | c | ) | IS_JOINING_GROUP((c), HEH) |
Definition at line 119 of file porlay.cxx.
#define isKafChar | ( | c | ) | IS_JOINING_GROUP((c), KAF) |
Definition at line 120 of file porlay.cxx.
#define isLamChar | ( | c | ) | IS_JOINING_GROUP((c), LAM) |
Definition at line 121 of file porlay.cxx.
#define isQafChar | ( | c | ) | (IS_JOINING_GROUP((c), QAF) || IS_JOINING_GROUP((c), AFRICAN_QAF)) |
Definition at line 122 of file porlay.cxx.
#define isRehChar | ( | c | ) | IS_JOINING_GROUP((c), REH) |
Definition at line 123 of file porlay.cxx.
#define isSeenOrSadChar | ( | c | ) | (IS_JOINING_GROUP((c), SAD) || IS_JOINING_GROUP((c), SEEN)) |
Definition at line 127 of file porlay.cxx.
#define isTahChar | ( | c | ) | IS_JOINING_GROUP((c), TAH) |
Definition at line 124 of file porlay.cxx.
#define isTehMarbutaChar | ( | c | ) | IS_JOINING_GROUP((c), TEH_MARBUTA) |
Definition at line 125 of file porlay.cxx.
#define isWawChar | ( | c | ) | IS_JOINING_GROUP((c), WAW) |
Definition at line 126 of file porlay.cxx.
|
static |
Definition at line 904 of file porlay.cxx.
References COL_TRANSPARENT(), SwXBookmark::CreateXBookmark(), SfxObjectShell::GetBaseModel(), SwNode::GetDoc(), SwDoc::GetDocShell(), Color::STRtoRGB(), and xModel.
Referenced by InitBookmarks(), and SwScriptInfo::InitScriptInfo().
|
static |
Definition at line 945 of file porlay.cxx.
References end, SwScriptInfo::End, getBookmarkColor(), SwPosition::GetContentIndex(), SwNode::GetIndex(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwScriptInfo::Point, and SwScriptInfo::Start.
Referenced by SwScriptInfo::InitScriptInfo().
|
static |
Definition at line 130 of file porlay.cxx.
Referenced by SwScriptInfo::InitScriptInfo().
|
static |
Definition at line 173 of file porlay.cxx.
Referenced by SwScriptInfo::InitScriptInfo().
|
static |
Definition at line 153 of file porlay.cxx.
Referenced by SwScriptInfo::InitScriptInfo().
|
static |
Definition at line 186 of file porlay.cxx.
References lcl_IsLigature().
Referenced by SwScriptInfo::InitScriptInfo().
|
static |
Definition at line 352 of file porlay.cxx.
Referenced by SwLineLayout::CalcLine().
|
static |
Definition at line 198 of file porlay.cxx.
Referenced by SwScriptInfo::InitScriptInfo().
|
static |
Definition at line 179 of file porlay.cxx.
References isAlefChar, and isLamChar.
Referenced by lcl_ConnectToPrev().
|
static |
Definition at line 880 of file porlay.cxx.
References CJK, CTL, and Latin.
Referenced by SwScriptInfo::WhichFont().