29 #include "highlighter.h" 31 #if QT_VERSION < 0x040500 32 #error You must use Qt >= 4.5.0! 42 class HtmlEditor :
public QWidget
47 HtmlEditor(QWidget *parent = 0);
50 bool load(
const QString &f);
51 void resizeWebView(
int w,
int h);
61 virtual void closeEvent(QCloseEvent *e);
68 void setCurrentFileName(
const QString &fileName);
69 void execCommand(
const QString&);
70 void execCommand(
const QString &cmd,
const QString &arg);
71 bool queryCommandState(
const QString&);
72 QString qmlFilePath(
const QString& fileName);
80 void styleParagraph();
87 void stylePreformatted();
89 void formatStrikeThrough();
90 void formatAlignLeft();
91 void formatAlignCenter();
92 void formatAlignRight();
93 void formatAlignJustify();
94 void formatIncreaseIndent();
95 void formatDecreaseIndent();
96 void formatNumberedList();
97 void formatBulletedList();
98 void formatFontName();
99 void formatFontSize();
100 void formatTextColor();
101 void formatBackgroundColor();
107 void adjustActions();
110 void openLink(
const QUrl&);
111 void on_actionTextOutline_triggered();
112 void formatTextOutline(
const QString&);
113 void on_actionTextShadow_triggered();
114 void formatTextShadow(
const QString&);
121 Highlighter *highlighter;
122 Ui_Dialog *ui_dialog;
123 QDialog *insertHtmlDialog;
127 #endif // HTML_EDITOR_H