LibreOffice Module svx (master) 1
Classes | Typedefs | Enumerations | Functions | Variables
sdr::table Namespace Reference

Classes

class  CellCursor
 
struct  CellPos
 
class  CellRange
 
class  CellUndo
 
struct  EdgeInfo
 
class  FastPropertySet
 
class  FastPropertySetInfo
 
class  InsertColUndo
 
class  InsertRowUndo
 
class  RangeIterator
 
class  RemoveColUndo
 
class  RemoveRowUndo
 
class  SdrTableObj
 
class  SdrTableObjImpl
 
class  SdrTableRtfExporter
 
class  SdrTableRTFParser
 
class  SvxTableController
 
class  TableBorderHdl
 
class  TableColumn
 
class  TableColumns
 
class  TableColumnUndo
 
struct  TableEdge
 
class  TableEdgeHdl
 
class  TableLayouter
 
class  TableModel
 
class  TableModelNotifyGuard
 
class  TableRow
 
class  TableRows
 
class  TableRowUndo
 
struct  TableStyleSettings
 TableStyleSettings. More...
 
class  TableStyleUndo
 

Typedefs

typedef rtl::Reference< CellCellRef
 
typedef rtl::Reference< TableModelTableModelRef
 
typedef rtl::Reference< TableRowTableRowRef
 
typedef rtl::Reference< TableColumnTableColumnRef
 
typedef std::vector< CellRefCellVector
 
typedef std::vector< TableRowRefRowVector
 
typedef std::vector< TableColumnRefColumnVector
 
typedef ::cppu::WeakComponentImplHelper< css::table::XTable, css::util::XBroadcaster > TableModelBase
 
typedef ::cppu::ImplInheritanceHelper< CellRange, css::table::XCellCursor, css::table::XMergeableCellRange > CellCursorBase
 
typedef std::vector< css::beans::Property > PropertyVector
 
typedef std::unordered_map< OUString, ::sal_uInt32 > PropertyMap
 
typedef ::cppu::AggImplInheritanceHelper2< FastPropertySet, css::table::XCellRange, css::container::XNamed > TableColumnBase
 
typedef std::map< OUString, sal_Int32 > CellStyleNameMap
 
typedef ::comphelper::WeakComponentImplHelper< XStyle, XNameReplace, XServiceInfo, XIndexReplace, XModifiable, XModifyListener, XPropertySet > TableDesignStyleBase
 
typedef std::vector< Reference< XStyle > > TableDesignStyleVector
 
typedef std::vector< CellRefMergeableCellVector
 
typedef std::vector< MergeableCellVectorMergeVector
 
typedef std::vector< editeng::SvxBorderLine * > BorderLineVector
 
typedef std::vector< BorderLineVectorBorderLineMap
 
typedef ::cppu::AggImplInheritanceHelper2< FastPropertySet, css::table::XCellRange, css::container::XNamed > TableRowBase
 
typedef std::vector< std::shared_ptr< RTFCellDefault > > RTFCellDefaultVector
 
typedef std::shared_ptr< RTFCellInfo > RTFCellInfoPtr
 
typedef std::vector< RTFCellInfoPtrRTFColumnVector
 
typedef std::shared_ptr< RTFColumnVectorRTFColumnVectorPtr
 

Enumerations

enum  TableEdgeState {
  Empty ,
  Invisible ,
  Visible
}
 
enum class  TableHitKind {
  NONE ,
  Cell ,
  CellTextArea ,
  HorizontalBorder ,
  VerticallBorder
}
 SdrTableHitKind. More...
 

Functions

class SAL_LOPLUGIN_ANNOTATE ("crosscast") ICellRange
 base class for each object implementing an XCellRange More...
 
rtl::Reference< sdr::SelectionControllerCreateTableController (SdrView &rView, const SdrTableObj &rObj, const rtl::Reference< sdr::SelectionController > &xRefController)
 
static void ImplSetLinePreserveColor (SvxBoxItem &rNewFrame, const SvxBorderLine *pNew, SvxBoxItemLine nLine)
 
static void ImplApplyBoxItem (CellPosFlag nCellPosFlags, const SvxBoxItem *pBoxItem, const SvxBoxInfoItem *pBoxInfoItem, SvxBoxItem &rNewFrame)
 
static void ImplSetLineColor (SvxBoxItem &rNewFrame, SvxBoxItemLine nLine, const Color &rColor)
 
static void ImplApplyLineColorItem (CellPosFlag nCellPosFlags, const SvxColorItem *pLineColorItem, SvxBoxItem &rNewFrame)
 
static void ImplApplyBorderLineItem (CellPosFlag nCellPosFlags, const SvxBorderLine *pBorderLineItem, SvxBoxItem &rNewFrame)
 
 IMPL_LINK_NOARG (SvxTableController, UpdateHdl, void *, void)
 
Reference< XNameAccess > CreateTableDesignFamily ()
 
constexpr OUStringLiteral gsSize (u"Size")
 
static bool checkMergeOrigin (const TableModelRef &xTable, sal_Int32 nMergedX, sal_Int32 nMergedY, sal_Int32 nCellX, sal_Int32 nCellY, bool &bRunning)
 
bool findMergeOrigin (const TableModelRef &xTable, sal_Int32 nMergedX, sal_Int32 nMergedY, sal_Int32 &rOriginX, sal_Int32 &rOriginY)
 returns true if the cell(nMergedX,nMergedY) is merged with other cells. More...
 
template<class Vec , class Iter >
static void remove_range (Vec &rVector, sal_Int32 nIndex, sal_Int32 nCount)
 
template<class Vec , class Iter , class Entry >
static sal_Int32 insert_range (Vec &rVector, sal_Int32 nIndex, sal_Int32 nCount)
 inserts a range into a vector More...
 
void ExportAsRTF (SvStream &rStrm, SdrTableObj &rObj)
 Hack for clipboard with calc and writer, export and import table content as rtf table. More...
 
 IMPL_LINK (SdrTableRTFParser, RTFImportHdl, RtfImportInfo &, rInfo, void)
 
void ImportAsRTF (SvStream &rStream, SdrTableObj &rObj)
 
static void Dispose (RowVector &rRows)
 
static void Dispose (ColumnVector &rCols)
 
static void Dispose (CellVector &rCells)
 

Variables

const sal_Int32 Property_Width = 0
 
const sal_Int32 Property_OptimalWidth = 1
 
const sal_Int32 Property_IsVisible = 2
 
const sal_Int32 Property_IsStartOfNewPage = 3
 
static SvxBorderLine gEmptyBorder
 
const sal_Int32 Property_Height = 0
 
const sal_Int32 Property_OptimalHeight = 1
 
const sal_Int32 first_row_style = 0
 
const sal_Int32 last_row_style = 1
 
const sal_Int32 first_column_style = 2
 
const sal_Int32 last_column_style = 3
 
const sal_Int32 even_rows_style = 4
 
const sal_Int32 odd_rows_style = 5
 
const sal_Int32 even_columns_style = 6
 
const sal_Int32 odd_columns_style = 7
 
const sal_Int32 body_style = 8
 
const sal_Int32 background_style = 9
 
const sal_Int32 style_count = 10
 

Typedef Documentation

◆ BorderLineMap

Definition at line 47 of file tablelayouter.hxx.

◆ BorderLineVector

Definition at line 46 of file tablelayouter.hxx.

◆ CellCursorBase

typedef ::cppu::ImplInheritanceHelper< CellRange, css::table::XCellCursor, css::table::XMergeableCellRange > sdr::table::CellCursorBase

Definition at line 33 of file cellcursor.hxx.

◆ CellRef

Definition at line 34 of file celltypes.hxx.

◆ CellStyleNameMap

typedef std::map< OUString, sal_Int32 > sdr::table::CellStyleNameMap

Definition at line 61 of file tabledesign.cxx.

◆ CellVector

typedef std::vector<CellRef> sdr::table::CellVector

Definition at line 38 of file celltypes.hxx.

◆ ColumnVector

Definition at line 40 of file celltypes.hxx.

◆ MergeableCellVector

typedef std::vector< CellRef > sdr::table::MergeableCellVector

Definition at line 572 of file tablelayouter.cxx.

◆ MergeVector

Definition at line 573 of file tablelayouter.cxx.

◆ PropertyMap

typedef std::unordered_map< OUString, ::sal_uInt32 > sdr::table::PropertyMap

Definition at line 36 of file propertyset.hxx.

◆ PropertyVector

typedef std::vector< css::beans::Property > sdr::table::PropertyVector

Definition at line 35 of file propertyset.hxx.

◆ RowVector

typedef std::vector<TableRowRef> sdr::table::RowVector

Definition at line 39 of file celltypes.hxx.

◆ RTFCellDefaultVector

typedef std::vector< std::shared_ptr< RTFCellDefault > > sdr::table::RTFCellDefaultVector

Definition at line 67 of file tablertfimporter.cxx.

◆ RTFCellInfoPtr

typedef std::shared_ptr< RTFCellInfo > sdr::table::RTFCellInfoPtr

Definition at line 85 of file tablertfimporter.cxx.

◆ RTFColumnVector

Definition at line 86 of file tablertfimporter.cxx.

◆ RTFColumnVectorPtr

typedef std::shared_ptr< RTFColumnVector > sdr::table::RTFColumnVectorPtr

Definition at line 88 of file tablertfimporter.cxx.

◆ TableColumnBase

typedef ::cppu::AggImplInheritanceHelper2< FastPropertySet, css::table::XCellRange, css::container::XNamed > sdr::table::TableColumnBase

Definition at line 33 of file tablecolumn.hxx.

◆ TableColumnRef

Definition at line 37 of file celltypes.hxx.

◆ TableDesignStyleBase

typedef ::comphelper::WeakComponentImplHelper< XStyle, XNameReplace, XServiceInfo, XIndexReplace, XModifiable, XModifyListener, XPropertySet > sdr::table::TableDesignStyleBase

Definition at line 63 of file tabledesign.cxx.

◆ TableDesignStyleVector

typedef std::vector< Reference< XStyle > > sdr::table::TableDesignStyleVector

Definition at line 143 of file tabledesign.cxx.

◆ TableModelBase

typedef ::cppu::WeakComponentImplHelper< css::table::XTable, css::util::XBroadcaster > sdr::table::TableModelBase

Definition at line 51 of file tablemodel.hxx.

◆ TableModelRef

Definition at line 35 of file celltypes.hxx.

◆ TableRowBase

typedef ::cppu::AggImplInheritanceHelper2< FastPropertySet, css::table::XCellRange, css::container::XNamed > sdr::table::TableRowBase

Definition at line 33 of file tablerow.hxx.

◆ TableRowRef

Definition at line 36 of file celltypes.hxx.

Enumeration Type Documentation

◆ TableEdgeState

Enumerator
Empty 
Invisible 
Visible 

Definition at line 28 of file tablehandles.hxx.

◆ TableHitKind

enum class sdr::table::TableHitKind
strong

SdrTableHitKind.

Enumerator
NONE 
Cell 
CellTextArea 
HorizontalBorder 
VerticallBorder 

Definition at line 50 of file svdotable.hxx.

Function Documentation

◆ checkMergeOrigin()

static bool sdr::table::checkMergeOrigin ( const TableModelRef xTable,
sal_Int32  nMergedX,
sal_Int32  nMergedY,
sal_Int32  nCellX,
sal_Int32  nCellY,
bool &  bRunning 
)
static

Definition at line 366 of file tablelayouter.cxx.

Referenced by findMergeOrigin().

◆ CreateTableController()

rtl::Reference< sdr::SelectionController > sdr::table::CreateTableController ( SdrView rView,
const SdrTableObj rObj,
const rtl::Reference< sdr::SelectionController > &  xRefController 
)

◆ CreateTableDesignFamily()

SVX_DLLPUBLIC css::uno::Reference< css::container::XNameAccess > sdr::table::CreateTableDesignFamily ( )

Definition at line 831 of file tabledesign.cxx.

◆ Dispose() [1/3]

static void sdr::table::Dispose ( CellVector rCells)
static

Definition at line 245 of file tableundo.cxx.

◆ Dispose() [2/3]

static void sdr::table::Dispose ( ColumnVector rCols)
static

Definition at line 238 of file tableundo.cxx.

◆ Dispose() [3/3]

static void sdr::table::Dispose ( RowVector rRows)
static

◆ ExportAsRTF()

SVX_DLLPUBLIC void sdr::table::ExportAsRTF ( SvStream rStrm,
SdrTableObj rObj 
)

Hack for clipboard with calc and writer, export and import table content as rtf table.

Definition at line 65 of file tablertfexporter.cxx.

References rStrm, and sdr::table::SdrTableRtfExporter::Write().

◆ findMergeOrigin()

bool sdr::table::findMergeOrigin ( const TableModelRef xTable,
sal_Int32  nMergedX,
sal_Int32  nMergedY,
sal_Int32 &  rOriginX,
sal_Int32 &  rOriginY 
)

returns true if the cell(nMergedX,nMergedY) is merged with other cells.

returns true if the cell(nMergedCol,nMergedRow) is merged with other cells.

the returned cell( rOriginX, rOriginY ) is the origin( top left cell ) of the merge.

the returned cell( rOriginCol, rOriginRow ) is the origin( top left cell ) of the merge.

Definition at line 384 of file tablelayouter.cxx.

References checkMergeOrigin(), Exception, i, and TOOLS_WARN_EXCEPTION.

Referenced by sdr::table::SdrTableObj::CheckTableHit(), sdr::table::CellCursor::GetMergedSelection(), sdr::table::SdrTableObj::getNextCell(), sdr::table::SdrTableObj::getNextRow(), sdr::table::SdrTableObj::getPreviousCell(), sdr::table::SdrTableObj::getPreviousRow(), and sdr::table::SdrTableObj::setActiveCell().

◆ gsSize()

constexpr OUStringLiteral sdr::table::gsSize ( u"Size"  )
constexpr

◆ IMPL_LINK()

sdr::table::IMPL_LINK ( SdrTableRTFParser  ,
RTFImportHdl  ,
RtfImportInfo ,
rInfo  ,
void   
)

◆ IMPL_LINK_NOARG()

sdr::table::IMPL_LINK_NOARG ( SvxTableController  ,
UpdateHdl  ,
void *  ,
void   
)

Definition at line 2975 of file tablecontroller.cxx.

◆ ImplApplyBorderLineItem()

static void sdr::table::ImplApplyBorderLineItem ( CellPosFlag  nCellPosFlags,
const SvxBorderLine *  pBorderLineItem,
SvxBoxItem rNewFrame 
)
static

◆ ImplApplyBoxItem()

static void sdr::table::ImplApplyBoxItem ( CellPosFlag  nCellPosFlags,
const SvxBoxItem pBoxItem,
const SvxBoxInfoItem pBoxInfoItem,
SvxBoxItem rNewFrame 
)
static

◆ ImplApplyLineColorItem()

static void sdr::table::ImplApplyLineColorItem ( CellPosFlag  nCellPosFlags,
const SvxColorItem pLineColorItem,
SvxBoxItem rNewFrame 
)
static

◆ ImplSetLineColor()

static void sdr::table::ImplSetLineColor ( SvxBoxItem rNewFrame,
SvxBoxItemLine  nLine,
const Color rColor 
)
static

Definition at line 2526 of file tablecontroller.cxx.

References SvxBoxItem::GetLine(), and SvxBoxItem::SetLine().

Referenced by ImplApplyLineColorItem().

◆ ImplSetLinePreserveColor()

static void sdr::table::ImplSetLinePreserveColor ( SvxBoxItem rNewFrame,
const SvxBorderLine *  pNew,
SvxBoxItemLine  nLine 
)
static

Definition at line 2451 of file tablecontroller.cxx.

References SvxBoxItem::GetLine(), and SvxBoxItem::SetLine().

Referenced by ImplApplyBorderLineItem().

◆ ImportAsRTF()

SVX_DLLPUBLIC void sdr::table::ImportAsRTF ( SvStream rStream,
SdrTableObj rObj 
)

Definition at line 495 of file tablertfimporter.cxx.

References sdr::table::SdrTableRTFParser::Read().

◆ insert_range()

template<class Vec , class Iter , class Entry >
static sal_Int32 sdr::table::insert_range ( Vec &  rVector,
sal_Int32  nIndex,
sal_Int32  nCount 
)
static

inserts a range into a vector

Definition at line 73 of file tablemodel.cxx.

References Entry, nCount, and nIndex.

◆ remove_range()

template<class Vec , class Iter >
static void sdr::table::remove_range ( Vec &  rVector,
sal_Int32  nIndex,
sal_Int32  nCount 
)
static

Definition at line 54 of file tablemodel.cxx.

References nCount, and nIndex.

◆ SAL_LOPLUGIN_ANNOTATE()

class sdr::table::SAL_LOPLUGIN_ANNOTATE ( "crosscast"  )

base class for each object implementing an XCellRange

Definition at line 31 of file tablemodel.hxx.

References SAL_LOPLUGIN_ANNOTATE().

Referenced by SAL_LOPLUGIN_ANNOTATE().

Variable Documentation

◆ background_style

const sal_Int32 sdr::table::background_style = 9

Definition at line 38 of file tabledesign.hxx.

◆ body_style

const sal_Int32 sdr::table::body_style = 8

Definition at line 37 of file tabledesign.hxx.

Referenced by sdr::table::SdrTableObjImpl::ApplyCellStyles().

◆ even_columns_style

const sal_Int32 sdr::table::even_columns_style = 6

Definition at line 35 of file tabledesign.hxx.

Referenced by sdr::table::SdrTableObjImpl::ApplyCellStyles().

◆ even_rows_style

const sal_Int32 sdr::table::even_rows_style = 4

Definition at line 33 of file tabledesign.hxx.

Referenced by sdr::table::SdrTableObjImpl::ApplyCellStyles().

◆ first_column_style

const sal_Int32 sdr::table::first_column_style = 2

Definition at line 31 of file tabledesign.hxx.

Referenced by sdr::table::SdrTableObjImpl::ApplyCellStyles().

◆ first_row_style

const sal_Int32 sdr::table::first_row_style = 0

Definition at line 29 of file tabledesign.hxx.

Referenced by sdr::table::SdrTableObjImpl::ApplyCellStyles().

◆ gEmptyBorder

SvxBorderLine sdr::table::gEmptyBorder
static

◆ last_column_style

const sal_Int32 sdr::table::last_column_style = 3

Definition at line 32 of file tabledesign.hxx.

Referenced by sdr::table::SdrTableObjImpl::ApplyCellStyles().

◆ last_row_style

const sal_Int32 sdr::table::last_row_style = 1

Definition at line 30 of file tabledesign.hxx.

Referenced by sdr::table::SdrTableObjImpl::ApplyCellStyles().

◆ odd_columns_style

const sal_Int32 sdr::table::odd_columns_style = 7

Definition at line 36 of file tabledesign.hxx.

Referenced by sdr::table::SdrTableObjImpl::ApplyCellStyles().

◆ odd_rows_style

const sal_Int32 sdr::table::odd_rows_style = 5

Definition at line 34 of file tabledesign.hxx.

Referenced by sdr::table::SdrTableObjImpl::ApplyCellStyles().

◆ Property_Height

const sal_Int32 sdr::table::Property_Height = 0

◆ Property_IsStartOfNewPage

const sal_Int32 sdr::table::Property_IsStartOfNewPage = 3

◆ Property_IsVisible

const sal_Int32 sdr::table::Property_IsVisible = 2

◆ Property_OptimalHeight

const sal_Int32 sdr::table::Property_OptimalHeight = 1

◆ Property_OptimalWidth

const sal_Int32 sdr::table::Property_OptimalWidth = 1

◆ Property_Width

const sal_Int32 sdr::table::Property_Width = 0

◆ style_count

const sal_Int32 sdr::table::style_count = 10

Definition at line 39 of file tabledesign.hxx.