mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Declare stuff with a constructor as "class Foo" rather than "struct Foo".
Nonsense to keep MSVC happy. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9684 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
08e06a8eb3
commit
1f735c7380
@ -1,3 +1,13 @@
|
||||
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
|
||||
|
@ -23,7 +23,8 @@
|
||||
* If more font related stuff is needed, it might be good to change to
|
||||
* LyXFont.
|
||||
*/
|
||||
struct Font {
|
||||
class Font {
|
||||
public:
|
||||
Font()
|
||||
{
|
||||
init();
|
||||
@ -43,7 +44,8 @@ struct Font {
|
||||
|
||||
|
||||
// A helper struct
|
||||
struct Context {
|
||||
class Context {
|
||||
public:
|
||||
Context(bool need_layout_,
|
||||
LyXTextClass const & textclass_,
|
||||
LyXLayout_ptr layout_ = LyXLayout_ptr(),
|
||||
@ -106,5 +108,4 @@ struct Context {
|
||||
Font font;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -38,8 +38,8 @@ std::map<char, int> special_columns;
|
||||
|
||||
namespace {
|
||||
|
||||
struct ColInfo
|
||||
{
|
||||
class ColInfo {
|
||||
public:
|
||||
ColInfo() : align('c'), rightline(false), leftline(false) {}
|
||||
/// column alignment
|
||||
char align;
|
||||
@ -70,8 +70,8 @@ enum LTRowType
|
||||
};
|
||||
|
||||
|
||||
struct RowInfo
|
||||
{
|
||||
class RowInfo {
|
||||
public:
|
||||
RowInfo() : topline(false), bottomline(false), type(LT_NORMAL),
|
||||
newpage(false) {}
|
||||
/// horizontal line above
|
||||
@ -86,8 +86,8 @@ struct RowInfo
|
||||
};
|
||||
|
||||
|
||||
struct CellInfo
|
||||
{
|
||||
class CellInfo {
|
||||
public:
|
||||
CellInfo() : multi(0), align('n'), leftline(false), rightline(false),
|
||||
topline(false), bottomline(false) {}
|
||||
/// cell content
|
||||
|
Loading…
Reference in New Issue
Block a user