Public Member Functions | |
virtual void UC_DLL_CALL | setSuffix (const char *suffix)=0 |
virtual void UC_DLL_CALL fe::IDecoratorExtensionFactory::setSuffix | ( | const char * | suffix | ) | [pure virtual] |
Instructs the factory that it should use a filename suffix as a key to select appropriate text decoration scheme for editor extension when createExtension() is called.
The suffix is normally extracted from the name of a text file whose contents are loaded in a Ferry editor, e.g.: 'h', 'html', 'sh', etc. Though there are some well-known filenames like 'Makefile', 'configure', etc. that don't have suffixes. In these cases pass the file basename prefixed with the '/' character to the function, e.g.: '/Makefile'. This is needed so that implementation can distinguish between suffixes and well-known filenames.
The exact set of recognized suffixes and well-known filenames is implementation specific.
suffix | a null-terminated ISO-8859-1 encoded string that specifies the filename suffix or the well-known filename; if the value specifies a well-known filename the suffix[0] should be the '/' character. |