scim 1.4.18
|
The base class to implement FilterInstance classes. More...
#include <scim_filter.h>
Friends | |
class | FilterInstanceBaseImpl |
The base class to implement FilterInstance classes.
All FilterInstance classes should derive from this base class, and some base methods should be override in the derived classes.
scim::FilterInstanceBase::FilterInstanceBase | ( | FilterFactoryBase * | factory, |
const IMEngineInstancePointer & | orig_inst ) |
Constructor.
The Constructor of derived class should call this Contructor with the following two parameters.
The orig_inst should be created by invoking FilterFactoryBase::create_instance() within the same method of derived FilterFactory classes.
factory | the FilterFactory which creates this instance. |
orig_inst | the original IMEngineInstance to be filtered. |
|
virtual |
Set the working encoding for this filter instance as well as the original instance which is currently filtered.
This method could be overrided in derived class to do some extra job. But the method of this base class must be invoked within the new method.
After invoking this method, reset() should be invoked to let the new encoding take effect.
If you want to use different encodings in this filter instance and the original instance which is currently filtered, this method should be overrided in the derived class and two different encodings should be set respectively by calling FilterInstanceBase::set_encoding() and IMEngineInstanceBase::set_encoding (); The code may look like:
bool XXXFilterInstance::set_encoding (const String &encoding) { FilterInstanceBase::set_encoding ("Other Encoding"); // Set the encoding of the original instance to another one. return IMEngineInstanceBase::set_encoding (encoding); // Set the encoding of this filter instance to the desired one. }
Reimplemented from scim::IMEngineInstanceBase.
Process a key event.
key | - the key event to be processed. |
Implements scim::IMEngineInstanceBase.
Move the preedit caret in the preedit string.
pos | - the new position that user requested. |
Reimplemented from scim::IMEngineInstanceBase.
Select a candidate in current lookup table.
When user click a candidate directly, this method will be invoked by FrontEnd.
index | - the index in current page of the selected candidate. |
Reimplemented from scim::IMEngineInstanceBase.
|
virtual |
Update the page size of current lookup table.
In the next time, the lookup table should page down by this size.
page_size | - the new size of current page. |
Reimplemented from scim::IMEngineInstanceBase.
Flip the lookup table to the previous page.
The method will be invoked by FrontEnd when user click the lookup table page up button.
Reimplemented from scim::IMEngineInstanceBase.
Flip the lookup table to the next page.
The method will be invoked by FrontEnd when user click the lookup table page down button.
Reimplemented from scim::IMEngineInstanceBase.
Reset this engine instance.
All status of this engine instance should be reset, including the working encoding.
The client encoding may have been changed before calling this method, so if the IMEngine makes use of the client's encoding information, it should check whether the encoding has been changed. IMEngineInstance could call the get_encoding () method of base class to get the client encoding.
Reimplemented from scim::IMEngineInstanceBase.
Focus in this engine instance.
This function should update/show/hide the status area, preedit area and lookup table, and update the full width punctuation/letter state.
Reimplemented from scim::IMEngineInstanceBase.
Focus out this engine instance.
Reimplemented from scim::IMEngineInstanceBase.
Trigger a property.
This function should do some action according to the triggered property. For example toggle the input mode, etc.
property | the key of the triggered property. |
Reimplemented from scim::IMEngineInstanceBase.
|
virtual |
Process the events sent from a Client Helper process.
helper_uuid | The UUID of the Helper process which sent the events. |
trans | The transaction which contains the events. |
Reimplemented from scim::IMEngineInstanceBase.
Update the capabilities of current client application which is attached to this IMEngineInstance.
Some client may not support all capabilities provided by the IMEngine API. For example:
This method will be called to inform this IMEngineInstance object which capabilities are supported by the client application. It may be called multiple times, if the capabilities was changed.
cap | A bitmask to indicate which client capabilities are supported by the client application. |
Reimplemented from scim::IMEngineInstanceBase.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |