Martin Vermeer wrote:

> On Sun, Mar 20, 2005 at 01:02:43PM +0000, John Spray wrote:
>> On Sun, 2005-03-20 at 12:42 +0000, Angus Leeming wrote:
>> > Add an extra 'const':
>> > char const * const encodings[] = ...
>> Done.  Someone might want to do the same for QDocument.C, since that's
>> where I ripped it from (I can only commit to gtk directory).
> 
> Hmmm... is there a way to _include_ things like this between frontends,
> rather than _copy_ them?

Sure. Move the thing to frontends/controllers/ControlDocument.C and add an
accessor to the .h file:

namespace lyx {
namespace frontend {
namespace document_extras {
    std::vector<std::string> const encodings();
    // Maybe this is permissible?
    // extern char const * const encodings[];
} } }

Or somesuch.
-- 
Angus

Reply via email to