20#include "KWordTableFrameSetIface.h"
21#include "KWordTextFrameSetIface.h"
22#include "KWordTextFrameSetEditIface.h"
25#include "KWTableFrameSet.h"
26#include <tdeapplication.h>
27#include <dcopclient.h>
29#include "KWDocument.h"
32KWordTableFrameSetIface::KWordTableFrameSetIface(
KWTableFrameSet *_frame )
33 : KWordFrameSetIface( _frame)
38uint KWordTableFrameSetIface::nbRows()
43uint KWordTableFrameSetIface::numCols()
45 return m_table->getColumns();
47uint KWordTableFrameSetIface::numCells()
49 return m_table->getNumCells();
52DCOPRef KWordTableFrameSetIface::cell(
int pos )
55 KWTableFrameSet::TableIter i(m_table);
57 for(; i && p <= pos; ++i,++p)
61 return DCOPRef( kapp->dcopClient()->appId(),
62 i->dcopObject()->objId() );
65DCOPRef KWordTableFrameSetIface::cell( uint row, uint col )
67 if( row>=m_table->getRows() || col>= m_table->getColumns())
69 return DCOPRef( kapp->dcopClient()->appId(),
70 m_table->cell(row,col)->dcopObject()->objId() );
73DCOPRef KWordTableFrameSetIface::startEditingCell(uint row, uint col )
75 if( row>=m_table->getRows() || col>= m_table->getColumns())
78 KWDocument *doc=m_table->kWordDocument();
79 KWView* view = doc->getAllViews().first();
80 KWCanvas* canvas = view->getGUI()->canvasWidget();
82 if( !m_frametext || m_frametext->
isDeleted())
84 canvas->checkCurrentEdit(m_frametext,
true);
85 return DCOPRef( kapp->dcopClient()->appId(),
86 (
static_cast<KWTextFrameSetEdit *
>( canvas->currentFrameSetEdit()))->dcopObject()->objId() );
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as th...
bool isDeleted() const
True if the frameset was deleted (but not destroyed, since it's in the undo/redo)
This class implements tables by acting as the manager for the frame(set)s which make up the table cel...
unsigned int getRows() const
returns the number of rows
Object that is created to edit a Text frame set (KWTextFrameSet).
Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.