lib

#include <KoTextView.h>

Inheritance diagram for KoTextView:
KoTextFormatInterface

Public Types

enum  CursorAction {
  MoveBackward , MoveForward , MoveWordBackward , MoveWordForward ,
  MoveUp , MoveDown , MoveLineStart , MoveLineEnd ,
  MoveHome , MoveEnd , MovePgUp , MovePgDown ,
  MoveParagUp , MoveParagDown , MoveViewportUp , MoveViewportDown
}
 

Public Slots

virtual void updateUI (bool updateFormat, bool force=false)
 
virtual void ensureCursorVisible ()=0
 
void showCurrentFormat ()
 
void hideCursor ()
 
void showCursor ()
 
void insertText (const TQString &text)
 
void newParagraph ()
 
void copyLink ()
 
void removeLink ()
 
void completion ()
 
void setCursor (KoTextCursor *_cursor)
 

Signals

void copy ()
 
void cut ()
 
void paste ()
 

Public Member Functions

 KoTextView (KoTextObject *textobj)
 
void setBackSpeller (KoBgSpellCheck *backSpeller)
 
virtual KoTextViewIface * dcopObject ()
 
void terminate (bool removeselection=true)
 
KoTextObject * textObject () const
 
KoTextCursor * cursor () const
 
void setCursor (const KoTextCursor &cursor)
 
KoTextDocument * textDocument () const
 
bool isReadWrite () const
 
void setReadWrite (bool b)
 
virtual KoTextFormat * currentFormat () const
 
void setCurrentFormat (KoTextFormat *fmt)
 
virtual const KoParagLayout * currentParagLayoutFormat () const
 
virtual bool rtl () const
 
virtual KCommand * setChangeCaseOfTextCommand (KoChangeCaseDia::TypeOfCase _type)
 
virtual KCommand * setParagLayoutFormatCommand (KoParagLayout *newLayout, int flags, int marginIndex=-1)
 
virtual KCommand * setFormatCommand (const KoTextFormat *newFormat, int flags, bool zoomFont=false)
 
KCommand * setCounterCommand (const KoParagCounter &counter)
 
KCommand * setAlignCommand (int align)
 
KCommand * setPageBreakingCommand (int pageBreaking)
 
KCommand * setLineSpacingCommand (double spacing, KoParagLayout::SpacingType _type)
 
KCommand * setBordersCommand (const KoBorder &leftBorder, const KoBorder &rightBorder, const KoBorder &bottomBorder, const KoBorder &topBorder)
 
KCommand * setJoinBordersCommand (bool join)
 
KCommand * setMarginCommand (TQStyleSheetItem::Margin m, double margin)
 
KCommand * setTabListCommand (const KoTabulatorList &tabList)
 
KCommand * setBackgroundColorCommand (const TQColor &color)
 
void applyStyle (const KoParagStyle *style)
 
void dragStarted ()
 
void focusInEvent ()
 
void focusOutEvent ()
 
void handleKeyPressEvent (TQKeyEvent *e, TQWidget *, const TQPoint &)
 
void handleKeyReleaseEvent (TQKeyEvent *e)
 
void handleImStartEvent (TQIMEvent *e)
 
void handleImComposeEvent (TQIMEvent *e)
 
void handleImEndEvent (TQIMEvent *e)
 
bool handleMousePressEvent (TQMouseEvent *e, const TQPoint &iPoint, bool canStartDrag=true, bool insertDirectCursor=false)
 
void handleMouseMoveEvent (TQMouseEvent *e, const TQPoint &iPoint)
 
void handleMouseReleaseEvent ()
 
void handleMouseDoubleClickEvent (TQMouseEvent *e, const TQPoint &iPoint)
 
void handleMouseTripleClickEvent (TQMouseEvent *e, const TQPoint &)
 
bool maybeStartDrag (TQMouseEvent *e)
 
KoTextCursor selectWordUnderCursor (const KoTextCursor &cursor, int selectionId=KoTextDocument::Standard)
 
KoTextCursor selectParagUnderCursor (const KoTextCursor &cursor, int selectionId=KoTextDocument::Standard, bool copyAndNotify=true)
 
void extendParagraphSelection (const TQPoint &iPoint)
 
TQString wordUnderCursor (const KoTextCursor &cursor)
 
TQPtrList< TDEAction > dataToolActionList (TDEInstance *instance, const TQString &word, bool &_singleWord)
 
void insertSoftHyphen ()
 
void insertLineBreak ()
 
void insertNonbreakingSpace ()
 
void insertNonbreakingHyphen ()
 
void increaseNumberingLevel (const KoStyleCollection *styleCollection)
 
void decreaseNumberingLevel (const KoStyleCollection *styleCollection)
 
void insertSpecialChar (TQChar _c, const TQString &font)
 
void changeCaseOfText (KoChangeCaseDia::TypeOfCase _type)
 
void addBookmarks (const TQString &)
 
KoVariable * variable ()
 
KoLinkVariable * linkVariable ()
 
KCommand * prepareDropMove (KoTextCursor dropCursor)
 
void removeComment ()
 
void copyTextOfComment ()
 
KoParagStyle * createStyleFromSelection (const TQString &name)
 
void updateStyleFromSelection (KoParagStyle *style)
 
TQString currentWordOrSelection () const
 
virtual void removeToolTipCompletion ()
 
bool placeCursor (const TQPoint &pos, bool insertDirectCursor=false)
 
void setOverwriteMode (bool overwriteMode)
 
void moveCursor (CursorAction action, bool select)
 
bool moveCursor (CursorAction action)
 
- Public Member Functions inherited from KoTextFormatInterface
KoTextDocCommand * deleteTextCommand (KoTextDocument *textdoc, int id, int index, const TQMemArray< KoTextStringChar > &str, const CustomItemsMap &customItemsMap, const TQValueList< KoParagLayout > &oldParagLayouts)
 
void setParagLayoutFormat (KoParagLayout *newLayout, int flags, int marginIndex=-1)
 
void setFormat (KoTextFormat *newFormat, int flags, bool zoomFont=false)
 
KCommand * setBoldCommand (bool on)
 
KCommand * setItalicCommand (bool on)
 
KCommand * setUnderlineCommand (bool on)
 
KCommand * setDoubleUnderlineCommand (bool on)
 
KCommand * setUnderlineColorCommand (const TQColor &color)
 
KCommand * setStrikeOutCommand (bool on)
 
KCommand * setTextColorCommand (const TQColor &color)
 
KCommand * setPointSizeCommand (int s)
 
KCommand * setFamilyCommand (const TQString &font)
 
KCommand * setTextSubScriptCommand (bool on)
 
KCommand * setTextSuperScriptCommand (bool on)
 
KCommand * setDefaultFormatCommand ()
 
KCommand * setTextBackgroundColorCommand (const TQColor &)
 
KCommand * setAlignCommand (int align)
 
KCommand * setMarginCommand (TQStyleSheetItem::Margin m, double margin)
 
KCommand * setTabListCommand (const KoTabulatorList &tabList)
 
KCommand * setBackgroundColorCommand (const TQColor &color)
 
KCommand * setCounterCommand (const KoParagCounter &counter)
 
KCommand * setLanguageCommand (const TQString &)
 
KCommand * setShadowTextCommand (double shadowDistanceX, double shadowDistanceY, const TQColor &shadowColor)
 
KCommand * setHyphenationCommand (bool _b)
 
KCommand * setFontAttributeCommand (KoTextFormat::AttributeStyle _att)
 
KCommand * setRelativeTextSizeCommand (double _size)
 
KCommand * setOffsetFromBaseLineCommand (int _offset)
 
KCommand * setWordByWordCommand (bool _b)
 
TQColor textColor () const
 
TQFont textFont () const
 
TQString textFontFamily () const
 
TQString language () const
 
TQColor textBackgroundColor () const
 
TQColor textUnderlineColor () const
 
KoTextFormat::UnderlineType underlineType () const
 
KoTextFormat::StrikeOutType strikeOutType () const
 
KoTextFormat::UnderlineStyle underlineStyle () const
 
KoTextFormat::StrikeOutStyle strikeOutStyle () const
 
bool textUnderline () const
 
bool textDoubleUnderline () const
 
bool textBold () const
 
bool textStrikeOut () const
 
bool textItalic () const
 
bool textSubScript () const
 
bool textSuperScript () const
 
double shadowDistanceX () const
 
double shadowDistanceY () const
 
TQColor shadowColor () const
 
KoTextFormat::AttributeStyle fontAttribute () const
 
double relativeTextSize () const
 
int offsetFromBaseLine () const
 
bool wordByWord () const
 
bool hyphenation () const
 

Protected Slots

virtual void startDrag ()=0
 
void slotToolActivated (const KDataToolInfo &info, const TQString &command)
 

Protected Member Functions

virtual void doAutoFormat (KoTextCursor *, KoTextParag *, int, TQChar)
 
virtual bool doCompletion (KoTextCursor *, KoTextParag *, int)
 
virtual bool doToolTipCompletion (KoTextCursor *, KoTextParag *, int, int)
 
virtual void showToolTipBox (KoTextParag *, int, TQWidget *, const TQPoint &)
 
virtual void textIncreaseIndent ()
 
virtual bool textDecreaseIndent ()
 
virtual bool doIgnoreDoubleSpace (KoTextParag *, int, TQChar)
 
virtual void showFormat (KoTextFormat *format)=0
 
virtual void drawCursor (bool b)
 
virtual bool openLink (KoLinkVariable *linkVariable)
 
virtual bool pgUpKeyPressed ()=0
 
virtual bool pgDownKeyPressed ()=0
 
virtual void ctrlPgUpKeyPressed ()
 
virtual void ctrlPgDownKeyPressed ()
 
void deleteWordLeft ()
 
void deleteWordRight ()
 
bool insertParagraph (const TQPoint &pos)
 

Protected Attributes

KoTextViewIface * dcop
 

Detailed Description

Object that is created to edit a KoTextObject.

It handles all the events for it (mouse, keyboard). There can be several KoTextView instances for the same KoTextObject.

Definition at line 53 of file KoTextView.h.

Member Enumeration Documentation

◆ CursorAction

enum KoTextView::CursorAction

Definition at line 260 of file KoTextView.h.

Constructor & Destructor Documentation

◆ KoTextView()

KoTextView::KoTextView ( KoTextObject *  textobj)

Constructor.

A KoTextView is associated to a KoTextObject. Don't forget to call updateUI(true,true) in your derived constructor

Definition at line 65 of file KoTextView.cpp.

◆ ~KoTextView()

KoTextView::~KoTextView ( )
virtual

Definition at line 106 of file KoTextView.cpp.

Member Function Documentation

◆ addBookmarks()

void KoTextView::addBookmarks ( const TQString &  url)

Definition at line 1501 of file KoTextView.cpp.

◆ applyStyle()

void KoTextView::applyStyle ( const KoParagStyle *  style)

Definition at line 985 of file KoTextView.cpp.

◆ completion

void KoTextView::completion ( )
slot

Definition at line 489 of file KoTextView.cpp.

◆ copyLink

void KoTextView::copyLink ( )
slot

Definition at line 1511 of file KoTextView.cpp.

◆ copyTextOfComment()

void KoTextView::copyTextOfComment ( )

Definition at line 1446 of file KoTextView.cpp.

◆ createStyleFromSelection()

KoParagStyle * KoTextView::createStyleFromSelection ( const TQString &  name)

Definition at line 1473 of file KoTextView.cpp.

◆ ctrlPgDownKeyPressed()

virtual void KoTextView::ctrlPgDownKeyPressed ( )
inlineprotectedvirtual

Reimplement this to handle CTRL+PageDown.

Default implementation calls pgDownKeyPressed

Definition at line 247 of file KoTextView.h.

◆ ctrlPgUpKeyPressed()

virtual void KoTextView::ctrlPgUpKeyPressed ( )
inlineprotectedvirtual

Reimplement this to handle CTRL+PageUp.

Default implementation calls pgUpKeyPressed

Definition at line 245 of file KoTextView.h.

◆ currentFormat()

virtual KoTextFormat * KoTextView::currentFormat ( ) const
inlinevirtual

Interface for accessing the current format.

Implements KoTextFormatInterface.

Definition at line 84 of file KoTextView.h.

◆ currentParagLayoutFormat()

const KoParagLayout * KoTextView::currentParagLayoutFormat ( ) const
virtual

Use this format for displaying the properties (Align/counter/...) of the object.

Implements KoTextFormatInterface.

Definition at line 1263 of file KoTextView.cpp.

◆ currentWordOrSelection()

TQString KoTextView::currentWordOrSelection ( ) const

Definition at line 1139 of file KoTextView.cpp.

◆ cursor()

KoTextCursor * KoTextView::cursor ( ) const
inline

Definition at line 74 of file KoTextView.h.

◆ dataToolActionList()

TQPtrList< TDEAction > KoTextView::dataToolActionList ( TDEInstance *  instance,
const TQString &  word,
bool &  _singleWord 
)

Return the list of actions from data-tools.

Used to populate a RMB popupmenu usually.

Definition at line 1090 of file KoTextView.cpp.

◆ dcopObject()

KoTextViewIface * KoTextView::dcopObject ( )
virtual

Definition at line 115 of file KoTextView.cpp.

◆ decreaseNumberingLevel()

void KoTextView::decreaseNumberingLevel ( const KoStyleCollection *  styleCollection)

Definition at line 1323 of file KoTextView.cpp.

◆ deleteWordLeft()

void KoTextView::deleteWordLeft ( )
protected

Definition at line 147 of file KoTextView.cpp.

◆ deleteWordRight()

void KoTextView::deleteWordRight ( )
protected

Definition at line 131 of file KoTextView.cpp.

◆ doAutoFormat()

virtual void KoTextView::doAutoFormat ( KoTextCursor *  ,
KoTextParag *  ,
int  ,
TQChar   
)
inlineprotectedvirtual

Called when a character (ch) has been inserted into parag, at the given index.

This is a virtual method rather than a signal for performance reasons.

Definition at line 212 of file KoTextView.h.

◆ doCompletion()

virtual bool KoTextView::doCompletion ( KoTextCursor *  ,
KoTextParag *  ,
int   
)
inlineprotectedvirtual

Definition at line 215 of file KoTextView.h.

◆ doIgnoreDoubleSpace()

virtual bool KoTextView::doIgnoreDoubleSpace ( KoTextParag *  ,
int  ,
TQChar   
)
inlineprotectedvirtual

Definition at line 223 of file KoTextView.h.

◆ doToolTipCompletion()

virtual bool KoTextView::doToolTipCompletion ( KoTextCursor *  ,
KoTextParag *  ,
int  ,
int   
)
inlineprotectedvirtual

Definition at line 216 of file KoTextView.h.

◆ dragStarted()

void KoTextView::dragStarted ( )

Definition at line 979 of file KoTextView.cpp.

◆ drawCursor()

void KoTextView::drawCursor ( bool  b)
protectedvirtual

Draws the cursor (or hides it if b is false).

The default implementation only changes an internal flag, make sure to reimplement and to call the parent implementation (in all cases)

Definition at line 950 of file KoTextView.cpp.

◆ extendParagraphSelection()

void KoTextView::extendParagraphSelection ( const TQPoint &  iPoint)

Definition at line 653 of file KoTextView.cpp.

◆ focusInEvent()

void KoTextView::focusInEvent ( )

Definition at line 956 of file KoTextView.cpp.

◆ focusOutEvent()

void KoTextView::focusOutEvent ( )

Definition at line 963 of file KoTextView.cpp.

◆ handleImComposeEvent()

void KoTextView::handleImComposeEvent ( TQIMEvent *  e)

Definition at line 442 of file KoTextView.cpp.

◆ handleImEndEvent()

void KoTextView::handleImEndEvent ( TQIMEvent *  e)

Definition at line 474 of file KoTextView.cpp.

◆ handleImStartEvent()

void KoTextView::handleImStartEvent ( TQIMEvent *  e)

Definition at line 437 of file KoTextView.cpp.

◆ handleKeyPressEvent()

void KoTextView::handleKeyPressEvent ( TQKeyEvent *  e,
TQWidget *  widget,
const TQPoint &  pos 
)

Definition at line 164 of file KoTextView.cpp.

◆ handleKeyReleaseEvent()

void KoTextView::handleKeyReleaseEvent ( TQKeyEvent *  e)

Definition at line 425 of file KoTextView.cpp.

◆ handleMouseDoubleClickEvent()

void KoTextView::handleMouseDoubleClickEvent ( TQMouseEvent *  e,
const TQPoint &  iPoint 
)

Definition at line 820 of file KoTextView.cpp.

◆ handleMouseMoveEvent()

void KoTextView::handleMouseMoveEvent ( TQMouseEvent *  e,
const TQPoint &  iPoint 
)

Definition at line 752 of file KoTextView.cpp.

◆ handleMousePressEvent()

bool KoTextView::handleMousePressEvent ( TQMouseEvent *  e,
const TQPoint &  iPoint,
bool  canStartDrag = true,
bool  insertDirectCursor = false 
)

Definition at line 689 of file KoTextView.cpp.

◆ handleMouseReleaseEvent()

void KoTextView::handleMouseReleaseEvent ( )

Definition at line 793 of file KoTextView.cpp.

◆ handleMouseTripleClickEvent()

void KoTextView::handleMouseTripleClickEvent ( TQMouseEvent *  e,
const TQPoint &   
)

Definition at line 848 of file KoTextView.cpp.

◆ hideCursor

void KoTextView::hideCursor ( )
inlineslot

Definition at line 185 of file KoTextView.h.

◆ increaseNumberingLevel()

void KoTextView::increaseNumberingLevel ( const KoStyleCollection *  styleCollection)

Definition at line 1281 of file KoTextView.cpp.

◆ insertLineBreak()

void KoTextView::insertLineBreak ( )

Definition at line 1222 of file KoTextView.cpp.

◆ insertNonbreakingHyphen()

void KoTextView::insertNonbreakingHyphen ( )

Definition at line 1234 of file KoTextView.cpp.

◆ insertNonbreakingSpace()

void KoTextView::insertNonbreakingSpace ( )

Definition at line 1228 of file KoTextView.cpp.

◆ insertParagraph()

bool KoTextView::insertParagraph ( const TQPoint &  pos)
protected

Definition at line 877 of file KoTextView.cpp.

◆ insertSoftHyphen()

void KoTextView::insertSoftHyphen ( )

Definition at line 1216 of file KoTextView.cpp.

◆ insertSpecialChar()

void KoTextView::insertSpecialChar ( TQChar  _c,
const TQString &  font 
)

Definition at line 1240 of file KoTextView.cpp.

◆ insertText

void KoTextView::insertText ( const TQString &  text)
slot

This is a slot so that it's accessible from DCOP.

Definition at line 412 of file KoTextView.cpp.

◆ isReadWrite()

bool KoTextView::isReadWrite ( ) const
inline

Return true if the view is allowed to modify the text object.

This is the case by default

Definition at line 80 of file KoTextView.h.

◆ linkVariable()

KoLinkVariable * KoTextView::linkVariable ( )

Definition at line 1085 of file KoTextView.cpp.

◆ maybeStartDrag()

bool KoTextView::maybeStartDrag ( TQMouseEvent *  e)

Definition at line 866 of file KoTextView.cpp.

◆ moveCursor() [1/2]

bool KoTextView::moveCursor ( CursorAction  action)

Definition at line 522 of file KoTextView.cpp.

◆ moveCursor() [2/2]

void KoTextView::moveCursor ( CursorAction  action,
bool  select 
)

Definition at line 495 of file KoTextView.cpp.

◆ newParagraph

void KoTextView::newParagraph ( )
slot

Definition at line 420 of file KoTextView.cpp.

◆ openLink()

bool KoTextView::openLink ( KoLinkVariable *  linkVariable)
protectedvirtual

Called when clicking on a link.

Definition at line 1199 of file KoTextView.cpp.

◆ pgDownKeyPressed()

virtual bool KoTextView::pgDownKeyPressed ( )
protectedpure virtual

Reimplement this to handle PageDown.

Example implementation: textView->cursor()->gotoPageDown( scrollview->visibleHeight() );

◆ pgUpKeyPressed()

virtual bool KoTextView::pgUpKeyPressed ( )
protectedpure virtual

Reimplement this to handle PageUp.

Example implementation: textView->cursor()->gotoPageUp( scrollview->visibleHeight() );

◆ placeCursor()

bool KoTextView::placeCursor ( const TQPoint &  pos,
bool  insertDirectCursor = false 
)

Definition at line 921 of file KoTextView.cpp.

◆ prepareDropMove()

KCommand * KoTextView::prepareDropMove ( KoTextCursor  dropCursor)

A "drop move" will move the selected text to the given cursor position.

This method only takes care of "removing the selected text" if the drop cursor isn't in the selected text (and !protectContent).

Definition at line 1374 of file KoTextView.cpp.

◆ removeComment()

void KoTextView::removeComment ( )

Definition at line 1460 of file KoTextView.cpp.

◆ removeLink

void KoTextView::removeLink ( )
slot

Definition at line 1525 of file KoTextView.cpp.

◆ removeToolTipCompletion()

virtual void KoTextView::removeToolTipCompletion ( )
inlinevirtual

Definition at line 170 of file KoTextView.h.

◆ rtl()

bool KoTextView::rtl ( ) const
virtual

Implements KoTextFormatInterface.

Definition at line 1269 of file KoTextView.cpp.

◆ selectParagUnderCursor()

KoTextCursor KoTextView::selectParagUnderCursor ( const KoTextCursor &  cursor,
int  selectionId = KoTextDocument::Standard,
bool  copyAndNotify = true 
)

Definition at line 634 of file KoTextView.cpp.

◆ selectWordUnderCursor()

KoTextCursor KoTextView::selectWordUnderCursor ( const KoTextCursor &  cursor,
int  selectionId = KoTextDocument::Standard 
)

Definition at line 592 of file KoTextView.cpp.

◆ setAlignCommand()

KCommand * KoTextView::setAlignCommand ( int  align)

Definition at line 1043 of file KoTextView.cpp.

◆ setBackgroundColorCommand()

KCommand * KoTextView::setBackgroundColorCommand ( const TQColor &  color)

Definition at line 1067 of file KoTextView.cpp.

◆ setBackSpeller()

void KoTextView::setBackSpeller ( KoBgSpellCheck *  backSpeller)

Definition at line 1543 of file KoTextView.cpp.

◆ setBordersCommand()

KCommand * KoTextView::setBordersCommand ( const KoBorder &  leftBorder,
const KoBorder &  rightBorder,
const KoBorder &  bottomBorder,
const KoBorder &  topBorder 
)

Definition at line 1051 of file KoTextView.cpp.

◆ setChangeCaseOfTextCommand()

KCommand * KoTextView::setChangeCaseOfTextCommand ( KoChangeCaseDia::TypeOfCase  _type)
virtual

Implements KoTextFormatInterface.

Definition at line 1363 of file KoTextView.cpp.

◆ setCounterCommand()

KCommand * KoTextView::setCounterCommand ( const KoParagCounter &  counter)

Definition at line 1039 of file KoTextView.cpp.

◆ setCurrentFormat()

void KoTextView::setCurrentFormat ( KoTextFormat *  fmt)
inline

Definition at line 85 of file KoTextView.h.

◆ setCursor() [1/2]

void KoTextView::setCursor ( const KoTextCursor &  cursor)
inline

Definition at line 75 of file KoTextView.h.

◆ setCursor [2/2]

void KoTextView::setCursor ( KoTextCursor *  _cursor)
inlineslot

Definition at line 196 of file KoTextView.h.

◆ setFormatCommand()

KCommand * KoTextView::setFormatCommand ( const KoTextFormat *  newFormat,
int  flags,
bool  zoomFont = false 
)
virtual

Implement the KoTextFormatInterface.

Implements KoTextFormatInterface.

Definition at line 974 of file KoTextView.cpp.

◆ setJoinBordersCommand()

KCommand * KoTextView::setJoinBordersCommand ( bool  join)

Definition at line 1055 of file KoTextView.cpp.

◆ setLineSpacingCommand()

KCommand * KoTextView::setLineSpacingCommand ( double  spacing,
KoParagLayout::SpacingType  _type 
)

Definition at line 1047 of file KoTextView.cpp.

◆ setMarginCommand()

KCommand * KoTextView::setMarginCommand ( TQStyleSheetItem::Margin  m,
double  margin 
)

Definition at line 1059 of file KoTextView.cpp.

◆ setOverwriteMode()

void KoTextView::setOverwriteMode ( bool  overwriteMode)

Definition at line 407 of file KoTextView.cpp.

◆ setParagLayoutFormatCommand()

KCommand * KoTextView::setParagLayoutFormatCommand ( KoParagLayout *  newLayout,
int  flags,
int  marginIndex = -1 
)
virtual

Interface for changing the paragraph layout.

Parameters
newLayoutpointer to the new layout to apply
flagsone of the KoParagLayout flags
marginIndextype of margin. Only used if flags==KoParagLayout::Margins

Implements KoTextFormatInterface.

Definition at line 1274 of file KoTextView.cpp.

◆ setReadWrite()

void KoTextView::setReadWrite ( bool  b)
inline

Call setReadWrite(false) to make the text view readonly.

Definition at line 82 of file KoTextView.h.

◆ setTabListCommand()

KCommand * KoTextView::setTabListCommand ( const KoTabulatorList &  tabList)

Definition at line 1063 of file KoTextView.cpp.

◆ showCurrentFormat

void KoTextView::showCurrentFormat ( )
slot

Definition at line 1031 of file KoTextView.cpp.

◆ showCursor

void KoTextView::showCursor ( )
inlineslot

Definition at line 186 of file KoTextView.h.

◆ showFormat()

virtual void KoTextView::showFormat ( KoTextFormat *  format)
protectedpure virtual

Show the settings of this format in the GUI.

Needs to be implemented in the application.

◆ showToolTipBox()

virtual void KoTextView::showToolTipBox ( KoTextParag *  ,
int  ,
TQWidget *  ,
const TQPoint &   
)
inlineprotectedvirtual

Definition at line 217 of file KoTextView.h.

◆ slotToolActivated

void KoTextView::slotToolActivated ( const KDataToolInfo &  info,
const TQString &  command 
)
protectedslot

Definition at line 1147 of file KoTextView.cpp.

◆ startDrag

virtual void KoTextView::startDrag ( )
protectedpure virtualslot

Start a drag.

◆ terminate()

void KoTextView::terminate ( bool  removeselection = true)

Call this before deleting.

don't remove selection when we made dnd between different frame

Definition at line 123 of file KoTextView.cpp.

◆ textDecreaseIndent()

virtual bool KoTextView::textDecreaseIndent ( )
inlineprotectedvirtual

Definition at line 220 of file KoTextView.h.

◆ textDocument()

KoTextDocument * KoTextView::textDocument ( ) const

Definition at line 1072 of file KoTextView.cpp.

◆ textIncreaseIndent()

virtual void KoTextView::textIncreaseIndent ( )
inlineprotectedvirtual

Definition at line 219 of file KoTextView.h.

◆ textObject()

KoTextObject * KoTextView::textObject ( ) const
inline

Definition at line 73 of file KoTextView.h.

◆ updateStyleFromSelection()

void KoTextView::updateStyleFromSelection ( KoParagStyle *  style)

Definition at line 1490 of file KoTextView.cpp.

◆ updateUI

void KoTextView::updateUI ( bool  updateFormat,
bool  force = false 
)
virtualslot

Show the current settings (those for the paragraph and character under the cursor), in the GUI.

The default implementation handles m_currentFormat and calls showCurrentFormat(). If you reimplement, make sure to call KoTextView::updateUI(updateFormat,force);

Definition at line 994 of file KoTextView.cpp.

◆ variable()

KoVariable * KoTextView::variable ( )

Definition at line 1077 of file KoTextView.cpp.

◆ wordUnderCursor()

TQString KoTextView::wordUnderCursor ( const KoTextCursor &  cursor)

Definition at line 678 of file KoTextView.cpp.

Member Data Documentation

◆ dcop

KoTextViewIface* KoTextView::dcop
protected

Definition at line 258 of file KoTextView.h.


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