LibreOffice Module sw (master)
1
|
Public Member Functions | |
SwAutoFormat (SwEditShell *pEdShell, SvxSwAutoFormatFlags const &rFlags, SwNodeIndex const *pSttNd=nullptr, SwNodeIndex 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 (const OUString &rStr) |
static sal_Int32 | GetTrailingBlanks (const OUString &rStr) |
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 |
sal_uLong | m_nEndNdIdx |
std::unique_ptr< CharClass > | m_pCharClass |
LanguageType | m_eCharClassLang |
sal_uInt16 | m_nRedlAutoFormatSeqId |
bool | m_bEnd: 1 |
bool | m_bMoreLines: 1 |
Definition at line 86 of file autofmt.cxx.
|
private |
Enumerator | |
---|---|
NONE | |
DELIM | |
DIGIT | |
CHG | |
LOWER_ALPHA | |
UPPER_ALPHA | |
LOWER_ROMAN | |
UPPER_ROMAN | |
NO_DELIM |
Definition at line 103 of file autofmt.cxx.
SwAutoFormat::SwAutoFormat | ( | SwEditShell * | pEdShell, |
SvxSwAutoFormatFlags const & | rFlags, | ||
SwNodeIndex const * | pSttNd = nullptr , |
||
SwNodeIndex const * | pEndNd = nullptr |
||
) |
Definition at line 2241 of file autofmt.cxx.
References 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(), IDocumentUndoRedo::DoesUndo(), DoTable(), DoUnderline(), IDocumentUndoRedo::DoUndo(), EndProgress(), SwCursorShell::GetCursor(), SwDoc::GetDocShell(), SwTextFrameInfo::GetFirstIndent(), SwDoc::getIDocumentRedlineAccess(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwTextFrameInfo::GetLineStart(), GetNextNode(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwTextNode::GetNumRule(), SwFormat::GetPoolFormatId(), IDocumentRedlineAccess::GetRedlineFlags(), SwContentNode::GetSwAttrSet(), SwTextFrame::GetText(), SwTextNode::GetTextColl(), SvxLRSpaceItem::GetTextFirstLineOffset(), SvxLRSpaceItem::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_bEnd, m_bMoreLines, m_nEndNdIdx, MAXLEVEL, On, SwCursorShell::Pop(), SwCursorShell::Push(), RES_LR_SPACE(), RES_POOLCOLL_STANDARD, RES_POOLCOLL_TEXT, RES_POOLCOLL_TEXT_MOVE, SwDoc::SetAutoFormatRedline(), SetColl(), SwTextFrameInfo::SetFrame(), IDocumentRedlineAccess::SetRedlineFlags(), ShowMask, StartProgress(), and USHRT_MAX.
|
private |
execute AutoCorrect on current TextNode
Start autocorrection for the current TextNode.
Definition at line 1919 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bAddNonBrkSpace, SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bAutoCorrect, SvxSwAutoFormatFlags::bCapitalStartSentence, SvxSwAutoFormatFlags::bCapitalStartWord, SvxSwAutoFormatFlags::bChgOrdinalNumber, SvxSwAutoFormatFlags::bChgToEnEmDash, SvxSwAutoFormatFlags::bChgWeightUnderl, 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::FnSetINetAttr(), SvxAutoCorrCfg::Get(), GetAppCharClass(), SvxAutoCorrCfg::GetAutoCorrect(), SvxAutoCorrect::GetFlags(), SwTextFrameInfo::GetFrame(), GetFrame(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SwIndex::GetIndex(), SwTextFrame::GetLangOfChar(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SvxAutoCorrect::GetQuote(), IDocumentRedlineAccess::GetRedlineFlags(), SwTextFrame::GetText(), SwNode::GetTextNode(), IDocumentContentOperations::InsertString(), SwTextFrameInfo::IsBullet(), CharClass::isLetterNumeric(), IsSpace(), LANGUAGE_HUNGARIAN, LANGUAGE_SYSTEM, SwTextFrame::MapModelToViewPos(), SwTextFrame::MapViewToModelPos(), SwPosition::nContent, SwPosition::nNode, IDocumentContentOperations::ReplaceRange(), 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_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(), and BuildTextIndent().
|
private |
Definition at line 1472 of file autofmt.cxx.
References SvxSwAutoFormatFlags::aBulletFont, assert(), aTextNodeSetRange, AutoCorrect(), SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bChgEnumNum, SvxSwAutoFormatFlags::bSetNumRule, CalcLevel(), CanJoin(), SvxSwAutoFormatFlags::cBullet, cnNumBullColls, cnPosEmDash, cnPosEnDash, cStarSymbolEmDash, cStarSymbolEnDash, DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), SwPaM::DeleteMark(), DeleteSel(), DelMoreLinesBlanks(), SwDoc::GetAttrPool(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SwTextFrameInfo::GetCharPos(), vcl::Font::GetCharSet(), numfunc::GetDefaultPositionAndSpaceMode(), numfunc::GetDefBulletFont(), GetDigitLevel(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SwFrameAreaDefinition::getFramePrintArea(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentStylePoolAccess(), SwViewShell::GetLayout(), SvxLRSpaceItem::GetLeft(), SwAttrSet::GetLRSpace(), SwPaM::GetMark(), GetNextNode(), SwNodeIndex::GetNode(), SwPaM::GetNode(), SwNumRule::GetNumIndent(), SwTextNode::GetNumRule(), vcl::Font::GetPitch(), SwPaM::GetPoint(), vcl::Font::GetStyleName(), SwContentNode::GetSwAttrSet(), SwTextFrame::GetText(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeForParaProps(), SwDoc::GetUniqueNumRuleName(), SvxTabStopItem::Insert(), IDocumentContentOperations::InsertString(), IsBlanksInString(), numfunc::IsDefBulletFontUserDefined(), IsFastFullLine(), SwCursorShell::IsInRightToLeftText(), IsSentenceAtEnd(), IsSpace(), lBulletFirstLineOffset, lBulletIndent, lNumberIndent, m_bMoreLines, SwTextFrame::MapViewToModelPos(), MAXLEVEL, n, SwPosition::nNode, nPos, pBulletChar, RES_CHRATR_FONT(), RES_PARATR_TABSTOP(), RES_POOLCHR_BULLET_LEVEL, RES_POOLCHR_NUM_LEVEL, RES_POOLCOLL_BULLET_LEVEL1, RES_POOLCOLL_NUM_LEVEL1, SetAllScriptItem(), SwTextNode::SetAttrListLevel(), SvxNumberFormat::SetBulletFont(), SetColl(), SwDoc::SetFormatItemByAutoFormat(), SvxNumberFormat::SetIncludeUpperLevels(), SwPaM::SetMark(), SwDoc::SetNumRule(), SvxNumberFormat::SetPrefix(), SetRedlineText(), STR_AUTOFMTREDL_DEL_MORELINES, STR_AUTOFMTREDL_SET_NUMBER_BULLET, StrChr(), SVX_NUM_CHAR_SPECIAL, u, USHRT_MAX, and SwRect::Width().
Referenced by SwAutoFormat().
|
private |
Definition at line 1882 of file autofmt.cxx.
References SwIndex::Assign(), AutoCorrect(), SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bWithRedlining, DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), SwPaM::DeleteMark(), SwPaM::GetContentNode(), SwDoc::GetDocumentRedlineManager(), SwFrame::GetNext(), GetNextNode(), SwTextFormatColl::GetNextTextFormatColl(), SwPaM::GetPoint(), SwViewShell::GetShellRes(), SwTextNode::GetTextColl(), SwTextFrame::GetTextNodeForParaProps(), JoinPrevPara(), SwPosition::nContent, SwPosition::nNode, RES_POOLCOLL_HEADLINE1, sw::DocumentRedlineManager::SetAutoFormatRedlineComment(), SetColl(), SwDoc::SetTextFormatColl(), STR_AUTOFMTREDL_SET_TMPL_HEADLINE, and void().
Referenced by SwAutoFormat().
|
private |
Definition at line 1353 of file autofmt.cxx.
References AutoCorrect(), CalcLevel(), CanJoin(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DelMoreLinesBlanks(), SwDoc::getIDocumentContentOperations(), GetNextNode(), IDocumentContentOperations::InsertString(), IsBlanksInString(), IsFastFullLine(), IsSentenceAtEnd(), m_bEnd, m_bMoreLines, RES_POOLCOLL_TEXT_IDENT, SetColl(), SetRedlineText(), STR_AUTOFMTREDL_DEL_MORELINES, and STR_AUTOFMTREDL_SET_TMPL_INDENT.
Referenced by SwAutoFormat().
Definition at line 1798 of file autofmt.cxx.
References AutoCorrect(), CanJoin(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), SwPaM::DeleteMark(), DeleteSel(), DelMoreLinesBlanks(), EnsureFormatted(), GetBigIndent(), SwDoc::getIDocumentContentOperations(), SwTextFrameInfo::GetLineStart(), SwPaM::GetMark(), GetNextNode(), SwPaM::GetPoint(), SwTextFrame::GetText(), IDocumentContentOperations::InsertString(), IsBlanksInString(), IsFastFullLine(), IsSentenceAtEnd(), IsSpace(), m_bMoreLines, 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 1434 of file autofmt.cxx.
References AutoCorrect(), CalcLevel(), CanJoin(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DelMoreLinesBlanks(), SwDoc::getIDocumentContentOperations(), GetNextNode(), IDocumentContentOperations::InsertString(), IsBlanksInString(), IsFastFullLine(), IsSentenceAtEnd(), m_bMoreLines, RES_POOLCOLL_TEXT, SetColl(), SetRedlineText(), STR_AUTOFMTREDL_DEL_MORELINES, and STR_AUTOFMTREDL_SET_TMPL_TEXT.
Referenced by SwAutoFormat().
|
private |
Definition at line 1392 of file autofmt.cxx.
References AutoCorrect(), SvxSwAutoFormatFlags::bAFormatByInput, CalcLevel(), CanJoin(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DelMoreLinesBlanks(), SwDoc::getIDocumentContentOperations(), GetNextNode(), SwTextFrame::GetTextNodeForParaProps(), IDocumentContentOperations::InsertString(), IsBlanksInString(), IsFastFullLine(), IsSentenceAtEnd(), m_bMoreLines, RES_POOLCOLL_TEXT_MOVE, SetColl(), SetRedlineText(), STR_AUTOFMTREDL_DEL_MORELINES, and STR_AUTOFMTREDL_SET_TMPL_TEXT_INDENT.
Referenced by SwAutoFormat().
|
private |
Definition at line 432 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bAFormatByInput, SwNode::GetAutoFormatLvl(), GetDigitLevel(), SwFormat::GetPoolFormatId(), SwTextFrame::GetText(), SwTextNode::GetTextColl(), SwTextFrame::GetTextNodeForParaProps(), n, RES_POOLCOLL_TEXT_MOVE, and USHRT_MAX.
Referenced by BuildEnum(), BuildIndent(), BuildText(), BuildTextIndent(), and SwAutoFormat().
|
inlineprivate |
Definition at line 187 of file autofmt.cxx.
References COMPLETE_STRING, SwTextFrame::GetMergedPara(), SwTextNode::GetText(), SwTextFrame::GetTextNodeFirst(), HasBreakAttr(), IsEmptyLine(), IsEnumericChar(), IsNoAlphaLine(), m_bEnd, m_pCurTextNd, and sw::MergedPara::pLastNode.
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), and GetBigIndent().
|
inlineprivate |
Definition at line 213 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bWithRedlining, SwDoc::GetDocumentRedlineManager(), and sw::DocumentRedlineManager::SetAutoFormatRedlineComment().
Referenced by AutoCorrect(), and DelEmptyLine().
|
private |
Definition at line 1246 of file autofmt.cxx.
References assert(), SwIndex::Assign(), ClearRedlineText(), SwPaM::DeleteMark(), DeleteSel(), GetFrame(), SwDoc::getIDocumentContentOperations(), SwNode::GetIndex(), SwPaM::GetMark(), SwTextFrame::GetMergedPara(), SwNodeIndex::GetNode(), SwPaM::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwTextFrame::GetText(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeFirst(), SwPaM::HasMark(), SwNode::IsTextNode(), m_pCurTextNd, SwTextFrame::MapViewToModelPos(), SwPosition::nContent, SwPosition::nNode, sw::MergedPara::pLastNode, IDocumentContentOperations::ReplaceRange(), SwPaM::SetMark(), SetRedlineText(), and STR_AUTOFMTREDL_DEL_EMPTY_PARA.
Referenced by DoTable(), DoUnderline(), and SwAutoFormat().
|
private |
Definition at line 1211 of file autofmt.cxx.
References SwPaM::DeleteMark(), DeleteSel(), GetLeadingBlanks(), SwPaM::GetMark(), SwPaM::GetPoint(), SwTextFrame::GetText(), GetTrailingBlanks(), HasSelBlanks(), 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 1086 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bAFormatByInpDelSpacesAtSttEnd, SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bAFormatDelSpacesAtSttEnd, SwPaM::DeleteMark(), DeleteSel(), GetLeadingBlanks(), SwPaM::GetPoint(), SwTextFrame::GetText(), GetTrailingBlanks(), SwTextFrame::MapViewToModelPos(), nPos, and SwPaM::SetMark().
Referenced by BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), and BuildTextIndent().
Definition at line 1165 of file autofmt.cxx.
References DeleteSelImpl(), and sw::GetRanges().
Referenced by BuildEnum(), BuildNegIndent(), DelEmptyLine(), DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DelMoreLinesBlanks(), and JoinPrevPara().
Definition at line 1181 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bWithRedlining, SwEditShell::DeleteSel(), SwCursorShell::GetCursor_(), GetFrame(), SwPaM::GetNext(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwPaM::GetPrev(), sw::Ring< value_type >::GetRingContainer(), SwNode::GetTextNode(), sw::RingContainer< value_type >::merge(), sw::Ring< value_type >::MoveTo(), SwPosition::nNode, and p.
Referenced by DeleteSel().
|
staticprivate |
Definition at line 688 of file autofmt.cxx.
Referenced by IsBlanksInString(), and SwAutoFormat().
|
private |
when using multiline paragraphs delete the "left" and/or "right" margins
Definition at line 1298 of file autofmt.cxx.
References assert(), SvxSwAutoFormatFlags::bAFormatByInpDelSpacesBetweenLines, SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bAFormatDelSpacesBetweenLines, SwPaM::DeleteMark(), DeleteSel(), SwDoc::getIDocumentContentOperations(), SwPaM::GetPoint(), SwTextFrameInfo::GetSpaces(), HasSelBlanks(), IDocumentContentOperations::InsertString(), SwTextFrame::MapViewToModelPos(), and SwPaM::SetMark().
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), and SwAutoFormat().
|
staticprivate |
Definition at line 698 of file autofmt.cxx.
Referenced by SwAutoFormat().
|
private |
Definition at line 608 of file autofmt.cxx.
References All, SvxSwAutoFormatFlags::bAFormatByInput, SvxSwAutoFormatFlags::bCreateTable, DelEmptyLine(), SwNode::FindTableNode(), fnMoveForward, SvxAdjustItem::GetAdjust(), SwAttrSet::GetAdjust(), SwTextFrameInfo::GetCharPos(), SwFrameAreaDefinition::getFrameArea(), GetLeadingBlanks(), SwPaM::GetPoint(), SwContentNode::GetSwAttrSet(), SwTextFrame::GetText(), SwTextFrame::GetTextNodeForParaProps(), GetTrailingBlanks(), SwDoc::InsertTable(), SwPaM::Move(), n, SwPosition::nNode, SwPostItHelper::NONE, and SwRect::Width().
Referenced by SwAutoFormat().
|
private |
Definition at line 526 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bSetBorder, DEF_LINE_WIDTH_0, DEF_LINE_WIDTH_1, DEF_LINE_WIDTH_2, DEF_LINE_WIDTH_3, DEFAULT, DelEmptyLine(), SwPaM::DeleteMark(), SwDoc::GetAttrPool(), SwDoc::getIDocumentContentOperations(), SwViewShell::GetLayout(), SwPaM::GetMark(), SwTextFrame::GetText(), IDocumentContentOperations::InsertItemSet(), SwPosition::nContent, RES_BOX(), RES_PARATR_CONNECT_BORDER(), editeng::SvxBorderLine::SetBorderLineStyle(), SvxBoxItem::SetDistance(), SvxBoxItem::SetLine(), SwPaM::SetMark(), and editeng::SvxBorderLine::SetWidth().
Referenced by SwAutoFormat().
|
private |
Definition at line 238 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(), and SwFrame::SetCompletePaint().
Referenced by BuildNegIndent(), GetBigIndent(), GetFrame(), IsEnumericChar(), IsFastFullLine(), and IsOneLine().
|
private |
Definition at line 483 of file autofmt.cxx.
References CanJoin(), EnsureFormatted(), SwTextFrameInfo::GetBigIndent(), GetNextNode(), IsOneLine(), and m_bMoreLines.
Referenced by BuildNegIndent().
|
inlineprivate |
Definition at line 119 of file autofmt.cxx.
References m_pCharClass.
Referenced by GetDigitLevel(), IsFirstCharCapital(), and IsNoAlphaLine().
|
private |
Definition at line 751 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, UPPER_ROMAN, and USHRT_MAX.
Referenced by BuildEnum(), CalcLevel(), and IsEnumericChar().
|
private |
get the FORMATTED TextFrame
Definition at line 230 of file autofmt.cxx.
References assert(), EnsureFormatted(), SwViewShell::GetLayout(), and SwContentNode::getLayoutFrame().
Referenced by AutoCorrect(), DelEmptyLine(), DeleteSelImpl(), and GoNextPara().
|
staticprivate |
Definition at line 711 of file autofmt.cxx.
Referenced by DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), DoTable(), IsEmptyLine(), and IsEnumericChar().
|
private |
Definition at line 359 of file autofmt.cxx.
References SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwNodeIndex::GetNode(), SwNode::GetTextNode(), sw::GotoNextLayoutTextFrame(), and SwNode::IsTextNode().
Referenced by BuildEnum(), BuildHeadLine(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), GetBigIndent(), and SwAutoFormat().
|
staticprivate |
Definition at line 721 of file autofmt.cxx.
Referenced by DeleteJoinCurNextPara(), DeleteLeadingTrailingBlanks(), and DoTable().
|
private |
Definition at line 294 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(), SwNode::IsSectionNode(), SwNode::IsTableNode(), SwNode::IsTextNode(), m_bEnd, and SetProgressState().
Referenced by SwAutoFormat().
|
staticprivate |
Definition at line 1054 of file autofmt.cxx.
References SfxItemSet::GetItemState(), SwContentNode::GetpSwAttrSet(), SwTextFrame::GetTextNodeFirst(), NONE, RES_BREAK(), and RES_PAGEDESC().
Referenced by CanJoin(), and SwAutoFormat().
|
staticprivate |
Definition at line 341 of file autofmt.cxx.
References assert(), sw::FrameContainsNode(), and SwTextFrame::GetTextNodeFirst().
Referenced by SwAutoFormat().
|
staticprivate |
Definition at line 410 of file autofmt.cxx.
References DelLeadingBlanks(), SwTextFrame::GetText(), and IsSpace().
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), and SwAutoFormat().
|
inlinestaticprivate |
Definition at line 138 of file autofmt.cxx.
References GetLeadingBlanks(), and SwTextFrame::GetText().
Referenced by CanJoin(), and SwAutoFormat().
|
private |
Definition at line 387 of file autofmt.cxx.
References EnsureFormatted(), GetDigitLevel(), GetLeadingBlanks(), SwTextFrame::GetText(), SwTextFrameInfo::IsBullet(), IsSpace(), pBulletChar, StrChr(), and USHRT_MAX.
Referenced by CanJoin(), and SwAutoFormat().
|
private |
Definition at line 376 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bRightMargin, EnsureFormatted(), SwTextFrameInfo::IsFilled(), and SvxSwAutoFormatFlags::nRightMargin.
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), and BuildTextIndent().
|
private |
Definition at line 732 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 500 of file autofmt.cxx.
References GetCharClass(), SwTextFrame::GetText(), CharClass::isLetterNumeric(), IsSpace(), SwTextFrame::MapViewToModel(), and n.
Referenced by CanJoin(), and SwAutoFormat().
|
private |
Definition at line 370 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 1073 of file autofmt.cxx.
References SwTextFrame::GetText(), IsSpace(), and n.
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), and BuildTextIndent().
|
inlinestaticprivate |
Definition at line 129 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 1335 of file autofmt.cxx.
References SwIndex::Assign(), SwPaM::DeleteMark(), DeleteSel(), SwPaM::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeFirst(), SwPosition::nContent, SwPosition::nNode, and SwPaM::SetMark().
Referenced by BuildHeadLine().
|
private |
Definition at line 1000 of file autofmt.cxx.
References SwIndex::Assign(), SwPaM::DeleteMark(), SvxAdjustItem::GetAdjust(), SwDoc::GetAttrPool(), SwNode::GetContentNode(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwContentNode::GetpSwAttrSet(), SwNode::GetTextNode(), SwTextFrame::GetTextNodeForParaProps(), SwContentNode::HasSwAttrSet(), SwPosition::nContent, SwPosition::nNode, 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(), BuildText(), BuildTextIndent(), and SwAutoFormat().
|
inlineprivate |
Definition at line 208 of file autofmt.cxx.
References SvxSwAutoFormatFlags::bWithRedlining, and SetRedlineText_().
Referenced by AutoCorrect(), BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), and DelEmptyLine().
|
private |
Definition at line 258 of file autofmt.cxx.
References ShellResource::GetAutoFormatNameLst(), SwDoc::GetDocumentRedlineManager(), SwViewShell::GetShellRes(), m_nRedlAutoFormatSeqId, 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 89 of file autofmt.cxx.
Referenced by SwAutoFormat().
|
private |
Definition at line 91 of file autofmt.cxx.
|
private |
Definition at line 88 of file autofmt.cxx.
|
private |
Definition at line 90 of file autofmt.cxx.
|
private |
Definition at line 116 of file autofmt.cxx.
Referenced by BuildIndent(), CanJoin(), GoNextPara(), and SwAutoFormat().
|
private |
Definition at line 117 of file autofmt.cxx.
Referenced by BuildEnum(), BuildIndent(), BuildNegIndent(), BuildText(), BuildTextIndent(), GetBigIndent(), and SwAutoFormat().
|
mutableprivate |
Definition at line 99 of file autofmt.cxx.
|
private |
Definition at line 97 of file autofmt.cxx.
Referenced by SwAutoFormat().
|
private |
Definition at line 101 of file autofmt.cxx.
Referenced by SetRedlineText_().
|
mutableprivate |
Definition at line 98 of file autofmt.cxx.
Referenced by GetCharClass().
|
private |
Definition at line 96 of file autofmt.cxx.
|
private |
Definition at line 95 of file autofmt.cxx.
Referenced by CanJoin(), and DelEmptyLine().
|
private |
Definition at line 94 of file autofmt.cxx.
|
private |
Definition at line 93 of file autofmt.cxx.