81#include <osl/diagnose.h>
90 , m_bRevisionFlag(false)
101 std::unique_ptr<ModifierInfo> xModInfo;
105 xModInfo->CodePage = 0;
106 xModInfo->FontID = 0;
107 xModInfo->RevisionType = 0;
108 xModInfo->RevisionFlag =
false;
109 xModInfo->HasCharStyle =
false;
110 xModInfo->HasLangOverride =
false;
111 xModInfo->HasHighlight =
false;
116 std::unique_ptr<LwpFrib> newFrib;
118 sal_uInt8 fribtype = fribtag & ~FRIB_TAG_TYPEMASK;
124 newFrib.reset(
new LwpFrib(pPara));
198 newFrib->SetModifiers(xModInfo.release());
201 newFrib->m_nFribType = fribtype;
202 newFrib->m_nEditor = editID;
203 newFrib->Read(pObjStrm, friblen);
204 return newFrib.release();
252 std::unique_ptr<XFTextStyle> pNewStyle(
new XFTextStyle());
253 *pNewStyle = *pNamedStyle;
258 pNewStyle->SetFont(pFont);
272 std::unique_ptr<XFTextStyle> pNewStyle(
new XFTextStyle());
274 pNewStyle->SetFont(pFont);
288 pStyle->
GetFont()->SetBackColor(aColor);
291 std::unique_ptr<XFTextStyle> pNewStyle(
new XFTextStyle());
296 *pNewStyle = *pOldStyle;
297 pNewStyle->
GetFont()->SetBackColor(aColor);
302 pFont->SetBackColor(aColor);
303 pNewStyle->SetFont(pFont);
332 if (len !=
sizeof(pModInfo->
FontID))
334 OSL_FAIL(
"FRIB_MTAG_FONT entry wrong size");
349 if (len !=
sizeof(pModInfo->
CodePage))
351 OSL_FAIL(
"FRIB_MTAG_CODEPAGE entry wrong size");
397 const OUString& text)
403 pXFPara->
Add(pHyper);
422 pFont = pXFParaStyle->
GetFont();
442 throw std::runtime_error(
"registered already");
virtual OUString GetStyleName()=0
@descr: return the style name.
rtl::Reference< XFFont > CreateOverrideFont(sal_uInt32 fontID, sal_uInt32 overID)
rtl::Reference< XFFont > CreateFont(sal_uInt32 fontID)
LwpFontManager & GetFontManager()
LwpStyleManager * GetStyleManager()
const OUString & GetStyleName() const
void Register(std::map< LwpFrib *, OUString > *pFribMap)
XFColor GetHighlightColor()
static void ReadModifiers(LwpObjectStream *pObjStrm, ModifierInfo *pModInfo)
virtual void Read(LwpObjectStream *pObjStrm, sal_uInt16 len)
void ConvertHyperLink(XFContentContainer *pXFPara, const LwpHyperlinkMgr *pHyperlink, const OUString &text)
sal_uInt8 m_nRevisionType
virtual void RegisterStyle(LwpFoundry *pFoundry)
std::unique_ptr< ModifierInfo > m_pModifiers
sal_uInt8 GetType() const
void SetModifiers(ModifierInfo *pModifiers)
std::map< LwpFrib *, OUString > * m_pFribMap
rtl::Reference< XFFont > GetFont()
@descr: Get the current frib font style
bool HasNextFrib()
@descr: Whether there are other fribs following current frib.
static LwpFrib * CreateFrib(LwpPara *pPara, LwpObjectStream *pObjStrm, sal_uInt8 fribtag, sal_uInt8 editID)
void ConvertChars(XFContentContainer *pXFPara, const OUString &text)
XFColor GetHighlightColor(sal_uInt8 nID)
OUString GetEditorName(sal_uInt8 nID)
XFStyleManager * GetXFStyleManager()
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
const OUString & GetHyperlink() const
void ReadIndexed(LwpSvStream *pStrm)
@descr Read object id with indexed format from stream if index>0, lowid is get from time table per th...
stream class for LwpObject body data provide stream like interface to read object data
sal_uInt16 QuickReaduInt16(bool *pFailure=nullptr)
@descr Quick read sal_uInt32
void SeekRel(sal_uInt16 pos)
@descr SeekRel pos in object stream/buffer
sal_uInt8 QuickReaduInt8(bool *pFailure=nullptr)
@descr Quick read sal_uInt8
sal_uInt32 QuickReaduInt32(bool *pFailure=nullptr)
@descr Quick read sal_uInt32
LwpFoundry * GetFoundry()
XFParaStyle * GetXFParaStyle()
get paragraph xfstyle
IXFStyle * GetStyle(const LwpObjectID &styleObjID)
void Read(LwpObjectStream *pStrm) override
void Read(LwpObjectStream *pStrm) override
sal_uInt32 GetFinalFontID() const
virtual void Add(XFContent *pContent)
@descr Add content.
virtual void SetStyleName(const OUString &style)
: All content except XFTextContent can have a style.
@descr The font struct of openoffice xml filter.
void SetText(const OUString &text)
void SetHRef(const OUString &href)
Style object for aragraph.
const rtl::Reference< XFFont > & GetFont() const
@descr get the font object.
Style manager for the filter.
IXFStyleRet AddStyle(std::unique_ptr< IXFStyle > pStyle)
XFTextStyle * FindTextStyle(std::u16string_view name)
virtual OUString GetStyleName() override
@descr get style name.
virtual void SetStyleName(const OUString &styleName) override
@descr set style name.
Adapter for text to content.
void SetText(const OUString &text)
@descr Set the text.
const rtl::Reference< XFFont > & GetFont() const
For LWP filter architecture prototype - footnote.
For LWP filter architecture prototype - notes.
LwpTextLanguageOverride Language
LwpTextAttributeOverride aTxtAttrOverride