Andre Poenitz wrote:

> 
> Angus,
> 
> paragraph.h includes inset.h only to get access to InsetOld::Code
> which is used only for
> 
> bool insetAllowed(InsetOld::Code code);
> 
> 
> You have a remedy for such cases, don't you?
> 
> Andre'

Yes. See the bottom of either LColor.h or lyxfont.h. Alternatively, 
here's the prescription:

class InsetOld_code {
        InsetOld::Code val_;
public:
        InsetOld_code(InsetOld::Code val) : val_(val) {}
        operator InsetOld::Code() const{ return val_; }
};

Then in paragraph.h:
remove #include "inset.h"
forward decalare InsetOld_code;
change the function signature to 
        bool insetAllowed(InsetOld_code code);

Anf in paragraph.C:
add #include "inset.h"
change the function signature to
        bool Paragraph::insetAllowed(InsetOld_code code)

Done!

-- 
Angus

Reply via email to