📄 render_replaced.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.2 2002/01/28 04:31:02 leon Exp $ */#ifndef render_replaced_h#define render_replaced_h#include "render_box.h"class MGHTMLView;namespace khtml {class RenderReplaced : public RenderBox{public: RenderReplaced(); virtual ~RenderReplaced() {} virtual const char *renderName() const { return "RenderReplaced"; } virtual bool isRendered() const { return true; } virtual void print( MGPainter *, int x, int y, int w, int h, int tx, int ty); virtual void printObject( MGPainter *p, int /*x*/, int /*y*/, int /*w*/, int /*h*/, int tx, int ty) { printReplaced(p, tx, ty); } /** * print the replaced object (or position the pixmap) */ virtual void printReplaced(MGPainter *p, int _tx, int _ty) = 0;};class RenderWidget : /*public QObject,*/ public RenderReplaced{//Q_OBJECTpublic: RenderWidget(MGHTMLView *view); virtual ~RenderWidget(); virtual void setStyle(RenderStyle *style); virtual void printReplaced(MGPainter *p, int _tx, int _ty); virtual short verticalPositionHint() const; virtual short intrinsicWidth() const; virtual int intrinsicHeight() const; virtual void absolutePosition(int &xPos, int &yPos, bool f = false); virtual bool isWidget() const { return true; }; virtual void focus(); virtual void blur(); virtual bool isFrame() const { return false; }; /*public slots: void slotWidgetDestructed(); */ protected: void setQWidget(MGWidget *widget, bool show = true); MGHTMLView *m_view; bool deleted;public: MGWidget *m_widget;};};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -