KWTableFrameSet.h
81 Cell( KWTableFrameSet *table, unsigned int row, unsigned int col, const TQString & name = TQString() );
322 virtual void createEmptyRegion( const TQRect & crect, TQRegion & emptyRegion, KWViewMode *viewMode );
434 KCommand *joinCells(unsigned int firstColumn,unsigned int firstRow, unsigned int endColumn,unsigned int endRow);
466 virtual void fromXML( TQDomElement &framesetElem, bool loadFrames = true, bool useNames = true );
471 virtual bool statistics( TQProgressDialog *progress, ulong & charsWithSpace, ulong & charsWithoutSpace, ulong & words,
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as th...
Definition KWCanvas.h:61
This object is created to edit a particular frameset in a particular view The view's canvas creates i...
Definition KWFrameSetEdit.h:51
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
Definition KWFrameSet.h:62
TQString name() const
get/set frameset name. For tables in particular, this must be unique
Definition KWFrameSet.h:428
Class that knows about all the (visible) frames in the document and will act as a manager between the...
Definition KWFrameViewManager.h:51
virtual void frameDeleted(KWFrame *frm, bool recalc)
Called by deleteFrame when it really deletes a frame (remove=true), to remove it from the table too.
Definition KWTableFrameSet.cpp:2368
void drawContents(TQPainter *painter, const TQRect &crect, const TQColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode, KWFrameViewManager *frameViewManager)
Overloaded to not clear any preview borders.
Definition KWTableFrameSet.cpp:2467
This iterator does not look at the Cell instance variables during traversal, (except m_marker),...
Definition KWTableFrameSet.h:292
Represents a row, for direct access to cells with m_rowArray[row][column].
Definition KWTableFrameSet.h:150
All the TableIterator templates are the same, except for the pre-increment operator (operator++).
Definition KWTableFrameSet.h:243
TableIterator(KWTableFrameSet *table)
Definition KWTableFrameSet.h:602
This class implements tables by acting as the manager for the frame(set)s which make up the table cel...
Definition KWTableFrameSet.h:59
void resizeWidth(double width)
change the width of the table, keeping the proportions of the cells (if one is wider than the others,...
Definition KWTableFrameSet.cpp:783
virtual void finalize()
Called once the frameset has been completely loaded or constructed.
Definition KWTableFrameSet.cpp:2172
Cell * loadCell(TQDomElement &frameElem, bool loadFrames=true, bool useNames=true)
load one cell
Definition KWTableFrameSet.cpp:2045
virtual bool canBeSavedAsInlineCharacter() const
If the frameset is inline, is it ok to save it inside an oasis <text:p>? If not, KWAnchor will create...
Definition KWTableFrameSet.h:459
virtual void layout()
relayout text in frames, so that it flows correctly around other frames
Definition KWTableFrameSet.cpp:2186
void insertNewColumn(uint _idx, double width=KWTableFrameSet::m_sDefaultColWidth)
insert a column of new cells use the getRows() call to decide how many cells are created
Definition KWTableFrameSet.cpp:1199
void moveBy(double dx, double dy)
move the whole of the table, this is mainly for anchored frames.
Definition KWTableFrameSet.cpp:890
virtual KCommand * anchoredObjectCreateCommand(int frameNum)
Store command for creating an anchored object.
Definition KWTableFrameSet.cpp:129
virtual KCommand * anchoredObjectDeleteCommand(int frameNum)
Store command for deleting an anchored object.
Definition KWTableFrameSet.cpp:134
void resizeColumn(unsigned int col, double x)
move a column edge (i.e.
Definition KWTableFrameSet.cpp:736
virtual TQDomElement save(TQDomElement &parentElem, bool saveFrames=true)
override save so we save in table style.
Definition KWTableFrameSet.cpp:2012
virtual void drawFrame(KWFrame *, TQPainter *, const TQRect &, const TQRect &, const TQPoint &, KWFrame *, const TQColorGroup &, bool, bool, KWFrameSetEdit *, KWViewMode *, bool)
Dummy since we reimplement drawContents.
Definition KWTableFrameSet.h:329
virtual void moveFloatingFrame(int frameNum, const KoPoint &position)
Move the frame frameNum to the given position - this is called when the frame is anchored and the anc...
Definition KWTableFrameSet.cpp:103
void removeCell(Cell *cell)
Remove a cell from this table (either to delete it, or to move it)
Definition KWTableFrameSet.cpp:184
void reInsertRow(RemovedRow &row)
replace a row that was removed with deleteRow()
Definition KWTableFrameSet.cpp:961
void ungroup()
release the constrains of the table and allow all frames to be edited apart from each other.
Definition KWTableFrameSet.cpp:1247
virtual void updateFrames(int flags=0xff)
Called when our frames change, or when another frameset's frames change.
Definition KWTableFrameSet.cpp:90
virtual void drawContents(TQPainter *painter, const TQRect &crect, const TQColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode, KWFrameViewManager *frameViewManager)
Paint this frameset.
Definition KWTableFrameSet.cpp:1754
void validate()
do a number of complex tests to test the validity of the table.
Definition KWTableFrameSet.cpp:1443
virtual TQDomElement toXML(TQDomElement &parentElem, bool saveFrames=true)
from and to XML - used when copying and pasting a table
Definition KWTableFrameSet.cpp:2021
virtual void createEmptyRegion(const TQRect &crect, TQRegion &emptyRegion, KWViewMode *viewMode)
Definition KWTableFrameSet.cpp:1469
KoRect boundingRect()
Calculate the absolute size of the complete table.
Definition KWTableFrameSet.cpp:232
void setBoundingRect(KoRect rect, CellSize widthMode, CellSize heightMode)
Layout all cells to fit inside the rect, cells will however use a minimum size, so the table might en...
Definition KWTableFrameSet.cpp:802
void deleteColumn(uint _idx, RemovedColumn &rc)
remove all the cells in a certain column
Definition KWTableFrameSet.cpp:1090
void insertNewRow(uint _idx, bool _recalc=true, bool _removeable=false)
insert a row of new cells, use the getCols() call to decide how many cells are created
Definition KWTableFrameSet.cpp:1014
KCommand * splitCell(unsigned int intoRows, unsigned int intoColumns, unsigned int column, unsigned int row, TQPtrList< KWFrameSet > listFrameSet=TQPtrList< KWFrameSet >(), TQPtrList< KWFrame >listFrame=TQPtrList< KWFrame >())
split one cell into a number of cells and return a command for undo purposes.
Definition KWTableFrameSet.cpp:1301
double topWithoutBorder()
Calculate the top postion of the cell(s) in the leftmost column.
Definition KWTableFrameSet.cpp:251
virtual KoSize floatingFrameSize(int frameNum=0)
Get the size of the "floating frame" identified by frameNum.
Definition KWTableFrameSet.cpp:124
int columnEdgeAt(double x) const
return the number of the column edge closest to x (between 0 and getCols()+1)
Definition KWTableFrameSet.cpp:697
virtual void setVisible(bool v)
set the visibility of the frameset.
Definition KWTableFrameSet.cpp:2198
void reInsertColumn(RemovedColumn &col)
replace a column that was removed with deleteColumn()
Definition KWTableFrameSet.cpp:1155
void recalcCols(uint column, uint row)
resize and position all cells
Definition KWTableFrameSet.cpp:297
virtual KWAnchor * createAnchor(KoTextDocument *txt, int frameNum)
Create an anchor for the floating frame identified by frameNum.
Definition KWTableFrameSet.cpp:139
int rowEdgeAt(double y) const
return the number of the row edge closest to x (between 0 and getRows()+1)
Definition KWTableFrameSet.cpp:713
@ VISIT_GRID
This iterator visits each grid position once, ie every location in the m_rowArray rows.
Definition KWTableFrameSet.h:176
@ VISIT_CELL
This iterator visits each cell in the table once, whether or not some of the cells are joined.
Definition KWTableFrameSet.h:183
@ CHECKED
Like VISIT_CELL it also visits each cell once, but has some other benefits.
Definition KWTableFrameSet.h:187
virtual void fromXML(TQDomElement &framesetElem, bool loadFrames=true, bool useNames=true)
load from XML - when pasting from clipboard
Definition KWTableFrameSet.cpp:2032
void addCell(Cell *cell)
Add a cell to this table, the cell should already have info like row, col and should already have a f...
Definition KWTableFrameSet.cpp:169
virtual bool canRemovePage(int num)
Return true if page num can be removed, as far as this frameset is concerned.
Definition KWTableFrameSet.cpp:2206
double leftWithoutBorder()
Calculate the top postion of the cell(s) in the top row.
Definition KWTableFrameSet.cpp:263
virtual void saveOasis(KoXmlWriter &, KoSavingContext &, bool saveFrames) const
Save to OASIS format.
Definition KWTableFrameSet.cpp:1779
void deleteRow(uint _idx, RemovedRow &rr, bool _recalc=true)
Remove all the cells in a certain row.
Definition KWTableFrameSet.cpp:918
void viewFormatting(TQPainter &painter, int zoom)
display formatting information
Definition KWTableFrameSet.cpp:1439
KCommand * joinCells(unsigned int firstColumn, unsigned int firstRow, unsigned int endColumn, unsigned int endRow)
merge cells to one cell.
Definition KWTableFrameSet.cpp:1265
virtual KWFrameSetEdit * createFrameSetEdit(KWCanvas *canvas)
Create a framesetedit object to edit this frameset in canvas.
Definition KWTableFrameSet.cpp:85
unsigned int getNumCells() const
returns the number of cells the table contains, this includes temporary headers.
Definition KWTableFrameSet.h:398
Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.
Definition KWTextFrameSet.h:64
RemovedRow and RemovedColumn implement the Memento design pattern.
Definition KWTableFrameSet.h:655
