kpresenter

#include <KPrCanvas.h>

Public Slots

void exitEditMode (bool repaint=true)
void clipCut ()
void clipCopy ()
void clipPaste ()
void deleteObjs ()
void copyObjs ()
void copyOasisObjs ()
void chPic ()
void picViewOriginalSize ()
void picViewOrig640x480 ()
void picViewOrig800x600 ()
void picViewOrig1024x768 ()
void picViewOrig1280x1024 ()
void picViewOrig1600x1200 ()
void picViewOrigFactor ()
void setActivePage (KPrPage *active)
void setPaintGuides (bool state)

Signals

void fontChanged (const TQFont &)
void colorChanged (const TQColor &)
void alignChanged (int)
void stopAutomaticPresentation ()
void restartPresentation ()
void objectSelectedChanged ()
void objectSizeChanged ()
void currentObjectEditChanged ()
void selectionChanged (bool hasSelection)
void sigMouseWheelEvent (TQWheelEvent *)

Public Member Functions

 KPrCanvas (TQWidget *parent=0, const char *name=0, KPrView *_view=0)
 ~KPrCanvas ()
KPrView * getView () const
int diffx () const
int diffy () const
void setDiffX (int _diffX)
void setDiffY (int _diffY)
void scrollX (int x)
void scrollY (int y)
void selectAllObj ()
void deSelectAllObj ()
void selectObj (KPrObject *)
void deSelectObj (KPrObject *)
void setTextFormat (const KoTextFormat &format, int flags)
void setTextColor (const TQColor &)
void setTextBackgroundColor (const TQColor &)
void setTextAlign (int)
void setTextDepthPlus ()
void setTextDepthMinus ()
void setNewRightIndent (double _rightIndent)
void setNewLeftIndent (double _leftIndent)
void setNewFirstIndent (double _firstIndent)
void setTabList (const KoTabulatorList &tabList)
void setTextBold (bool b)
void setTextItalic (bool b)
void setTextUnderline (bool b)
void setTextStrikeOut (bool b)
void setTextFamily (const TQString &f)
void setTextPointSize (int s)
void setTextSubScript (bool b)
void setTextSuperScript (bool b)
void setTextDefaultFormat ()
void setIncreaseFontSize ()
void setDecreaseFontSize ()
KPrTextObject * kpTxtObj () const
void startScreenPresentation (double zoomX, double zoomY, int curPgNum=-1)
void stopScreenPresentation ()
bool pNext (bool gotoNextPage=false)
bool pPrev (bool gotoPreviousPage=false)
unsigned int presPage () const
int presStep () const
int numPresSteps () const
int numPresPages () const
bool canAssignEffect (TQPtrList< KPrObject > &objs) const
void print (TQPainter *, KPrinter *, float, float)
void setPartEntry (KoDocumentEntry &_e)
void setToolEditMode (ToolEditMode _m, bool updateView=true)
void setAutoForm (const TQString &_autoform)
void drawPageInPix (TQPixmap &, int pgnum, int zoom, bool forceRealVariableValue=false, int forceWidth=0, int forceHeight=0)
bool exportPage (int nPage, int nWidth, int nHeight, const KURL &fileURL, const char *format, int quality=-1)
void gotoPage (int pg)
void presGotoFirstPage ()
KPrPage * activePage () const
bool oneObjectTextExist () const
bool oneObjectTextSelected () const
bool isOneObjectSelected () const
TQPtrList< KPrTextObject > selectedTextObjs () const
TQPtrList< KoTextFormatInterface > applicableTextInterfaces () const
TQPtrList< KPrTextObject > applicableTextObjects () const
void setMouseSelectedObject (bool b)
bool haveASelectedPartObj () const
bool haveASelectedGroupObj () const
bool haveASelectedPixmapObj () const
KPrTextView * currentTextObjectView () const
TQPtrList< KPrObject > objectList () const
const TQPtrList< KPrObject > & getObjectList () const
void playSound (const TQString &soundFileName)
void stopSound ()
void dragStarted ()
void setXimPosition (int x, int y, int w, int h, TQFont *f)
void createEditing (KPrTextObject *textObj)
void insertLine (const KoPoint &startPoint, const KoPoint &endPoint)
void insertRect (const KoRect &rect)
void insertEllipse (const KoRect &rect)
void insertPie (const KoRect &rect)
KPrTextObject * insertTextObject (const KoRect &rect)
void insertPicture (const KoRect &rect)
void changePicture (const KURL &url, TQWidget *window)
int numberOfObjectSelected () const
KPrObject * getSelectedObj () const
KPrPixmapObject * getSelectedImage () const
bool getEditMode () const
void ungroupObjects ()
void groupObjects ()
unsigned int objNums () const
void ensureVisible (int x, int y, int xmargin, int ymargin)
KoRect objectRect (bool all) const
void scrollTopLeftPoint (const TQPoint &pos)
void textContentsToHeight ()
void textObjectToContents ()
void flipObject (bool _horizontal)
void lowerObjs (bool backward)
void raiseObjs (bool forward)
void alignObjects (AlignType at)
bool canMoveOneObject () const
TQPtrList< KPrTextObject > listOfTextObjs () const
TQPixmap getPicturePixmap () const
void closeObject (bool _close)
void layout ()
void alignVertical (VerticalAlignmentType _type)
void savePicture ()
void dropImage (TQMimeSource *data, bool resizeImageToOriginalSize=false, int posX=10, int posY=10)
KoGuides & guideLines ()
void objectPopup (KPrObject *object, const TQPoint &point)

Protected Member Functions

virtual void paintEvent (TQPaintEvent *)
void drawBackground (TQPainter *painter, const TQRect &rect, KPrPage *page, bool edit=false) const
void drawAllObjectsInPage (TQPainter *painter, const TQPtrList< KPrObject > &obj, int pageNum) const
void drawObjectsPres (TQPainter *painter, const TQPtrList< KPrObject > &_objects, PresStep step) const
void drawObjectsEdit (TQPainter *painter, const KoRect &rect, const TQPtrList< KPrObject > &_objects, SelectionMode selectionMode, int page) const
void drawObjects (TQPainter *painter, const TQPtrList< KPrObject > &objects, SelectionMode selectionMode, bool contour, KPrTextView *textView, int pageNum) const
void drawEditPage (TQPainter *painter, const TQRect &_rect, KPrPage *page, SelectionMode selectionMode) const
void drawPresPage (TQPainter *painter, const TQRect &_rect, PresStep step) const
void drawGrid (TQPainter *painter, const TQRect &rect2) const
bool finishObjectEffects ()
bool finishPageEffect (bool cancel=false)
void drawCurrentPageInPix (TQPixmap &) const
virtual void mousePressEvent (TQMouseEvent *e)
virtual void mouseReleaseEvent (TQMouseEvent *e)
virtual void mouseMoveEvent (TQMouseEvent *e)
virtual void mouseDoubleClickEvent (TQMouseEvent *e)
virtual void wheelEvent (TQWheelEvent *e)
virtual void resizeEvent (TQResizeEvent *e)
virtual bool close (bool alsoDelete)
KPrObject * getObjectAt (const KoPoint &pos, bool withoutProtected=false)
virtual void focusInEvent (TQFocusEvent *)
virtual void focusOutEvent (TQFocusEvent *)
virtual void enterEvent (TQEvent *e)
virtual void leaveEvent (TQEvent *e)
virtual void dragEnterEvent (TQDragEnterEvent *e)
virtual void dragMoveEvent (TQDragMoveEvent *e)
virtual void dropEvent (TQDropEvent *e)
virtual void keyPressEvent (TQKeyEvent *e)
virtual void keyReleaseEvent (TQKeyEvent *e)
virtual void imStartEvent (TQIMEvent *e)
virtual void imComposeEvent (TQIMEvent *e)
virtual void imEndEvent (TQIMEvent *e)
void eraseEmptySpace (TQPainter *painter, const TQRegion &emptySpaceRegion, const TQBrush &brush) const
void setupMenus ()
unsigned int currPgNum () const
TQColor txtBackCol () const
bool spInfiniteLoop () const
bool spShowEndOfPresentationSlide () const
bool spManualSwitch () const
TQRect getPageRect (bool decBorders=true) const
unsigned int pageNums () const
void _repaint (bool erase=true)
void _repaint (const TQRect &r)
void _repaint (KPrObject *o)
void printPage (TQPainter *, PresStep step, KPrinter *printer, int rows, int cols)
void doObjEffects (bool isAllreadyPainted=false)
KPrPartObject * insertObject (const KoRect &rect)
void insertAutoform (const KoRect &rect)
void insertFreehand (const KoPointArray &_pointArray)
void insertPolyline (const KoPointArray &_pointArray)
void insertCubicBezierCurve (const KoPointArray &_pointArray)
void insertPolygon (const KoPointArray &_pointArray)
void insertClosedLine (const KoPointArray &_pointArray)
void selectNext ()
void selectPrev ()
void scalePixmapToBeOrigIn (const KoSize &currentSize, const KoSize &pgSize, const TQSize &presSize, KPrPixmapObject *obj)
bool getPixmapOrigAndCurrentSize (KPrPixmapObject *&obj, KoSize *origSize, KoSize *currentSize)
void setTextBackground (KPrTextObject *obj)
virtual bool eventFilter (TQObject *o, TQEvent *e)
virtual bool focusNextPrevChild (bool)
void endDrawPolyline ()
void drawCubicBezierCurve (TQPainter &p, KoPointArray &points)
void endDrawCubicBezierCurve ()
void redrawCubicBezierCurve (TQPainter &p)
void printRTDebug (int info)
KoRect getAlignBoundingRect () const

Detailed Description

Class KPCanvas - There is a single instance of this class for a given view.

It manages the graphical representation of all the objects.

Definition at line 81 of file KPrCanvas.h.

Constructor & Destructor Documentation

◆ KPrCanvas()

KPrCanvas::KPrCanvas ( TQWidget * parent = 0,
const char * name = 0,
KPrView * _view = 0 )

constructor

Definition at line 95 of file KPrCanvas.cpp.

◆ ~KPrCanvas()

KPrCanvas::~KPrCanvas ( )

destructor

Definition at line 176 of file KPrCanvas.cpp.

Member Function Documentation

◆ _repaint() [1/3]

void KPrCanvas::_repaint ( bool erase = true)
protected

Definition at line 4288 of file KPrCanvas.cpp.

◆ _repaint() [2/3]

void KPrCanvas::_repaint ( const TQRect & r)
protected

Definition at line 4293 of file KPrCanvas.cpp.

◆ _repaint() [3/3]

void KPrCanvas::_repaint ( KPrObject * o)
protected

Definition at line 4298 of file KPrCanvas.cpp.

◆ activePage()

KPrPage * KPrCanvas::activePage ( ) const

Definition at line 5210 of file KPrCanvas.cpp.

◆ alignObjects()

void KPrCanvas::alignObjects ( AlignType at)

Align objects.

This will align all selected non protected objects according to the align type at.

Parameters
atthe align type

Definition at line 5464 of file KPrCanvas.cpp.

◆ alignVertical()

void KPrCanvas::alignVertical ( VerticalAlignmentType _type)

Definition at line 5594 of file KPrCanvas.cpp.

◆ applicableTextInterfaces()

TQPtrList< KoTextFormatInterface > KPrCanvas::applicableTextInterfaces ( ) const

Returns the list of interfaces to use for changing the text format.

This can be either the currently edited text object, or the list of text objects currently selected

Definition at line 2877 of file KPrCanvas.cpp.

◆ applicableTextObjects()

TQPtrList< KPrTextObject > KPrCanvas::applicableTextObjects ( ) const

Returns the list of text objects, either selected or activated.

Definition at line 2866 of file KPrCanvas.cpp.

◆ canAssignEffect()

bool KPrCanvas::canAssignEffect ( TQPtrList< KPrObject > & objs) const

Definition at line 3213 of file KPrCanvas.cpp.

◆ canMoveOneObject()

bool KPrCanvas::canMoveOneObject ( ) const

Definition at line 5514 of file KPrCanvas.cpp.

◆ changePicture()

void KPrCanvas::changePicture ( const KURL & url,
TQWidget * window )

Definition at line 5273 of file KPrCanvas.cpp.

◆ chPic

void KPrCanvas::chPic ( )
slot

Definition at line 2344 of file KPrCanvas.cpp.

◆ clipCopy

void KPrCanvas::clipCopy ( )
slot

Definition at line 2330 of file KPrCanvas.cpp.

◆ clipCut

void KPrCanvas::clipCut ( )
slot

Definition at line 2323 of file KPrCanvas.cpp.

◆ clipPaste

void KPrCanvas::clipPaste ( )
slot

Definition at line 2337 of file KPrCanvas.cpp.

◆ close()

bool KPrCanvas::close ( bool alsoDelete)
protectedvirtual

Definition at line 2221 of file KPrCanvas.cpp.

◆ closeObject()

void KPrCanvas::closeObject ( bool _close)

Definition at line 5519 of file KPrCanvas.cpp.

◆ copyOasisObjs

void KPrCanvas::copyOasisObjs ( )
slot

Definition at line 4137 of file KPrCanvas.cpp.

◆ copyObjs

void KPrCanvas::copyObjs ( )
slot

Definition at line 4151 of file KPrCanvas.cpp.

◆ createEditing()

void KPrCanvas::createEditing ( KPrTextObject * textObj)

Definition at line 5036 of file KPrCanvas.cpp.

◆ currentObjectEditChanged

void KPrCanvas::currentObjectEditChanged ( )
signal

Emitted when the current frameset edit changes.

◆ currentTextObjectView()

KPrTextView * KPrCanvas::currentTextObjectView ( ) const
inline

Definition at line 253 of file KPrCanvas.h.

◆ currPgNum()

unsigned int KPrCanvas::currPgNum ( ) const
protected

Definition at line 4253 of file KPrCanvas.cpp.

◆ deleteObjs

void KPrCanvas::deleteObjs ( )
slot

Definition at line 4220 of file KPrCanvas.cpp.

◆ deSelectAllObj()

void KPrCanvas::deSelectAllObj ( )

Definition at line 2279 of file KPrCanvas.cpp.

◆ deSelectObj()

void KPrCanvas::deSelectObj ( KPrObject * kpobject)

Definition at line 2252 of file KPrCanvas.cpp.

◆ diffx()

int KPrCanvas::diffx ( ) const
inline

Definition at line 98 of file KPrCanvas.h.

◆ diffy()

int KPrCanvas::diffy ( ) const
inline

Definition at line 99 of file KPrCanvas.h.

◆ doObjEffects()

void KPrCanvas::doObjEffects ( bool isAllreadyPainted = false)
protected

This method animates the objects in the presentation.

Definition at line 3388 of file KPrCanvas.cpp.

◆ dragEnterEvent()

void KPrCanvas::dragEnterEvent ( TQDragEnterEvent * e)
protectedvirtual

Definition at line 3933 of file KPrCanvas.cpp.

◆ dragMoveEvent()

void KPrCanvas::dragMoveEvent ( TQDragMoveEvent * e)
protectedvirtual

Definition at line 3946 of file KPrCanvas.cpp.

◆ dragStarted()

void KPrCanvas::dragStarted ( )
inline

for KPrTextView

Definition at line 264 of file KPrCanvas.h.

◆ drawAllObjectsInPage()

void KPrCanvas::drawAllObjectsInPage ( TQPainter * painter,
const TQPtrList< KPrObject > & obj,
int pageNum ) const
protected

Draw obj to painter.

Definition at line 653 of file KPrCanvas.cpp.

◆ drawBackground()

void KPrCanvas::drawBackground ( TQPainter * painter,
const TQRect & rect,
KPrPage * page,
bool edit = false ) const
protected

Draws the background of page to painter.

Set edit to true if in edit mode, false in presentation mode.

Definition at line 457 of file KPrCanvas.cpp.

◆ drawCubicBezierCurve()

void KPrCanvas::drawCubicBezierCurve ( TQPainter & p,
KoPointArray & points )
protected

Draw a cubic bezier curve.

Definition at line 5060 of file KPrCanvas.cpp.

◆ drawCurrentPageInPix()

void KPrCanvas::drawCurrentPageInPix ( TQPixmap & _pix) const
protected

Definition at line 3321 of file KPrCanvas.cpp.

◆ drawEditPage()

void KPrCanvas::drawEditPage ( TQPainter * painter,
const TQRect & _rect,
KPrPage * page,
SelectionMode selectionMode ) const
protected

Draw _objects of page to painter.

This method is used for edit mode.

Definition at line 600 of file KPrCanvas.cpp.

◆ drawGrid()

void KPrCanvas::drawGrid ( TQPainter * painter,
const TQRect & rect2 ) const
protected

draw grid

Definition at line 627 of file KPrCanvas.cpp.

◆ drawObjects()

void KPrCanvas::drawObjects ( TQPainter * painter,
const TQPtrList< KPrObject > & objects,
SelectionMode selectionMode,
bool contour,
KPrTextView * textView,
int pageNum ) const
protected

Draw _objects to painter.

contour if true only countor of selected objects is drawn selectionMode selected objects use this selection mode textView if set print editable textobject (used by drawObjectsEdit) This method is used by drawObjectsPres and drawObjectsEdit.

Definition at line 517 of file KPrCanvas.cpp.

◆ drawObjectsEdit()

void KPrCanvas::drawObjectsEdit ( TQPainter * painter,
const KoRect & rect,
const TQPtrList< KPrObject > & _objects,
SelectionMode selectionMode,
int page ) const
protected

Draw _objects to painter.

Only rect is painted. This method is used for edit mode.

Definition at line 574 of file KPrCanvas.cpp.

◆ drawObjectsPres()

void KPrCanvas::drawObjectsPres ( TQPainter * painter,
const TQPtrList< KPrObject > & _objects,
PresStep step ) const
protected

Draw _objects shown at step to painter.

This method is used for presentation mode, printing.

Definition at line 544 of file KPrCanvas.cpp.

◆ drawPageInPix()

void KPrCanvas::drawPageInPix ( TQPixmap & _pix,
int pgnum,
int zoom,
bool forceRealVariableValue = false,
int forceWidth = 0,
int forceHeight = 0 )

Draw page into TQPixmap.

Draws page pgnum of the currently open presentation into a TQPixmap using the specified zoom factor (or fixed width/height dimensions, resp.)

Set forceWidth and/or forceHeight to override the zoom factor and obtain a pixmap of the specified width and/or height. By omitting one of them you make sure that the aspect ratio of your page is used for the resulting image.

See also
exportPage

Definition at line 3238 of file KPrCanvas.cpp.

◆ drawPresPage()

void KPrCanvas::drawPresPage ( TQPainter * painter,
const TQRect & _rect,
PresStep step ) const
protected

Draw _objects of page shown at step to painter.

This method is used for presentation mode, printing.

Definition at line 614 of file KPrCanvas.cpp.

◆ dropEvent()

void KPrCanvas::dropEvent ( TQDropEvent * e)
protectedvirtual

Definition at line 4000 of file KPrCanvas.cpp.

◆ dropImage()

void KPrCanvas::dropImage ( TQMimeSource * data,
bool resizeImageToOriginalSize = false,
int posX = 10,
int posY = 10 )

Definition at line 3970 of file KPrCanvas.cpp.

◆ endDrawCubicBezierCurve()

void KPrCanvas::endDrawCubicBezierCurve ( )
protected

Definition at line 3881 of file KPrCanvas.cpp.

◆ endDrawPolyline()

void KPrCanvas::endDrawPolyline ( )
protected

Definition at line 3864 of file KPrCanvas.cpp.

◆ ensureVisible()

void KPrCanvas::ensureVisible ( int x,
int y,
int xmargin,
int ymargin )

Definition at line 5284 of file KPrCanvas.cpp.

◆ enterEvent()

void KPrCanvas::enterEvent ( TQEvent * e)
protectedvirtual

Definition at line 4232 of file KPrCanvas.cpp.

◆ eraseEmptySpace()

void KPrCanvas::eraseEmptySpace ( TQPainter * painter,
const TQRegion & emptySpaceRegion,
const TQBrush & brush ) const
protected

Definition at line 505 of file KPrCanvas.cpp.

◆ eventFilter()

bool KPrCanvas::eventFilter ( TQObject * o,
TQEvent * e )
protectedvirtual

Definition at line 211 of file KPrCanvas.cpp.

◆ exitEditMode

void KPrCanvas::exitEditMode ( bool repaint = true)
slot

Definition at line 4330 of file KPrCanvas.cpp.

◆ exportPage()

bool KPrCanvas::exportPage ( int nPage,
int nWidth,
int nHeight,
const KURL & fileURL,
const char * format,
int quality = -1 )
\brief Save page to bitmap file.

Export a page of the currently open presentation to disk
using a bitmap format like e.g. PNG.
This method uses a TQPixmap::save() call.

\param nPage the internally used <b>0-based</b> page number
\param nWidth the desired image width in px
\param nHeight the desired image height in px
\param fileURL the URL of the image file to be created: if this
  does not point to a local file a KTempFile is created by TQPixmap::save()
  which is then copied over to the desired location.
\param format the format of the image file (see TQPixmap::save())
 \param quality the quality of the image (see TQPixmap::save())

example:
exportPage( 0, s, 800, 600, "/home/khz/page0.png", "PNG", 100 );
Returns
True if the file was written successfully.
See also
drawPageInPix, KPrViewIface::exportPage

Definition at line 2349 of file KPrCanvas.cpp.

◆ finishObjectEffects()

bool KPrCanvas::finishObjectEffects ( )
protected

Finish the object effects.

This shown the last step of the effect. It stops the effect timer and disconnect it and the effect handler deleted.

Definition at line 3497 of file KPrCanvas.cpp.

◆ finishPageEffect()

bool KPrCanvas::finishPageEffect ( bool cancel = false)
protected

Definition at line 3513 of file KPrCanvas.cpp.

◆ flipObject()

void KPrCanvas::flipObject ( bool _horizontal)

Definition at line 5362 of file KPrCanvas.cpp.

◆ focusInEvent()

virtual void KPrCanvas::focusInEvent ( TQFocusEvent * )
inlineprotectedvirtual

Definition at line 519 of file KPrCanvas.h.

◆ focusNextPrevChild()

bool KPrCanvas::focusNextPrevChild ( bool )
protectedvirtual

Definition at line 278 of file KPrCanvas.cpp.

◆ focusOutEvent()

virtual void KPrCanvas::focusOutEvent ( TQFocusEvent * )
inlineprotectedvirtual

Definition at line 520 of file KPrCanvas.h.

◆ getAlignBoundingRect()

KoRect KPrCanvas::getAlignBoundingRect ( ) const
protected

Definition at line 1121 of file KPrCanvas.cpp.

◆ getEditMode()

bool KPrCanvas::getEditMode ( ) const
inline

Definition at line 318 of file KPrCanvas.h.

◆ getObjectAt()

KPrObject * KPrCanvas::getObjectAt ( const KoPoint & pos,
bool withoutProtected = false )
protected

Returns the object at position pos.

Parameters
posthe position in the document on which to look
withoutProtectedif set to true only unprotecred objects are returned
Returns
the object at position pos

Definition at line 2234 of file KPrCanvas.cpp.

◆ getObjectList()

const TQPtrList< KPrObject > & KPrCanvas::getObjectList ( ) const

Definition at line 4248 of file KPrCanvas.cpp.

◆ getPageRect()

TQRect KPrCanvas::getPageRect ( bool decBorders = true) const
protected

Definition at line 4278 of file KPrCanvas.cpp.

◆ getPixmapOrigAndCurrentSize()

bool KPrCanvas::getPixmapOrigAndCurrentSize ( KPrPixmapObject *& obj,
KoSize * origSize,
KoSize * currentSize )
protected

Definition at line 4369 of file KPrCanvas.cpp.

◆ getSelectedImage()

KPrPixmapObject * KPrCanvas::getSelectedImage ( ) const

Definition at line 5601 of file KPrCanvas.cpp.

◆ getSelectedObj()

KPrObject * KPrCanvas::getSelectedObj ( ) const

Definition at line 5243 of file KPrCanvas.cpp.

◆ getView()

KPrView * KPrCanvas::getView ( ) const
inline

Definition at line 93 of file KPrCanvas.h.

◆ gotoPage()

void KPrCanvas::gotoPage ( int pg)

Definition at line 4099 of file KPrCanvas.cpp.

◆ groupObjects()

void KPrCanvas::groupObjects ( )

Definition at line 5257 of file KPrCanvas.cpp.

◆ guideLines()

KoGuides & KPrCanvas::guideLines ( )
inline

Definition at line 367 of file KPrCanvas.h.

◆ haveASelectedGroupObj()

bool KPrCanvas::haveASelectedGroupObj ( ) const

Definition at line 2856 of file KPrCanvas.cpp.

◆ haveASelectedPartObj()

bool KPrCanvas::haveASelectedPartObj ( ) const

Definition at line 2851 of file KPrCanvas.cpp.

◆ haveASelectedPixmapObj()

bool KPrCanvas::haveASelectedPixmapObj ( ) const

Definition at line 2861 of file KPrCanvas.cpp.

◆ imComposeEvent()

void KPrCanvas::imComposeEvent ( TQIMEvent * e)
protectedvirtual

Definition at line 2191 of file KPrCanvas.cpp.

◆ imEndEvent()

void KPrCanvas::imEndEvent ( TQIMEvent * e)
protectedvirtual

Definition at line 2200 of file KPrCanvas.cpp.

◆ imStartEvent()

void KPrCanvas::imStartEvent ( TQIMEvent * e)
protectedvirtual

Definition at line 2180 of file KPrCanvas.cpp.

◆ insertAutoform()

void KPrCanvas::insertAutoform ( const KoRect & rect)
protected

Add a autoform object.

Parameters
rectthe size and position of the autoform object

Definition at line 3713 of file KPrCanvas.cpp.

◆ insertClosedLine()

void KPrCanvas::insertClosedLine ( const KoPointArray & _pointArray)
protected

Definition at line 3817 of file KPrCanvas.cpp.

◆ insertCubicBezierCurve()

void KPrCanvas::insertCubicBezierCurve ( const KoPointArray & _pointArray)
protected

Definition at line 3750 of file KPrCanvas.cpp.

◆ insertEllipse()

void KPrCanvas::insertEllipse ( const KoRect & rect)

Add a ellipse.

Parameters
rectthe size and position of the ellipse

Definition at line 3697 of file KPrCanvas.cpp.

◆ insertFreehand()

void KPrCanvas::insertFreehand ( const KoPointArray & _pointArray)
protected

Definition at line 3727 of file KPrCanvas.cpp.

◆ insertLine()

void KPrCanvas::insertLine ( const KoPoint & startPoint,
const KoPoint & endPoint )

Add a line.

Parameters
startPointthe start point of the line
endPointthe end point of the line

Definition at line 3661 of file KPrCanvas.cpp.

◆ insertObject()

KPrPartObject * KPrCanvas::insertObject ( const KoRect & rect)
protected

Add a object.

Parameters
rectthe size and position of the object

Definition at line 3721 of file KPrCanvas.cpp.

◆ insertPicture()

void KPrCanvas::insertPicture ( const KoRect & rect)

Add a picture.

Parameters
rectthe size and position of the picture

Definition at line 3796 of file KPrCanvas.cpp.

◆ insertPie()

void KPrCanvas::insertPie ( const KoRect & rect)

Add a pie/arc/chord.

Parameters
rectthe size and position of the pie/arc/chord

Definition at line 3704 of file KPrCanvas.cpp.

◆ insertPolygon()

void KPrCanvas::insertPolygon ( const KoPointArray & _pointArray)
protected

Definition at line 3783 of file KPrCanvas.cpp.

◆ insertPolyline()

void KPrCanvas::insertPolyline ( const KoPointArray & _pointArray)
protected

Definition at line 3738 of file KPrCanvas.cpp.

◆ insertRect()

void KPrCanvas::insertRect ( const KoRect & rect)

Add a rectangle.

Parameters
rectthe size and position of the rectangle

Definition at line 3690 of file KPrCanvas.cpp.

◆ insertTextObject()

KPrTextObject * KPrCanvas::insertTextObject ( const KoRect & rect)

Add a text object.

Parameters
rectthe size and position of the text object

Definition at line 3654 of file KPrCanvas.cpp.

◆ isOneObjectSelected()

bool KPrCanvas::isOneObjectSelected ( ) const

Definition at line 3227 of file KPrCanvas.cpp.

◆ keyPressEvent()

void KPrCanvas::keyPressEvent ( TQKeyEvent * e)
protectedvirtual

Definition at line 1927 of file KPrCanvas.cpp.

◆ keyReleaseEvent()

void KPrCanvas::keyReleaseEvent ( TQKeyEvent * e)
protectedvirtual

Definition at line 2156 of file KPrCanvas.cpp.

◆ kpTxtObj()

KPrTextObject * KPrCanvas::kpTxtObj ( ) const

Definition at line 4130 of file KPrCanvas.cpp.

◆ layout()

void KPrCanvas::layout ( )

Definition at line 5538 of file KPrCanvas.cpp.

◆ leaveEvent()

void KPrCanvas::leaveEvent ( TQEvent * e)
protectedvirtual

Definition at line 4238 of file KPrCanvas.cpp.

◆ listOfTextObjs()

TQPtrList< KPrTextObject > KPrCanvas::listOfTextObjs ( ) const

Definition at line 5397 of file KPrCanvas.cpp.

◆ lowerObjs()

void KPrCanvas::lowerObjs ( bool backward)

Definition at line 5385 of file KPrCanvas.cpp.

◆ mouseDoubleClickEvent()

void KPrCanvas::mouseDoubleClickEvent ( TQMouseEvent * e)
protectedvirtual

Definition at line 1817 of file KPrCanvas.cpp.

◆ mouseMoveEvent()

void KPrCanvas::mouseMoveEvent ( TQMouseEvent * e)
protectedvirtual

Definition at line 1391 of file KPrCanvas.cpp.

◆ mousePressEvent()

void KPrCanvas::mousePressEvent ( TQMouseEvent * e)
protectedvirtual

Definition at line 677 of file KPrCanvas.cpp.

◆ mouseReleaseEvent()

void KPrCanvas::mouseReleaseEvent ( TQMouseEvent * e)
protectedvirtual

Definition at line 1139 of file KPrCanvas.cpp.

◆ numberOfObjectSelected()

int KPrCanvas::numberOfObjectSelected ( ) const

Definition at line 5237 of file KPrCanvas.cpp.

◆ numPresPages()

int KPrCanvas::numPresPages ( ) const
inline

Definition at line 161 of file KPrCanvas.h.

◆ numPresSteps()

int KPrCanvas::numPresSteps ( ) const
inline

Definition at line 160 of file KPrCanvas.h.

◆ objectList()

TQPtrList< KPrObject > KPrCanvas::objectList ( ) const

Definition at line 4243 of file KPrCanvas.cpp.

◆ objectPopup()

void KPrCanvas::objectPopup ( KPrObject * object,
const TQPoint & point )

Open the object popup.

Parameters
objectthe selected object
pointwhere the popup should be displayed

Definition at line 5617 of file KPrCanvas.cpp.

◆ objectRect()

KoRect KPrCanvas::objectRect ( bool all) const

get the rect for the objects

Parameters
alltrue if the rect for all objects shoud be returned false if only the rect for selected objects sould be returned
Returns
rect of the objects

Definition at line 5262 of file KPrCanvas.cpp.

◆ objNums()

unsigned int KPrCanvas::objNums ( ) const

Definition at line 5278 of file KPrCanvas.cpp.

◆ oneObjectTextExist()

bool KPrCanvas::oneObjectTextExist ( ) const

Definition at line 5205 of file KPrCanvas.cpp.

◆ oneObjectTextSelected()

bool KPrCanvas::oneObjectTextSelected ( ) const

Definition at line 5200 of file KPrCanvas.cpp.

◆ pageNums()

unsigned int KPrCanvas::pageNums ( ) const
protected

Definition at line 4283 of file KPrCanvas.cpp.

◆ paintEvent()

void KPrCanvas::paintEvent ( TQPaintEvent * paintEvent)
protectedvirtual

This method is used for repainting the canvas.

Definition at line 283 of file KPrCanvas.cpp.

◆ picViewOrig1024x768

void KPrCanvas::picViewOrig1024x768 ( )
slot

Definition at line 4411 of file KPrCanvas.cpp.

◆ picViewOrig1280x1024

void KPrCanvas::picViewOrig1280x1024 ( )
slot

Definition at line 4416 of file KPrCanvas.cpp.

◆ picViewOrig1600x1200

void KPrCanvas::picViewOrig1600x1200 ( )
slot

Definition at line 4421 of file KPrCanvas.cpp.

◆ picViewOrig640x480

void KPrCanvas::picViewOrig640x480 ( )
slot

Definition at line 4401 of file KPrCanvas.cpp.

◆ picViewOrig800x600

void KPrCanvas::picViewOrig800x600 ( )
slot

Definition at line 4406 of file KPrCanvas.cpp.

◆ picViewOrigFactor

void KPrCanvas::picViewOrigFactor ( )
slot

Definition at line 4448 of file KPrCanvas.cpp.

◆ picViewOriginalSize

void KPrCanvas::picViewOriginalSize ( )
slot

Definition at line 4376 of file KPrCanvas.cpp.

◆ playSound()

void KPrCanvas::playSound ( const TQString & soundFileName)

Definition at line 5014 of file KPrCanvas.cpp.

◆ pNext()

bool KPrCanvas::pNext ( bool gotoNextPage = false)

Go to the next step in the presentation.

gotoNextPage: if is set to true go to beginning of the next page.

Definition at line 2997 of file KPrCanvas.cpp.

◆ pPrev()

bool KPrCanvas::pPrev ( bool gotoPreviousPage = false)

Go to previous step of the presentation.

gotoPreviousPage: if is set to true go to beginning of the previous page.

Definition at line 3163 of file KPrCanvas.cpp.

◆ presGotoFirstPage()

void KPrCanvas::presGotoFirstPage ( )

Go to first slide of presentation.

Used in presentation mode.

Definition at line 4125 of file KPrCanvas.cpp.

◆ presPage()

unsigned int KPrCanvas::presPage ( ) const
inline

returns the current page of the presentation 1 based

Definition at line 157 of file KPrCanvas.h.

◆ presStep()

int KPrCanvas::presStep ( ) const
inline

returns the current step of the presentation

Definition at line 159 of file KPrCanvas.h.

◆ print()

void KPrCanvas::print ( TQPainter * painter,
KPrinter * printer,
float ,
float  )

Definition at line 3541 of file KPrCanvas.cpp.

◆ printPage()

void KPrCanvas::printPage ( TQPainter * painter,
PresStep step,
KPrinter * printer,
int rows,
int cols )
protected

Draw page defined in step to painter.

This method is used for printing a presentation.

Definition at line 3338 of file KPrCanvas.cpp.

◆ printRTDebug()

void KPrCanvas::printRTDebug ( int info)
protected

Definition at line 2839 of file KPrCanvas.cpp.

◆ raiseObjs()

void KPrCanvas::raiseObjs ( bool forward)

Definition at line 5391 of file KPrCanvas.cpp.

◆ redrawCubicBezierCurve()

void KPrCanvas::redrawCubicBezierCurve ( TQPainter & p)
protected

Redraw the curve defined in m_pointArray.

Parameters
ppainter used for drawing

Definition at line 5098 of file KPrCanvas.cpp.

◆ resizeEvent()

void KPrCanvas::resizeEvent ( TQResizeEvent * e)
protectedvirtual

Definition at line 2209 of file KPrCanvas.cpp.

◆ restartPresentation

void KPrCanvas::restartPresentation ( )
signal

Emmitted when presentation should be restarted This is used in automatic screen and infinite loop mode.

◆ savePicture()

void KPrCanvas::savePicture ( )

Definition at line 2399 of file KPrCanvas.cpp.

◆ scalePixmapToBeOrigIn()

void KPrCanvas::scalePixmapToBeOrigIn ( const KoSize & currentSize,
const KoSize & pgSize,
const TQSize & presSize,
KPrPixmapObject * obj )
protected

Definition at line 4452 of file KPrCanvas.cpp.

◆ scrollTopLeftPoint()

void KPrCanvas::scrollTopLeftPoint ( const TQPoint & pos)

Definition at line 5267 of file KPrCanvas.cpp.

◆ scrollX()

void KPrCanvas::scrollX ( int x)

Definition at line 191 of file KPrCanvas.cpp.

◆ scrollY()

void KPrCanvas::scrollY ( int y)

Definition at line 201 of file KPrCanvas.cpp.

◆ selectAllObj()

void KPrCanvas::selectAllObj ( )

Definition at line 2264 of file KPrCanvas.cpp.

◆ selectedTextObjs()

TQPtrList< KPrTextObject > KPrCanvas::selectedTextObjs ( ) const

Returns the list of selected text objects.

Definition at line 2903 of file KPrCanvas.cpp.

◆ selectNext()

void KPrCanvas::selectNext ( )
protected

Definition at line 3894 of file KPrCanvas.cpp.

◆ selectObj()

void KPrCanvas::selectObj ( KPrObject * kpobject)

Definition at line 2243 of file KPrCanvas.cpp.

◆ selectPrev()

void KPrCanvas::selectPrev ( )
protected

Definition at line 3914 of file KPrCanvas.cpp.

◆ setActivePage

void KPrCanvas::setActivePage ( KPrPage * active)
slot

Definition at line 5215 of file KPrCanvas.cpp.

◆ setAutoForm()

void KPrCanvas::setAutoForm ( const TQString & _autoform)
inline

Definition at line 171 of file KPrCanvas.h.

◆ setDecreaseFontSize()

void KPrCanvas::setDecreaseFontSize ( )

Definition at line 2644 of file KPrCanvas.cpp.

◆ setDiffX()

void KPrCanvas::setDiffX ( int _diffX)
inline

Definition at line 100 of file KPrCanvas.h.

◆ setDiffY()

void KPrCanvas::setDiffY ( int _diffY)
inline

Definition at line 101 of file KPrCanvas.h.

◆ setIncreaseFontSize()

void KPrCanvas::setIncreaseFontSize ( )

Definition at line 2624 of file KPrCanvas.cpp.

◆ setMouseSelectedObject()

void KPrCanvas::setMouseSelectedObject ( bool b)

Definition at line 2300 of file KPrCanvas.cpp.

◆ setNewFirstIndent()

void KPrCanvas::setNewFirstIndent ( double _firstIndent)

Definition at line 2762 of file KPrCanvas.cpp.

◆ setNewLeftIndent()

void KPrCanvas::setNewLeftIndent ( double _leftIndent)

Definition at line 2781 of file KPrCanvas.cpp.

◆ setNewRightIndent()

void KPrCanvas::setNewRightIndent ( double _rightIndent)

Definition at line 2800 of file KPrCanvas.cpp.

◆ setPaintGuides

void KPrCanvas::setPaintGuides ( bool state)
slot

Set the guide move state.

Parameters
statetrue set guide move state false unset guide move state

Definition at line 5224 of file KPrCanvas.cpp.

◆ setPartEntry()

void KPrCanvas::setPartEntry ( KoDocumentEntry & _e)
inline

Definition at line 168 of file KPrCanvas.h.

◆ setTabList()

void KPrCanvas::setTabList ( const KoTabulatorList & tabList)

Definition at line 2683 of file KPrCanvas.cpp.

◆ setTextAlign()

void KPrCanvas::setTextAlign ( int align)

Definition at line 2664 of file KPrCanvas.cpp.

◆ setTextBackground()

void KPrCanvas::setTextBackground ( KPrTextObject * obj)
protected

Definition at line 4468 of file KPrCanvas.cpp.

◆ setTextBackgroundColor()

void KPrCanvas::setTextBackgroundColor ( const TQColor & color)

Definition at line 2433 of file KPrCanvas.cpp.

◆ setTextBold()

void KPrCanvas::setTextBold ( bool b)

Definition at line 2452 of file KPrCanvas.cpp.

◆ setTextColor()

void KPrCanvas::setTextColor ( const TQColor & color)

Definition at line 2419 of file KPrCanvas.cpp.

◆ setTextDefaultFormat()

void KPrCanvas::setTextDefaultFormat ( )

Definition at line 2605 of file KPrCanvas.cpp.

◆ setTextDepthMinus()

void KPrCanvas::setTextDepthMinus ( )

Definition at line 2732 of file KPrCanvas.cpp.

◆ setTextDepthPlus()

void KPrCanvas::setTextDepthPlus ( )

Definition at line 2702 of file KPrCanvas.cpp.

◆ setTextFamily()

void KPrCanvas::setTextFamily ( const TQString & f)

Definition at line 2528 of file KPrCanvas.cpp.

◆ setTextFormat()

void KPrCanvas::setTextFormat ( const KoTextFormat & format,
int flags )

Definition at line 2404 of file KPrCanvas.cpp.

◆ setTextItalic()

void KPrCanvas::setTextItalic ( bool b)

Definition at line 2471 of file KPrCanvas.cpp.

◆ setTextPointSize()

void KPrCanvas::setTextPointSize ( int s)

Definition at line 2547 of file KPrCanvas.cpp.

◆ setTextStrikeOut()

void KPrCanvas::setTextStrikeOut ( bool b)

Definition at line 2509 of file KPrCanvas.cpp.

◆ setTextSubScript()

void KPrCanvas::setTextSubScript ( bool b)

Definition at line 2567 of file KPrCanvas.cpp.

◆ setTextSuperScript()

void KPrCanvas::setTextSuperScript ( bool b)

Definition at line 2586 of file KPrCanvas.cpp.

◆ setTextUnderline()

void KPrCanvas::setTextUnderline ( bool b)

Definition at line 2490 of file KPrCanvas.cpp.

◆ setToolEditMode()

void KPrCanvas::setToolEditMode ( ToolEditMode _m,
bool updateView = true )

Definition at line 3829 of file KPrCanvas.cpp.

◆ setupMenus()

void KPrCanvas::setupMenus ( )
protected

setup popupmenus

Definition at line 2306 of file KPrCanvas.cpp.

◆ setXimPosition()

void KPrCanvas::setXimPosition ( int x,
int y,
int w,
int h,
TQFont * f )

Definition at line 5031 of file KPrCanvas.cpp.

◆ spInfiniteLoop()

bool KPrCanvas::spInfiniteLoop ( ) const
protected

Definition at line 4263 of file KPrCanvas.cpp.

◆ spManualSwitch()

bool KPrCanvas::spManualSwitch ( ) const
protected

Definition at line 4273 of file KPrCanvas.cpp.

◆ spShowEndOfPresentationSlide()

bool KPrCanvas::spShowEndOfPresentationSlide ( ) const
protected

Definition at line 4268 of file KPrCanvas.cpp.

◆ startScreenPresentation()

void KPrCanvas::startScreenPresentation ( double zoomX,
double zoomY,
int curPgNum = -1 )

Start a screen presentation All pages if curPgNum is -1, otherwise just curPgNum (1-based).

Definition at line 2914 of file KPrCanvas.cpp.

◆ stopAutomaticPresentation

void KPrCanvas::stopAutomaticPresentation ( )
signal

Emmitted when presentation should be restarted This is used in automatic screen and infinite loop mode.

◆ stopScreenPresentation()

void KPrCanvas::stopScreenPresentation ( )

Definition at line 2979 of file KPrCanvas.cpp.

◆ stopSound()

void KPrCanvas::stopSound ( )

Definition at line 5022 of file KPrCanvas.cpp.

◆ textContentsToHeight()

void KPrCanvas::textContentsToHeight ( )

Definition at line 5310 of file KPrCanvas.cpp.

◆ textObjectToContents()

void KPrCanvas::textObjectToContents ( )

Definition at line 5336 of file KPrCanvas.cpp.

◆ txtBackCol()

TQColor KPrCanvas::txtBackCol ( ) const
protected

Definition at line 4258 of file KPrCanvas.cpp.

◆ ungroupObjects()

void KPrCanvas::ungroupObjects ( )

Definition at line 5249 of file KPrCanvas.cpp.

◆ wheelEvent()

void KPrCanvas::wheelEvent ( TQWheelEvent * e)
protectedvirtual

Definition at line 1914 of file KPrCanvas.cpp.


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