LibreOffice Module sw (master) 1
|
Public Member Functions | |
SwAutoFormat (SwEditShell *pEdShell, SvxSwAutoFormatFlags aFlags, SwNode const *pSttNd=nullptr, SwNode const *pEndNd=nullptr) | |
Private Types | |
enum | { NONE = 0 , DELIM = 1 , DIGIT = 2 , CHG = 4 , LOWER_ALPHA = 8 , UPPER_ALPHA = 16 , LOWER_ROMAN = 32 , UPPER_ROMAN = 64 , NO_DELIM = (DIGIT|LOWER_ALPHA|UPPER_ALPHA|LOWER_ROMAN|UPPER_ROMAN) } |
Private Member Functions | |
CharClass & | GetCharClass (LanguageType eLang) const |
void | SetColl (sal_uInt16 nId, bool bHdLineOrText=false) |
void | GoNextPara () |
const SwTextFrame * | GetNextNode (bool isCheckEnd=true) const |
bool | IsOneLine (const SwTextFrame &) const |
bool | IsFastFullLine (const SwTextFrame &) const |
bool | IsNoAlphaLine (const SwTextFrame &) const |
bool | IsEnumericChar (const SwTextFrame &) const |
sal_uInt16 | CalcLevel (const SwTextFrame &, sal_uInt16 *pDigitLvl=nullptr) const |
sal_Int32 | GetBigIndent (TextFrameIndex &rCurrentSpacePos) const |
bool | IsFirstCharCapital (const SwTextFrame &rNd) const |
sal_uInt16 | GetDigitLevel (const SwTextFrame &rFrame, TextFrameIndex &rPos, OUString *pPrefix=nullptr, OUString *pPostfix=nullptr, OUString *pNumTypes=nullptr) const |
SwTextFrame * | GetFrame (const SwTextNode &rTextNd) const |
get the FORMATTED TextFrame More... | |
SwTextFrame * | EnsureFormatted (SwTextFrame const &) const |
void | BuildIndent () |
void | BuildText () |
void | BuildTextIndent () |
void | BuildEnum (sal_uInt16 nLvl, sal_uInt16 nDigitLevel) |
void | BuildNegIndent (SwTwips nSpaces) |
void | BuildHeadLine (sal_uInt16 nLvl) |
void | DeleteSel (SwPaM &rPam) |
void | DeleteSelImpl (SwPaM &rDelPam, SwPaM &rPamToCorrect) |
bool | DeleteJoinCurNextPara (SwTextFrame const *pNextFrame, bool bIgnoreLeadingBlanks=false) |
void | DeleteLeadingTrailingBlanks (bool bStart=true, bool bEnd=true) |
delete in the node start and/or end More... | |
void | DelEmptyLine (bool bTstNextPara=true) |
void | DelMoreLinesBlanks (bool bWithLineBreaks=false) |
when using multiline paragraphs delete the "left" and/or "right" margins More... | |
void | JoinPrevPara () |
join with the previous paragraph More... | |
void | AutoCorrect (TextFrameIndex nSttPos=TextFrameIndex(0)) |
execute AutoCorrect on current TextNode More... | |
bool | CanJoin (const SwTextFrame *pNextFrame) const |
bool | DoUnderline () |
bool | DoTable () |
void | SetRedlineText_ (sal_uInt16 nId) |
bool | SetRedlineText (sal_uInt16 nId) |
void | ClearRedlineText () |
Static Private Member Functions | |
static bool | IsSpace (const sal_Unicode c) |
static bool | HasObjects (const SwTextFrame &) |
static bool | IsEmptyLine (const SwTextFrame &rFrame) |
static bool | IsBlanksInString (const SwTextFrame &) |
static OUString | DelLeadingBlanks (const OUString &rStr) |
static OUString | DelTrailingBlanks (const OUString &rStr) |
static sal_Int32 | GetLeadingBlanks (std::u16string_view aStr) |
static sal_Int32 | GetTrailingBlanks (std::u16string_view aStr) |
static bool | HasBreakAttr (const SwTextFrame &) |
static bool | IsSentenceAtEnd (const SwTextFrame &rTextFrame) |
is a dot at the end ?? More... | |
Private Attributes | |
SvxSwAutoFormatFlags | m_aFlags |
SwPaM | m_aDelPam |
SwNodeIndex | m_aNdIdx |
SwNodeIndex | m_aEndNdIdx |
SwEditShell * | m_pEditShell |
SwDoc * | m_pDoc |
SwTextNode * | m_pCurTextNd |
SwTextFrame * | m_pCurTextFrame |
bool | m_bIsRightToLeft |
SwNodeOffset | m_nEndNdIdx |
std::optional< CharClass > | m_oCharClass |
LanguageType | m_eCharClassLang |
sal_uInt16 | m_nRedlAutoFormatSeqId |
bool | m_bEnd: 1 |
bool | m_bMoreLines: 1 |
Definition at line 88 of file autofmt.cxx.
|
private |
Enumerator | |
---|---|
NONE | |
DELIM | |
DIGIT | |
CHG | |
LOWER_ALPHA | |
UPPER_ALPHA | |
LOWER_ROMAN | |
UPPER_ROMAN | |
NO_DELIM |
Definition at line 106 of file autofmt.cxx.
SwAutoFormat::SwAutoFormat | ( | SwEditShell * | pEdShell, |
SvxSwAutoFormatFlags | aFlags, | ||
SwNode const * | pSttNd = nullptr , |
||
SwNode const * | pEndNd = nullptr |
||
) |
Definition at line 2233 of file autofmt.cxx.
References AutoCorrect(), SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bChgUserColl, SvxSwAutoFormatFlags::bCreateTable, SvxSwAutoFormatFlags::bDelEmptyNode, SvxSwAutoFormatFlags::bReplaceStyles, SvxSwAutoFormatFlags::bSetNumRule, BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), SvxSwAutoFormatFlags::bWithRedlining, CalcLevel(), SwNodes::Count(), DelEmptyLine(), SwCursorShell::DeleteCurrent, DelLeadingBlanks(), DelMoreLinesBlanks(), DelTrailingBlanks(), DoTable(), DoUnderline(), EndProgress(), SwCursorShell::GetCursor(), SwDoc::GetDocShell(), SwTextFrameInfo::GetFirstIndent(), SwDoc::getIDocumentRedlineAccess(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SfxItemSet::GetItemIfSet(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwTextFrameInfo::GetLineStart(), GetNextNode(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwTextNode::GetNumRule(), SwFormat::GetPoolFormatId(), IDocumentRedlineAccess::GetRedlineFlags(), SwContentNode::GetSwAttrSet(), SwTextFrame::GetText(), SwTextNode::GetTextColl(), SvxFirstLineIndentItem::GetTextFirstLineOffset(), SvxTextLeftMarginItem::GetTextLeft(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeForParaProps(), GoNextPara(), sw::GotoNextLayoutTextFrame(), sw::GotoPrevLayoutTextFrame(), HasBreakAttr(), HasObjects(), SwContentNode::HasSwAttrSet(), Ignore, IsBlanksInString(), IsEmptyLine(), IsEnumericChar(), IsFirstCharCapital(), IsNoAlphaLine(), IsOneLine(), IsPoolUserFormat(), m_aDelPam, m_aEndNdIdx, m_aFlags, m_aNdIdx, m_bEnd, m_bMoreLines, m_nEndNdIdx, m_pCurTextFrame, m_pDoc, m_pEditShell, MAXLEVEL, On, SwCursorShell::Pop(), SwCursorShell::Push(), RES_MARGIN_FIRSTLINE(), RES_MARGIN_TEXTLEFT(), RES_POOLCOLL_STANDARD, RES_POOLCOLL_TEXT, RES_POOLCOLL_TEXT_MOVE, SwDoc::SetAutoFormatRedline(), SetColl(), SwTextFrameInfo::SetFrame(), IDocumentRedlineAccess::SetRedlineFlags(), ShowMask, and StartProgress().
|
private |
execute AutoCorrect on current TextNode
Start autocorrection for the current TextNode.
Definition at line 1906 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bAddNonBrkSpace, SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bAutoCorrect, SvxSwAutoFormatFlags::bCapitalStartSentence, SvxSwAutoFormatFlags::bCapitalStartWord, SvxSwAutoFormatFlags::bChgOrdinalNumber, SvxSwAutoFormatFlags::bChgToEnEmDash, SvxSwAutoFormatFlags::bChgWeightUnderl, SvxSwAutoFormatFlags::bSetDOIAttr, SvxSwAutoFormatFlags::bSetINetAttr, SvxSwAutoFormatFlags::bTransliterateRTL, SvxSwAutoFormatFlags::bWithRedlining, CHAR_HARDBLANK, SwAutoCorrDoc::ChgAutoCorrWord(), ClearRedlineText(), SwPaM::DeleteMark(), SvxAutoCorrect::FnAddNonBrkSpace(), SvxAutoCorrect::FnCapitalStartSentence(), SvxAutoCorrect::FnCapitalStartWord(), SvxAutoCorrect::FnChgOrdinalNumber(), SvxAutoCorrect::FnChgToEnEmDash(), SvxAutoCorrect::FnChgWeightUnderl(), SvxAutoCorrect::FnSetDOIAttr(), SvxAutoCorrect::FnSetINetAttr(), SvxAutoCorrCfg::Get(), GetAppCharClass(), SvxAutoCorrCfg::GetAutoCorrect(), SwPosition::GetContentIndex(), SvxAutoCorrect::GetFlags(), SwTextFrameInfo::GetFrame(), GetFrame(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SwTextFrame::GetLangOfChar(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPaM::GetPoint(), SvxAutoCorrect::GetQuote(), IDocumentRedlineAccess::GetRedlineFlags(), SwTextFrame::GetText(), SwNode::GetTextNode(), IDocumentContentOperations::InsertString(), CharClass::isBase(), SwTextFrameInfo::IsBullet(), IsSpace(), LANGUAGE_HUNGARIAN, LANGUAGE_SYSTEM, m_aDelPam, m_aFlags, m_aNdIdx, m_bIsRightToLeft, m_pCurTextFrame, m_pCurTextNd, m_pDoc, m_pEditShell, SwTextFrame::MapModelToViewPos(), SwTextFrame::MapViewToModelPos(), nPos, IDocumentContentOperations::ReplaceRange(), SwPosition::SetContent(), SwTextFrameInfo::SetFrame(), SwPaM::SetMark(), SetRedlineText(), ShowDelete, STR_AUTOFMTREDL_BOLD, STR_AUTOFMTREDL_CPTL_STT_SENT, STR_AUTOFMTREDL_CPTL_STT_WORD, STR_AUTOFMTREDL_DASH, STR_AUTOFMTREDL_DETECT_DOI, STR_AUTOFMTREDL_DETECT_URL, STR_AUTOFMTREDL_NON_BREAK_SPACE, STR_AUTOFMTREDL_ORDINAL, STR_AUTOFMTREDL_TRANSLITERATE_RTL, STR_AUTOFMTREDL_TYPO, STR_AUTOFMTREDL_UNDER, STR_AUTOFMTREDL_USE_REPLACE, and SwAutoCorrDoc::TransliterateRTLWord().
Referenced by BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), and SwAutoFormat().
|
private |
Definition at line 1462 of file autofmt.cxx.
References SvxSwAutoFormatFlags::aBulletFont, SwPosition::Assign(), aTextNodeSetRange, AutoCorrect(), SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bChgEnumNum, SvxSwAutoFormatFlags::bSetNumRule, CalcLevel(), CanJoin(), SvxSwAutoFormatFlags::cBullet, SfxItemSet::ClearItem(), cnNumBullColls, cnPosEmDash, cnPosEnDash, cStarSymbolEmDash, cStarSymbolEnDash, DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), SwPaM::DeleteMark(), DeleteSel(), DelMoreLinesBlanks(), SwNumRule::Get(), SwDoc::GetAttrPool(), SwNumFormat::GetCharFormat(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SwTextFrameInfo::GetCharPos(), vcl::Font::GetCharSet(), numfunc::GetDefaultPositionAndSpaceMode(), numfunc::GetDefBulletFont(), GetDigitLevel(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SwAttrSet::GetFirstLineIndent(), SwFrameAreaDefinition::getFramePrintArea(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentStylePoolAccess(), SwViewShell::GetLayout(), SvxTextLeftMarginItem::GetLeft(), SwPaM::GetMark(), SwPaM::GetMarkNode(), GetNextNode(), SwPosition::GetNode(), SwNumRule::GetNumFormat(), SwNumRule::GetNumIndent(), SwTextNode::GetNumRule(), vcl::Font::GetPitch(), SwPaM::GetPoint(), vcl::Font::GetStyleName(), SwContentNode::GetSwAttrSet(), SwTextFrame::GetText(), SwAttrSet::GetTextLeftMargin(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeForParaProps(), o3tl::getToken(), SwDoc::GetUniqueNumRuleName(), SvxTabStopItem::Insert(), IDocumentContentOperations::InsertString(), IsBlanksInString(), numfunc::IsDefBulletFontUserDefined(), IsFastFullLine(), SwCursorShell::IsInRightToLeftText(), IsSentenceAtEnd(), IsSpace(), lBulletFirstLineOffset, lBulletIndent, lNumberIndent, m_aDelPam, m_aFlags, m_bMoreLines, m_pCurTextFrame, m_pDoc, m_pEditShell, SwTextFrame::MapViewToModelPos(), MAXLEVEL, min(), n, nPos, pBulletChar, SfxItemSet::Put(), RES_CHRATR_FONT(), RES_PARATR_TABSTOP(), RES_POOLCHR_BULLET_LEVEL, RES_POOLCHR_NUM_LEVEL, RES_POOLCOLL_BULLET_LEVEL1, RES_POOLCOLL_NUM_LEVEL1, SwNumRule::Set(), SvxNumberFormat::SetAbsLSpace(), SetAllScriptItem(), SwTextNode::SetAttrListLevel(), SvxNumberFormat::SetBulletChar(), SvxNumberFormat::SetBulletFont(), SwNumFormat::SetCharFormat(), SetColl(), SvxNumberFormat::SetFirstLineOffset(), SwDoc::SetFormatItemByAutoFormat(), SvxNumberFormat::SetIncludeUpperLevels(), SvxNumberFormat::SetListFormat(), SwPaM::SetMark(), SvxNumberFormat::SetNumAdjust(), SvxNumberType::SetNumberingType(), SwDoc::SetNumRule(), SetRedlineText(), SvxNumberFormat::SetStart(), sPrefix, STR_AUTOFMTREDL_DEL_MORELINES, STR_AUTOFMTREDL_SET_NUMBER_BULLET, StrChr(), SVX_NUM_CHAR_SPECIAL, o3tl::toInt32(), u, and SwRect::Width().
Referenced by SwAutoFormat().
|
private |
Definition at line 1870 of file autofmt.cxx.
References SwPosition::Assign(), AutoCorrect(), SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bWithRedlining, DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), SwPaM::DeleteMark(), SwDoc::GetDocumentRedlineManager(), SwFrame::GetNext(), GetNextNode(), SwTextFormatColl::GetNextTextFormatColl(), SwPaM::GetPoint(), SwViewShell::GetShellRes(), SwTextNode::GetTextColl(), SwTextFrame::GetTextNodeForParaProps(), JoinPrevPara(), m_aDelPam, m_aFlags, m_pCurTextFrame, m_pDoc, RES_POOLCOLL_HEADLINE1, sw::DocumentRedlineManager::SetAutoFormatRedlineComment(), SetColl(), SwDoc::SetTextFormatColl(), and STR_AUTOFMTREDL_SET_TMPL_HEADLINE.
Referenced by SwAutoFormat().
|
private |
Definition at line 1344 of file autofmt.cxx.
References AutoCorrect(), CalcLevel(), CanJoin(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DelMoreLinesBlanks(), SwDoc::getIDocumentContentOperations(), GetNextNode(), IDocumentContentOperations::InsertString(), IsBlanksInString(), IsFastFullLine(), IsSentenceAtEnd(), m_aDelPam, m_bEnd, m_bMoreLines, m_pCurTextFrame, m_pDoc, RES_POOLCOLL_TEXT_IDENT, SetColl(), SetRedlineText(), STR_AUTOFMTREDL_DEL_MORELINES, and STR_AUTOFMTREDL_SET_TMPL_INDENT.
Referenced by SwAutoFormat().
|
private |
Definition at line 1786 of file autofmt.cxx.
References abs(), AutoCorrect(), CanJoin(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), SwPaM::DeleteMark(), DeleteSel(), DelMoreLinesBlanks(), EnsureFormatted(), GetBigIndent(), SwDoc::getIDocumentContentOperations(), SwPaM::GetMark(), GetNextNode(), SwPaM::GetPoint(), SwTextFrame::GetText(), IDocumentContentOperations::InsertString(), IsBlanksInString(), IsFastFullLine(), IsSentenceAtEnd(), IsSpace(), m_aDelPam, m_bMoreLines, m_pCurTextFrame, m_pDoc, SwTextFrame::MapViewToModelPos(), RES_POOLCOLL_CONFRONTATION, RES_POOLCOLL_TEXT_NEGIDENT, SetColl(), SwTextFrameInfo::SetFrame(), SwPaM::SetMark(), SetRedlineText(), STR_AUTOFMTREDL_DEL_MORELINES, and STR_AUTOFMTREDL_SET_TMPL_NEG_INDENT.
Referenced by SwAutoFormat().
|
private |
Definition at line 1425 of file autofmt.cxx.
References AutoCorrect(), CalcLevel(), CanJoin(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DelMoreLinesBlanks(), SwDoc::getIDocumentContentOperations(), GetNextNode(), IDocumentContentOperations::InsertString(), IsBlanksInString(), IsFastFullLine(), IsSentenceAtEnd(), m_aDelPam, m_bMoreLines, m_pCurTextFrame, m_pDoc, SetRedlineText(), STR_AUTOFMTREDL_DEL_MORELINES, and STR_AUTOFMTREDL_SET_TMPL_TEXT.
Referenced by SwAutoFormat().
|
private |
Definition at line 1383 of file autofmt.cxx.
References AutoCorrect(), SvxSwAutoFormatFlags::bAFormatByInput, CalcLevel(), CanJoin(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DelMoreLinesBlanks(), SwDoc::getIDocumentContentOperations(), GetNextNode(), SwTextFrame::GetTextNodeForParaProps(), IDocumentContentOperations::InsertString(), IsBlanksInString(), IsFastFullLine(), IsSentenceAtEnd(), m_aDelPam, m_aFlags, m_bMoreLines, m_pCurTextFrame, m_pDoc, RES_POOLCOLL_TEXT_MOVE, SetColl(), SetRedlineText(), STR_AUTOFMTREDL_DEL_MORELINES, and STR_AUTOFMTREDL_SET_TMPL_TEXT_INDENT.
Referenced by SwAutoFormat().
|
private |
Definition at line 433 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bAFormatByInput, SwNode::GetAutoFormatLvl(), GetDigitLevel(), SwFormat::GetPoolFormatId(), SwTextFrame::GetText(), SwTextNode::GetTextColl(), SwTextFrame::GetTextNodeForParaProps(), m_aFlags, n, and RES_POOLCOLL_TEXT_MOVE.
Referenced by BuildEnum(), BuildIndent(), BuildText(), BuildTextIndent(), and SwAutoFormat().
|
inlineprivate |
Definition at line 190 of file autofmt.cxx.
References COMPLETE_STRING, SwTextFrame::GetMergedPara(), SwTextNode::GetText(), SwTextFrame::GetTextNodeFirst(), HasBreakAttr(), IsEmptyLine(), IsEnumericChar(), IsNoAlphaLine(), m_bEnd, m_pCurTextFrame, m_pCurTextNd, and sw::MergedPara::pLastNode.
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), and GetBigIndent().
|
inlineprivate |
Definition at line 216 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bWithRedlining, SwDoc::GetDocumentRedlineManager(), m_aFlags, m_pDoc, and sw::DocumentRedlineManager::SetAutoFormatRedlineComment().
Referenced by AutoCorrect(), and DelEmptyLine().
|
private |
Definition at line 1239 of file autofmt.cxx.
References SwPosition::Assign(), ClearRedlineText(), SwPaM::DeleteMark(), DeleteSel(), GetFrame(), SwDoc::getIDocumentContentOperations(), SwNode::GetIndex(), SwPaM::GetMark(), SwPaM::GetMarkNode(), SwTextFrame::GetMergedPara(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTextNode::GetText(), SwTextFrame::GetText(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeFirst(), SwPaM::HasMark(), SwNode::IsTextNode(), m_aDelPam, m_aNdIdx, m_pCurTextFrame, m_pCurTextNd, m_pDoc, SwTextFrame::MapViewToModelPos(), sw::MergedPara::pLastNode, IDocumentContentOperations::ReplaceRange(), SwPosition::SetContent(), SwPaM::SetMark(), SetRedlineText(), and STR_AUTOFMTREDL_DEL_EMPTY_PARA.
Referenced by DoTable(), DoUnderline(), and SwAutoFormat().
|
private |
Definition at line 1204 of file autofmt.cxx.
References SwPaM::DeleteMark(), DeleteSel(), GetLeadingBlanks(), SwPaM::GetMark(), SwPaM::GetPoint(), SwTextFrame::GetText(), GetTrailingBlanks(), HasSelBlanks(), m_aDelPam, m_pCurTextFrame, SwTextFrame::MapViewToModelPos(), and SwPaM::SetMark().
Referenced by BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), and BuildTextIndent().
|
private |
delete in the node start and/or end
Delete beginning and/or end in a node.
Definition at line 1079 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bAFormatByInpDelSpacesAtSttEnd, SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bAFormatDelSpacesAtSttEnd, SwPaM::DeleteMark(), DeleteSel(), GetLeadingBlanks(), SwPaM::GetPoint(), SwTextFrame::GetText(), GetTrailingBlanks(), m_aDelPam, m_aFlags, m_pCurTextFrame, SwTextFrame::MapViewToModelPos(), nPos, and SwPaM::SetMark().
Referenced by BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), and BuildTextIndent().
|
private |
Definition at line 1158 of file autofmt.cxx.
References DeleteSelImpl(), sw::GetRanges(), and m_pDoc.
Referenced by BuildEnum(), BuildNegIndent(), DelEmptyLine(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DelMoreLinesBlanks(), and JoinPrevPara().
Definition at line 1174 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bWithRedlining, SwEditShell::DeleteSel(), SwCursorShell::GetCursor_(), GetFrame(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPaM::GetPoint(), SwPaM::GetPrev(), sw::Ring< value_type >::GetRingContainer(), SwNode::GetTextNode(), m_aFlags, m_aNdIdx, m_pCurTextFrame, m_pCurTextNd, m_pEditShell, sw::RingContainer< value_type >::merge(), and p.
Referenced by DeleteSel().
|
staticprivate |
Definition at line 687 of file autofmt.cxx.
Referenced by IsBlanksInString(), and SwAutoFormat().
|
private |
when using multiline paragraphs delete the "left" and/or "right" margins
Definition at line 1290 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bAFormatByInpDelSpacesBetweenLines, SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bAFormatDelSpacesBetweenLines, SwPaM::DeleteMark(), DeleteSel(), SwDoc::getIDocumentContentOperations(), SwPaM::GetPoint(), SwTextFrameInfo::GetSpaces(), HasSelBlanks(), IDocumentContentOperations::InsertString(), m_aDelPam, m_aFlags, m_pCurTextFrame, m_pDoc, SwTextFrame::MapViewToModelPos(), and SwPaM::SetMark().
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), and SwAutoFormat().
|
staticprivate |
Definition at line 697 of file autofmt.cxx.
Referenced by SwAutoFormat().
|
private |
Definition at line 607 of file autofmt.cxx.
References All, SwPosition::Assign(), SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bCreateTable, DelEmptyLine(), SwNode::FindTableNode(), fnMoveForward, SvxAdjustItem::GetAdjust(), SwAttrSet::GetAdjust(), SwTextFrameInfo::GetCharPos(), SwFrameAreaDefinition::getFrameArea(), GetLeadingBlanks(), SwPosition::GetNode(), SwPaM::GetPoint(), SwContentNode::GetSwAttrSet(), SwTextFrame::GetText(), SwTextFrame::GetTextNodeForParaProps(), GetTrailingBlanks(), SwDoc::InsertTable(), m_aDelPam, m_aFlags, m_pCurTextFrame, m_pCurTextNd, m_pDoc, SwPaM::Move(), n, SwPostItHelper::NONE, and SwRect::Width().
Referenced by SwAutoFormat().
|
private |
Definition at line 527 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bSetBorder, DEFAULT, DelEmptyLine(), SwPaM::DeleteMark(), SwDoc::GetAttrPool(), SwDoc::getIDocumentContentOperations(), SwViewShell::GetLayout(), SwTextFrame::GetText(), SvxBorderLineWidth::Hairline, IDocumentContentOperations::InsertItemSet(), m_aDelPam, m_aFlags, m_pCurTextFrame, m_pDoc, m_pEditShell, SvxBorderLineWidth::Medium, RES_BOX(), RES_PARATR_CONNECT_BORDER(), editeng::SvxBorderLine::SetBorderLineStyle(), SvxBoxItem::SetDistance(), SvxBoxItem::SetLine(), SwPaM::SetMark(), editeng::SvxBorderLine::SetWidth(), SvxBorderLineWidth::Thick, and SvxBorderLineWidth::Thin.
Referenced by SwAutoFormat().
|
private |
Definition at line 241 of file autofmt.cxx.
References a, SvxSwAutoFormatFlags::bAFormatByInput, SwFrame::Calc(), SwRootFrame::GetCurrShell(), SwTextFrame::GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwViewShell::GetOut(), SwTextFrame::GetPaintSwRect(), SwFrame::getRootFrame(), SwRect::IsEmpty(), SwFrameAreaDefinition::isFrameAreaDefinitionValid(), m_aFlags, and SwFrame::SetCompletePaint().
Referenced by BuildNegIndent(), GetBigIndent(), GetFrame(), IsEnumericChar(), IsFastFullLine(), and IsOneLine().
|
private |
Definition at line 484 of file autofmt.cxx.
References CanJoin(), EnsureFormatted(), SwTextFrameInfo::GetBigIndent(), GetNextNode(), IsOneLine(), m_bMoreLines, and m_pCurTextFrame.
Referenced by BuildNegIndent().
|
inlineprivate |
Definition at line 122 of file autofmt.cxx.
References m_eCharClassLang, and m_oCharClass.
Referenced by GetDigitLevel(), IsFirstCharCapital(), and IsNoAlphaLine().
|
private |
Definition at line 750 of file autofmt.cxx.
References CHG, DELIM, DIGIT, CharClass::getCharacterType(), GetCharClass(), SwTextFrame::GetText(), CharClass::isAlpha(), IsSpace(), LOWER_ALPHA, LOWER_ROMAN, CharClass::lowercase(), SwTextFrame::MapViewToModel(), MAXLEVEL, NO_DELIM, NONE, nPos, SVX_NUM_ARABIC, SVX_NUM_CHARS_LOWER_LETTER, SVX_NUM_CHARS_UPPER_LETTER, SVX_NUM_ROMAN_LOWER, SVX_NUM_ROMAN_UPPER, UPPER_ALPHA, and UPPER_ROMAN.
Referenced by BuildEnum(), CalcLevel(), and IsEnumericChar().
|
private |
get the FORMATTED TextFrame
Definition at line 233 of file autofmt.cxx.
References EnsureFormatted(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), and m_pEditShell.
Referenced by AutoCorrect(), DelEmptyLine(), DeleteSelImpl(), and GoNextPara().
|
staticprivate |
Definition at line 710 of file autofmt.cxx.
References aStr, IsSpace(), and n.
Referenced by DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DoTable(), IsEmptyLine(), and IsEnumericChar().
|
private |
Definition at line 360 of file autofmt.cxx.
References SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwNodeIndex::GetNode(), SwNode::GetTextNode(), sw::GotoNextLayoutTextFrame(), SwNode::IsTextNode(), m_aEndNdIdx, m_aNdIdx, and m_pEditShell.
Referenced by BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), GetBigIndent(), and SwAutoFormat().
|
staticprivate |
Definition at line 720 of file autofmt.cxx.
References aStr, IsSpace(), and n.
Referenced by DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), and DoTable().
|
private |
Definition at line 297 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bAFormatByInput, SwNode::EndOfSectionNode(), SwDoc::GetDocShell(), GetFrame(), SwNodeIndex::GetIndex(), SwViewShell::GetLayout(), SwNodeIndex::GetNode(), SwSectionNode::GetSection(), SwNode::GetSectionNode(), sw::GotoNextLayoutTextFrame(), SwNode::IsEndNode(), SwSection::IsHiddenFlag(), SwSection::IsProtectFlag(), SwFrame::IsRightToLeft(), SwNode::IsSectionNode(), SwNode::IsTableNode(), SwNode::IsTextNode(), m_aEndNdIdx, m_aFlags, m_aNdIdx, m_bEnd, m_bIsRightToLeft, m_nEndNdIdx, m_pCurTextFrame, m_pCurTextNd, m_pDoc, m_pEditShell, and SetProgressState().
Referenced by SwAutoFormat().
|
staticprivate |
Definition at line 1048 of file autofmt.cxx.
References SvxFormatBreakItem::GetBreak(), SfxItemSet::GetItemIfSet(), SwFormatPageDesc::GetPageDesc(), SwContentNode::GetpSwAttrSet(), SwTextFrame::GetTextNodeFirst(), SwPageDesc::GetUseOn(), NONE, RES_BREAK(), and RES_PAGEDESC().
Referenced by CanJoin(), and SwAutoFormat().
|
staticprivate |
Definition at line 345 of file autofmt.cxx.
References sw::FrameContainsNode(), SwNode::GetAnchoredFlys(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), and SwTextFrame::GetTextNodeFirst().
Referenced by SwAutoFormat().
|
staticprivate |
Definition at line 411 of file autofmt.cxx.
References DelLeadingBlanks(), SwTextFrame::GetText(), and IsSpace().
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), and SwAutoFormat().
|
inlinestaticprivate |
Definition at line 141 of file autofmt.cxx.
References GetLeadingBlanks(), and SwTextFrame::GetText().
Referenced by CanJoin(), and SwAutoFormat().
|
private |
Definition at line 388 of file autofmt.cxx.
References EnsureFormatted(), GetDigitLevel(), GetLeadingBlanks(), SwTextFrame::GetText(), SwTextFrameInfo::IsBullet(), IsSpace(), pBulletChar, and StrChr().
Referenced by CanJoin(), and SwAutoFormat().
|
private |
Definition at line 377 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bRightMargin, EnsureFormatted(), SwTextFrameInfo::IsFilled(), m_aFlags, and SvxSwAutoFormatFlags::nRightMargin.
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), and BuildTextIndent().
|
private |
Definition at line 731 of file autofmt.cxx.
References CharClass::getCharacterType(), GetCharClass(), SwLangHelper::GetLanguage(), SwTextFrame::GetText(), CharClass::isLetterType(), IsSpace(), SwTextFrame::MapViewToModel(), and n.
Referenced by SwAutoFormat().
|
private |
Definition at line 501 of file autofmt.cxx.
References GetCharClass(), SwTextFrame::GetText(), CharClass::isLetterNumeric(), IsSpace(), SwTextFrame::MapViewToModel(), and n.
Referenced by CanJoin(), and SwAutoFormat().
|
private |
Definition at line 371 of file autofmt.cxx.
References EnsureFormatted(), and SwTextFrameInfo::IsOneLine().
Referenced by GetBigIndent(), and SwAutoFormat().
|
staticprivate |
is a dot at the end ??
Is there a dot at the end?
Definition at line 1066 of file autofmt.cxx.
References SwTextFrame::GetText(), IsSpace(), and n.
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), and BuildTextIndent().
|
inlinestaticprivate |
Definition at line 132 of file autofmt.cxx.
Referenced by AutoCorrect(), BuildEnum(), BuildNegIndent(), DelLeadingBlanks(), DelTrailingBlanks(), GetDigitLevel(), GetLeadingBlanks(), GetTrailingBlanks(), IsBlanksInString(), IsEnumericChar(), IsFirstCharCapital(), IsNoAlphaLine(), and IsSentenceAtEnd().
|
private |
join with the previous paragraph
Definition at line 1327 of file autofmt.cxx.
References SwPosition::Adjust(), SwPosition::Assign(), SwPaM::DeleteMark(), DeleteSel(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTextNode::GetText(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeFirst(), m_aDelPam, m_pCurTextFrame, SwPosition::SetContent(), and SwPaM::SetMark().
Referenced by BuildHeadLine().
|
private |
Definition at line 999 of file autofmt.cxx.
References SwPosition::Assign(), SwPaM::DeleteMark(), SwDoc::GetAttrPool(), SwPosition::GetNode(), SwPaM::GetPoint(), SwContentNode::GetpSwAttrSet(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeForParaProps(), SwContentNode::HasSwAttrSet(), m_aDelPam, m_pCurTextFrame, m_pDoc, nId, RES_BACKGROUND(), RES_CHRATR_LANGUAGE(), RES_PARATR_ADJUST(), RES_PARATR_DROP(), RES_PARATR_TABSTOP(), RES_SHADOW(), and SwDoc::SetTextFormatCollByAutoFormat().
Referenced by BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildTextIndent(), and SwAutoFormat().
|
inlineprivate |
Definition at line 211 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bWithRedlining, m_aFlags, nId, and SetRedlineText_().
Referenced by AutoCorrect(), BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), and DelEmptyLine().
|
private |
Definition at line 261 of file autofmt.cxx.
References ShellResource::GetAutoFormatNameLst(), SwDoc::GetDocumentRedlineManager(), SwViewShell::GetShellRes(), m_nRedlAutoFormatSeqId, m_pDoc, sw::DocumentRedlineManager::SetAutoFormatRedlineComment(), STR_AUTOFMTREDL_BOLD, STR_AUTOFMTREDL_CPTL_STT_SENT, STR_AUTOFMTREDL_CPTL_STT_WORD, STR_AUTOFMTREDL_DASH, STR_AUTOFMTREDL_DEL_MORELINES, STR_AUTOFMTREDL_END, STR_AUTOFMTREDL_FRACTION, STR_AUTOFMTREDL_NON_BREAK_SPACE, STR_AUTOFMTREDL_ORDINAL, STR_AUTOFMTREDL_SET_NUMBER_BULLET, STR_AUTOFMTREDL_TRANSLITERATE_RTL, STR_AUTOFMTREDL_TYPO, STR_AUTOFMTREDL_UNDER, and STR_AUTOFMTREDL_USE_REPLACE.
Referenced by SetRedlineText().
|
private |
Definition at line 91 of file autofmt.cxx.
Referenced by AutoCorrect(), BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), DelEmptyLine(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DelMoreLinesBlanks(), DoTable(), DoUnderline(), JoinPrevPara(), SetColl(), and SwAutoFormat().
|
private |
Definition at line 93 of file autofmt.cxx.
Referenced by GetNextNode(), GoNextPara(), and SwAutoFormat().
|
private |
Definition at line 90 of file autofmt.cxx.
Referenced by AutoCorrect(), BuildEnum(), BuildHeadLine(), BuildTextIndent(), CalcLevel(), ClearRedlineText(), DeleteLeadingTrailingBlanks(), DeleteSelImpl(), DelMoreLinesBlanks(), DoTable(), DoUnderline(), EnsureFormatted(), GoNextPara(), IsFastFullLine(), SetRedlineText(), and SwAutoFormat().
|
private |
Definition at line 92 of file autofmt.cxx.
Referenced by AutoCorrect(), DelEmptyLine(), DeleteSelImpl(), GetNextNode(), GoNextPara(), and SwAutoFormat().
|
private |
Definition at line 119 of file autofmt.cxx.
Referenced by BuildIndent(), CanJoin(), GoNextPara(), and SwAutoFormat().
|
private |
Definition at line 99 of file autofmt.cxx.
Referenced by AutoCorrect(), and GoNextPara().
|
private |
Definition at line 120 of file autofmt.cxx.
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), GetBigIndent(), and SwAutoFormat().
|
mutableprivate |
Definition at line 102 of file autofmt.cxx.
Referenced by GetCharClass().
|
private |
Definition at line 100 of file autofmt.cxx.
Referenced by GoNextPara(), and SwAutoFormat().
|
private |
Definition at line 104 of file autofmt.cxx.
Referenced by SetRedlineText_().
|
mutableprivate |
Definition at line 101 of file autofmt.cxx.
Referenced by GetCharClass().
|
private |
Definition at line 98 of file autofmt.cxx.
Referenced by AutoCorrect(), BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), CanJoin(), DelEmptyLine(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DeleteSelImpl(), DelMoreLinesBlanks(), DoTable(), DoUnderline(), GetBigIndent(), GoNextPara(), JoinPrevPara(), SetColl(), and SwAutoFormat().
|
private |
Definition at line 97 of file autofmt.cxx.
Referenced by AutoCorrect(), CanJoin(), DelEmptyLine(), DeleteSelImpl(), DoTable(), and GoNextPara().
|
private |
Definition at line 96 of file autofmt.cxx.
Referenced by AutoCorrect(), BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), ClearRedlineText(), DelEmptyLine(), DeleteSel(), DelMoreLinesBlanks(), DoTable(), DoUnderline(), GoNextPara(), SetColl(), SetRedlineText_(), and SwAutoFormat().
|
private |
Definition at line 95 of file autofmt.cxx.
Referenced by AutoCorrect(), BuildEnum(), DeleteSelImpl(), DoUnderline(), GetFrame(), GetNextNode(), GoNextPara(), and SwAutoFormat().