⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 render_frames.h

📁 monqueror一个很具有参考价值的源玛
💻 H
字号:
/** * This file is part of the KDE project. * * Copyright (C) 1999 Lars Knoll (knoll@kde.org) *           (C) 2000 Simon Hausmann <hausmann@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB.  If not, write to * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * * $Id: render_frames.h,v 1.2 2002/01/28 04:31:02 leon Exp $ */#ifndef __render_frames_h__#define __render_frames_h__#include "render_replaced.h"#include "dom_nodeimpl.h"class MGHTMLView;namespace DOM{  class HTMLFrameSetElementImpl;  class HTMLFrameElementImpl;  class HTMLElementImpl;};namespace khtml{class RenderFrameSet : public RenderBox{public:  RenderFrameSet( DOM::HTMLFrameSetElementImpl *frameSet, MGHTMLView *view,                  QList<khtml::Length> *rows, QList<khtml::Length> *cols );  virtual ~RenderFrameSet();  virtual const char *renderName() const { return "RenderFrameSet"; }  virtual void layout();  void positionFrames( );  bool resizing() const { return m_resizing; }  bool userResize( int _x, int _y, DOM::NodeImpl::MouseEventType type );  DOM::HTMLFrameSetElementImpl *frameSetImpl() const { return m_frameset; }private:  DOM::HTMLFrameSetElementImpl *m_frameset;  QList<khtml::Length> *m_rows;  QList<khtml::Length> *m_cols;  MGHTMLView *m_view;  int *m_rowHeight;  int *m_colWidth;  bool *m_hSplitVar; // is this split variable?  bool *m_vSplitVar;  int m_hSplit;     // the split currently resized  int m_vSplit;  int m_hSplitPos;  int m_vSplitPos;  bool m_resizing;};class RenderPart : public RenderWidget{public:  RenderPart( MGHTMLView *view );  virtual ~RenderPart();  virtual const char *renderName() const { return "RenderPart"; }  virtual void layout();  virtual void setWidget( MGWidget *widget );	virtual bool isFrame() const { return true; };};class RenderFrame : public RenderPart{//    Q_OBJECTpublic:  RenderFrame( MGHTMLView *view, DOM::HTMLFrameElementImpl *frame );  virtual ~RenderFrame();  virtual const char *renderName() const { return "RenderFrame"; }  DOM::HTMLFrameElementImpl *frameImpl() const { return m_frame; }    virtual void setWidget( MGWidget *widget );	/*public slots:    void slotViewCleared();    void slotWidgetDestructed();	*/private:  DOM::HTMLFrameElementImpl *m_frame;};// I can hardly call the class RenderObject ;-)class RenderPartObject : public RenderPart{   // Q_OBJECTpublic:  RenderPartObject( MGHTMLView *view, DOM::HTMLElementImpl *o );  virtual ~RenderPartObject();  virtual const char *renderName() const { return "RenderPartObject"; }  virtual void close();  virtual void setWidget( MGWidget *widget );  virtual void setSize( int w, int h );  virtual void layout( );  DOM::HTMLElementImpl *m_obj;	/*public slots:    void slotViewCleared();    void slotWidgetDestructed();	*/};};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -