| # khtml Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# render_frames.h

    00001 /*
    00002  * This file is part of the KDE project.
    00003  *
    00004  * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
    00005  *           (C) 2000 Simon Hausmann <hausmann@kde.org>
    00006  *
    00007  * This library is free software; you can redistribute it and/or
    00008  * modify it under the terms of the GNU Library General Public
    00009  * License as published by the Free Software Foundation; either
    00010  * version 2 of the License, or (at your option) any later version.
    00011  *
    00012  * This library is distributed in the hope that it will be useful,
    00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00015  * Library General Public License for more details.
    00016  *
    00017  * You should have received a copy of the GNU Library General Public License
    00018  * along with this library; see the file COPYING.LIB.  If not, write to
    00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00020  * Boston, MA 02111-1307, USA.
    00021  *
    00022  * $Id: render_frames.h,v 1.47.2.2 2003/05/18 12:34:40 mueller Exp $
    00023  */
    00024 #ifndef __render_frames_h__
    00025 #define __render_frames_h__
    00026
    00027 #include "rendering/render_replaced.h"
    00028 #include "xml/dom_nodeimpl.h"
    00029 #include "html/html_baseimpl.h"
    00030 class KHTMLView;
    00031
    00032 namespace DOM
    00033 {
    00034   class HTMLFrameElementImpl;
    00035   class HTMLElementImpl;
    00036   class MouseEventImpl;
    00037 }
    00038
    00039 namespace khtml
    00040 {
    00041   struct ChildFrame;
    00042
    00043 class RenderFrameSet : public RenderBox
    00044 {
    00045   friend class DOM::HTMLFrameSetElementImpl;
    00046 public:
    00047   RenderFrameSet( DOM::HTMLFrameSetElementImpl *frameSet );
    00048
    00049   virtual ~RenderFrameSet();
    00050
    00051   virtual const char *renderName() const { return "RenderFrameSet"; }
    00052   virtual bool isFrameSet() const { return true; }
    00053
    00054   virtual void layout();
    00055
    00056   void positionFrames( );
    00057
    00058   bool resizing() const { return m_resizing; }
    00059   bool noResize() const { return element()->noResize(); }
    00060
    00061   bool userResize( DOM::MouseEventImpl *evt );
    00062   bool canResize( int _x, int _y);
    00063   void setResizing(bool e);
    00064
    00065   Qt::CursorShape cursorShape() const { return m_cursor; }
    00066
    00067   bool nodeAtPoint(NodeInfo& info, int x, int y, int tx, int ty);
    00068
    00069     DOM::HTMLFrameSetElementImpl *element() const
    00070     { return static_cast<DOM::HTMLFrameSetElementImpl*>(RenderObject::element()); }
    00071
    00072 #ifndef NDEBUG
    00073   virtual void dump(QTextStream *stream, QString ind = "") const;
    00074 #endif
    00075
    00076 private:
    00077     Qt::CursorShape m_cursor;
    00078     int m_oldpos;
    00079     int m_gridLen[2];
    00080     int* m_gridDelta[2];
    00081     int* m_gridLayout[2];
    00082
    00083     bool *m_hSplitVar; // is this split variable?
    00084     bool *m_vSplitVar;
    00085
    00086     int m_hSplit;     // the split currently resized
    00087     int m_vSplit;
    00088     int m_hSplitPos;
    00089     int m_vSplitPos;
    00090
    00091     bool m_resizing;
    00092     bool m_clientresizing;
    00093 };
    00094
    00095 class RenderPart : public khtml::RenderWidget
    00096 {
    00097     Q_OBJECT
    00098 public:
    00099     RenderPart(DOM::HTMLElementImpl* node);
    00100
    00101     virtual const char *renderName() const { return "RenderPart"; }
    00102
    00103     virtual void setWidget( QWidget *widget );
    00104
    00116     virtual bool partLoadingErrorNotify( khtml::ChildFrame *childFrame, const KURL& url, const QString& serviceType );
    00117
    00118     virtual short intrinsicWidth() const;
    00119     virtual int intrinsicHeight() const;
    00120
    00121 public slots:
    00122     virtual void slotViewCleared();
    00123 };
    00124
    00125 class RenderFrame : public khtml::RenderPart
    00126 {
    00127     Q_OBJECT
    00128 public:
    00129     RenderFrame( DOM::HTMLFrameElementImpl *frame );
    00130
    00131     virtual const char *renderName() const { return "RenderFrame"; }
    00132
    00133     DOM::HTMLFrameElementImpl *element() const
    00134     { return static_cast<DOM::HTMLFrameElementImpl*>(RenderObject::element()); }
    00135
    00136 public slots:
    00137     void slotViewCleared();
    00138 };
    00139
    00140 // I can hardly call the class RenderObject ;-)
    00141 class RenderPartObject : public khtml::RenderPart
    00142 {
    00143     Q_OBJECT
    00144 public:
    00145     RenderPartObject( DOM::HTMLElementImpl * );
    00146
    00147     virtual const char *renderName() const { return "RenderPartObject"; }
    00148
    00149     virtual void close();
    00150
    00151     virtual void layout( );
    00152     virtual void updateWidget();
    00153
    00154     virtual bool partLoadingErrorNotify( khtml::ChildFrame *childFrame, const KURL& url, const QString& serviceType );
    00155
    00156 public slots:
    00157     void slotViewCleared();
    00158 private slots:
    00159     void slotPartLoadingErrorNotify();
    00160 };
    00161
    00162 }
    00163
    00164 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:34:36 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001