lib

#include <KoParagDia.h>

Public Member Functions

 KoStylePreview (const TQString &title, const TQString &text, TQWidget *parent, const char *name=0)
void setStyle (KoParagStyle *style)
void setCounter (const KoParagCounter &counter)

Protected Member Functions

void drawContents (TQPainter *painter)

Protected Attributes

KoTextDocument * m_textdoc
KoTextZoomHandler * m_zoomHandler

Detailed Description

KoStylePreview.

Previewing text with style :) Used in the parag bullet/number tab of the parag dia, and in the main tab of the stylist.

Definition at line 468 of file KoParagDia.h.

Constructor & Destructor Documentation

◆ KoStylePreview()

KoStylePreview::KoStylePreview ( const TQString & title,
const TQString & text,
TQWidget * parent,
const char * name = 0 )

Definition at line 788 of file KoParagDia.cpp.

◆ ~KoStylePreview()

KoStylePreview::~KoStylePreview ( )
virtual

Definition at line 802 of file KoParagDia.cpp.

Member Function Documentation

◆ drawContents()

void KoStylePreview::drawContents ( TQPainter * painter)
protected

Definition at line 822 of file KoParagDia.cpp.

◆ setCounter()

void KoStylePreview::setCounter ( const KoParagCounter & counter)

Set the given counter to the preview.

Definition at line 808 of file KoParagDia.cpp.

◆ setStyle()

void KoStylePreview::setStyle ( KoParagStyle * style)

Apply the given style to the preview.

Note that this overwrites anything done by setCounter.

Definition at line 815 of file KoParagDia.cpp.

Member Data Documentation

◆ m_textdoc

KoTextDocument* KoStylePreview::m_textdoc
protected

Definition at line 487 of file KoParagDia.h.

◆ m_zoomHandler

KoTextZoomHandler* KoStylePreview::m_zoomHandler
protected

Definition at line 488 of file KoParagDia.h.


The documentation for this class was generated from the following files: