mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
remove special TEX2LYX code in Spacing,h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31783 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
56b1078e78
commit
0a868fb846
@ -589,7 +589,6 @@ src_mathed_extra_files = Split('''
|
|||||||
src_tex2lyx_header_files = Split('''
|
src_tex2lyx_header_files = Split('''
|
||||||
Context.h
|
Context.h
|
||||||
Parser.h
|
Parser.h
|
||||||
Spacing.h
|
|
||||||
tex2lyx.h
|
tex2lyx.h
|
||||||
''')
|
''')
|
||||||
|
|
||||||
@ -628,6 +627,7 @@ src_tex2lyx_copied_files = Split('''
|
|||||||
lengthcommon.cpp
|
lengthcommon.cpp
|
||||||
Lexer.cpp
|
Lexer.cpp
|
||||||
ModuleList.cpp
|
ModuleList.cpp
|
||||||
|
Spacing.cpp
|
||||||
TextClass.cpp
|
TextClass.cpp
|
||||||
insets/InsetLayout.cpp
|
insets/InsetLayout.cpp
|
||||||
''')
|
''')
|
||||||
|
@ -12,10 +12,6 @@
|
|||||||
#ifndef SPACING_H
|
#ifndef SPACING_H
|
||||||
#define SPACING_H
|
#define SPACING_H
|
||||||
|
|
||||||
#ifdef TEX2LYX
|
|
||||||
#include "tex2lyx/Spacing.h"
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "support/strfwd.h"
|
#include "support/strfwd.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -95,5 +91,4 @@ bool operator!=(Spacing const & a, Spacing const & b)
|
|||||||
|
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // TEX2LYX
|
|
||||||
#endif // SPACING_H
|
#endif // SPACING_H
|
||||||
|
@ -36,15 +36,12 @@ LINKED_FILES = \
|
|||||||
../Floating.cpp \
|
../Floating.cpp \
|
||||||
../FontInfo.cpp \
|
../FontInfo.cpp \
|
||||||
../insets/InsetLayout.cpp \
|
../insets/InsetLayout.cpp \
|
||||||
../LayoutFile.h \
|
|
||||||
../Layout.h \
|
|
||||||
../Layout.cpp \
|
../Layout.cpp \
|
||||||
../LayoutModuleList.h \
|
|
||||||
../LayoutModuleList.cpp \
|
../LayoutModuleList.cpp \
|
||||||
../lengthcommon.cpp \
|
../lengthcommon.cpp \
|
||||||
../Lexer.cpp \
|
../Lexer.cpp \
|
||||||
../ModuleList.h \
|
|
||||||
../ModuleList.cpp \
|
../ModuleList.cpp \
|
||||||
|
../Spacing.cpp \
|
||||||
../TextClass.cpp \
|
../TextClass.cpp \
|
||||||
../TextClass.h
|
../TextClass.h
|
||||||
|
|
||||||
@ -59,7 +56,6 @@ tex2lyx_SOURCES = \
|
|||||||
Parser.cpp \
|
Parser.cpp \
|
||||||
Parser.h \
|
Parser.h \
|
||||||
preamble.cpp \
|
preamble.cpp \
|
||||||
Spacing.h \
|
|
||||||
table.cpp \
|
table.cpp \
|
||||||
tex2lyx.cpp \
|
tex2lyx.cpp \
|
||||||
tex2lyx.h \
|
tex2lyx.h \
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
// -*- C++ -*-
|
|
||||||
/**
|
|
||||||
* \file tex2lyx/Spacing.h
|
|
||||||
* This file is part of LyX, the document processor.
|
|
||||||
* Licence details can be found in the file COPYING.
|
|
||||||
*
|
|
||||||
* \author Angus Leeming
|
|
||||||
*
|
|
||||||
* Full author contact details are available in file CREDITS.
|
|
||||||
*
|
|
||||||
* This class is just a dummy version of that in the main LyX source tree
|
|
||||||
* to enable tex2lyx to use LyX's textclass classes and not have to
|
|
||||||
* re-invent the wheel.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef TEX2LYX_SPACING_H
|
|
||||||
#define TEX2LYX_SPACING_H
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
|
||||||
|
|
||||||
class Spacing {
|
|
||||||
public:
|
|
||||||
///
|
|
||||||
enum Space {
|
|
||||||
Single,
|
|
||||||
Onehalf,
|
|
||||||
Double,
|
|
||||||
Other,
|
|
||||||
Default
|
|
||||||
};
|
|
||||||
///
|
|
||||||
void set(Spacing::Space, double = 1.0) {}
|
|
||||||
///
|
|
||||||
void set(Spacing::Space, std::string const &) {}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace lyx
|
|
||||||
|
|
||||||
#endif // TEX2LYX_SPACING_H
|
|
Loading…
Reference in New Issue
Block a user