+2005-02-25 Angus Leeming <leeming@lyx.org>
+
+ * context.h: declare as "class Font" rather than "struct Font".
+ Ditto "class Context".
+
+ * table.C: declare as "class ColInfo" rather than "struct ColInfo".
+ Ditto "class RowInfo" and "class CellInfo".
+
+ Changes to make MSVC agree to link the code.
+
2005-02-05 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* context.C (begin_deeper, end_deeper): adjust output to LyX
* If more font related stuff is needed, it might be good to change to
* LyXFont.
*/
-struct Font {
+class Font {
+public:
Font()
{
init();
// A helper struct
-struct Context {
+class Context {
+public:
Context(bool need_layout_,
LyXTextClass const & textclass_,
LyXLayout_ptr layout_ = LyXLayout_ptr(),
Font font;
};
-
#endif
namespace {
-struct ColInfo
-{
+class ColInfo {
+public:
ColInfo() : align('c'), rightline(false), leftline(false) {}
/// column alignment
char align;
};
-struct RowInfo
-{
+class RowInfo {
+public:
RowInfo() : topline(false), bottomline(false), type(LT_NORMAL),
newpage(false) {}
/// horizontal line above
};
-struct CellInfo
-{
+class CellInfo {
+public:
CellInfo() : multi(0), align('n'), leftline(false), rightline(false),
topline(false), bottomline(false) {}
/// cell content