51void collectUIInformation(
const OUString& rAction,
const OUString& aParameters)
55 aDescription.
aParameters = {{
"parameters", aParameters}};
56 aDescription.
aID =
"writer_edit";
57 aDescription.
aKeyWord =
"SwEditWinUIObject";
58 aDescription.
aParent =
"MainWindow";
69 for (
size_t n = 0;
n < rTableLines.
size(); ++
n)
79 for( ; nodeIndex < endNodeIndex ; ++nodeIndex )
102 sal_uInt16 nRows, sal_uInt16 nCols,
119 css::text::HoriOrientation::FULL, pTAFormat,
126 OUString parameter =
" Columns : " + OUString::number( nCols ) +
" , Rows : " + OUString::number( nRows ) +
" ";
127 collectUIInformation(
"CREATE_TABLE", parameter);
143 css::text::HoriOrientation::FULL, pTAFormat );
163 else if (pCursor->
GetNext() != pCursor)
197 bool bOnlyText =
false;
200 if( rPaM.HasMark() && *rPaM.GetPoint() != *rPaM.GetMark() )
206 nEnd = rPaM.End()->GetNodeIndex();
208 for( ; nStt <= nEnd; ++nStt )
225 sal_uInt16 nRows, sal_uInt16 nCols )
241 nRows, nCols, css::text::HoriOrientation::FULL ));
244 GetSttNd()->FindTableNode());
245 std::unique_ptr<SwDDETable> pDDETable(
new SwDDETable( *pTable, pDDEType ));
318 for (
size_t n = 0;
n < aBoxes.
size(); ++
n)
327 const_cast<SwTable*
>(&rTable)->SwitchFormulasToExternalRepresentation();
363 for (
size_t n = 0;
n < aBoxes.
size(); ++
n)
383 pBox =
static_cast<SwCellFrame*
>(pFrame)->GetTabBox();
389 sal_uInt32 nFormat = 0;
393 nFormat = pItem->GetValue();
401 const OUString& rText =
GetDoc()->
GetNodes()[ nNd ]->GetTextNode()->GetText();
402 if( rText.isEmpty() )
421 pBox =
static_cast<SwCellFrame*
>(pFrame)->GetTabBox();
502 pTmpTableNd = rNds[ pTableNd->
GetIndex() - 1 ]->FindTableNode();
505 pTmpTableNd =
nullptr;
510 bRet = pTmpTableNd &&
dynamic_cast< const SwDDETable*
>(&pTmpTableNd->
GetTable()) ==
nullptr &&
virtual void CreateChartInternalDataProviders(const SwTable *pTable)=0
calls createInternalDataProvider for all charts using the specified table
virtual bool SplitNode(const SwPosition &rPos, bool bChkTableStart)=0
Split a node at rPos (implemented only for TextNode).
virtual void UpdateTableFields(const SwTable *pTable)=0
virtual void SetModified()=0
Must be called manually at changes of format.
virtual bool IsModified() const =0
Changes of document?
void MergeValues(const SfxItemSet &rSet)
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
SwCellFrame is one table cell in the document layout.
bool EndAllTableBoxEdit()
void ClearTableBoxContent()
const SwTableNode * IsCursorInTable() const
Check if Point of current cursor is placed within a table.
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
SwContentFrame * GetCurrFrame(const bool bCalcFrame=true) const
Get current frame in which the cursor is positioned.
static SwTableNode * IsInTable(const SwNode &)
const SwTable * TextToTable(const SwInsertTableOptions &rInsTableOpts, const SwPaM &rRange, sal_Unicode cCh, sal_Int16 eAdjust, const SwTableAutoFormat *)
Text to Table.
IDocumentState const & getIDocumentState() const
IDocumentChartDataProviderAccess const & getIDocumentChartDataProviderAccess() const
TableMergeErr MergeTable(SwPaM &rPam)
void AppendUndoForInsertFromDB(const SwPaM &rPam, bool bIsTable)
Set up the InsertDB as Undo table.
IDocumentContentOperations const & getIDocumentContentOperations() const
IDocumentUndoRedo & GetIDocumentUndoRedo()
IDocumentFieldsAccess const & getIDocumentFieldsAccess() const
bool TableToText(const SwTableNode *pTableNd, sal_Unicode cCh)
Table to Text.
void SetTableBoxFormulaAttrs(SwTableBox &rBox, const SfxItemSet &rSet)
bool SplitTable(const SwSelBoxes &rBoxes, bool bVert, sal_uInt16 nCnt, bool bSameHeight=false)
Split up/merge Boxes in the Table.
const SwTable * InsertTable(const SwInsertTableOptions &rInsTableOpts, const SwPosition &rPos, sal_uInt16 nRows, sal_uInt16 nCols, sal_Int16 eAdjust, const SwTableAutoFormat *pTAFormat=nullptr, const std::vector< sal_uInt16 > *pColArr=nullptr, bool bCalledFromShell=false, bool bNewModel=true, const OUString &rTableName={})
Insert new table at position.
SvNumberFormatter * GetNumberFormatter(bool bCreate=true)
bool IsNumberFormat(const OUString &aString, sal_uInt32 &F_Index, double &fOutNumber)
void UpdateTable()
update fields of a listing
void StartAllAction()
For all views of this document.
bool IsTextToTableAvailable() const
const SwTable & InsertTable(const SwInsertTableOptions &rInsTableOpts, sal_uInt16 nRows, sal_uInt16 nCols, const SwTableAutoFormat *pTAFormat=nullptr)
Inserts an nRows x nCols table to the document at the current position.
bool CanMergeTable(bool bWithPrev=true, bool *pChkNxtPrv=nullptr) const
Merge tables.
bool TextToTable(const SwInsertTableOptions &rInsTableOpts, sal_Unicode cCh, const SwTableAutoFormat *pTAFormat=nullptr)
bool MergeTable(bool bWithPrev)
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
bool GetTableBoxFormulaAttrs(SfxItemSet &rSet) const
void SetTableChgMode(TableChgMode eMode)
void InsertDDETable(const SwInsertTableOptions &rInsTableOpts, SwDDEFieldType *pDDEType, sal_uInt16 nRows, sal_uInt16 nCols)
void SplitTable(SplitTable_HeadlineOption eMode)
Split table at cursor position.
void SetTableBoxFormulaAttrs(const SfxItemSet &rSet)
TableChgMode GetTableChgMode() const
void AppendUndoForInsertFromDB(bool bIsTable)
Set up InsertDB as table Undo.
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
OUString GetTableBoxText() const
bool TableToText(sal_Unicode cCh)
bool IsTableBoxTextFormat() const
Base class of the Writer layout elements.
SwLayoutFrame * GetUpper()
Marks a node in the document model.
SwNodeOffset GetIndex() const
SwTableNode * FindTableNode()
Search table node, in which it is.
SwNodeOffset EndOfSectionIndex() const
SwTableNode * GetTableNode()
const SwEndNode * EndOfSectionNode() const
PaM is Point and Mark: a selection of the document model.
SwNode & GetPointNode() const
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
SwContentNode * GetPointContentNode() const
bool Move(SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent)
Movement of cursor.
const SwPosition * GetPoint() const
SwTableBox is one table cell in the document model.
SwNodeOffset IsValidNumTextNd(bool bCheckAttr=true) const
SwFrameFormat * GetFrameFormat()
SwTableLines & GetTabLines()
const SwStartNode * GetSttNd() const
SwTableLine is one table row in the document model.
SwTableBoxes & GetTabBoxes()
void SetNewTable(std::unique_ptr< SwTable >, bool bNewFrames=true)
const SwTable & GetTable() const
SwTable is one table in the document model, containing rows (which contain cells).
SwTableLines & GetTabLines()
SwTableSortBoxes & GetTabSortBoxes()
TableChgMode GetTableChgMode() const
const SwNodes & GetNodes() const
static UITestLogger & getInstance()
void logEvent(const EventDescription &rDescription)
std::pair< const_iterator, bool > insert(Value &&x)
ring_container GetRingContainer()
static bool ConvertTableToText(const SwTableNode *pTableNode, sal_Unicode cCh)
static void ConvertNestedTablesToText(const SwTableLines &rTableLines, sal_Unicode cCh)
TableChgMode GetTableChgDefaultMode()
void ClearFEShellTabCols(SwDoc &rDoc, SwTabFrame const *const pFrame)
constexpr TypedWhichId< SwTableBoxFormula > RES_BOXATR_FORMULA(157)
constexpr TypedWhichId< SwTableBoxNumFormat > RES_BOXATR_FORMAT(RES_BOXATR_BEGIN)
constexpr SwNodeOffset NODE_OFFSET_MAX(SAL_MAX_INT32)
bool GoInContent(SwPaM &rPam, SwMoveFnCollection const &fnMove)
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
std::map< OUString, OUString > aParameters
sal_uInt16 mnRowsToRepeat
SwInsertTableFlags mnInsMode
Marks a position in the document model.
void Assign(const SwNode &rNd, SwNodeOffset nDelta, sal_Int32 nContentOffset=0)
These all set both nNode and nContent.
sal_Int32 GetContentIndex() const
SplitTable_HeadlineOption
void GetTableSelCrs(const SwCursorShell &rShell, SwSelBoxes &rBoxes)