KoViewChild Class Reference
This class aggregates information about an embedded document. More...
#include <koView.h>
Inheritance diagram for KoViewChild:


Public Member Functions | |
KoViewChild (KoDocumentChild *child, KoView *_parentView) | |
KoDocumentChild * | documentChild () const |
KoView * | parentView () const |
KoFrame * | frame () const |
Detailed Description
This class aggregates information about an embedded document.
Definition at line 428 of file koView.h.
Constructor & Destructor Documentation
|
KoViewChild has basically three geometries to keep in sync.
So we need to subtract the scrollview's offset for the frame geometry, since it's a widget. The rules are (R1) frameGeometry = childGeometry * zoom "+" m_frame->{left|right|top|bottom}Border() - scrollview offset, (R2) frameGeometry = myGeometry "+" active_frame_border - scrollview offset. So: (R3, unused) myGeometry = childGeometry * zoom "+" m_frame->{left|right|top|bottom}Border() "-" active_frame_border Notes: active_frame_border is m_frame->border() (0 when inactive, 5 when active). {left|right|top|bottom}Border are the borders used in kspread (0 when inactive, big when active). "+" border means we add a border, si it's a subtraction on x, y and an addition on width, height. Definition at line 654 of file koView.cc. References KoView::canvasAddChild(), KoView::canvasXOffset(), KoView::canvasYOffset(), KoDocument::createView(), KoDocumentChild::document(), KoChild::geometry(), KoView::setPartManager(), KoView::setZoom(), KoDocument::viewBuildDocument(), KoChild::xScaling(), KoChild::yScaling(), and KoView::zoom(). |
The documentation for this class was generated from the following files: