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

📄 render_replaced.h

📁 将konqueror浏览器移植到ARM9 2410中
💻 H
字号:
/** * This file is part of the HTML widget for KDE. * * Copyright (C) 1999 Lars Knoll (knoll@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_replaced.h,v 1.23 2001/07/28 15:20:13 koivisto Exp $ */#ifndef render_replaced_h#define render_replaced_h#include "render_box.h"#include <qwidget.h>class QScrollView;namespace khtml {class RenderReplaced : public RenderBox{public:    RenderReplaced();    virtual ~RenderReplaced() {}    virtual const char *renderName() const { return "RenderReplaced"; }    virtual bool isRendered() const { return true; }    virtual short calcReplacedWidth(bool* ieHack=0) const;    virtual int   calcReplacedHeight() const;    virtual int lineHeight( bool firstLine) const;    virtual short baselinePosition( bool firstLine ) const;    virtual void calcMinMaxWidth();    virtual void print( QPainter *, int x, int y, int w, int h,                        int tx, int ty);    virtual void printObject(QPainter *p, int x, int y, int w, int h, int tx, int ty) = 0;        virtual short intrinsicWidth() const { return m_intrinsicWidth; }    virtual int intrinsicHeight() const { return m_intrinsicHeight; }    void setIntrinsicWidth(int w) {  m_intrinsicWidth = w; }    void setIntrinsicHeight(int h) { m_intrinsicHeight = h; }        virtual void position(int x, int y, int from, int len, int width, bool reverse, bool firstLine);private:    short m_intrinsicWidth;    short m_intrinsicHeight;};class RenderWidget : public QObject, public RenderReplaced, public DOM::DomShared{    Q_OBJECTpublic:    RenderWidget(QScrollView *view);    virtual ~RenderWidget();    virtual void setStyle(RenderStyle *style);    virtual void printObject(QPainter *p, int x, int y, int w, int h, int tx, int ty);    virtual bool isWidget() const { return true; };    virtual void focus();    virtual void blur();    void placeWidget(int x, int y);    virtual void detach();    public slots:    void slotWidgetDestructed();protected:    void setQWidget(QWidget *widget);    QScrollView *m_view;public:    QWidget *m_widget;};};#endif

⌨️ 快捷键说明

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