LibreOffice Module editeng (master) 1
|
#include <svxrtf.hxx>
Classes | |
struct | PlainOrPardMap |
Public Member Functions | |
virtual SvParserState | CallParser () override |
const Color & | GetColor (size_t nId) const |
const vcl::Font & | GetFont (sal_uInt16 nId) |
virtual bool | IsEndPara (EditNodeIdx *pNd, sal_Int32 nCnt) const =0 |
void | SetAttrPool (SfxItemPool *pNewPool) |
template<class T > | |
void | SetPardMap (TypedWhichId< T > wid, TypedWhichId< T > widTrue) |
void | ReadBorderAttr (int nToken, SfxItemSet &rSet, bool bTableDef=false) |
void | ReadBackgroundAttr (int nToken, SfxItemSet &rSet, bool bTableDef=false) |
virtual void | Continue (int nToken) override |
const SfxItemSet & | GetRTFDefaults () |
Public Member Functions inherited from SvRTFParser | |
SvRTFParser (SvStream &rIn, sal_uInt8 nStackSize=3) | |
virtual SvParserState | CallParser () override |
virtual void | Continue (int nToken) override |
Public Member Functions inherited from SvParser< int > | |
SvParser (SvStream &rIn, sal_uInt8 nStackSize=3) | |
virtual SvParserState | CallParser ()=0 |
SvParserState | GetStatus () const |
sal_uInt32 | GetLineNr () const |
sal_uInt32 | GetLinePos () const |
void | IncLineNr () |
sal_uInt32 | IncLinePos () |
void | SetLineNr (sal_uInt32 nlNum) |
void | SetLinePos (sal_uInt32 nlPos) |
sal_uInt32 | GetNextChar () |
void | RereadLookahead () |
bool | IsParserWorking () const |
Link< LinkParamNone *, void > | GetAsynchCallLink () const |
void | SaveState (T nToken) |
void | RestoreState () |
virtual void | Continue (T nToken) |
void | SetSrcEncoding (rtl_TextEncoding eSrcEnc) |
rtl_TextEncoding | GetSrcEncoding () const |
void | SetSwitchToUCS2 (bool bSet) |
bool | IsSwitchToUCS2 () const |
sal_uInt16 | GetCharSize () const |
T | GetSaveToken () const |
Protected Member Functions | |
virtual void | InsertPara ()=0 |
virtual void | NextToken (int nToken) override |
void | ReadStyleTable () |
void | ReadColorTable () |
void | ReadFontTable () |
void | ReadAttr (int nToken, SfxItemSet *pSet) |
void | ReadTabAttr (int nToken, SfxItemSet &rSet) |
SfxItemSet & | GetAttrSet () |
bool | IsAttrSttPos () |
void | AttrGroupEnd () |
void | SetAllAttrOfStk () |
virtual void | InsertText ()=0 |
virtual void | MovePos (bool bForward=true)=0 |
virtual void | SetEndPrevPara (std::optional< EditNodeIdx > &rpNodePos, sal_Int32 &rCntPos)=0 |
virtual void | SetAttrInDoc (SvxRTFItemStackType &rSet) |
virtual void | UnknownAttrToken (int nToken) |
virtual void | CalcValue () |
SvxRTFParser (SfxItemPool &rAttrPool, SvStream &rIn) | |
virtual | ~SvxRTFParser () override |
void | SetNewDoc (bool bFlag) |
bool | IsChkStyleAttr () const |
void | SetChkStyleAttr (bool bFlag) |
bool | IsCalcValue () const |
void | SetCalcValue (bool bFlag) |
void | SetInsPos (const EditPosition &rNew) |
SvxRTFStyleTbl & | GetStyleTbl () |
Protected Member Functions inherited from SvRTFParser | |
sal_Unicode | GetHexValue () |
void | ScanText () |
void | SkipGroup () |
virtual int | GetNextToken_ () override |
void | ReadUnknownData () |
void | ReadBitmapData () |
virtual | ~SvRTFParser () override |
rtl_TextEncoding | GetCodeSet () const |
void | SetEncoding (rtl_TextEncoding eEnc) |
Protected Member Functions inherited from SvParser< int > | |
T | SkipToken (short nCnt=-1) |
TokenStackType * | GetStackPtr (short nCnt) |
T | GetNextToken () |
virtual T | GetNextToken_ ()=0 |
virtual void | NextToken (T nToken)=0 |
virtual | ~SvParser () override |
void | ClearTxtConvContext () |
Static Protected Member Functions | |
static void | DelCharAtEnd (OUStringBuffer &rStr, const sal_Unicode cDel) |
Private Types | |
enum | RTF_CharTypeDef { NOTDEF_CHARTYPE , LOW_CHARTYPE , HIGH_CHARTYPE , DOUBLEBYTE_CHARTYPE } |
Private Member Functions | |
SvxRTFParser (SvxRTFParser const &)=delete | |
void | operator= (SvxRTFParser const &)=delete |
void | ClearColorTbl () |
void | ClearAttrStack () |
SvxRTFItemStackType * | GetAttrSet_ () |
void | ClearStyleAttr_ (SvxRTFItemStackType &rStkType) |
void | SetAttrSet (SvxRTFItemStackType &rSet) |
void | SetDefault (int nToken, int nValue) |
void | RTFPardPlain (bool bPard, SfxItemSet **ppSet) |
void | BuildWhichTable () |
void | SetScriptAttr (RTF_CharTypeDef eType, SfxItemSet &rSet, SfxPoolItem &rItem) |
Private Attributes | |
std::vector< Color > | maColorTable |
SvxRTFFontTbl | m_FontTable |
SvxRTFStyleTbl | m_StyleTable |
std::deque< std::unique_ptr< SvxRTFItemStackType > > | aAttrStack |
SvxRTFItemStackList | m_AttrSetList |
PlainOrPardMap | aPlainMap |
PlainOrPardMap | aPardMap |
WhichRangesContainer | aWhichMap |
std::optional< EditPosition > | mxInsertPosition |
SfxItemPool * | pAttrPool |
std::optional< Color > | mxDefaultColor |
std::optional< vcl::Font > | pDfltFont |
std::unique_ptr< SfxItemSet > | pRTFDefaults |
int | nDfltFont |
bool | bNewDoc: 1 |
bool | bNewGroup: 1 |
bool | bIsSetDfltTab: 1 |
bool | bChkStyleAttr: 1 |
bool | bCalcValue: 1 |
bool | bIsLeftToRightDef: 1 |
bool | bIsInReadStyleTab: 1 |
Additional Inherited Members | |
Protected Attributes inherited from SvParser< int > | |
SvStream & | rInput |
OUStringBuffer | aToken |
sal_uInt32 | nlLineNr |
sal_uInt32 | nlLinePos |
std::unique_ptr< SvParser_Impl< T > > | pImplData |
tools::Long | m_nTokenIndex |
tools::Long | nTokenValue |
bool | bTokenHasValue |
bool | bFuzzing |
SvParserState | eState |
rtl_TextEncoding | eSrcEnc |
sal_uInt64 | nNextChPos |
sal_uInt32 | nNextCh |
bool | bSwitchToUCS2 |
bool | bRTF_InTextRead |
Definition at line 89 of file svxrtf.hxx.
|
private |
Enumerator | |
---|---|
NOTDEF_CHARTYPE | |
LOW_CHARTYPE | |
HIGH_CHARTYPE | |
DOUBLEBYTE_CHARTYPE |
Definition at line 144 of file svxrtf.hxx.
|
privatedelete |
|
protected |
Definition at line 61 of file svxrtf.cxx.
References BuildWhichTable(), mxDefaultColor, and pDfltFont.
|
overrideprotectedvirtual |
Definition at line 80 of file svxrtf.cxx.
References aAttrStack, and ClearAttrStack().
|
protected |
Definition at line 683 of file svxrtf.cxx.
References SvxRTFItemStackType::aAttrSet, aAttrStack, SvxRTFItemStackType::Add(), aPardMap, AttrGroupEnd(), bNewGroup, SfxItemIter::ClearItem(), ClearStyleAttr_(), SfxItemSet::Count(), SvxRTFParser::PlainOrPardMap::data, SfxItemIter::GetCurItem(), SfxItemSet::GetItemState(), GetRTFDefaults(), IsChkStyleAttr(), m_AttrSetList, SvxRTFItemStackType::maChildList, MovePos(), mxInsertPosition, SfxItemIter::NextItem(), SetEndPrevPara(), and SfxPoolItem::Which().
Referenced by AttrGroupEnd(), NextToken(), ReadAttr(), RTFPardPlain(), and SetAllAttrOfStk().
|
private |
Definition at line 892 of file svxrtf.cxx.
References aPardMap, aPlainMap, aWhichMap, SvxRTFParser::PlainOrPardMap::data, SfxItemPool::GetTrueWhich(), WhichRangesContainer::MergeRange(), pAttrPool, and WhichRangesContainer::reset().
Referenced by SvxRTFParser().
|
protectedvirtual |
Reimplemented in EditRTFParser.
Definition at line 1864 of file rtfitem.cxx.
Referenced by ReadAttr(), ReadTabAttr(), and SetDefault().
|
overridevirtual |
Reimplemented from SvRTFParser.
Reimplemented in EditRTFParser.
Definition at line 91 of file svxrtf.cxx.
References aAttrStack, bIsSetDfltTab, bNewGroup, SvRTFParser::CallParser(), ClearAttrStack(), ClearColorTbl(), DBG_ASSERT, m_FontTable, m_StyleTable, maColorTable, mxInsertPosition, and nDfltFont.
Referenced by EditRTFParser::CallParser().
|
private |
Definition at line 580 of file svxrtf.cxx.
References aAttrStack.
Referenced by CallParser(), and ~SvxRTFParser().
|
private |
|
private |
Definition at line 639 of file svxrtf.cxx.
References SfxWhichIter::ClearItem(), SfxItemSet::ClearItem(), SfxItemSet::Count(), SvxRTFItemStackType::GetAttrSet(), SfxWhichIter::GetCurWhich(), SfxItemPool::GetDefaultItem(), SfxWhichIter::GetItemState(), SfxItemSet::GetItemState(), SfxItemSet::GetPool(), IsChkStyleAttr(), SfxItemPool::IsWhich(), m_StyleTable, SfxWhichIter::NextWhich(), SvxRTFItemStackType::nStyleNo, and rSet.
Referenced by AttrGroupEnd().
|
overridevirtual |
Reimplemented from SvRTFParser.
Definition at line 112 of file svxrtf.cxx.
References SvRTFParser::Continue(), SvParser< int >::GetStatus(), nToken, and SetAllAttrOfStk().
|
staticprotected |
Definition at line 585 of file svxrtf.cxx.
Referenced by ReadFontTable(), and ReadStyleTable().
|
inlineprotected |
Definition at line 287 of file svxrtf.hxx.
References SvxRTFItemStackType::aAttrSet, aAttrStack, bNewGroup, and GetAttrSet_().
Referenced by NextToken().
|
private |
Definition at line 620 of file svxrtf.cxx.
References aAttrStack, aWhichMap, bNewGroup, SvxRTFItemStackType::createSvxRTFItemStackType(), GetRTFDefaults(), utl::ConfigManager::IsFuzzing(), mxInsertPosition, and pAttrPool.
Referenced by GetAttrSet(), and NextToken().
|
inline |
Definition at line 280 of file svxrtf.hxx.
References maColorTable, mxDefaultColor, and nId.
Referenced by ReadAttr(), ReadBackgroundAttr(), and ReadBorderAttr().
const vcl::Font & SvxRTFParser::GetFont | ( | sal_uInt16 | nId | ) |
Definition at line 593 of file svxrtf.cxx.
References aPlainMap, SfxItemPool::GetDefaultItem(), SvxFontItem::GetFamily(), SvxFontItem::GetStyleName(), m_FontTable, nId, pAttrPool, and pDfltFont.
Referenced by EditRTFParser::AddRTFDefaultValues(), ReadAttr(), RTFPardPlain(), and SetDefault().
const SfxItemSet & SvxRTFParser::GetRTFDefaults | ( | ) |
Definition at line 953 of file svxrtf.cxx.
References aPardMap, aWhichMap, bNewDoc, nId, pAttrPool, pRTFDefaults, and SfxItemPool::SetPoolDefaultItem().
Referenced by AttrGroupEnd(), GetAttrSet_(), ReadAttr(), ReadStyleTable(), and RTFPardPlain().
|
inlineprotected |
Definition at line 199 of file svxrtf.hxx.
Referenced by EditRTFParser::CreateStyleSheet(), EditRTFParser::CreateStyleSheets(), EditRTFParser::FindStyleSheet(), and EditRTFParser::SetAttrInDoc().
|
protectedpure virtual |
Implemented in EditRTFParser.
Referenced by NextToken().
|
protectedpure virtual |
Implemented in EditRTFParser.
Referenced by NextToken().
|
protected |
Definition at line 880 of file svxrtf.cxx.
References aAttrStack, mxInsertPosition, SvxRTFItemStackType::mxStartNodeIdx, and SvxRTFItemStackType::nSttCnt.
Referenced by ReadAttr().
|
inlineprotected |
Definition at line 194 of file svxrtf.hxx.
Referenced by ReadAttr(), ReadTabAttr(), and SetDefault().
|
inlineprotected |
Definition at line 192 of file svxrtf.hxx.
Referenced by AttrGroupEnd(), ClearStyleAttr_(), and RTFPardPlain().
|
pure virtual |
Implemented in EditRTFParser.
Referenced by SvxRTFItemStackType::Compress().
|
protectedpure virtual |
Implemented in EditRTFParser.
Referenced by AttrGroupEnd().
|
overrideprotectedvirtual |
Reimplemented in EditRTFParser.
Definition at line 127 of file svxrtf.cxx.
References SvParser< int >::aToken, AttrGroupEnd(), bNewDoc, bNewGroup, GetAttrSet(), GetAttrSet_(), SvParser< int >::GetStackPtr(), InsertPara(), InsertText(), m_AttrSetList, m_FontTable, n, nDfltFont, nToken, SvParser< int >::nTokenValue, ReadAttr(), SvRTFParser::ReadBitmapData(), ReadColorTable(), ReadFontTable(), ReadStyleTable(), RTF_ANNOTATION, RTF_ATNID, RTF_BKMK_KEY, RTF_BKMKEND, RTF_BKMKSTART, RTF_BRDRDEF, RTF_BULLET, RTF_CHRFMT, RTF_COLORTBL, RTF_DEFF, RTF_DEFLANG, RTF_DEFTAB, RTF_EMDASH, RTF_ENDASH, RTF_FIELD, RTF_FONTTBL, RTF_IGNOREFLAG, RTF_INFO, RTF_LDBLQUOTE, RTF_LINE, RTF_LQUOTE, RTF_NEXTFILE, RTF_PAR, RTF_PARFMT, RTF_PGBRK, RTF_PGDSCNO, RTF_PICT, RTF_RDBLQUOTE, RTF_RQUOTE, RTF_SHADOW, RTF_STYLESHEET, RTF_SUBENTRYINDEX, RTF_SWG_PRTDATA, RTF_SWGDEFS, RTF_TAB, RTF_TABSTOPDEF, RTF_TC, RTF_TEMPLATE, RTF_TEXTTOKEN, RTF_XE, SetAttrSet(), SetDefault(), SvRTFParser::SkipGroup(), and SvParser< int >::SkipToken().
Referenced by EditRTFParser::NextToken().
|
privatedelete |
|
protected |
Definition at line 180 of file rtfitem.cxx.
References SvxRTFItemStackType::aAttrSet, aAttrStack, aPardMap, aPlainMap, AttrGroupEnd(), Auto, SvxParaVertAlignItem::Automatic, SvxParaVertAlignItem::Baseline, bIsInReadStyleTab, bIsLeftToRightDef, Block, bNewGroup, SvxParaVertAlignItem::Bottom, BRACELEFT, BRACERIGHT, SvParser< int >::bTokenHasValue, CalcValue(), SvxParaVertAlignItem::Center, Center, SfxPoolItem::Clone(), SfxItemSet::Count(), DBG_ASSERT, DFLT_ESC_AUTO_SUB, DFLT_ESC_AUTO_SUPER, DFLT_ESC_PROP, DOUBLEBYTE_CHARTYPE, Fix, SfxItemSet::Get(), vcl::Font::GetCharSet(), GetColor(), SvxEscapementItem::GetEsc(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), GetFont(), SfxItemSet::GetItemState(), SvxLineSpacingItem::GetLineHeight(), SvxHyphenZoneItem::GetMaxHyphens(), SvxHyphenZoneItem::GetMinLead(), SvxHyphenZoneItem::GetMinTrail(), SvParser< int >::GetNextToken(), vcl::Font::GetPitch(), SvxEscapementItem::GetProportionalHeight(), GetRTFDefaults(), SvParser< int >::GetStackPtr(), vcl::Font::GetStyleName(), HIGH_CHARTYPE, Horizontal_LR_TB, Horizontal_RL_TB, IsAttrSttPos(), IsCalcValue(), SvParser< int >::IsParserWorking(), ITALIC_NONE, ITALIC_NORMAL, Left, LINESTYLE_BOLD, LINESTYLE_BOLDDASH, LINESTYLE_BOLDDASHDOT, LINESTYLE_BOLDDASHDOTDOT, LINESTYLE_BOLDDOTTED, LINESTYLE_BOLDLONGDASH, LINESTYLE_BOLDWAVE, LINESTYLE_DASH, LINESTYLE_DASHDOT, LINESTYLE_DASHDOTDOT, LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_DOUBLEWAVE, LINESTYLE_LONGDASH, LINESTYLE_NONE, LINESTYLE_SINGLE, LINESTYLE_WAVE, LOW_CHARTYPE, SvxRTFItemStackType::maChildList, Min, mxInsertPosition, SvxRTFItemStackType::mxStartNodeIdx, NOTDEF_CHARTYPE, NotMapped, SvxRTFItemStackType::nSttCnt, SvxRTFItemStackType::nStyleNo, nToken, SvParser< int >::nTokenValue, SfxItemSet::Put(), ReadBackgroundAttr(), ReadBorderAttr(), ReadTabAttr(), SvParser< int >::RereadLookahead(), Right, RTF_AB, RTF_ACCCOMMA, RTF_ACCDOT, RTF_ACCNONE, RTF_AF, RTF_AFS, RTF_AI, RTF_ALANG, RTF_ASPALPHA, RTF_B, RTF_BRDRDEF, RTF_CAPS, RTF_CB, RTF_CF, RTF_CHARSCALEX, RTF_CHBGBDIAG, RTF_CHBGCROSS, RTF_CHBGDCROSS, RTF_CHBGDKBDIAG, RTF_CHBGDKCROSS, RTF_CHBGDKDCROSS, RTF_CHBGDKFDIAG, RTF_CHBGDKHORIZ, RTF_CHBGDKVERT, RTF_CHBGFDIAG, RTF_CHBGHORIZ, RTF_CHBGVERT, RTF_CHCBPAT, RTF_CHCFPAT, RTF_CHSHDNG, RTF_CS, RTF_DBCH, RTF_DN, RTF_EMBO, RTF_EXPND, RTF_EXPNDTW, RTF_F, RTF_FAAUTO, RTF_FACENTER, RTF_FAFIXED, RTF_FAHANG, RTF_FAROMAN, RTF_FAVAR, RTF_FI, RTF_FS, RTF_HICH, RTF_HORZVERT, RTF_HYPHEN, RTF_HYPHLEAD, RTF_HYPHMAX, RTF_HYPHTRAIL, RTF_I, RTF_IGNOREFLAG, RTF_ILVL, RTF_IMPR, RTF_INTBL, RTF_KEEP, RTF_KEEPN, RTF_KERNING, RTF_LANG, RTF_LANGFE, RTF_LEVEL, RTF_LI, RTF_LIN, RTF_LOCH, RTF_LS, RTF_LTRCH, RTF_LTRPAR, RTF_NOCWRAP, RTF_NOOVERFLOW, RTF_NOSUPERSUB, RTF_OL, RTF_OLC, RTF_OLD, RTF_OLDASH, RTF_OLDASHD, RTF_OLDASHDD, RTF_OLDB, RTF_OLHWAVE, RTF_OLLDASH, RTF_OLNONE, RTF_OLOLDBWAVE, RTF_OLTH, RTF_OLTHD, RTF_OLTHDASH, RTF_OLTHDASHD, RTF_OLTHDASHDD, RTF_OLTHLDASH, RTF_OLW, RTF_OLWAVE, RTF_OUTL, RTF_PAGEBB, RTF_PARD, RTF_PGBRK, RTF_PGDSCNO, RTF_PLAIN, RTF_QC, RTF_QJ, RTF_QL, RTF_QR, RTF_RI, RTF_RIN, RTF_RTLCH, RTF_RTLPAR, RTF_S, RTF_SA, RTF_SB, RTF_SBYS, RTF_SCAPS, RTF_SHAD, RTF_SHADINGDEF, RTF_SHADOW, RTF_SHDW_COL, RTF_SHDW_DIST, RTF_SHDW_FCOL, RTF_SHDW_STYLE, RTF_SL, RTF_SLMULT, RTF_SOUTLVL, RTF_STRIKE, RTF_STRIKED, RTF_SUB, RTF_SUPER, RTF_SWG_ESCPROP, RTF_SWGDEFS, RTF_TABSTOPDEF, RTF_TWOINONE, RTF_UL, RTF_ULC, RTF_ULD, RTF_ULDASH, RTF_ULDASHD, RTF_ULDASHDD, RTF_ULDB, RTF_ULHWAVE, RTF_ULLDASH, RTF_ULNONE, RTF_ULTH, RTF_ULTHD, RTF_ULTHDASH, RTF_ULTHDASHD, RTF_ULTHDASHDD, RTF_ULTHLDASH, RTF_ULULDBWAVE, RTF_ULW, RTF_ULWAVE, RTF_UP, RTF_V, RTFPardPlain(), SAL_WARN_IF, SvRTFParser::SetEncoding(), SvxLineSpacingItem::SetLineHeight(), SvxLineSpacingItem::SetLineSpaceRule(), SvxULSpaceItem::SetLower(), SvxHyphenZoneItem::SetPageEnd(), SvxLineSpacingItem::SetPropLineSpace(), SvxLRSpaceItem::SetRight(), SetScriptAttr(), SvxRTFItemStackType::SetStartPos(), SvxLRSpaceItem::SetTextFirstLineOffset(), SvxLRSpaceItem::SetTextLeft(), SvxULSpaceItem::SetUpper(), SvRTFParser::SkipGroup(), SvParser< int >::SkipToken(), SmallCaps, STRIKEOUT_DOUBLE, STRIKEOUT_NONE, STRIKEOUT_SINGLE, SvxParaVertAlignItem::Top, UnknownAttrToken(), Uppercase, WEIGHT_BOLD, and WEIGHT_NORMAL.
Referenced by NextToken(), and ReadStyleTable().
void SvxRTFParser::ReadBackgroundAttr | ( | int | nToken, |
SfxItemSet & | rSet, | ||
bool | bTableDef = false |
||
) |
Definition at line 1544 of file rtfitem.cxx.
References aPardMap, aPlainMap, CalcShading(), COL_BLACK(), COL_WHITE(), Color::GetBlue(), GetColor(), Color::GetGreen(), SvParser< int >::GetNextToken(), Color::GetRed(), nToken, SvParser< int >::nTokenValue, SfxItemSet::Put(), rSet, RTF_BGBDIAG, RTF_BGCROSS, RTF_BGDCROSS, RTF_BGDKBDIAG, RTF_BGDKCROSS, RTF_BGDKDCROSS, RTF_BGDKFDIAG, RTF_BGDKHORIZ, RTF_BGDKVERT, RTF_BGFDIAG, RTF_BGHORIZ, RTF_BGVERT, RTF_CBPAT, RTF_CFPAT, RTF_CHBGBDIAG, RTF_CHBGCROSS, RTF_CHBGDCROSS, RTF_CHBGDKBDIAG, RTF_CHBGDKCROSS, RTF_CHBGDKDCROSS, RTF_CHBGDKFDIAG, RTF_CHBGDKHORIZ, RTF_CHBGDKVERT, RTF_CHBGFDIAG, RTF_CHBGHORIZ, RTF_CHBGVERT, RTF_CHCBPAT, RTF_CHCFPAT, RTF_CHRFMT, RTF_CHSHDNG, RTF_CLBGBDIAG, RTF_CLBGCROSS, RTF_CLBGDCROSS, RTF_CLBGDKBDIAG, RTF_CLBGDKCROSS, RTF_CLBGDKDCROSS, RTF_CLBGDKFDIAG, RTF_CLBGDKHOR, RTF_CLBGDKVERT, RTF_CLBGFDIAG, RTF_CLBGHORIZ, RTF_CLBGVERT, RTF_CLCBPAT, RTF_CLCFPAT, RTF_CLSHDNG, RTF_SHADING, RTF_SHADINGDEF, RTF_TABLEDEF, and SvParser< int >::SkipToken().
Referenced by ReadAttr().
void SvxRTFParser::ReadBorderAttr | ( | int | nToken, |
SfxItemSet & | rSet, | ||
bool | bTableDef = false |
||
) |
Definition at line 1352 of file rtfitem.cxx.
References aPardMap, BOTTOM, BottomRight, SfxPoolItem::Clone(), DASHED, DOTTED, DOUBLE, EMBOSSED, ENGRAVED, GetColor(), SfxItemSet::GetItemState(), SvParser< int >::GetNextToken(), SvxBorderLineWidth::Hairline, INSET, LEFT, nToken, SvParser< int >::nTokenValue, OUTSET, SfxItemSet::Put(), RIGHT, rSet, RTF_BOX, RTF_BRDRB, RTF_BRDRBAR, RTF_BRDRBTW, RTF_BRDRCF, RTF_BRDRDASH, RTF_BRDRDB, RTF_BRDRDEF, RTF_BRDRDOT, RTF_BRDREMBOSS, RTF_BRDRENGRAVE, RTF_BRDRHAIR, RTF_BRDRINSET, RTF_BRDRL, RTF_BRDROUTSET, RTF_BRDRR, RTF_BRDRS, RTF_BRDRSH, RTF_BRDRT, RTF_BRDRTH, RTF_BRDRTHTNLG, RTF_BRDRTHTNMG, RTF_BRDRTHTNSG, RTF_BRDRTNTHLG, RTF_BRDRTNTHMG, RTF_BRDRTNTHSG, RTF_BRDRW, RTF_BRSP, RTF_CLBRDRB, RTF_CLBRDRL, RTF_CLBRDRR, RTF_CLBRDRT, RTF_SWGDEFS, SetBorderLine(), editeng::SvxBorderLine::SetBorderLineStyle(), editeng::SvxBorderLine::SetColor(), editeng::SvxBorderLine::SetWidth(), SvParser< int >::SkipToken(), SOLID, THICKTHIN_LARGEGAP, THICKTHIN_MEDIUMGAP, THICKTHIN_SMALLGAP, THINTHICK_LARGEGAP, THINTHICK_MEDIUMGAP, THINTHICK_SMALLGAP, and TOP.
Referenced by ReadAttr().
|
protected |
Definition at line 393 of file svxrtf.cxx.
References SvParser< int >::aToken, COL_AUTO(), SvParser< int >::GetNextToken(), SvParser< int >::IsParserWorking(), maColorTable, nToken, SvParser< int >::nTokenValue, RTF_BLUE, RTF_COLORTBL, RTF_GREEN, RTF_RED, RTF_TEXTTOKEN, SvParser< int >::SaveState(), and SvParser< int >::SkipToken().
Referenced by NextToken().
|
protected |
Definition at line 441 of file svxrtf.cxx.
References SvParser< int >::aToken, bNewDoc, DelCharAtEnd(), SvParser< int >::eState, FAMILY_DECORATIVE, FAMILY_DONTKNOW, FAMILY_MODERN, FAMILY_ROMAN, FAMILY_SCRIPT, FAMILY_SWISS, SvParser< int >::GetNextToken(), SvParser< int >::IsParserWorking(), lcl_GetDefaultTextEncodingForRTF(), m_FontTable, nDfltFont, nToken, SvParser< int >::nTokenValue, PITCH_FIXED, PITCH_VARIABLE, SvRTFParser::ReadUnknownData(), RTF_DEFF, RTF_F, RTF_FALT, RTF_FCHARSET, RTF_FDECOR, RTF_FMODERN, RTF_FNAME, RTF_FNIL, RTF_FONTEMB, RTF_FONTFILE, RTF_FONTTBL, RTF_FPRQ, RTF_FROMAN, RTF_FSCRIPT, RTF_FSWISS, RTF_FTECH, RTF_IGNOREFLAG, RTF_PANOSE, RTF_TEXTTOKEN, RTF_UNKNOWNCONTROL, SvParser< int >::SaveState(), vcl::Font::SetCharSet(), SetDefault(), SvRTFParser::SetEncoding(), vcl::Font::SetFamily(), vcl::Font::SetFamilyName(), vcl::Font::SetPitch(), and SvParser< int >::SkipToken().
Referenced by NextToken().
|
protected |
Definition at line 271 of file svxrtf.cxx.
References SvParser< int >::aToken, aWhichMap, bChkStyleAttr, bIsInReadStyleTab, DelCharAtEnd(), SvParser< int >::eState, SvParser< int >::GetNextToken(), GetRTFDefaults(), SvParser< int >::GetStackPtr(), SvParser< int >::IsParserWorking(), SvParser< int >::m_nTokenIndex, m_StyleTable, nToken, SvParser< int >::nTokenValue, pAttrPool, ReadAttr(), SvRTFParser::ReadUnknownData(), RTF_BRDRDEF, RTF_CHRFMT, RTF_CS, RTF_IGNOREFLAG, RTF_OUTLINELEVEL, RTF_PARFMT, RTF_PN, RTF_S, RTF_SBASEDON, RTF_SNEXT, RTF_SOUTLVL, RTF_STYLESHEET, RTF_SWGDEFS, RTF_TABSTOPDEF, RTF_TEXTTOKEN, RTF_UNKNOWNCONTROL, SvParser< int >::SaveState(), and SvParser< int >::SkipToken().
Referenced by NextToken().
|
protected |
Definition at line 1245 of file rtfitem.cxx.
References aPardMap, BRACELEFT, CalcValue(), Center, Decimal, Default, SvxTabStop::GetAdjustment(), SvxTabStop::GetDecimal(), SvxTabStop::GetFill(), SvParser< int >::GetNextToken(), SvxTabStop::GetTabPos(), SvxTabStopItem::Insert(), IsCalcValue(), Left, nToken, SvParser< int >::nTokenValue, SfxItemSet::Put(), Right, rSet, RTF_IGNOREFLAG, RTF_TB, RTF_TLDOT, RTF_TLEQ, RTF_TLHYPH, RTF_TLSWG, RTF_TLTH, RTF_TLUL, RTF_TQC, RTF_TQDEC, RTF_TQL, RTF_TQR, RTF_TX, and SvParser< int >::SkipToken().
Referenced by ReadAttr().
|
private |
Definition at line 1671 of file rtfitem.cxx.
References SvxRTFItemStackType::aAttrSet, aAttrStack, aPardMap, aPlainMap, AttrGroupEnd(), bNewGroup, BRACELEFT, SfxItemSet::ClearItem(), SfxItemSet::Count(), SvxRTFParser::PlainOrPardMap::data, SfxItemSet::Get(), vcl::Font::GetCharSet(), SvRTFParser::GetCodeSet(), GetFont(), SfxItemSet::GetItemState(), SfxItemSet::GetParent(), GetRTFDefaults(), SvParser< int >::GetStackPtr(), IsChkStyleAttr(), SfxItemPool::IsSlot(), SvxRTFItemStackType::maChildList, mxInsertPosition, nDfltFont, SvxRTFItemStackType::nStyleNo, SfxItemSet::Put(), RTF_PARD, RTF_PLAIN, SvRTFParser::SetEncoding(), and SvxRTFItemStackType::SetStartPos().
Referenced by ReadAttr().
|
protected |
Definition at line 847 of file svxrtf.cxx.
References aAttrStack, AttrGroupEnd(), m_AttrSetList, n, and SetAttrSet().
Referenced by Continue().
|
protectedvirtual |
Reimplemented in EditRTFParser.
Definition at line 888 of file svxrtf.cxx.
Referenced by SetAttrSet().
|
inline |
Definition at line 212 of file svxrtf.hxx.
|
private |
Definition at line 863 of file svxrtf.cxx.
References bIsSetDfltTab, SfxItemSet::Count(), n, rSet, RTF_DEFTAB, SetAttrInDoc(), SetAttrSet(), and SetDefault().
Referenced by NextToken(), SetAllAttrOfStk(), and SetAttrSet().
|
inlineprotected |
Definition at line 195 of file svxrtf.hxx.
Referenced by EditRTFParser::EditRTFParser().
|
inlineprotected |
Definition at line 193 of file svxrtf.hxx.
Referenced by EditRTFParser::EditRTFParser().
Definition at line 1775 of file rtfitem.cxx.
References aPardMap, aWhichMap, bIsLeftToRightDef, bIsSetDfltTab, bNewDoc, CalcValue(), SfxItemSet::Count(), Default, vcl::Font::GetCharSet(), SfxItemIter::GetCurItem(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), GetFont(), vcl::Font::GetPitch(), vcl::Font::GetStyleName(), IsCalcValue(), SfxItemIter::NextItem(), NOTDEF_CHARTYPE, nToken, SvParser< int >::nTokenValue, nValue, pAttrPool, RTF_ADEFF, RTF_ADEFLANG, RTF_DEFF, RTF_DEFLANG, RTF_DEFTAB, SfxItemPool::SetPoolDefaultItem(), SetScriptAttr(), and SVX_TAB_DEFDIST.
Referenced by NextToken(), ReadFontTable(), and SetAttrSet().
|
protectedpure virtual |
Implemented in EditRTFParser.
Referenced by AttrGroupEnd().
|
protected |
Definition at line 86 of file svxrtf.cxx.
References mxInsertPosition.
Referenced by EditRTFParser::EditRTFParser().
|
inlineprotected |
Definition at line 191 of file svxrtf.hxx.
Referenced by EditRTFParser::EditRTFParser().
|
inline |
Definition at line 215 of file svxrtf.hxx.
References SvxRTFParser::PlainOrPardMap::set().
|
private |
Definition at line 77 of file rtfitem.cxx.
References aPlainMap, bIsLeftToRightDef, DOUBLEBYTE_CHARTYPE, eType, HIGH_CHARTYPE, LOW_CHARTYPE, SfxItemSet::Put(), rSet, SfxPoolItem::SetWhich(), and SfxPoolItem::Which().
Referenced by ReadAttr(), and SetDefault().
|
protectedvirtual |
Reimplemented in EditRTFParser.
Definition at line 1869 of file rtfitem.cxx.
Referenced by ReadAttr().
|
private |
Definition at line 94 of file svxrtf.hxx.
Referenced by AttrGroupEnd(), CallParser(), ClearAttrStack(), GetAttrSet(), GetAttrSet_(), IsAttrSttPos(), ReadAttr(), RTFPardPlain(), SetAllAttrOfStk(), and ~SvxRTFParser().
|
private |
Definition at line 106 of file svxrtf.hxx.
Referenced by AttrGroupEnd(), BuildWhichTable(), GetRTFDefaults(), ReadAttr(), ReadBackgroundAttr(), ReadBorderAttr(), ReadTabAttr(), RTFPardPlain(), and SetDefault().
|
private |
Definition at line 105 of file svxrtf.hxx.
Referenced by BuildWhichTable(), GetFont(), ReadAttr(), ReadBackgroundAttr(), RTFPardPlain(), and SetScriptAttr().
|
private |
Definition at line 107 of file svxrtf.hxx.
Referenced by BuildWhichTable(), GetAttrSet_(), GetRTFDefaults(), ReadStyleTable(), and SetDefault().
|
private |
Definition at line 121 of file svxrtf.hxx.
|
private |
Definition at line 120 of file svxrtf.hxx.
Referenced by ReadStyleTable().
|
private |
Definition at line 124 of file svxrtf.hxx.
Referenced by ReadAttr(), and ReadStyleTable().
|
private |
Definition at line 122 of file svxrtf.hxx.
Referenced by ReadAttr(), SetDefault(), and SetScriptAttr().
|
private |
Definition at line 119 of file svxrtf.hxx.
Referenced by CallParser(), SetAttrSet(), and SetDefault().
|
private |
Definition at line 117 of file svxrtf.hxx.
Referenced by GetRTFDefaults(), NextToken(), ReadFontTable(), and SetDefault().
|
private |
Definition at line 118 of file svxrtf.hxx.
Referenced by AttrGroupEnd(), CallParser(), GetAttrSet(), GetAttrSet_(), NextToken(), ReadAttr(), and RTFPardPlain().
|
private |
Definition at line 95 of file svxrtf.hxx.
Referenced by AttrGroupEnd(), NextToken(), and SetAllAttrOfStk().
|
private |
Definition at line 92 of file svxrtf.hxx.
Referenced by CallParser(), GetFont(), NextToken(), and ReadFontTable().
|
private |
Definition at line 93 of file svxrtf.hxx.
Referenced by CallParser(), ClearStyleAttr_(), and ReadStyleTable().
|
private |
Definition at line 91 of file svxrtf.hxx.
Referenced by CallParser(), ClearColorTbl(), GetColor(), and ReadColorTable().
|
private |
Definition at line 111 of file svxrtf.hxx.
Referenced by GetColor(), and SvxRTFParser().
|
private |
Definition at line 109 of file svxrtf.hxx.
Referenced by AttrGroupEnd(), CallParser(), GetAttrSet_(), IsAttrSttPos(), ReadAttr(), RTFPardPlain(), and SetInsPos().
|
private |
Definition at line 115 of file svxrtf.hxx.
Referenced by CallParser(), NextToken(), ReadFontTable(), and RTFPardPlain().
|
private |
Definition at line 110 of file svxrtf.hxx.
Referenced by BuildWhichTable(), GetAttrSet_(), GetFont(), GetRTFDefaults(), ReadStyleTable(), and SetDefault().
|
private |
Definition at line 112 of file svxrtf.hxx.
Referenced by GetFont(), and SvxRTFParser().
|
private |
Definition at line 113 of file svxrtf.hxx.
Referenced by GetRTFDefaults().