editors/qeditor/qeditor_indenter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
#ifndef QEDITOR_INDENTER_H
00043
#define QEDITOR_INDENTER_H
00044
00045
#include <qstring.h>
00046
#include <qvariant.h>
00047
#include <qmap.h>
00048
#include <private/qrichtext_p.h>
00049
00050
class QEditorPart;
00051
class KDialogBase;
00052
class QEditor;
00053
00054 class QEditorIndenter:
public QTextIndent{
00055
public:
00056
QEditorIndenter(
QEditor* );
00057
virtual ~QEditorIndenter();
00058
00059 virtual QWidget*
createConfigPage(
QEditorPart*,
KDialogBase* =0,
const char* =0 ) {
return 0; }
00060
00061 virtual const QMap<QString, QVariant>&
values()
const {
return m_values; }
00062 virtual void updateValues(
const QMap<QString, QVariant>& values ) {
m_values = values; }
00063
00064 QEditor*
editor()
const {
return m_editor; }
00065
00066
virtual void tabify(
QString& text );
00067
virtual void indentLine( QTextParagraph *p,
int &oldIndent,
int &newIndent );
00068
virtual int indentation(
const QString& s );
00069
00070
virtual int previousNonBlankLine(
int line );
00071
virtual int indentForLine(
int line ) = 0;
00072
virtual void indent( QTextDocument*, QTextParagraph*,
int* =0,
int* =0 );
00073
00074
protected:
00075 QEditor*
m_editor;
00076 QMap<QString, QVariant> m_values;
00077 };
00078
00079
00080
#endif
This file is part of the documentation for KDevelop Version 3.0.4.