KWTableFrameSet::Cell Class Reference

#include <KWTableFrameSet.h>

Inheritance diagram for KWTableFrameSet::Cell:
KWTextFrameSet KWFrameSet

Public Member Functions

 Cell (KWTableFrameSet *table, unsigned int row, unsigned int col, const TQString &name=TQString())
 
 Cell (KWTableFrameSet *table, const Cell &original)
 
uint firstRow () const
 
uint firstColumn () const
 
uint rowSpan () const
 
uint columnSpan () const
 
uint lastRow () const
 
uint lastColumn () const
 
uint rowAfter () const
 
uint columnAfter () const
 
void setFirstRow (uint row)
 
void setFirstColumn (uint col)
 
void setRowSpan (uint rows)
 
void setColumnSpan (uint cols)
 
bool isFirstGridPosn (uint row, uint col) const
 
bool isFirstGridPosnFast (uint row, uint col) const
 
virtual void addFrame (KWFrame *_frame, bool recalc=true)
 
virtual void frameDeleted (KWFrame *frm, bool recalc)
 
bool isAboveOrLeftOf (unsigned row, unsigned column) const
 
bool containsCell (unsigned row, unsigned column) const
 
double leftBorder ()
 
double rightBorder ()
 
double topBorder ()
 
double bottomBorder ()
 
void setLeftBorder (KoBorder newBorder)
 
void setRightBorder (KoBorder newBorder)
 
void setTopBorder (KoBorder newBorder)
 
void setBottomBorder (KoBorder newBorder)
 
void setZOrder ()
 
bool isJoinedCell () const
 
void clearMark ()
 
void setMark ()
 
bool marked () const
 
void drawContents (TQPainter *painter, const TQRect &crect, const TQColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode, KWFrameViewManager *frameViewManager)
 
- Public Member Functions inherited from KWTextFrameSet
 KWTextFrameSet (KWDocument *_doc, const TQString &name)
 
 KWTextFrameSet (KWDocument *doc, const TQDomElement &tag, KoOasisContext &context)
 
 ~KWTextFrameSet ()
 
virtual KWordFrameSetIface * dcopObject ()
 
virtual FrameSetType type () const
 
virtual KWFrameSetEdit * createFrameSetEdit (KWCanvas *canvas)
 
KoTextObject * textObject () const
 
KoTextDocument * textDocument () const
 
KWTextDocument * kwTextDocument () const
 
void setProtectContent (bool _protect)
 
bool protectContent () const
 
void clearUndoRedoInfo ()
 
KWFrame * documentToInternal (const KoPoint &dPoint, TQPoint &iPoint) const
 
KWFrame * documentToInternalMouseSelection (const KoPoint &dPoint, TQPoint &iPoint, RelativePosition &relPos, KWViewMode *viewMode) const
 
KWFrame * internalToDocument (const KoPoint &relPoint, KoPoint &dPoint) const
 
KWFrame * internalToDocument (const TQPoint &iPoint, KoPoint &dPoint) const
 
KWFrame * internalToDocumentWithHint (const TQPoint &iPoint, KoPoint &dPoint, const KoPoint &hintDPoint) const
 
KoPoint internalToDocumentKnowingFrame (const KoPoint &relPoint, KWFrame *theFrame) const
 
KoPoint internalToDocumentKnowingFrame (const TQPoint &iPoint, KWFrame *theFrame) const
 
TQPoint moveToPage (int currentPgNum, short int direction) const
 
virtual int availableHeight () const
 
bool isFrameEmpty (KWFrame *frame)
 
virtual bool canRemovePage (int num)
 
virtual void deleteFrame (unsigned int num, bool remove=true, bool recalc=true)
 
void deleteFrame (KWFrame *frm, bool remove=true, bool recalc=true)
 
virtual void updateFrames (int flags=0xff)
 
void updateViewArea (TQWidget *w, KWViewMode *viewMode, const TQPoint &nPointBottom)
 
virtual TQDomElement save (TQDomElement &parentElem, bool saveFrames=true)
 
virtual TQDomElement toXML (TQDomElement &parentElem, bool saveFrames=true)
 
virtual void load (TQDomElement &attributes, bool loadFrames=true)
 
void loadOasisContent (const TQDomElement &bodyElem, KoOasisContext &context)
 
KWFrame * loadOasis (const TQDomElement &frame, const TQDomElement &bodyElem, KoOasisContext &context)
 
KWFrame * loadOasisTextFrame (const TQDomElement &frameTag, const TQDomElement &tag, KoOasisContext &context)
 
void saveOasisContent (KoXmlWriter &writer, KoSavingContext &context) const
 
virtual void saveOasis (KoXmlWriter &writer, KoSavingContext &context, bool saveFrames) const
 
virtual TQString toPlainText () const
 
virtual void finalize ()
 
bool hasSelection () const
 
TQString selectedText () const
 
virtual void drawFrame (KWFrame *frame, TQPainter *painter, const TQRect &fcrect, const TQRect &crect, const TQPoint &translationOffset, KWFrame *settingsFrame, const TQColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode, bool drawUnderlyingFrames)
 
virtual void drawFrameContents (KWFrame *frame, TQPainter *painter, const TQRect &fcrect, const TQColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode)
 
void drawCursor (TQPainter *p, KoTextCursor *cursor, bool cursorVisible, KWCanvas *canvas, KWFrame *currentFrame)
 
TQPoint cursorPos (KoTextCursor *cursor, KWCanvas *canvas, KWFrame *currentFrame)
 
KCommand * pasteOasis (KoTextCursor *cursor, const TQByteArray &data, bool removeSelected)
 
void insertTOC (KoTextCursor *cursor)
 
KNamedCommand * insertFrameBreakCommand (KoTextCursor *cursor)
 
void insertFrameBreak (KoTextCursor *cursor)
 
KCommand * setPageBreakingCommand (KoTextCursor *cursor, int pageBreaking)
 
TQRect paragRect (KoTextParag *parag) const
 
KCommand * deleteAnchoredFrame (KWAnchor *anchor)
 
void findPosition (const KoPoint &dPoint, KoTextParag *&parag, int &index)
 
void highlightPortion (KoTextParag *parag, int index, int length, KWCanvas *canvas, bool repaint=true, KDialogBase *dialog=0)
 
void removeHighlight (bool repaint=true)
 
virtual void addTextFrameSets (TQPtrList< KWTextFrameSet > &lst, bool onlyReadWrite=false)
 
void applyStyleChange (KoStyleChangeDefMap changed)
 
virtual void setVisible (bool v)
 
void setInlineFramesVisible (bool)
 
virtual void printDebug ()
 
virtual void layout ()
 
virtual void invalidate ()
 
virtual int paragraphs ()
 
virtual int paragraphsSelected ()
 
virtual bool statistics (TQProgressDialog *progress, ulong &charsWithSpace, ulong &charsWithoutSpace, ulong &words, ulong &sentences, ulong &syllables, ulong &lines, bool selected)
 
virtual void adjustMargins (int yp, int h, int reqMinWidth, int &leftMargin, int &rightMargin, int &pageWidth, KoTextParag *parag)
 
virtual int adjustFlow (int y, int w, int h)
 
int formatVertically (KoTextParag *parag, const TQRect &rect)
 
void fixParagWidth (KWTextParag *parag)
 
void ensureFormatted (KoTextParag *parag, bool emitAfterFormatting=true)
 
KWViewMode * currentViewMode () const
 
KWFrame * currentDrawnFrame () const
 
virtual KoTextFormat * currentFormat () const
 
virtual KCommand * setFormatCommand (const KoTextFormat *newFormat, int flags, bool zoomFont=false)
 
virtual const KoParagLayout * currentParagLayoutFormat () const
 
virtual bool rtl () const
 
virtual KCommand * setParagLayoutFormatCommand (KoParagLayout *newLayout, int flags, int marginIndex=-1)
 
virtual KCommand * setChangeCaseOfTextCommand (KoChangeCaseDia::TypeOfCase _type)
 
void renumberFootNotes (bool repaint=true)
 
virtual KWTextFrameSet * nextTextObject (KWFrameSet *)
 
bool minMaxInternalOnPage (int pageNum, int &topLU, int &bottomLU) const
 
KoTextParag * paragAtLUPos (int yLU) const
 
KWFootNoteFrameSet * insertFootNote (NoteType noteType, KWFootNoteVariable::Numbering numType, const TQString &manualString)
 
KoTextDocCommand * deleteTextCommand (KoTextDocument *textdoc, int id, int index, const TQMemArray< KoTextStringChar > &str, const CustomItemsMap &customItemsMap, const TQValueList< KoParagLayout > &oldParagLayouts)
 
TQString copyTextParag (KoXmlWriter &writer, KoSavingContext &context, int selectionId)
 
TQByteArray sortText (SortType type) const
 
KoLinkVariable * linkVariableUnderMouse (const KoPoint &dPoint)
 
KoVariable * variableUnderMouse (const KoPoint &dPoint)
 
- Public Member Functions inherited from KWFrameSet
 KWFrameSet (KWDocument *doc)
 
virtual ~KWFrameSet ()
 
virtual bool ownLine () const
 
Info frameSetInfo () const
 
void setFrameSetInfo (Info fi)
 
bool isAHeader () const
 
bool isAFooter () const
 
bool isHeaderOrFooter () const
 
bool isFootEndNote () const
 
const char * headerFooterTag () const
 
virtual bool isFootNote () const
 
virtual bool isEndNote () const
 
bool isMainFrameset () const
 
bool isMoveable () const
 
void deleteFrame (KWFrame *frm, bool remove=true, bool recalc=true)
 
void deleteAllFrames ()
 
void deleteAllCopies ()
 
KWFrame * frameAtPos (double _x, double _y) const
 
bool isFrameAtPos (const KWFrame *frame, const TQPoint &nPoint, bool borderOfFrameOnly=false) const
 
KWFrame * frame (unsigned int _num) const
 
const TQPtrList< KWFrame > & frameIterator () const
 
int frameFromPtr (KWFrame *frame)
 
unsigned int frameCount () const
 
bool isDeleted () const
 
virtual void createEmptyRegion (const TQRect &crect, TQRegion &emptyRegion, KWViewMode *viewMode)
 
void drawFrameAndBorders (KWFrame *frame, TQPainter *painter, const TQRect &crect, const TQColorGroup &cg, bool, bool, KWFrameSetEdit *edit, KWViewMode *viewMode, KWFrame *settingsFrame, bool drawUnderlyingFrames)
 
void drawFrameBorder (TQPainter *painter, KWFrame *frame, KWFrame *settingsFrame, const TQRect &crect, KWViewMode *viewMode)
 
virtual void drawPadding (KWFrame *frame, TQPainter *p, const TQRect &fcrect, const TQColorGroup &cg, KWViewMode *viewMode)
 
const TQPtrList< KWFrame > & framesInPage (int pageNum) const
 
bool hasFramesInPageArray () const
 
virtual bool canBeSavedAsInlineCharacter () const
 
KWFrame * loadOasisFrame (const TQDomElement &tag, KoOasisContext &context)
 
virtual void fromXML (TQDomElement &framesetElem, bool loadFrames=true, bool=true)
 
KWDocument * kWordDocument () const
 
void setFloating ()
 
void setAnchored (KWTextFrameSet *textfs, KoTextParag *parag, int index, bool placeHolderExists=false, bool repaint=true)
 
void setAnchored (KWTextFrameSet *textfs, int paragId, int index, bool placeHolderExists=false, bool repaint=true)
 
void setAnchored (KWTextFrameSet *textfs)
 
void setFixed ()
 
bool isFloating () const
 
KWTextFrameSet * anchorFrameset () const
 
void setAnchorFrameset (KWTextFrameSet *textfs)
 
KWAnchor * findAnchor (int frameNum)
 
virtual void setAnchorFormat (KoTextFormat *, int)
 
virtual KWAnchor * createAnchor (KoTextDocument *txt, int frameNum)
 
virtual void moveFloatingFrame (int frameNum, const KoPoint &position)
 
virtual KoSize floatingFrameSize (int frameNum=0)
 
KoRect floatingFrameRect (int frameNum=0)
 
virtual int floatingFrameBaseline (int)
 
virtual KCommand * anchoredObjectCreateCommand (int frameNum)
 
virtual KCommand * anchoredObjectDeleteCommand (int frameNum)
 
void setGroupManager (KWTableFrameSet *gm)
 
KWTableFrameSet * groupmanager () const
 
bool isProtectSize () const
 
void setProtectSize (bool _b)
 
bool isVisible (KWViewMode *viewMode=0L) const
 
TQString name () const
 
void setName (const TQString &name)
 
void setFrameBehavior (KWFrame::FrameBehavior fb)
 
void setNewFrameBehavior (KWFrame::NewFrameBehavior nfb)
 
virtual void printDebug (KWFrame *)
 
bool isPaintedBy (KWFrameSet *fs) const
 
void setPageManager (KWPageManager *pm)
 
KWPageManager * pageManager () const
 

Additional Inherited Members

- Public Types inherited from KWTextFrameSet
enum  RelativePosition { InsideFrame , LeftOfFrame , TopOfFrame , AtEnd }
 
- Public Types inherited from KWFrameSet
enum  Info {
  FI_BODY = 0 , FI_FIRST_HEADER = 1 , FI_EVEN_HEADER = 2 , FI_ODD_HEADER = 3 ,
  FI_FIRST_FOOTER = 4 , FI_EVEN_FOOTER = 5 , FI_ODD_FOOTER = 6 , FI_FOOTNOTE = 7
}
 
enum  UpdateFramesFlags { UpdateFramesInPage = 1 , SortFrames = 2 }
 
- Public Slots inherited from KWTextFrameSet
void slotRepaintChanged ()
 
- Signals inherited from KWTextFrameSet
void frameDeleted (KWFrame *frame)
 
void mainTextHeightChanged ()
 
- Signals inherited from KWFrameSet
void repaintChanged (KWFrameSet *frameset)
 
void sigFrameAdded (KWFrame *)
 
void sigFrameRemoved (KWFrame *)
 
void sigNameChanged (KWFrameSet *)
 
- Static Public Member Functions inherited from KWFrameSet
static KWFrame * settingsFrame (const KWFrame *frame)
 
- Protected Slots inherited from KWTextFrameSet
void slotAvailableHeightNeeded ()
 
void slotAfterFormatting (int bottom, KoTextParag *lastFormatted, bool *abort)
 
void slotNewCommand (KCommand *cmd)
 
void slotParagraphDeleted (KoTextParag *_parag)
 
void slotParagraphCreated (KoTextParag *_parag)
 
void slotParagraphModified (KoTextParag *_parag, int, int, int)
 
- Protected Member Functions inherited from KWTextFrameSet
 KWTextFrameSet (const TQString &name)
 
- Protected Member Functions inherited from KWFrameSet
void saveCommon (TQDomElement &parentElem, bool saveFrames)
 
TQRegion frameClipRegion (TQPainter *painter, KWFrame *frame, const TQRect &crect, KWViewMode *viewMode)
 
void deleteAnchor (KWAnchor *anchor)
 
virtual void deleteAnchors ()
 
virtual void createAnchors (KoTextParag *parag, int index, bool placeHolderExists=false, bool repaint=true)
 
- Protected Attributes inherited from KWFrameSet
KWDocument * m_doc
 
TQPtrList< KWFrame > m_frames
 
TQPtrVector< TQPtrList< KWFrame > > m_framesInPage
 
int m_firstPage
 
TQPtrList< KWFrame > m_emptyList
 
Info m_info
 
KWTableFrameSet * m_groupmanager
 
bool m_visible
 
bool m_protectSize
 
TQString m_name
 
KWTextFrameSet * m_anchorTextFs
 
KWordFrameSetIface * m_dcop
 
KWPageManager * m_pageManager
 

Detailed Description

Table cell.

Note
A cell can be any type of FrameSet, but for now, we only support text!

Definition at line 68 of file KWTableFrameSet.h.

Constructor & Destructor Documentation

◆ Cell() [1/2]

KWTableFrameSet::Cell::Cell ( KWTableFrameSet *  table,
unsigned int  row,
unsigned int  col,
const TQString &  name = TQString() 
)

constructor

Definition at line 2318 of file KWTableFrameSet.cpp.

◆ Cell() [2/2]

KWTableFrameSet::Cell::Cell ( KWTableFrameSet *  table,
const Cell &  original 
)

Definition at line 2333 of file KWTableFrameSet.cpp.

◆ ~Cell()

KWTableFrameSet::Cell::~Cell ( )
virtual

Definition at line 2345 of file KWTableFrameSet.cpp.

Member Function Documentation

◆ addFrame()

void KWTableFrameSet::Cell::addFrame ( KWFrame *  _frame,
bool  recalc = true 
)
virtual

Reimplemented from KWFrameSet.

Definition at line 2362 of file KWTableFrameSet.cpp.

◆ bottomBorder()

double KWTableFrameSet::Cell::bottomBorder ( )

Definition at line 2401 of file KWTableFrameSet.cpp.

◆ clearMark()

void KWTableFrameSet::Cell::clearMark ( )
inline

Definition at line 136 of file KWTableFrameSet.h.

◆ columnAfter()

uint KWTableFrameSet::Cell::columnAfter ( ) const
inline

Definition at line 94 of file KWTableFrameSet.h.

◆ columnSpan()

uint KWTableFrameSet::Cell::columnSpan ( ) const
inline

Definition at line 89 of file KWTableFrameSet.h.

◆ containsCell()

bool KWTableFrameSet::Cell::containsCell ( unsigned  row,
unsigned  column 
) const

Definition at line 2354 of file KWTableFrameSet.cpp.

◆ drawContents()

void KWTableFrameSet::Cell::drawContents ( TQPainter *  painter,
const TQRect &  crect,
const TQColorGroup &  cg,
bool  onlyChanged,
bool  resetChanged,
KWFrameSetEdit *  edit,
KWViewMode *  viewMode,
KWFrameViewManager *  frameViewManager 
)
virtual

Overloaded to not clear any preview borders.

Reimplemented from KWTextFrameSet.

Definition at line 2467 of file KWTableFrameSet.cpp.

◆ firstColumn()

uint KWTableFrameSet::Cell::firstColumn ( ) const
inline

Definition at line 87 of file KWTableFrameSet.h.

◆ firstRow()

uint KWTableFrameSet::Cell::firstRow ( ) const
inline

Definition at line 86 of file KWTableFrameSet.h.

◆ frameDeleted()

void KWTableFrameSet::Cell::frameDeleted ( KWFrame *  frm,
bool  recalc 
)
virtual

Called by deleteFrame when it really deletes a frame (remove=true), to remove it from the table too.

Reimplemented from KWFrameSet.

Definition at line 2368 of file KWTableFrameSet.cpp.

◆ isAboveOrLeftOf()

bool KWTableFrameSet::Cell::isAboveOrLeftOf ( unsigned  row,
unsigned  column 
) const

Definition at line 2349 of file KWTableFrameSet.cpp.

◆ isFirstGridPosn()

bool KWTableFrameSet::Cell::isFirstGridPosn ( uint  row,
uint  col 
) const
inline

Definition at line 107 of file KWTableFrameSet.h.

◆ isFirstGridPosnFast()

bool KWTableFrameSet::Cell::isFirstGridPosnFast ( uint  row,
uint  col 
) const
inline

Definition at line 111 of file KWTableFrameSet.h.

◆ isJoinedCell()

bool KWTableFrameSet::Cell::isJoinedCell ( ) const
inline

Definition at line 135 of file KWTableFrameSet.h.

◆ lastColumn()

uint KWTableFrameSet::Cell::lastColumn ( ) const
inline

Definition at line 92 of file KWTableFrameSet.h.

◆ lastRow()

uint KWTableFrameSet::Cell::lastRow ( ) const
inline

Definition at line 91 of file KWTableFrameSet.h.

◆ leftBorder()

double KWTableFrameSet::Cell::leftBorder ( )

Definition at line 2374 of file KWTableFrameSet.cpp.

◆ marked()

bool KWTableFrameSet::Cell::marked ( ) const
inline

Definition at line 138 of file KWTableFrameSet.h.

◆ rightBorder()

double KWTableFrameSet::Cell::rightBorder ( )

Definition at line 2383 of file KWTableFrameSet.cpp.

◆ rowAfter()

uint KWTableFrameSet::Cell::rowAfter ( ) const
inline

Definition at line 93 of file KWTableFrameSet.h.

◆ rowSpan()

uint KWTableFrameSet::Cell::rowSpan ( ) const
inline

Definition at line 88 of file KWTableFrameSet.h.

◆ setBottomBorder()

void KWTableFrameSet::Cell::setBottomBorder ( KoBorder  newBorder)

Definition at line 2446 of file KWTableFrameSet.cpp.

◆ setColumnSpan()

void KWTableFrameSet::Cell::setColumnSpan ( uint  cols)
inline

Definition at line 102 of file KWTableFrameSet.h.

◆ setFirstColumn()

void KWTableFrameSet::Cell::setFirstColumn ( uint  col)
inline

Definition at line 97 of file KWTableFrameSet.h.

◆ setFirstRow()

void KWTableFrameSet::Cell::setFirstRow ( uint  row)
inline

Definition at line 96 of file KWTableFrameSet.h.

◆ setLeftBorder()

void KWTableFrameSet::Cell::setLeftBorder ( KoBorder  newBorder)

Definition at line 2410 of file KWTableFrameSet.cpp.

◆ setMark()

void KWTableFrameSet::Cell::setMark ( )
inline

Definition at line 137 of file KWTableFrameSet.h.

◆ setRightBorder()

void KWTableFrameSet::Cell::setRightBorder ( KoBorder  newBorder)

Definition at line 2422 of file KWTableFrameSet.cpp.

◆ setRowSpan()

void KWTableFrameSet::Cell::setRowSpan ( uint  rows)
inline

Definition at line 98 of file KWTableFrameSet.h.

◆ setTopBorder()

void KWTableFrameSet::Cell::setTopBorder ( KoBorder  newBorder)

Definition at line 2434 of file KWTableFrameSet.cpp.

◆ setZOrder()

void KWTableFrameSet::Cell::setZOrder ( )
virtual

set zorder for all frames in this cell

Reimplemented from KWFrameSet.

Definition at line 2458 of file KWTableFrameSet.cpp.

◆ topBorder()

double KWTableFrameSet::Cell::topBorder ( )

Definition at line 2392 of file KWTableFrameSet.cpp.


The documentation for this class was generated from the following files: