KHtml
29 #include <khtml_export.h>
32 #include <QScrollArea>
37 template<
typename T >
class QVector;
38 template <
class T>
class QStack;
42 class HTMLDocumentImpl;
45 class HTMLTitleElementImpl;
46 class HTMLGenericFormElementImpl;
47 class HTMLFormElementImpl;
48 class HTMLAnchorElementImpl;
49 class HTMLInputElementImpl;
65 class RenderPartObject;
69 class CSSStyleSelector;
73 class KHTMLWidgetPrivate;
79 KHTMLWidgetPrivate *m_kwp;
81 void applyRule(DOM::CSSProperty *prop);
85 class KHTMLViewPrivate;
101 friend class DOM::HTMLDocumentImpl;
102 friend class DOM::HTMLTitleElementImpl;
103 friend class DOM::HTMLGenericFormElementImpl;
104 friend class DOM::HTMLFormElementImpl;
105 friend class DOM::HTMLAnchorElementImpl;
106 friend class DOM::HTMLInputElementImpl;
107 friend class DOM::NodeImpl;
108 friend class DOM::ElementImpl;
111 friend class KHTMLFind;
112 friend class StorePass;
113 friend class khtml::RenderCanvas;
115 friend class khtml::RenderLineEdit;
116 friend class khtml::RenderPartObject;
117 friend class khtml::RenderWidget;
118 friend class khtml::KHTMLWidgetPrivate;
119 friend class khtml::RenderLayer;
120 friend class khtml::RenderBox;
122 friend class khtml::LineEditWidget;
123 friend class khtml::HTMLTokenizer;
124 friend class KJS::WindowFunc;
125 friend class KJS::ExternalFunc;
126 friend void khtml::applyRule(DOM::CSSProperty *prop);
152 void setMarginWidth(
int x);
167 void setMarginHeight(
int y);
176 return _marginHeight;
201 void print(
bool quick =
false);
210 void print(
QPrinter *printer,
bool quick =
false);
215 void displayAccessKeys();
220 int contentsWidth()
const;
225 int contentsHeight()
const;
231 int contentsX()
const;
237 int contentsY()
const;
242 int visibleWidth()
const;
247 int visibleHeight()
const;
253 void setContentsPos(
int x,
int y);
277 void viewportToContents(
int x,
int y,
int &cx,
int &cy)
const;
287 void contentsToViewport(
int x,
int y,
int &cx,
int &cy)
const;
294 void scrollBy(
int x,
int y);
300 void updateContents(
const QRect &r);
301 void updateContents(
int x,
int y,
int w,
int h);
303 void addChild(
QWidget *child,
int dx,
int dy);
309 void repaintContents(
const QRect &r);
310 void repaintContents(
int x,
int y,
int w,
int h);
316 void setZoomLevel(
int percent);
322 int zoomLevel()
const;
340 void setSmoothScrollingMode(SmoothScrollingMode m);
347 SmoothScrollingMode smoothScrollingMode()
const;
355 virtual void resizeContents(
int w,
int h);
367 void finishedLayout();
370 void hideAccessKeys();
371 void repaintAccessKeys();
372 void findAheadActive(
bool);
389 #ifndef QT_NO_WHEELEVENT
395 virtual bool widgetEvent(
QEvent *);
405 void setSmoothScrollingModeDefault(SmoothScrollingMode m);
408 void slotPaletteChanged();
411 void tripleClickTimeout();
412 void accessKeysTimeout();
419 void slotMouseScrollTimer();
422 void resizeContentsToViewport();
425 void unscheduleRelayout();
427 bool hasLayoutPending();
429 void scheduleRepaint(
int x,
int y,
int w,
int h,
bool asap =
false);
430 void unscheduleRepaint();
432 bool needsFullRepaint()
const;
434 void closeChildDialogs();
435 bool dialogsAllowed();
437 void setMouseEventsTarget(
QWidget *w);
438 QWidget *mouseEventsTarget()
const;
453 void paint(
QPainter *p,
const QRect &rc,
int yOff = 0,
bool *more =
nullptr);
467 void setMediaType(
const QString &medium);
470 bool pagedMode()
const;
472 bool scrollTo(
const QRect &);
474 bool focusNextPrevNode(
bool next);
475 bool handleAccessKey(
const QKeyEvent *ev);
476 bool focusNodeWithAccessKey(
QChar c,
KHTMLView *caller =
nullptr);
479 bool isScrollingFromMouseWheel()
const;
480 void setHasStaticBackground(
bool partial =
false);
481 void setHasNormalBackground();
482 void addStaticObject(
bool fixed);
483 void removeStaticObject(
bool fixed);
484 void applyTransforms(
int &x,
int &y,
int &w,
int &h)
const;
485 void revertTransforms(
int &x,
int &y,
int &w,
int &h)
const;
486 void revertTransforms(
int &x,
int &y)
const;
487 void checkExternalWidgetsPosition();
489 void setIgnoreWheelEvents(
bool e);
493 DOM::NodeImpl *nodeUnderMouse()
const;
494 DOM::NodeImpl *nonSharedNodeUnderMouse()
const;
496 void restoreScrollBar();
499 void clearCompletionHistory(
const QString &name);
500 void addFormCompletionItem(
const QString &name,
const QString &value);
502 void addNonPasswordStorableSite(
const QString &
host);
503 void delNonPasswordStorableSite(
const QString &
host);
504 bool nonPasswordStorableSite(
const QString &
host)
const;
506 bool dispatchMouseEvent(
int eventId, DOM::NodeImpl *targetNode,
507 DOM::NodeImpl *targetNodeNonShared,
bool cancelable,
509 int mouseEventType,
int orientation = 0);
511 bool dispatchKeyEventHelper(
QKeyEvent *_ke,
bool generate_keypress);
513 void complete(
bool pendingAction);
515 void updateScrollBars();
516 void setupSmoothScrolling(
int dx,
int dy);
522 int caretDisplayPolicyNonFocused()
const;
529 void setCaretDisplayPolicyNonFocused(
int policy);
541 friend class KHTMLViewPrivate;
542 enum LinkCursor { LINK_NORMAL, LINK_MAILTO, LINK_NEWWINDOW };
544 void setWidgetVisible(::khtml::RenderWidget *,
bool visible);
553 KHTMLViewPrivate *
const d;
This file is part of the HTML rendering engine for KDE.
int marginWidth() const
Returns the margin width.
virtual void timerEvent(QTimerEvent *event)
virtual void scrollContentsBy(int dx, int dy) override
This library provides a full-featured HTML parser and widget.
This class is khtml's main class.
Base Class for all rendering tree objects.
KHTMLPart * part() const
Returns a pointer to the KHTMLPart that is rendering the page.
Renders and displays HTML in a QScrollArea.
the StyleSelector implementation for CSS.
ScriptableExtension * host() const
SmoothScrollingMode
Smooth Scrolling Mode enumeration.
int marginHeight()
Returns the margin height.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Dec 6 2023 04:08:38 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.