filters

KSpread::Leader Class Reference

#include <KSpreadLeader.h>

List of all members.


Detailed Description

This class is a leader which will call the callbacks to the worker with your own implementation for your export filter.A Leader for an KSpread export filter.

To write an export filter, just instanciate a leader and implement you own worker based on the BaseWorker.

Author:
Fred Malabre
See also:
KSpreadBaseWorker

KoFilter

Definition at line 46 of file KSpreadLeader.h.


Public Member Functions

 Leader (KoFilterChain *filterChain)
 Leader (KoFilterChain *filterChain, KSpreadBaseWorker *newWorker)
virtual ~Leader ()
void setWorker (KSpreadBaseWorker *newWorker)
KoFilter::ConversionStatus convert ()

Protected Member Functions

KSpreadBaseWorkergetWorker () const
KoFilter::ConversionStatus doSpreadCell (Cell *spreadCell, int column, int row)
KoFilter::ConversionStatus doSpreadSheet (Sheet *spreadSheet)
KoFilter::ConversionStatus doSpreadBook (Doc *document)
KoFilter::ConversionStatus doInfo (KoDocumentInfo *info)

Constructor & Destructor Documentation

Leader::Leader ( KoFilterChain *  filterChain  ) 

Default constructor.

Call setWorker() before starting to convert the KSpread document.

Parameters:
the filter chain of the filter using the lib.

Definition at line 25 of file KSpreadLeader.cc.

Leader::Leader ( KoFilterChain *  filterChain,
KSpreadBaseWorker newWorker 
)

This constructor set up the Worker at initialization.

convert can be called right away after instanciation of the Leader.

Parameters:
the filter chain of the filter using the lib.
implementation of a class derived from KSpreadWorker.

Definition at line 31 of file KSpreadLeader.cc.

Leader::~Leader (  )  [virtual]

Default destructor.

It does nothing.

Definition at line 37 of file KSpreadLeader.cc.


Member Function Documentation

void Leader::setWorker ( KSpreadBaseWorker newWorker  ) 

Set your own implementation of the Worker.

Parameters:
implementation of a class derived from KSpreadWorker.

Definition at line 46 of file KSpreadLeader.cc.

KoFilter::ConversionStatus Leader::convert (  ) 

Start the conversion process.

The callbacks of your Worker will be called at this time.

Returns:
status of the conversion.

Definition at line 51 of file KSpreadLeader.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys