~ubuntu-branches/ubuntu/edgy/koffice/edgy-updates

« back to all changes in this revision

Viewing changes to kword/contents.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040509113300-xi5t1z4yxe7n03x7
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
class KWTextFrameSet;
24
24
class KMacroCommand;
25
 
class KWStyle;
26
 
#include <qrichtext_p.h>
27
 
using namespace Qt3;
 
25
class KoStyle;
 
26
#include <korichtext.h>
28
27
 
29
28
// This command inserts a TOC at the beginning of a frameset, and is able to undo that.
30
29
// The reason we don't use KWTextFrameSet's insert, applyStyle etc. is that it would
31
30
// generate many many subcommands (resulting in much memory use).
32
 
class KWInsertTOCCommand : public QTextCommand
 
31
class KWInsertTOCCommand : public KoTextDocCommand
33
32
{
34
33
public:
35
34
    // The parag is where the TOC should be inserted
36
 
    KWInsertTOCCommand( KWTextFrameSet *fs, QTextParag *parag );
37
 
    QTextCursor *execute( QTextCursor *c );
38
 
    QTextCursor *unexecute( QTextCursor *c );
 
35
    KWInsertTOCCommand( KWTextFrameSet *fs, KoTextParag *parag );
 
36
    KoTextCursor *execute( KoTextCursor *c );
 
37
    KoTextCursor *unexecute( KoTextCursor *c );
39
38
 
40
39
    // Helper method, public for KWTextFrameSet::insertTOC().
41
40
    // Remove a toc based on the parag styles
42
 
    static QTextCursor * removeTOC( KWTextFrameSet *fs, QTextCursor *cursor, KMacroCommand *macroCmd );
 
41
    static KoTextCursor * removeTOC( KWTextFrameSet *fs, KoTextCursor *cursor, KMacroCommand *macroCmd );
43
42
 
44
43
protected:
45
44
    // Find or create a toc style
46
 
    static KWStyle * findOrCreateTOCStyle( KWTextFrameSet *fs, int depth );
 
45
    static KoStyle * findOrCreateTOCStyle( KWTextFrameSet *fs, int depth );
47
46
 
48
47
    int m_paragId;
49
48
};