LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
HTMLEndPosLst Class Reference
Collaboration diagram for HTMLEndPosLst:
[legend]

Public Member Functions

 HTMLEndPosLst (SwDoc *pDoc, SwDoc *pTemplate, boost::optional< Color > xDfltColor, bool bOutStyles, sal_uLong nHTMLMode, const OUString &rText, std::set< OUString > &rStyles)
 
 ~HTMLEndPosLst ()
 
void Insert (const SfxPoolItem &rItem, sal_Int32 nStart, sal_Int32 nEnd, SwHTMLFormatInfos &rFormatInfos, bool bParaAttrs=false)
 
void Insert (const SfxItemSet &rItemSet, sal_Int32 nStart, sal_Int32 nEnd, SwHTMLFormatInfos &rFormatInfos, bool bDeep, bool bParaAttrs=false)
 
void Insert (const SwDrawFrameFormat &rFormat, sal_Int32 nPos, SwHTMLFormatInfos &rFormatInfos)
 
sal_uInt16 GetScriptAtPos (sal_Int32 nPos, sal_uInt16 nWeak)
 
void OutStartAttrs (SwHTMLWriter &rHWrt, sal_Int32 nPos, HTMLOutContext *pContext=nullptr)
 
void OutEndAttrs (SwHTMLWriter &rHWrt, sal_Int32 nPos, HTMLOutContext *pContext)
 
bool IsHTMLMode (sal_uLong nMode) const
 

Private Member Functions

void InsertItem_ (HTMLStartEndPos *pPos, HTMLStartEndPositions::size_type nEndPos)
 
void RemoveItem_ (HTMLStartEndPositions::size_type nEndPos)
 
HTMLOnOffState GetHTMLItemState (const SfxPoolItem &rItem)
 
bool ExistsOnTagItem (sal_uInt16 nWhich, sal_Int32 nPos)
 
bool ExistsOffTagItem (sal_uInt16 nWhich, sal_Int32 nStartPos, sal_Int32 nEndPos)
 
void FixSplittedItem (HTMLStartEndPos *pPos, sal_Int32 nNewEnd, HTMLStartEndPositions::size_type nStartPos)
 
void InsertItem (const SfxPoolItem &rItem, sal_Int32 nStart, sal_Int32 nEnd)
 
void SplitItem (const SfxPoolItem &rItem, sal_Int32 nStart, sal_Int32 nEnd)
 
void InsertNoScript (const SfxPoolItem &rItem, sal_Int32 nStart, sal_Int32 nEnd, SwHTMLFormatInfos &rFormatInfos, bool bParaAttrs)
 
const SwHTMLFormatInfoGetFormatInfo (const SwFormat &rFormat, SwHTMLFormatInfos &rFormatInfos)
 

Private Attributes

HTMLStartEndPositions aStartLst
 
HTMLStartEndPositions aEndLst
 
std::deque< sal_Int32 > aScriptChgLst
 
std::vector< sal_uInt16 > aScriptLst
 
SwDocpDoc
 
SwDoc *const pTemplate
 
boost::optional< ColorxDfltColor
 
std::set< OUString > & rScriptTextStyles
 
sal_uLong const nHTMLMode
 
bool bOutStyles: 1
 

Detailed Description

Definition at line 1074 of file htmlatr.cxx.

Constructor & Destructor Documentation

HTMLEndPosLst::HTMLEndPosLst ( SwDoc pDoc,
SwDoc pTemplate,
boost::optional< Color xDfltColor,
bool  bOutStyles,
sal_uLong  nHTMLMode,
const OUString &  rText,
std::set< OUString > &  rStyles 
)

Definition at line 1577 of file htmlatr.cxx.

References aScriptChgLst, aScriptLst, g_pBreakIt, SwBreakIt::GetBreakIter(), and nPos.

HTMLEndPosLst::~HTMLEndPosLst ( )

Definition at line 1598 of file htmlatr.cxx.

References aEndLst, and aStartLst.

Member Function Documentation

bool HTMLEndPosLst::ExistsOffTagItem ( sal_uInt16  nWhich,
sal_Int32  nStartPos,
sal_Int32  nEndPos 
)
private
bool HTMLEndPosLst::ExistsOnTagItem ( sal_uInt16  nWhich,
sal_Int32  nPos 
)
private

Definition at line 1336 of file htmlatr.cxx.

References aStartLst, GetHTMLItemState(), and SfxPoolItem::Which().

Referenced by InsertNoScript().

void HTMLEndPosLst::FixSplittedItem ( HTMLStartEndPos pPos,
sal_Int32  nNewEnd,
HTMLStartEndPositions::size_type  nStartPos 
)
private
const SwHTMLFormatInfo * HTMLEndPosLst::GetFormatInfo ( const SwFormat rFormat,
SwHTMLFormatInfos rFormatInfos 
)
private
HTMLOnOffState HTMLEndPosLst::GetHTMLItemState ( const SfxPoolItem rItem)
private
sal_uInt16 HTMLEndPosLst::GetScriptAtPos ( sal_Int32  nPos,
sal_uInt16  nWeak 
)
void HTMLEndPosLst::Insert ( const SfxPoolItem rItem,
sal_Int32  nStart,
sal_Int32  nEnd,
SwHTMLFormatInfos rFormatInfos,
bool  bParaAttrs = false 
)
void HTMLEndPosLst::Insert ( const SfxItemSet rItemSet,
sal_Int32  nStart,
sal_Int32  nEnd,
SwHTMLFormatInfos rFormatInfos,
bool  bDeep,
bool  bParaAttrs = false 
)
void HTMLEndPosLst::Insert ( const SwDrawFrameFormat rFormat,
sal_Int32  nPos,
SwHTMLFormatInfos rFormatInfos 
)
void HTMLEndPosLst::InsertItem ( const SfxPoolItem rItem,
sal_Int32  nStart,
sal_Int32  nEnd 
)
private
void HTMLEndPosLst::InsertItem_ ( HTMLStartEndPos pPos,
HTMLStartEndPositions::size_type  nEndPos 
)
private

Definition at line 1156 of file htmlatr.cxx.

References aEndLst, aStartLst, HTMLStartEndPos::GetStart(), and i.

Referenced by InsertItem().

void HTMLEndPosLst::InsertNoScript ( const SfxPoolItem rItem,
sal_Int32  nStart,
sal_Int32  nEnd,
SwHTMLFormatInfos rFormatInfos,
bool  bParaAttrs 
)
private
bool HTMLEndPosLst::IsHTMLMode ( sal_uLong  nMode) const
inline

Definition at line 1153 of file htmlatr.cxx.

Referenced by GetHTMLItemState().

void HTMLEndPosLst::OutEndAttrs ( SwHTMLWriter rHWrt,
sal_Int32  nPos,
HTMLOutContext pContext = nullptr 
)
void HTMLEndPosLst::OutStartAttrs ( SwHTMLWriter rHWrt,
sal_Int32  nPos,
HTMLOutContext pContext = nullptr 
)
void HTMLEndPosLst::RemoveItem_ ( HTMLStartEndPositions::size_type  nEndPos)
private

Definition at line 1171 of file htmlatr.cxx.

References aEndLst, and aStartLst.

Referenced by OutEndAttrs().

void HTMLEndPosLst::SplitItem ( const SfxPoolItem rItem,
sal_Int32  nStart,
sal_Int32  nEnd 
)
private

Member Data Documentation

HTMLStartEndPositions HTMLEndPosLst::aEndLst
private
std::deque<sal_Int32> HTMLEndPosLst::aScriptChgLst
private

Definition at line 1078 of file htmlatr.cxx.

Referenced by GetScriptAtPos(), HTMLEndPosLst(), and Insert().

std::vector<sal_uInt16> HTMLEndPosLst::aScriptLst
private

Definition at line 1083 of file htmlatr.cxx.

Referenced by GetScriptAtPos(), HTMLEndPosLst(), and Insert().

HTMLStartEndPositions HTMLEndPosLst::aStartLst
private
bool HTMLEndPosLst::bOutStyles
private

Definition at line 1091 of file htmlatr.cxx.

Referenced by GetFormatInfo(), Insert(), and InsertNoScript().

sal_uLong const HTMLEndPosLst::nHTMLMode
private

Definition at line 1090 of file htmlatr.cxx.

SwDoc* HTMLEndPosLst::pDoc
private

Definition at line 1085 of file htmlatr.cxx.

Referenced by GetFormatInfo(), and Insert().

SwDoc* const HTMLEndPosLst::pTemplate
private

Definition at line 1086 of file htmlatr.cxx.

Referenced by GetFormatInfo().

std::set<OUString>& HTMLEndPosLst::rScriptTextStyles
private

Definition at line 1088 of file htmlatr.cxx.

Referenced by GetFormatInfo().

boost::optional<Color> HTMLEndPosLst::xDfltColor
private

Definition at line 1087 of file htmlatr.cxx.

Referenced by InsertNoScript().


The documentation for this class was generated from the following file: