kivio

KivioPage Class Reference

List of all members.

Detailed Description

Definition at line 78 of file kivio_page.h.


Public Slots

void deleteSelectedStencils ()
void groupSelectedStencils ()
void ungroupSelectedStencils ()
void bringToFront ()
void sendToBack ()
void copy ()
void cut ()
void paste (KivioView *view)
void setPaintSelected (bool paint=true)
void setGuideLines (const QValueList< double > hGuideLines, const QValueList< double > vGuideLines)
void addGuideLine (Qt::Orientation orientation, double position)

Signals

void sig_updateView (KivioPage *_page)
void sig_updateView (KivioPage *_page, const QRect &)
void sig_nameChanged (KivioPage *page, const QString &old_name)
void sig_PageHidden (KivioPage *_page)
void sig_PageShown (KivioPage *_page)
void sig_pageLayoutChanged (const KoPageLayout &)

Public Member Functions

 KivioPage (KivioMap *_map, const QString &pageName, const char *_name=0L)
 ~KivioPage ()
virtual DCOPObject * dcopObject ()
QString pageName () const
bool setPageName (const QString &name, bool init=false)
virtual QDomElement save (QDomDocument &)
virtual void saveOasis (KoStore *store, KoXmlWriter *docWriter, KoGenStyles *styles)
virtual bool loadXML (const QDomElement &)
bool loadOasis (const QDomElement &page, KoOasisStyles &oasisStyles)
bool isLoading ()
bool isHidden () const
void setHidden (bool hidden)
void setMap (KivioMap *_map)
KivioDocdoc () const
KivioMapmap () const
KivioPagefindPage (const QString &_name)
void print (QPainter &painter, KPrinter *_printer)
void update ()
int id () const
KoPageLayout paperLayout () const
void setPaperLayout (const KoPageLayout &)
void paintContent (KivioPainter &painter, const QRect &rect, bool transparent, QPoint, KoZoomHandler *, bool, bool)
void printContent (KivioPainter &painter, int xdpi=0, int ydpi=0)
void printSelected (KivioPainter &painter, int xdpi=0, int ydpi=0)
void printContent (KivioPainter &painter, KoZoomHandler *zoomHandler)
bool isStencilSelected (KivioStencil *)
void selectAllStencils ()
void unselectAllStencils ()
bool unselectStencil (KivioStencil *)
void selectStencil (KivioStencil *)
void selectStencils (double, double, double, double)
QPtrList< KivioStencil > * selectedStencils ()
bool checkForStencilTypeInSelection (KivioStencilType type)
bool checkForTextBoxesInSelection ()
KoRect getRectForAllSelectedStencils ()
KoRect getRectForAllStencils ()
int generateStencilIds (int)
KivioStencilcheckForStencil (KoPoint *, int *, double, bool)
KivioLayercurLayer () const
void setCurLayer (KivioLayer *pLayer)
QPtrList< KivioLayer > * layers ()
KivioLayerfirstLayer ()
KivioLayernextLayer ()
KivioLayerlastLayer ()
KivioLayerprevLayer ()
bool removeCurrentLayer ()
void addLayer (KivioLayer *)
void insertLayer (int, KivioLayer *)
KivioLayerlayerAt (int)
void takeLayer (KivioLayer *pLayer)
bool addStencil (KivioStencil *)
void alignStencils (AlignData)
void distributeStencils (DistributeData)
KivioConnectorTargetconnectPointToTarget (KivioConnectorPoint *, double)
KoPoint snapToTarget (const KoPoint &p, double thresh, bool &hit)
void setHidePage (bool _hide)
QValueList< double > horizontalGuideLines () const
QValueList< double > verticalGuideLines () const

Static Public Member Functions

static KivioPagefind (int _id)

Protected Member Functions

void printPage (QPainter &_painter, const QRect &page_range, const QRect &view)
QDomElement saveLayout (QDomDocument &)
bool loadLayout (const QDomElement &)
void saveGuideLines (QDomElement &element)
void loadGuideLines (const QDomElement &element)

Protected Attributes

QString m_strName
KivioMapm_pMap
KivioDocm_pDoc
QPtrList< KivioLayerm_lstLayers
KivioLayerm_pCurLayer
QPtrList< KivioStencilm_lstSelection
int m_id
bool m_bPageHide
KoPageLayout m_pPageLayout
DCOPObject * m_dcop
QValueList< double > m_hGuideLines
QValueList< double > m_vGuideLines

Static Protected Attributes

static int s_id = 0L
static QIntDict< KivioPage > * s_mapPages

Member Function Documentation

KivioStencil * KivioPage::checkForStencil ( KoPoint *  pPoint,
int *  collisionType,
double  threshold,
bool  selectedOnly 
)

Looks for stencils at a given point in the canvas.

Parameters:
pPoint The point to search with
This will iterate through all visible layers and check for stencils. The first one it finds will be returned. If none are found, it will return NULL.

Definition at line 646 of file kivio_page.cpp.

KoRect KivioPage::getRectForAllSelectedStencils (  ) 

Returns a rectangle representing the bounds of all the selected stencils (in points).

Definition at line 1435 of file kivio_page.cpp.

KoRect KivioPage::getRectForAllStencils (  ) 

Returns a rectangle representing the bounds of all the selected stencils (in points).

Definition at line 1465 of file kivio_page.cpp.

void KivioPage::paintContent ( KivioPainter painter,
const QRect &  rect,
bool  transparent,
QPoint  p0,
KoZoomHandler *  zoom,
bool  drawConnectorTargets,
bool  drawSelection 
)

Paints the page.

An important note is that layers are drawn first to last. So the last layer is the most visible.

Definition at line 402 of file kivio_page.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys