50 void collectUIInformation(
const OUString& rAction,
const OUString& aParameters)
54 aDescription.
aParameters = {{
"parameters", aParameters}};
55 aDescription.
aID =
"writer_edit";
56 aDescription.
aKeyWord =
"SwEditWinUIObject";
57 aDescription.
aParent =
"MainWindow";
68 for (
size_t n = 0;
n < rTableLines.
size(); ++
n)
78 for( ; nodeIndex < endNodeIndex ; ++nodeIndex )
101 sal_uInt16 nRows, sal_uInt16 nCols,
118 css::text::HoriOrientation::FULL, pTAFormat,
125 OUString parameter =
" Columns : " + OUString::number( nCols ) +
" , Rows : " + OUString::number( nRows ) +
" ";
126 collectUIInformation(
"CREATE_TABLE", parameter);
142 css::text::HoriOrientation::FULL, pTAFormat );
162 else if (pCursor->
GetNext() != pCursor)
199 bool bOnlyText =
false;
202 if( rPaM.HasMark() && *rPaM.GetPoint() != *rPaM.GetMark() )
207 sal_uLong nStt = rPaM.GetMark()->nNode.GetIndex(),
208 nEnd = rPaM.GetPoint()->nNode.GetIndex();
209 if( nStt > nEnd ) {
sal_uLong n = nStt; nStt = nEnd; nEnd = n; }
211 for( ; nStt <= nEnd; ++nStt )
228 sal_uInt16 nRows, sal_uInt16 nCols )
244 nRows, nCols, css::text::HoriOrientation::FULL ));
247 GetSttNd()->FindTableNode());
248 std::unique_ptr<SwDDETable> pDDETable(
new SwDDETable( *pTable, pDDEType ));
324 for (
size_t n = 0;
n < aBoxes.
size(); ++
n)
342 return 0 != rSet.
Count();
372 for (
size_t n = 0;
n < aBoxes.
size(); ++
n)
392 pBox =
static_cast<SwCellFrame*
>(pFrame)->GetTabBox();
398 sal_uInt32 nFormat = 0;
408 if( ULONG_MAX == nNd )
411 const OUString& rText =
GetDoc()->
GetNodes()[ nNd ]->GetTextNode()->GetText();
412 if( rText.isEmpty() )
431 pBox =
static_cast<SwCellFrame*
>(pFrame)->GetTabBox();
480 if( pTableNd && dynamic_cast< const SwDDETable* >(&pTableNd->
GetTable()) ==
nullptr)
487 if( pChkNd && dynamic_cast< const SwDDETable* >(&pChkNd->
GetTable()) ==
nullptr &&
498 if( pChkNd && dynamic_cast< const SwDDETable* >(&pChkNd->
GetTable()) ==
nullptr &&
512 pTmpTableNd = rNds[ pTableNd->
GetIndex() - 1 ]->FindTableNode();
515 pTmpTableNd =
nullptr;
520 bRet = pTmpTableNd &&
dynamic_cast< const SwDDETable*
>(&pTmpTableNd->
GetTable()) ==
nullptr &&
void SetTableBoxFormulaAttrs(SwTableBox &rBox, const SfxItemSet &rSet)
void AppendUndoForInsertFromDB(const SwPaM &rPam, bool bIsTable)
Set up the InsertDB as Undo table.
const SwEndNode * EndOfSectionNode() const
bool IsTableBoxTextFormat() const
Base class of the Writer layout elements.
sal_uLong GetIndex() const
SwNode & GetNode(bool bPoint=true) const
bool GoInContent(SwPaM &rPam, SwMoveFnCollection const &fnMove)
Marks a position in the document model.
const SwNodes & GetNodes() const
SwPaM * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
void InsertDDETable(const SwInsertTableOptions &rInsTableOpts, SwDDEFieldType *pDDEType, sal_uInt16 nRows, sal_uInt16 nCols)
constexpr TypedWhichId< SwTableBoxNumFormat > RES_BOXATR_FORMAT(RES_BOXATR_BEGIN)
bool TableToText(const SwTableNode *pTableNd, sal_Unicode cCh)
Table to Text.
void ClearTableBoxContent()
SvNumberFormatter * GetNumberFormatter(bool bCreate=true)
virtual void SetModified()=0
Must be called manually at changes of format.
SwInsertTableFlags mnInsMode
virtual void CreateChartInternalDataProviders(const SwTable *pTable)=0
calls createInternalDataProvider for all charts using the specified table
virtual SwUndoId EndUndo(SwUndoId const eUndoId, SwRewriter const *const pRewriter)=0
Closes undo block.
TableChgMode GetTableChgMode() const
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
SwTableLine is one table row in the document model.
bool TextToTable(const SwInsertTableOptions &rInsTableOpts, sal_Unicode cCh, const SwTableAutoFormat *pTAFormat=nullptr)
IDocumentUndoRedo & GetIDocumentUndoRedo()
IDocumentContentOperations const & getIDocumentContentOperations() const
sal_uInt16 mnRowsToRepeat
void GetTableSelCrs(const SwCursorShell &rShell, SwSelBoxes &rBoxes)
SwContentNode * GetContentNode(bool bPoint=true) const
static UITestLogger & getInstance()
IDocumentFieldsAccess const & getIDocumentFieldsAccess() const
void logEvent(const EventDescription &rDescription)
const SwTable & InsertTable(const SwInsertTableOptions &rInsTableOpts, sal_uInt16 nRows, sal_uInt16 nCols, const SwTableAutoFormat *pTAFormat=nullptr)
SwTableNode * GetTableNode()
virtual void UpdateTableFields(SfxPoolItem *pHt)=0
const SwTable & GetTable() const
sal_uLong IsValidNumTextNd(bool bCheckAttr=true) const
void SetTableBoxFormulaAttrs(const SfxItemSet &rSet)
SwTableSortBoxes & GetTabSortBoxes()
void SetTableChgMode(TableChgMode eMode)
PaM is Point and Mark: a selection of the document model.
bool Move(SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent)
Movement of cursor.
TableChgMode GetTableChgDefaultMode()
const SwTableNode * IsCursorInTable() const
virtual SwUndoId StartUndo(SwUndoId const eUndoId, SwRewriter const *const pRewriter)=0
Opens undo block.
static bool ConvertTableToText(const SwTableNode *pTableNode, sal_Unicode cCh)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SwPosition * GetPoint() const
virtual bool IsModified() const =0
Changes of document?
virtual void SetUndoNoResetModified()=0
Disable (re)setting the document modified flag on Undo/Redo.
bool EndAllTableBoxEdit()
SwIndex & Assign(SwIndexReg *, sal_Int32)
SplitTable_HeadlineOption
SwLayoutFrame * GetUpper()
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
OUString GetTableBoxText() const
static void ConvertNestedTablesToText(const SwTableLines &rTableLines, sal_Unicode cCh)
IDocumentState const & getIDocumentState() const
Marks a node in the document model.
SwFrameFormat * GetFrameFormat()
ring_container GetRingContainer()
const SwTable * TextToTable(const SwInsertTableOptions &rInsTableOpts, const SwPaM &rRange, sal_Unicode cCh, sal_Int16 eAdjust, const SwTableAutoFormat *)
Text to Table.
void MergeValues(const SfxItemSet &rSet)
IDocumentChartDataProviderAccess const & getIDocumentChartDataProviderAccess() const
void UpdateTable()
update fields of a listing
SwTableLines & GetTabLines()
SwTable is one table in the document model, containing rows (which contain cells).
SwTableLines & GetTabLines()
TableMergeErr MergeTable(SwPaM &rPam)
void AppendUndoForInsertFromDB(bool bIsTable)
Set up InsertDB as table Undo.
bool MergeTable(bool bWithPrev)
sal_uLong EndOfSectionIndex() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
SwTableBoxes & GetTabBoxes()
constexpr TypedWhichId< SwTableBoxFormula > RES_BOXATR_FORMULA(149)
const SwStartNode * GetSttNd() const
bool CanMergeTable(bool bWithPrev=true, bool *pChkNxtPrv=nullptr) const
Merge tables.
SwContentFrame * GetCurrFrame(const bool bCalcFrame=true) const
Get current frame in which the cursor is positioned.
SwTableNode * IsIdxInTable(const SwNodeIndex &rIdx)
bool SplitTable(const SwSelBoxes &rBoxes, bool bVert, sal_uInt16 nCnt, bool bSameHeight=false)
Split up/merge Boxes in the Table.
bool IsTextToTableAvailable() const
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
sal_Int32 GetIndex() const
bool TableToText(sal_Unicode cCh)
void ClearFEShellTabCols(SwDoc &rDoc, SwTabFrame const *const pFrame)
SwTableBox is one table cell in the document model.
bool GetTableBoxFormulaAttrs(SfxItemSet &rSet) const
SwTableNode * FindTableNode()
Search table node, in which it is.
bool IsNumberFormat(const OUString &rString, sal_uInt32 &F_Index, double &fOutNumber)
virtual bool SplitNode(const SwPosition &rPos, bool bChkTableStart)=0
Split a node at rPos (implemented only for TextNode).
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
std::map< OUString, OUString > aParameters
void SetNewTable(std::unique_ptr< SwTable >, bool bNewFrames=true)
std::pair< const_iterator, bool > insert(Value &&x)
void StartAllAction()
For all views of this document.
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)
Insert new table at position.
TableChgMode GetTableChgMode() const
SwCellFrame is one table cell in the document layout.
void SplitTable(SplitTable_HeadlineOption eMode)
Split table at cursor position.