33class DomainMapperTableHandler;
273 const css::uno::Reference<css::text::XTextRange>&
getHandle()
const
278 void setHandle(
const css::uno::Reference<css::text::XTextRange>& rHandle)
350 void closeCell(
const css::uno::Reference<css::text::XTextRange>& rHandle);
405 void handle(
const css::uno::Reference<css::text::XTextRange>& rHandle);
517 sal_uInt32
findColumn(
const sal_uInt32 nRow,
const sal_uInt32 nCell );
519 sal_uInt32
findColumnCell(
const sal_uInt32 nRow,
const sal_uInt32 nCol );
An SPRM: Section, Paragraph and Run Modifier.
const TablePropertyMapPtr & getTableExceptionProps() const
void setTableProps(TablePropertyMapPtr pProps)
TablePropertyMapPtr mpRowProps
properties of the current row
TablePropertyMapPtr mpCellProps
properties of the current cell
TablePropertyMapPtr getTableProps()
std::stack< TablePropertyMapPtr > mTableProps
properties of the current table
void setRowProps(TablePropertyMapPtr pProps)
bool mbInCell
true when in a cell
void setInCell(bool bInCell)
bool mbCellEnd
true when at the end of a cell
void setRowEnd(bool bRowEnd)
TablePropertyMapPtr mpTableExceptionProps
table exception properties of the current row
bool mbRowEnd
true if at the end of a row
const TablePropertyMapPtr & getCellProps() const
void setCellEnd(bool bCellEnd)
TableManagerState()
Constructor.
void setCellProps(TablePropertyMapPtr pProps)
const TablePropertyMapPtr & getRowProps() const
void resetCellSpecifics()
Reset to initial state at beginning of row.
void setTableExceptionProps(TablePropertyMapPtr pProps)
void setCellEnd(bool bCellEnd)
sal_uInt32 getGridAfter(sal_uInt32 nRow)
void resolveCurrentTable()
Resolve the current table to the TableDataHandler.
void startParagraphGroup()
Handle the start of a paragraph group.
sal_uInt32 getCurrentGridBefore()
std::stack< TableData::Pointer_t > mTableDataStack
stack of table data
TablePropertyMapPtr const & getTableExceptionProps() const
const css::uno::Reference< css::text::XTextRange > & getHandle() const
bool isCellLastParaAfterAutospacing() const
void endParagraphGroup()
Handle the end of a paragraph group.
sal_uInt32 mnTableDepthNew
depth of the current cell
void setRowEnd(bool bRowEnd)
RowData::Pointer_t mpUnfinishedRow
bool m_bCellLastParaAfterAutospacing
void text(const sal_uInt8 *data, size_t len)
Handle 8 bit text at current handle.
bool m_bTableStartsAtCellStart
If this is a nested table, does it start at cell start?
virtual bool sprm(Sprm &rSprm)
Handle an SPRM at current handle.
void setInCell(bool bInCell)
sal_Int32 getTableDepthDifference() const
Return the current table difference, i.e.
void closeCell(const css::uno::Reference< css::text::XTextRange > &rHandle)
Close a cell at current level.
void setHandle(const css::uno::Reference< css::text::XTextRange > &rHandle)
TablePropertyMapPtr getTableProps()
bool isInTable()
Tells whether a table has been started or not.
virtual void insertRowProps(const TablePropertyMapPtr &pProps)
Handle properties of the current row.
void utext(const sal_uInt8 *data, size_t len)
Handle 16 bit text at current handle.
void setCurrentGridBefore(sal_uInt32 nSkipGrids)
tools::SvRef< DomainMapperTableHandler > mpTableDataHandler
handler for resolveCurrentTable
virtual void startLevel()
Start a new table level.
void endTable()
Signal that the next paragraph definitely won't be part of any table.
void openCell(const css::uno::Reference< css::text::XTextRange > &rHandle, const TablePropertyMapPtr &pProps)
Open a cell at current level.
virtual void tableExceptionProps(const TablePropertyMapPtr &pProps)
Handle table exception properties of the current row.
virtual void clearData()
let the derived class clear their table related data
virtual void insertTableProps(const TablePropertyMapPtr &pProps)
Handle properties of the current table.
bool isIgnore() const
Return if table manager has detected paragraph to ignore.
void handle(const css::uno::Reference< css::text::XTextRange > &rHandle)
Set the current handle.
void endCell()
Set flag which indicate the current handle is at the end of a cell.
void handle0x7()
Handle occurrence of character 0x7.
virtual void endLevel()
End a table level.
TablePropertyMapPtr const & getCellProps() const
void inCell()
Set flag which indicates the current handle is in a cell.
void setCurrentGridAfter(sal_uInt32 nSkipGrids)
TablePropertyMapPtr const & getRowProps() const
void setCellLastParaAfterAutospacing(bool bIsAfterAutospacing)
virtual void endOfCellAction()
Action to be carried out at the end of the last paragraph of a cell.
void setTableStartsAtCellStart(bool bTableStartsAtCellStart)
css::uno::Reference< css::text::XTextRange > mCurHandle
handle for the current position in document
sal_uInt32 findColumn(const sal_uInt32 nRow, const sal_uInt32 nCell)
Given a zero-based row/cell, return the zero-based grid it belongs to, or SAL_MAX_UINT16 for invalid.
virtual void cellProps(const TablePropertyMapPtr &pProps)
Handle properties of the current cell.
sal_uInt32 findColumnCell(const sal_uInt32 nRow, const sal_uInt32 nCol)
Given a zero-based row/col, return the zero-based cell describing that grid, or SAL_MAX_UINT16 for in...
void setKeepUnfinishedRow(bool bKeep)
Should we keep the unfinished row in endLevel to initialize the table data in the following startLeve...
sal_uInt32 getTableDepth() const
void setCurrentGridSpan(sal_uInt32 nGridSpan, bool bFirstCell=false)
virtual void endOfRowAction()
Action to be carried out at the end of the "table row" paragraph.
tools::SvRef< css::uno::Reference< css::text::XTextRange > > T_p
void setHandler(const tools::SvRef< DomainMapperTableHandler > &pTableDataHandler)
Set handler for resolveCurrentTable.
sal_uInt32 mnTableDepth
depth of the previous cell
void endRow()
Set flag indication the current handle is at the end of a row.
std::vector< sal_uInt32 > getCurrentGridSpans()
void ensureOpenCell(const TablePropertyMapPtr &pProps)
Ensure a cell is open at the current level.
sal_uInt32 getGridBefore(sal_uInt32 nRow)
void cellDepth(sal_uInt32 nDepth)
Set the table depth of the current cell.
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
The classes in this file define the interfaces for the resource model of the DocTokenizer: