#include <KPrCanvas.h>
|
| | 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) |
|
| 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 ¤tSize, 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 |
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.
◆ KPrCanvas()
| KPrCanvas::KPrCanvas |
( |
TQWidget * | parent = 0, |
|
|
const char * | name = 0, |
|
|
KPrView * | _view = 0 ) |
◆ ~KPrCanvas()
| KPrCanvas::~KPrCanvas |
( |
| ) |
|
◆ _repaint() [1/3]
| void KPrCanvas::_repaint |
( |
bool | erase = true | ) |
|
|
protected |
◆ _repaint() [2/3]
| void KPrCanvas::_repaint |
( |
const TQRect & | r | ) |
|
|
protected |
◆ _repaint() [3/3]
| void KPrCanvas::_repaint |
( |
KPrObject * | o | ) |
|
|
protected |
◆ activePage()
| KPrPage * KPrCanvas::activePage |
( |
| ) |
const |
◆ alignObjects()
| void KPrCanvas::alignObjects |
( |
AlignType | at | ) |
|
Align objects.
This will align all selected non protected objects according to the align type at.
- Parameters
-
Definition at line 5464 of file KPrCanvas.cpp.
◆ alignVertical()
| void KPrCanvas::alignVertical |
( |
VerticalAlignmentType | _type | ) |
|
◆ 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 |
◆ canMoveOneObject()
| bool KPrCanvas::canMoveOneObject |
( |
| ) |
const |
◆ changePicture()
| void KPrCanvas::changePicture |
( |
const KURL & | url, |
|
|
TQWidget * | window ) |
◆ chPic
| void KPrCanvas::chPic |
( |
| ) |
|
|
slot |
◆ clipCopy
| void KPrCanvas::clipCopy |
( |
| ) |
|
|
slot |
◆ clipCut
| void KPrCanvas::clipCut |
( |
| ) |
|
|
slot |
◆ clipPaste
| void KPrCanvas::clipPaste |
( |
| ) |
|
|
slot |
◆ close()
| bool KPrCanvas::close |
( |
bool | alsoDelete | ) |
|
|
protectedvirtual |
◆ closeObject()
| void KPrCanvas::closeObject |
( |
bool | _close | ) |
|
◆ copyOasisObjs
| void KPrCanvas::copyOasisObjs |
( |
| ) |
|
|
slot |
◆ copyObjs
| void KPrCanvas::copyObjs |
( |
| ) |
|
|
slot |
◆ createEditing()
| void KPrCanvas::createEditing |
( |
KPrTextObject * | textObj | ) |
|
◆ currentObjectEditChanged
| void KPrCanvas::currentObjectEditChanged |
( |
| ) |
|
|
signal |
Emitted when the current frameset edit changes.
◆ currentTextObjectView()
| KPrTextView * KPrCanvas::currentTextObjectView |
( |
| ) |
const |
|
inline |
◆ currPgNum()
| unsigned int KPrCanvas::currPgNum |
( |
| ) |
const |
|
protected |
◆ deleteObjs
| void KPrCanvas::deleteObjs |
( |
| ) |
|
|
slot |
◆ deSelectAllObj()
| void KPrCanvas::deSelectAllObj |
( |
| ) |
|
◆ deSelectObj()
| void KPrCanvas::deSelectObj |
( |
KPrObject * | kpobject | ) |
|
◆ diffx()
| int KPrCanvas::diffx |
( |
| ) |
const |
|
inline |
◆ diffy()
| int KPrCanvas::diffy |
( |
| ) |
const |
|
inline |
◆ 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 |
◆ dragMoveEvent()
| void KPrCanvas::dragMoveEvent |
( |
TQDragMoveEvent * | e | ) |
|
|
protectedvirtual |
◆ dragStarted()
| void KPrCanvas::dragStarted |
( |
| ) |
|
|
inline |
◆ drawAllObjectsInPage()
| void KPrCanvas::drawAllObjectsInPage |
( |
TQPainter * | painter, |
|
|
const TQPtrList< KPrObject > & | obj, |
|
|
int | pageNum ) const |
|
protected |
◆ 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 |
◆ drawCurrentPageInPix()
| void KPrCanvas::drawCurrentPageInPix |
( |
TQPixmap & | _pix | ) |
const |
|
protected |
◆ 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 |
◆ 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 |
◆ dropImage()
| void KPrCanvas::dropImage |
( |
TQMimeSource * | data, |
|
|
bool | resizeImageToOriginalSize = false, |
|
|
int | posX = 10, |
|
|
int | posY = 10 ) |
◆ endDrawCubicBezierCurve()
| void KPrCanvas::endDrawCubicBezierCurve |
( |
| ) |
|
|
protected |
◆ endDrawPolyline()
| void KPrCanvas::endDrawPolyline |
( |
| ) |
|
|
protected |
◆ ensureVisible()
| void KPrCanvas::ensureVisible |
( |
int | x, |
|
|
int | y, |
|
|
int | xmargin, |
|
|
int | ymargin ) |
◆ enterEvent()
| void KPrCanvas::enterEvent |
( |
TQEvent * | e | ) |
|
|
protectedvirtual |
◆ eraseEmptySpace()
| void KPrCanvas::eraseEmptySpace |
( |
TQPainter * | painter, |
|
|
const TQRegion & | emptySpaceRegion, |
|
|
const TQBrush & | brush ) const |
|
protected |
◆ eventFilter()
| bool KPrCanvas::eventFilter |
( |
TQObject * | o, |
|
|
TQEvent * | e ) |
|
protectedvirtual |
◆ exitEditMode
| void KPrCanvas::exitEditMode |
( |
bool | repaint = true | ) |
|
|
slot |
◆ 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 |
◆ flipObject()
| void KPrCanvas::flipObject |
( |
bool | _horizontal | ) |
|
◆ focusInEvent()
| virtual void KPrCanvas::focusInEvent |
( |
TQFocusEvent * | | ) |
|
|
inlineprotectedvirtual |
◆ focusNextPrevChild()
| bool KPrCanvas::focusNextPrevChild |
( |
bool | | ) |
|
|
protectedvirtual |
◆ focusOutEvent()
| virtual void KPrCanvas::focusOutEvent |
( |
TQFocusEvent * | | ) |
|
|
inlineprotectedvirtual |
◆ getAlignBoundingRect()
| KoRect KPrCanvas::getAlignBoundingRect |
( |
| ) |
const |
|
protected |
◆ getEditMode()
| bool KPrCanvas::getEditMode |
( |
| ) |
const |
|
inline |
◆ getObjectAt()
| KPrObject * KPrCanvas::getObjectAt |
( |
const KoPoint & | pos, |
|
|
bool | withoutProtected = false ) |
|
protected |
Returns the object at position pos.
- Parameters
-
| pos | the position in the document on which to look |
| withoutProtected | if 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 |
◆ getPageRect()
| TQRect KPrCanvas::getPageRect |
( |
bool | decBorders = true | ) |
const |
|
protected |
◆ getPixmapOrigAndCurrentSize()
| bool KPrCanvas::getPixmapOrigAndCurrentSize |
( |
KPrPixmapObject *& | obj, |
|
|
KoSize * | origSize, |
|
|
KoSize * | currentSize ) |
|
protected |
◆ getSelectedImage()
| KPrPixmapObject * KPrCanvas::getSelectedImage |
( |
| ) |
const |
◆ getSelectedObj()
| KPrObject * KPrCanvas::getSelectedObj |
( |
| ) |
const |
◆ getView()
| KPrView * KPrCanvas::getView |
( |
| ) |
const |
|
inline |
◆ gotoPage()
| void KPrCanvas::gotoPage |
( |
int | pg | ) |
|
◆ groupObjects()
| void KPrCanvas::groupObjects |
( |
| ) |
|
◆ guideLines()
| KoGuides & KPrCanvas::guideLines |
( |
| ) |
|
|
inline |
◆ haveASelectedGroupObj()
| bool KPrCanvas::haveASelectedGroupObj |
( |
| ) |
const |
◆ haveASelectedPartObj()
| bool KPrCanvas::haveASelectedPartObj |
( |
| ) |
const |
◆ haveASelectedPixmapObj()
| bool KPrCanvas::haveASelectedPixmapObj |
( |
| ) |
const |
◆ imComposeEvent()
| void KPrCanvas::imComposeEvent |
( |
TQIMEvent * | e | ) |
|
|
protectedvirtual |
◆ imEndEvent()
| void KPrCanvas::imEndEvent |
( |
TQIMEvent * | e | ) |
|
|
protectedvirtual |
◆ imStartEvent()
| void KPrCanvas::imStartEvent |
( |
TQIMEvent * | e | ) |
|
|
protectedvirtual |
◆ insertAutoform()
| void KPrCanvas::insertAutoform |
( |
const KoRect & | rect | ) |
|
|
protected |
Add a autoform object.
- Parameters
-
| rect | the size and position of the autoform object |
Definition at line 3713 of file KPrCanvas.cpp.
◆ insertClosedLine()
| void KPrCanvas::insertClosedLine |
( |
const KoPointArray & | _pointArray | ) |
|
|
protected |
◆ insertCubicBezierCurve()
| void KPrCanvas::insertCubicBezierCurve |
( |
const KoPointArray & | _pointArray | ) |
|
|
protected |
◆ insertEllipse()
| void KPrCanvas::insertEllipse |
( |
const KoRect & | rect | ) |
|
Add a ellipse.
- Parameters
-
| rect | the size and position of the ellipse |
Definition at line 3697 of file KPrCanvas.cpp.
◆ insertFreehand()
| void KPrCanvas::insertFreehand |
( |
const KoPointArray & | _pointArray | ) |
|
|
protected |
◆ insertLine()
| void KPrCanvas::insertLine |
( |
const KoPoint & | startPoint, |
|
|
const KoPoint & | endPoint ) |
Add a line.
- Parameters
-
| startPoint | the start point of the line |
| endPoint | the 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
-
| rect | the 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
-
| rect | the 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
-
| rect | the size and position of the pie/arc/chord |
Definition at line 3704 of file KPrCanvas.cpp.
◆ insertPolygon()
| void KPrCanvas::insertPolygon |
( |
const KoPointArray & | _pointArray | ) |
|
|
protected |
◆ insertPolyline()
| void KPrCanvas::insertPolyline |
( |
const KoPointArray & | _pointArray | ) |
|
|
protected |
◆ insertRect()
| void KPrCanvas::insertRect |
( |
const KoRect & | rect | ) |
|
Add a rectangle.
- Parameters
-
| rect | the 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
-
| rect | the size and position of the text object |
Definition at line 3654 of file KPrCanvas.cpp.
◆ isOneObjectSelected()
| bool KPrCanvas::isOneObjectSelected |
( |
| ) |
const |
◆ keyPressEvent()
| void KPrCanvas::keyPressEvent |
( |
TQKeyEvent * | e | ) |
|
|
protectedvirtual |
◆ keyReleaseEvent()
| void KPrCanvas::keyReleaseEvent |
( |
TQKeyEvent * | e | ) |
|
|
protectedvirtual |
◆ kpTxtObj()
| KPrTextObject * KPrCanvas::kpTxtObj |
( |
| ) |
const |
◆ layout()
| void KPrCanvas::layout |
( |
| ) |
|
◆ leaveEvent()
| void KPrCanvas::leaveEvent |
( |
TQEvent * | e | ) |
|
|
protectedvirtual |
◆ listOfTextObjs()
| TQPtrList< KPrTextObject > KPrCanvas::listOfTextObjs |
( |
| ) |
const |
◆ lowerObjs()
| void KPrCanvas::lowerObjs |
( |
bool | backward | ) |
|
◆ mouseDoubleClickEvent()
| void KPrCanvas::mouseDoubleClickEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ mouseMoveEvent()
| void KPrCanvas::mouseMoveEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ mousePressEvent()
| void KPrCanvas::mousePressEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ mouseReleaseEvent()
| void KPrCanvas::mouseReleaseEvent |
( |
TQMouseEvent * | e | ) |
|
|
protectedvirtual |
◆ numberOfObjectSelected()
| int KPrCanvas::numberOfObjectSelected |
( |
| ) |
const |
◆ numPresPages()
| int KPrCanvas::numPresPages |
( |
| ) |
const |
|
inline |
◆ numPresSteps()
| int KPrCanvas::numPresSteps |
( |
| ) |
const |
|
inline |
◆ objectList()
| TQPtrList< KPrObject > KPrCanvas::objectList |
( |
| ) |
const |
◆ objectPopup()
| void KPrCanvas::objectPopup |
( |
KPrObject * | object, |
|
|
const TQPoint & | point ) |
Open the object popup.
- Parameters
-
| object | the selected object |
| point | where 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
-
| all | true 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 |
◆ oneObjectTextExist()
| bool KPrCanvas::oneObjectTextExist |
( |
| ) |
const |
◆ oneObjectTextSelected()
| bool KPrCanvas::oneObjectTextSelected |
( |
| ) |
const |
◆ pageNums()
| unsigned int KPrCanvas::pageNums |
( |
| ) |
const |
|
protected |
◆ 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 |
◆ picViewOrig1280x1024
| void KPrCanvas::picViewOrig1280x1024 |
( |
| ) |
|
|
slot |
◆ picViewOrig1600x1200
| void KPrCanvas::picViewOrig1600x1200 |
( |
| ) |
|
|
slot |
◆ picViewOrig640x480
| void KPrCanvas::picViewOrig640x480 |
( |
| ) |
|
|
slot |
◆ picViewOrig800x600
| void KPrCanvas::picViewOrig800x600 |
( |
| ) |
|
|
slot |
◆ picViewOrigFactor
| void KPrCanvas::picViewOrigFactor |
( |
| ) |
|
|
slot |
◆ picViewOriginalSize
| void KPrCanvas::picViewOriginalSize |
( |
| ) |
|
|
slot |
◆ playSound()
| void KPrCanvas::playSound |
( |
const TQString & | soundFileName | ) |
|
◆ 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 | ) |
◆ 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 |
◆ raiseObjs()
| void KPrCanvas::raiseObjs |
( |
bool | forward | ) |
|
◆ redrawCubicBezierCurve()
| void KPrCanvas::redrawCubicBezierCurve |
( |
TQPainter & | p | ) |
|
|
protected |
Redraw the curve defined in m_pointArray.
- Parameters
-
| p | painter used for drawing |
Definition at line 5098 of file KPrCanvas.cpp.
◆ resizeEvent()
| void KPrCanvas::resizeEvent |
( |
TQResizeEvent * | e | ) |
|
|
protectedvirtual |
◆ 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 |
( |
| ) |
|
◆ scalePixmapToBeOrigIn()
| void KPrCanvas::scalePixmapToBeOrigIn |
( |
const KoSize & | currentSize, |
|
|
const KoSize & | pgSize, |
|
|
const TQSize & | presSize, |
|
|
KPrPixmapObject * | obj ) |
|
protected |
◆ scrollTopLeftPoint()
| void KPrCanvas::scrollTopLeftPoint |
( |
const TQPoint & | pos | ) |
|
◆ scrollX()
| void KPrCanvas::scrollX |
( |
int | x | ) |
|
◆ scrollY()
| void KPrCanvas::scrollY |
( |
int | y | ) |
|
◆ selectAllObj()
| void KPrCanvas::selectAllObj |
( |
| ) |
|
◆ 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 |
◆ selectObj()
| void KPrCanvas::selectObj |
( |
KPrObject * | kpobject | ) |
|
◆ selectPrev()
| void KPrCanvas::selectPrev |
( |
| ) |
|
|
protected |
◆ setActivePage
| void KPrCanvas::setActivePage |
( |
KPrPage * | active | ) |
|
|
slot |
◆ setAutoForm()
| void KPrCanvas::setAutoForm |
( |
const TQString & | _autoform | ) |
|
|
inline |
◆ setDecreaseFontSize()
| void KPrCanvas::setDecreaseFontSize |
( |
| ) |
|
◆ setDiffX()
| void KPrCanvas::setDiffX |
( |
int | _diffX | ) |
|
|
inline |
◆ setDiffY()
| void KPrCanvas::setDiffY |
( |
int | _diffY | ) |
|
|
inline |
◆ setIncreaseFontSize()
| void KPrCanvas::setIncreaseFontSize |
( |
| ) |
|
◆ setMouseSelectedObject()
| void KPrCanvas::setMouseSelectedObject |
( |
bool | b | ) |
|
◆ setNewFirstIndent()
| void KPrCanvas::setNewFirstIndent |
( |
double | _firstIndent | ) |
|
◆ setNewLeftIndent()
| void KPrCanvas::setNewLeftIndent |
( |
double | _leftIndent | ) |
|
◆ setNewRightIndent()
| void KPrCanvas::setNewRightIndent |
( |
double | _rightIndent | ) |
|
◆ setPaintGuides
| void KPrCanvas::setPaintGuides |
( |
bool | state | ) |
|
|
slot |
Set the guide move state.
- Parameters
-
| state | true set guide move state false unset guide move state |
Definition at line 5224 of file KPrCanvas.cpp.
◆ setPartEntry()
| void KPrCanvas::setPartEntry |
( |
KoDocumentEntry & | _e | ) |
|
|
inline |
◆ setTabList()
| void KPrCanvas::setTabList |
( |
const KoTabulatorList & | tabList | ) |
|
◆ setTextAlign()
| void KPrCanvas::setTextAlign |
( |
int | align | ) |
|
◆ setTextBackground()
| void KPrCanvas::setTextBackground |
( |
KPrTextObject * | obj | ) |
|
|
protected |
◆ setTextBackgroundColor()
| void KPrCanvas::setTextBackgroundColor |
( |
const TQColor & | color | ) |
|
◆ setTextBold()
| void KPrCanvas::setTextBold |
( |
bool | b | ) |
|
◆ setTextColor()
| void KPrCanvas::setTextColor |
( |
const TQColor & | color | ) |
|
◆ setTextDefaultFormat()
| void KPrCanvas::setTextDefaultFormat |
( |
| ) |
|
◆ setTextDepthMinus()
| void KPrCanvas::setTextDepthMinus |
( |
| ) |
|
◆ setTextDepthPlus()
| void KPrCanvas::setTextDepthPlus |
( |
| ) |
|
◆ setTextFamily()
| void KPrCanvas::setTextFamily |
( |
const TQString & | f | ) |
|
◆ setTextFormat()
| void KPrCanvas::setTextFormat |
( |
const KoTextFormat & | format, |
|
|
int | flags ) |
◆ setTextItalic()
| void KPrCanvas::setTextItalic |
( |
bool | b | ) |
|
◆ setTextPointSize()
| void KPrCanvas::setTextPointSize |
( |
int | s | ) |
|
◆ setTextStrikeOut()
| void KPrCanvas::setTextStrikeOut |
( |
bool | b | ) |
|
◆ setTextSubScript()
| void KPrCanvas::setTextSubScript |
( |
bool | b | ) |
|
◆ setTextSuperScript()
| void KPrCanvas::setTextSuperScript |
( |
bool | b | ) |
|
◆ setTextUnderline()
| void KPrCanvas::setTextUnderline |
( |
bool | b | ) |
|
◆ setToolEditMode()
| void KPrCanvas::setToolEditMode |
( |
ToolEditMode | _m, |
|
|
bool | updateView = true ) |
◆ setupMenus()
| void KPrCanvas::setupMenus |
( |
| ) |
|
|
protected |
◆ setXimPosition()
| void KPrCanvas::setXimPosition |
( |
int | x, |
|
|
int | y, |
|
|
int | w, |
|
|
int | h, |
|
|
TQFont * | f ) |
◆ spInfiniteLoop()
| bool KPrCanvas::spInfiniteLoop |
( |
| ) |
const |
|
protected |
◆ spManualSwitch()
| bool KPrCanvas::spManualSwitch |
( |
| ) |
const |
|
protected |
◆ spShowEndOfPresentationSlide()
| bool KPrCanvas::spShowEndOfPresentationSlide |
( |
| ) |
const |
|
protected |
◆ 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 |
( |
| ) |
|
◆ stopSound()
| void KPrCanvas::stopSound |
( |
| ) |
|
◆ textContentsToHeight()
| void KPrCanvas::textContentsToHeight |
( |
| ) |
|
◆ textObjectToContents()
| void KPrCanvas::textObjectToContents |
( |
| ) |
|
◆ txtBackCol()
| TQColor KPrCanvas::txtBackCol |
( |
| ) |
const |
|
protected |
◆ ungroupObjects()
| void KPrCanvas::ungroupObjects |
( |
| ) |
|
◆ wheelEvent()
| void KPrCanvas::wheelEvent |
( |
TQWheelEvent * | e | ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files:
|