commit: HEAD more work for the grammar checking plugin

From: <msevior_at_physics.unimelb.edu.au>
Date: Sat Jan 22 2005 - 13:39:08 CET

CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: src/af/xap/xp/xap_App.cpp src/af/xap/xp/xap_App.h
CVS: src/af/xap/xp/xav_Listener.h src/af/xap/xp/xav_View.cpp
CVS: src/af/xap/xp/xav_View.h src/text/fmt/xp/fl_DocLayout.h
CVS: src/text/fmt/xp/fl_SectionLayout.cpp
CVS: src/wp/ap/unix/ap_UnixDialog_Options.glade
CVS: ----------------------------------------------------------------------
Some more work for the grammar checking plugin framework.

I have created a new listener sub-class:

class ABI_EXPORT AV_ListenerExtra : public AV_Listener
{
public:
        virtual bool notify(AV_View * pView, const AV_ChangeMask mask, void *
pPrivateData =NULL) = 0;
        virtual AV_ListenerType getType(void) = 0;
};

The void * pointer in the notify method will hold a pointer to the
fl_BlockLayout class to be grammar-checked.

The idea is that a block to be grammar checked will be passed to a plugin
which extracts the text, does the grammar checking and marks the block
with grammar sqiggles.

Clearly plugins that derive from AV_ListenerExtra had better make sure that
the void * pointer points to the type of object they expect. This can be
accomplished ina variety of ways. I'm using the value of AV_ChangeMask
mask to indicate the that pPrivateData poitns to a fl_BlockLayout class.

cheers

Martin
Received on Sat Jan 22 13:39:58 2005

This archive was generated by hypermail 2.1.8 : Sat Jan 22 2005 - 13:40:00 CET