LibreOffice Module sw (master) 1
|
#include <config_wasm_strip.h>
#include <hintids.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <svl/itemiter.hxx>
#include <svl/languageoptions.hxx>
#include <editeng/splwrap.hxx>
#include <editeng/langitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/hangulhanja.hxx>
#include <i18nutil/transliteration.hxx>
#include <SwSmartTagMgr.hxx>
#include <o3tl/safeint.hxx>
#include <osl/diagnose.h>
#include <officecfg/Office/Writer.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <unotools/charclass.hxx>
#include <sal/log.hxx>
#include <swmodule.hxx>
#include <splargs.hxx>
#include <viewopt.hxx>
#include <acmplwrd.hxx>
#include <doc.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <docsh.hxx>
#include <txtfld.hxx>
#include <txatbase.hxx>
#include <charatr.hxx>
#include <pam.hxx>
#include <hints.hxx>
#include <ndtxt.hxx>
#include <txtfrm.hxx>
#include <SwGrammarMarkUp.hxx>
#include <rootfrm.hxx>
#include <swscanner.hxx>
#include <breakit.hxx>
#include <UndoOverwrite.hxx>
#include <txatritr.hxx>
#include <redline.hxx>
#include <docary.hxx>
#include <scriptinfo.hxx>
#include <docstat.hxx>
#include <editsh.hxx>
#include <unotextmarkup.hxx>
#include <txtatr.hxx>
#include <fmtautofmt.hxx>
#include <istyleaccess.hxx>
#include <unicode/uchar.h>
#include <DocumentSettingManager.hxx>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <vector>
#include <unotextrange.hxx>
Go to the source code of this file.
Functions | |
static bool | lcl_HasComments (const SwTextNode &rNode) |
static bool | lcl_IsDelim (const sal_Unicode c) |
static bool | lcl_IsURL (std::u16string_view rWord, SwTextNode &rNode, sal_Int32 nBegin, sal_Int32 nLen) |
static sal_Int32 | lcl_MaskRedlines (const SwTextNode &rNode, OUStringBuffer &rText, sal_Int32 nStt, sal_Int32 nEnd, const sal_Unicode cChar) |
static bool | lcl_MaskRedlinesAndHiddenText (const SwTextNode &rNode, OUStringBuffer &rText, sal_Int32 nStt, sal_Int32 nEnd, const sal_Unicode cChar=CH_TXTATR_INWORD) |
Used for spell checking. More... | |
static SwRect | lcl_CalculateRepaintRect (const SwTextFrame &rTextFrame, const SwTextNode &rNode, sal_Int32 const nChgStart, sal_Int32 const nChgEnd) |
Used for spell checking. More... | |
static bool | lcl_HaveCommonAttributes (IStyleAccess &rStyleAccess, const SfxItemSet *pSet1, sal_uInt16 nWhichId, const SfxItemSet &rSet2, std::shared_ptr< SfxItemSet > &pStyleHandle) |
Used for automatic styles. More... | |
static sal_Int32 | clipIndexBounds (std::u16string_view aStr, sal_Int32 nPos) |
|
static |
Definition at line 675 of file txtedt.cxx.
Referenced by SwTextFrame::GetCurWord().
|
static |
Used for spell checking.
Calculates a rectangle for repaint.
Definition at line 246 of file txtedt.cxx.
References SwRectFnSet::GetBottom(), SwTextFrame::GetFollow(), SwRectFnSet::GetLeft(), SwTextFrame::GetOffset(), SwFrame::GetPaintArea(), SwRectFnSet::GetRight(), SwRectFnSet::GetTop(), SwRect::Height(), SwTextFrame::MapModelToView(), SwRectFnSet::SetBottom(), SwRectFnSet::SetLeft(), SwRectFnSet::SetRight(), SwRectFnSet::SetTop(), and SwRect::Union().
Referenced by SwTextFrame::AutoSpell_(), and SwTextFrame::SmartTagScan().
|
static |
Definition at line 102 of file txtedt.cxx.
References CH_TXTATR_INWORD, SwTextNode::GetText(), SwTextNode::GetTextAttrForCharAt(), RES_TXTATR_ANNOTATION(), and SwTextAttr::Which().
Referenced by SwTextFrame::AutoSpell_(), and SwTextNode::Spell().
|
static |
Used for automatic styles.
Used during RstAttr.
Definition at line 319 of file txtedt.cxx.
References IStyleAccess::AUTO_STYLE_CHAR, SfxItemSet::Clone(), SfxItemSet::Count(), IStyleAccess::getAutomaticStyle(), SfxItemIter::GetCurItem(), SfxItemSet::GetItemState(), SfxItemIter::NextItem(), and SfxPoolItem::Which().
Referenced by SwTextNode::RstTextAttr().
|
static |
Definition at line 116 of file txtedt.cxx.
Referenced by lcl_IsURL().
|
static |
Definition at line 124 of file txtedt.cxx.
References SwTextNode::GetText(), SwTextNode::GetTextAttrAt(), lcl_IsDelim(), and RES_TXTATR_INETFMT().
Referenced by SwTextFrame::AutoSpell_(), and SwTextNode::Spell().
|
static |
Definition at line 169 of file txtedt.cxx.
References SwRangeRedline::CalcStartEnd(), SwNode::GetDoc(), SwDoc::getIDocumentRedlineAccess(), SwNode::GetIndex(), SwPosition::GetNode(), IDocumentRedlineAccess::GetRedlinePos(), IDocumentRedlineAccess::GetRedlineTable(), SwRangeRedline::GetType(), SwRedlineTable::size(), and SwPaM::Start().
Referenced by lcl_MaskRedlinesAndHiddenText().
|
static |
Used for spell checking.
Deleted redlines and hidden characters are masked
Definition at line 213 of file txtedt.cxx.
References sw::DocumentSettingManager::get(), SwNode::GetDoc(), SwDoc::GetDocumentSettingManager(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedlineFlags(), HTML_MODE, IDocumentRedlineAccess::IsShowChanges(), lcl_MaskRedlines(), SwScriptInfo::MaskHiddenRanges(), and SW_MOD.
Referenced by SwTextFrame::AutoSpell_(), SwTextNode::Convert(), and SwTextNode::Spell().