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

Classes

class  Cell
 
class  CellCursor
 
struct  CellPos
 
class  CellRange
 
class  CellUndo
 
struct  EdgeInfo
 
class  FastPropertySet
 
class  FastPropertySetInfo
 
class  ICellRange
 base class for each object implementing an XCellRange More...
 
class  InsertColUndo
 
class  InsertRowUndo
 
class  OverlayTableEdge
 
class  RangeIterator
 
class  RemoveColUndo
 
class  RemoveRowUndo
 
struct  RTFCellDefault
 
struct  RTFCellInfo
 
class  SdrTableObj
 
class  SdrTableObjImpl
 
class  SdrTableRtfExporter
 
class  SdrTableRTFParser
 
class  SvxTableController
 
class  SvxTableControllerModifyListener
 
class  TableBorderHdl
 
class  TableColumn
 
class  TableColumns
 
class  TableColumnUndo
 
class  TableDesignFamily
 
class  TableDesignStyle
 
class  TableDesignUser
 
struct  TableEdge
 
class  TableEdgeHdl
 
class  TableLayouter
 
class  TableModel
 
class  TableModelNotifyGuard
 
class  TableObjectGeoData
 
class  TableProperties
 
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::ImplInheritanceHelper< FastPropertySet, css::table::XCellRange, css::container::XNamed > TableColumnBase
 
typedef std::map< OUString, sal_Int32 > CellStyleNameMap
 
typedef ::cppu::WeakComponentImplHelper< XStyle, XNameReplace, XServiceInfo, XIndexAccess, XModifyBroadcaster, XModifyListener > TableDesignStyleBase
 
typedef std::vector< Reference< XStyle > > TableDesignStyleVector
 
typedef std::vector< TableEdgeTableEdgeVector
 
typedef std::vector< CellRefMergeableCellVector
 
typedef std::vector< MergeableCellVectorMergeVector
 
typedef std::vector< editeng::SvxBorderLine * > BorderLineVector
 
typedef std::vector< BorderLineVectorBorderLineMap
 
typedef ::cppu::ImplInheritanceHelper< FastPropertySet, css::table::XCellRange, css::container::XNamed > TableRowBase
 
typedef std::vector< std::shared_ptr< RTFCellDefault > > RTFCellDefaultVector
 
typedef std::shared_ptr< RTFCellInfoRTFCellInfoPtr
 
typedef std::vector< RTFCellInfoPtrRTFColumnVector
 
typedef std::shared_ptr< RTFColumnVectorRTFColumnVectorPtr
 

Enumerations

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

Functions

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 ()
 
static const OUStringLiteral gsSize ("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...
 
static const OUStringLiteral gsSize ("Size")
 
static long HundMMToTwips (long nIn)
 
 IMPL_LINK (SdrTableRTFParser, RTFImportHdl, RtfImportInfo &, rInfo, void)
 
static long TwipsToHundMM (long nIn)
 
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

Definition at line 49 of file tablelayouter.hxx.

Definition at line 48 of file tablelayouter.hxx.

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

Definition at line 31 of file cellcursor.hxx.

Definition at line 33 of file celltypes.hxx.

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

Definition at line 66 of file tabledesign.cxx.

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

Definition at line 38 of file celltypes.hxx.

typedef std::vector< TableColumnRef > sdr::table::ColumnVector

Definition at line 40 of file celltypes.hxx.

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

Definition at line 576 of file tablelayouter.cxx.

Definition at line 577 of file tablelayouter.cxx.

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

Definition at line 37 of file propertyset.hxx.

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

Definition at line 36 of file propertyset.hxx.

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

Definition at line 39 of file celltypes.hxx.

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

Definition at line 62 of file tablertfimporter.cxx.

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

Definition at line 76 of file tablertfimporter.cxx.

Definition at line 77 of file tablertfimporter.cxx.

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

Definition at line 79 of file tablertfimporter.cxx.

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

Definition at line 33 of file tablecolumn.hxx.

Definition at line 37 of file celltypes.hxx.

typedef ::cppu::WeakComponentImplHelper< XStyle, XNameReplace, XServiceInfo, XIndexAccess, XModifyBroadcaster, XModifyListener > sdr::table::TableDesignStyleBase

Definition at line 68 of file tabledesign.cxx.

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

Definition at line 125 of file tabledesign.cxx.

typedef std::vector< TableEdge > sdr::table::TableEdgeVector

Definition at line 41 of file tablehandles.hxx.

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

Definition at line 53 of file tablemodel.hxx.

Definition at line 35 of file celltypes.hxx.

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

Definition at line 33 of file tablerow.hxx.

Definition at line 36 of file celltypes.hxx.

Enumeration Type Documentation

Enumerator
Empty 
Invisible 
Visible 

Definition at line 30 of file tablehandles.hxx.

SdrTableHitKind.

Enumerator
NONE 
Cell 
CellTextArea 
HorizontalBorder 
VerticallBorder 

Definition at line 51 of file svdotable.hxx.

Function Documentation

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 370 of file tablelayouter.cxx.

Referenced by findMergeOrigin().

rtl::Reference< sdr::SelectionController > sdr::table::CreateTableController ( SdrView rView,
const SdrTableObj rObj,
const rtl::Reference< sdr::SelectionController > &  xRefController 
)
SVX_DLLPUBLIC css::uno::Reference< css::container::XNameAccess > sdr::table::CreateTableDesignFamily ( )

Definition at line 710 of file tabledesign.cxx.

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

Definition at line 242 of file tableundo.cxx.

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

Definition at line 249 of file tableundo.cxx.

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 388 of file tablelayouter.cxx.

References checkMergeOrigin(), Exception, and i.

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().

static const OUStringLiteral sdr::table::gsSize ( "Size"  )
static
static const OUStringLiteral sdr::table::gsSize ( "Size"  )
static
static long sdr::table::HundMMToTwips ( long  nIn)
static

Definition at line 80 of file tablertfexporter.cxx.

References OutputDevice::LogicToLogic().

Referenced by sdr::table::SdrTableRtfExporter::Write().

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

Definition at line 2864 of file tablecontroller.cxx.

static void sdr::table::ImplApplyBorderLineItem ( CellPosFlag  nCellPosFlags,
const SvxBorderLine *  pBorderLineItem,
SvxBoxItem rNewFrame 
)
static
static void sdr::table::ImplApplyBoxItem ( CellPosFlag  nCellPosFlags,
const SvxBoxItem pBoxItem,
const SvxBoxInfoItem pBoxInfoItem,
SvxBoxItem rNewFrame 
)
static
static void sdr::table::ImplApplyLineColorItem ( CellPosFlag  nCellPosFlags,
const SvxColorItem pLineColorItem,
SvxBoxItem rNewFrame 
)
static
static void sdr::table::ImplSetLineColor ( SvxBoxItem rNewFrame,
SvxBoxItemLine  nLine,
const Color rColor 
)
static

Definition at line 2444 of file tablecontroller.cxx.

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

Referenced by ImplApplyLineColorItem().

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

Definition at line 2369 of file tablecontroller.cxx.

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

Referenced by ImplApplyBorderLineItem().

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 78 of file tablemodel.cxx.

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

Definition at line 59 of file tablemodel.cxx.

static long sdr::table::TwipsToHundMM ( long  nIn)
static

Variable Documentation

const sal_Int32 sdr::table::background_style = 9

Definition at line 38 of file tabledesign.hxx.

Referenced by sdr::table::TableDesignStyle::getCellStyleNameMap().

const sal_Int32 sdr::table::body_style = 8
const sal_Int32 sdr::table::even_columns_style = 6
const sal_Int32 sdr::table::even_rows_style = 4
const sal_Int32 sdr::table::first_column_style = 2
const sal_Int32 sdr::table::first_row_style = 0
SvxBorderLine sdr::table::gEmptyBorder
static

Definition at line 53 of file tablelayouter.cxx.

Referenced by sdr::table::TableLayouter::SetBorder().

const sal_Int32 sdr::table::last_column_style = 3
const sal_Int32 sdr::table::last_row_style = 1
const sal_Int32 sdr::table::odd_columns_style = 7
const sal_Int32 sdr::table::odd_rows_style = 5
const sal_Int32 sdr::table::Property_Height = 0

Definition at line 40 of file tablerow.cxx.

Referenced by sdr::table::TableRow::getStaticPropertySetInfo().

const sal_Int32 sdr::table::Property_IsStartOfNewPage = 3
const sal_Int32 sdr::table::Property_IsVisible = 2
const sal_Int32 sdr::table::Property_OptimalHeight = 1

Definition at line 41 of file tablerow.cxx.

Referenced by sdr::table::TableRow::getStaticPropertySetInfo().

const sal_Int32 sdr::table::Property_OptimalWidth = 1

Definition at line 40 of file tablecolumn.cxx.

Referenced by sdr::table::TableColumn::getStaticPropertySetInfo().

const sal_Int32 sdr::table::Property_Width = 0

Definition at line 39 of file tablecolumn.cxx.

Referenced by sdr::table::TableColumn::getStaticPropertySetInfo().

const sal_Int32 sdr::table::style_count = 10