LibreOffice Module sw (master) 1
|
#include <tablemgr.hxx>
Public Member Functions | |
SwTableFUNC (SwWrtShell *pShell) | |
~SwTableFUNC () | |
void | InitTabCols () |
void | ColWidthDlg (weld::Window *pParent) |
SwTwips | GetColWidth (sal_uInt16 nNum) const |
SwTwips | GetMaxColWidth (sal_uInt16 nNum) const |
void | SetColWidth (sal_uInt16 nNum, SwTwips nWidth) |
sal_uInt16 | GetColCount () const |
sal_uInt16 | GetCurColNum () const |
SwWrtShell * | GetShell () const |
void | UpdateChart () |
css::uno::Reference< css::frame::XModel > | InsertChart (css::uno::Reference< css::chart2::data::XDataProvider > const &rxDataProvider, bool bFillWithData, const OUString &rCellRange, SwFlyFrameFormat **ppFlyFrameFormat=nullptr) |
Private Member Functions | |
SAL_DLLPRIVATE int | GetRightSeparator (int nNum) const |
Private Attributes | |
SwFrameFormat * | m_pFormat |
SwWrtShell * | m_pSh |
SwTabCols | m_aCols |
Definition at line 42 of file tablemgr.hxx.
SwTableFUNC::SwTableFUNC | ( | SwWrtShell * | pShell | ) |
Definition at line 162 of file tablemgr.cxx.
SwTableFUNC::~SwTableFUNC | ( | ) |
Definition at line 168 of file tablemgr.cxx.
void SwTableFUNC::ColWidthDlg | ( | weld::Window * | pParent | ) |
Definition at line 49 of file tablemgr.cxx.
References SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateSwTableWidthDlg(), and InitTabCols().
Referenced by SwTableShell::Execute().
sal_uInt16 SwTableFUNC::GetColCount | ( | ) | const |
Definition at line 330 of file tablemgr.cxx.
References SwTabCols::Count(), i, SwTabCols::IsHidden(), m_aCols, and nCount.
Referenced by GetColWidth(), GetMaxColWidth(), GetRightSeparator(), SetColWidth(), and SwTableWidthDlg::SwTableWidthDlg().
SwTwips SwTableFUNC::GetColWidth | ( | sal_uInt16 | nNum | ) | const |
Definition at line 58 of file tablemgr.cxx.
References SwTabCols::Count(), GetColCount(), SwTabCols::GetLeft(), SwTabCols::GetRight(), GetRightSeparator(), and m_aCols.
Referenced by GetMaxColWidth(), SwTableShell::GetState(), SetColWidth(), and SwTableWidthDlg::SwTableWidthDlg().
sal_uInt16 SwTableFUNC::GetCurColNum | ( | ) | const |
Definition at line 320 of file tablemgr.cxx.
References SwFEShell::GetCurTabColNum(), i, SwTabCols::IsHidden(), m_aCols, m_pSh, nCount, and nPos.
Referenced by SwTableShell::Execute(), SwTableShell::GetState(), and SwTableWidthDlg::SwTableWidthDlg().
SwTwips SwTableFUNC::GetMaxColWidth | ( | sal_uInt16 | nNum | ) | const |
Definition at line 92 of file tablemgr.cxx.
References SwTabCols::Count(), GetColCount(), GetColWidth(), m_aCols, and MINLAY.
Definition at line 339 of file tablemgr.cxx.
References GetColCount(), i, SwTabCols::IsHidden(), and m_aCols.
Referenced by GetColWidth(), and SetColWidth().
|
inline |
Definition at line 63 of file tablemgr.hxx.
Referenced by SwTableWidthDlg::SwTableWidthDlg().
void SwTableFUNC::InitTabCols | ( | ) |
Definition at line 154 of file tablemgr.cxx.
References SwFEShell::GetTabCols(), m_aCols, m_pFormat, and m_pSh.
Referenced by SwTableWidthDlg::Apply(), ColWidthDlg(), SwTableShell::Execute(), and SwTableShell::GetState().
uno::Reference< frame::XModel > SwTableFUNC::InsertChart | ( | css::uno::Reference< css::chart2::data::XDataProvider > const & | rxDataProvider, |
bool | bFillWithData, | ||
const OUString & | rCellRange, | ||
SwFlyFrameFormat ** | ppFlyFrameFormat = nullptr |
||
) |
Definition at line 185 of file tablemgr.cxx.
References ChartHelper::AdaptDefaultsForChart(), aName, SwWrtShell::CalcAndSetScale(), comphelper::EmbeddedObjectContainer::CreateEmbeddedObject(), SfxInPlaceClient::DoVerb(), SwWrtShell::Down(), SwEditShell::EndAllAction(), SwEditShell::EndUndo(), FillRangeDescriptor(), SfxViewShell::FindIPClient(), fnTableStart, SwView::GetDocShell(), SwView::GetEditWin(), SfxObjectShell::GetModel(), SwFormat::GetName(), SwEditShell::GetTableFormat(), SwWrtShell::GetView(), GotoCurrTable(), SwWrtShell::InsertOleObject(), comphelper::LibreOfficeKit::isActive(), SwCursorShell::IsCursorInTable(), m_pSh, SwCursorShell::MoveTable(), SwRangeDescriptor::nBottom, SwRangeDescriptor::nLeft, SwRangeDescriptor::Normalize(), SwRangeDescriptor::nRight, SwRangeDescriptor::nTop, SwEditShell::SetChartName(), SwFEShell::SetCheckForOLEInCaption(), SO3_SCH_CLASSID, SwWrtShell::SplitNode(), SwEditShell::StartAllAction(), SwEditShell::StartUndo(), UI_INSERT_CHART, and SwWrtShell::Up().
Referenced by SwTextShell::ExecInsert().
void SwTableFUNC::SetColWidth | ( | sal_uInt16 | nNum, |
SwTwips | nWidth | ||
) |
Definition at line 117 of file tablemgr.cxx.
References SwTabCols::Count(), SwEditShell::EndAllAction(), GetColCount(), GetColWidth(), SwTabCols::GetRightMax(), GetRightSeparator(), m_aCols, m_pSh, min(), MINLAY, SwTabCols::SetRight(), SwFEShell::SetTabCols(), and SwEditShell::StartAllAction().
Referenced by SwTableWidthDlg::Apply(), and SwTableShell::Execute().
void SwTableFUNC::UpdateChart | ( | ) |
Definition at line 172 of file tablemgr.cxx.
References SwEditShell::EndAllAction(), SwFormat::GetName(), SwEditShell::GetTableFormat(), SwEditShell::HasOLEObj(), m_pSh, SwEditShell::StartAllAction(), and SwEditShell::UpdateCharts().
Referenced by SwBaseShell::Execute().
|
private |
Definition at line 46 of file tablemgr.hxx.
Referenced by GetColCount(), GetColWidth(), GetCurColNum(), GetMaxColWidth(), GetRightSeparator(), InitTabCols(), and SetColWidth().
|
private |
Definition at line 44 of file tablemgr.hxx.
Referenced by InitTabCols().
|
private |
Definition at line 45 of file tablemgr.hxx.
Referenced by GetCurColNum(), InitTabCols(), InsertChart(), SetColWidth(), and UpdateChart().