mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Compare commits
No commits in common. "2facf6eecc769dc546d08faad258002ef6137512" and "82005736e4be7f3ee8e8cd4d402b3bd17db610d5" have entirely different histories.
2facf6eecc
...
82005736e4
2
INSTALL
2
INSTALL
@ -53,7 +53,7 @@ Requirements
|
||||
------------
|
||||
|
||||
First of all, you will need a C++11 standard conforming compiler, like g++ (at
|
||||
least 5.0, to have proper std::regex & std::string) or clang++.
|
||||
least 4.9, to have proper srd::regex) or clang++.
|
||||
|
||||
LyX makes great use of the C++ Standard Library. This means that gcc
|
||||
users will have to install the relevant libstdc++ library to be able
|
||||
|
4
README
4
README
@ -87,8 +87,8 @@ How do I upgrade from an earlier LyX version?
|
||||
What do I need to compile LyX from the source distribution?
|
||||
|
||||
* A C++11 compiler. Development is being done mainly with gcc/g++,
|
||||
but clang and MSVC are known to work too. As of LyX 2.5.0, you
|
||||
need at least gcc 5.0.
|
||||
but clang and MSVC are known to work too. As of LyX 2.4.0, you
|
||||
need at least gcc 4.9.
|
||||
|
||||
* The Qt library, at least version 5.2 (5.6 recommended). It is
|
||||
also possible to compile with Qt 6.x.
|
||||
|
@ -168,4 +168,9 @@
|
||||
#define HAVE_MODE_T
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
|
||||
#include "support/strfwd.h" // always first, to prevent compiler's interpretation/instantiations of some typedef
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -38,8 +38,6 @@
|
||||
|
||||
- The support for (long unmaintained) eLyXer was removed.
|
||||
|
||||
- When compiling with GCC, LyX know needs at least version >= 5.
|
||||
|
||||
|
||||
!!Known issues in version 2.5.0
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef BOX_H
|
||||
#define BOX_H
|
||||
|
||||
#include <ostream>
|
||||
#include "support/strfwd.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
@ -16,12 +16,13 @@
|
||||
#include "OutputEnums.h"
|
||||
|
||||
#include "support/unique_ptr.h"
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "support/types.h"
|
||||
|
||||
#include <map>
|
||||
#include <list>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
|
||||
#include "Encoding.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
class Buffer;
|
||||
|
@ -12,7 +12,8 @@
|
||||
#ifndef BUFFER_LIST_H
|
||||
#define BUFFER_LIST_H
|
||||
|
||||
#include <string>
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "TexRow.h"
|
||||
#include "update_flags.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
#include "support/types.h"
|
||||
|
||||
namespace lyx {
|
||||
|
@ -15,6 +15,7 @@
|
||||
#ifndef CHANGES_H
|
||||
#define CHANGES_H
|
||||
|
||||
#include "support/strfwd.h"
|
||||
#include "support/types.h"
|
||||
#include "support/lyxtime.h"
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
#define CITATION_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace lyx {
|
||||
|
@ -12,9 +12,10 @@
|
||||
#ifndef CMDDEF_H
|
||||
#define CMDDEF_H
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "ColorCode.h"
|
||||
|
||||
#include <string>
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -19,10 +19,10 @@
|
||||
#ifndef COLORSET_H
|
||||
#define COLORSET_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "Color.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -13,11 +13,12 @@
|
||||
#define CONVERTER_H
|
||||
|
||||
#include "Graph.h"
|
||||
#include "support/docstring.h"
|
||||
#include "support/trivstring.h"
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
@ -21,7 +21,7 @@
|
||||
#ifndef CONVERTERCACHE_H
|
||||
#define CONVERTERCACHE_H
|
||||
|
||||
#include <string>
|
||||
#include "support/strfwd.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
@ -18,6 +18,7 @@
|
||||
#define CURSORSLICE_H
|
||||
|
||||
#include "support/types.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "insets/Inset.h"
|
||||
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "Author.h"
|
||||
#include "DocumentClassPtr.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
#include "support/types.h"
|
||||
|
||||
#include "frontends/Clipboard.h"
|
||||
|
@ -14,6 +14,7 @@
|
||||
#define ENCODING_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/trivstring.h"
|
||||
#include "support/types.h"
|
||||
|
||||
#include <map>
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
#include "TexRow.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
|
@ -12,7 +12,10 @@
|
||||
#ifndef FLOATING_H
|
||||
#define FLOATING_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
#include "FontInfo.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "support/lstrings.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
|
||||
using namespace std;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "FontEnums.h"
|
||||
|
||||
#include "support/Changer.h"
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
@ -12,9 +12,11 @@
|
||||
#ifndef FORMAT_H
|
||||
#define FORMAT_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "support/trivstring.h"
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -17,6 +17,8 @@
|
||||
#include "FuncRequest.h"
|
||||
#include "KeySequence.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include "OutputParams.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
#include "support/FileName.h"
|
||||
#include "support/signals.h"
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
#define LANGUAGE_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/trivstring.h"
|
||||
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
#include "TextClass.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -14,7 +14,8 @@
|
||||
#ifndef LYX_H
|
||||
#define LYX_H
|
||||
|
||||
#include <string>
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace lyx {
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "update_flags.h"
|
||||
|
||||
#include "support/Length.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "support/userinfo.h"
|
||||
|
||||
#include <map>
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "support/docstring.h"
|
||||
#include "support/unique_ptr.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "ColorCode.h"
|
||||
#include "FontInfo.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
#include "support/Changer.h"
|
||||
|
||||
#include "insets/Inset.h"
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "support/lstrings.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
||||
using namespace std;
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "LayoutEnums.h"
|
||||
#include "SpellChecker.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
#include "support/types.h"
|
||||
|
||||
#include "insets/InsetCode.h"
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "Spacing.h"
|
||||
|
||||
#include "support/types.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "support/Length.h"
|
||||
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
#ifndef PERSONAL_WORD_LIST_H
|
||||
#define PERSONAL_WORD_LIST_H
|
||||
|
||||
#include "support/strfwd.h"
|
||||
#include "support/docstring_list.h"
|
||||
#include "support/FileName.h"
|
||||
|
||||
|
@ -12,6 +12,8 @@
|
||||
#ifndef SPACING_H
|
||||
#define SPACING_H
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
@ -13,7 +13,7 @@
|
||||
#ifndef SPELL_BASE_H
|
||||
#define SPELL_BASE_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
#include <vector>
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef STATISTICS_H
|
||||
#define STATISTICS_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "support/types.h"
|
||||
|
||||
namespace lyx {
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#ifdef ERROR
|
||||
|
@ -13,7 +13,7 @@
|
||||
#ifndef THESAURUS_H
|
||||
#define THESAURUS_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "Toc.h"
|
||||
#include "TocBuilder.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
#include "support/unique_ptr.h"
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include "Toc.h"
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <stack>
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "FuncCode.h"
|
||||
#include "update_flags.h"
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
#ifndef BASE_CLIPBOARD_H
|
||||
#define BASE_CLIPBOARD_H
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
class Cursor;
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef DELEGATES_H
|
||||
#define DELEGATES_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef FONTLOADER_H
|
||||
#define FONTLOADER_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
|
||||
#include "support/mute_warning.h"
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#ifndef PAINTER_H
|
||||
#define PAINTER_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "support/types.h"
|
||||
|
||||
namespace lyx {
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef SELECTION_H
|
||||
#define SELECTION_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
namespace frontend {
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef LYX_ALERT_H
|
||||
#define LYX_ALERT_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
@ -17,6 +17,8 @@
|
||||
#ifndef LYX_CATEGORIZEDCOMBO_H
|
||||
#define LYX_CATEGORIZEDCOMBO_H
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <QComboBox>
|
||||
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
|
||||
#include "insets/InsetCode.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
class QSettings;
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "ui_FindAndReplaceUi.h"
|
||||
#include "support/docstring.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -49,6 +49,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <regex>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include <QScrollBar>
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -12,8 +12,6 @@
|
||||
#ifndef GUIDELIMITERDIALOG_H
|
||||
#define GUIDELIMITERDIALOG_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
|
||||
#include "GuiDialog.h"
|
||||
|
||||
#include "ui_DelimiterUi.h"
|
||||
|
@ -12,12 +12,11 @@
|
||||
#ifndef GUISYMBOLSDIALOG_H
|
||||
#define GUISYMBOLSDIALOG_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
|
||||
#include "DialogView.h"
|
||||
#include "ui_SymbolsUi.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace lyx {
|
||||
|
@ -20,6 +20,8 @@
|
||||
#include <QToolBar>
|
||||
#include <QToolButton>
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
class QSettings;
|
||||
|
||||
namespace lyx {
|
||||
|
@ -4437,7 +4437,8 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
case LFUN_BUFFER_EXPORT: {
|
||||
if (!doc_buffer)
|
||||
break;
|
||||
if (cmd.argument() == "custom") {
|
||||
// GCC only sees strfwd.h when building merged
|
||||
if (::lyx::operator==(cmd.argument(), "custom")) {
|
||||
// LFUN_MASTER_BUFFER_EXPORT is not enabled for this case,
|
||||
// so the following test should not be needed.
|
||||
// In principle, we could try to switch to such a view...
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
#include "frontends/Delegates.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QLabel>
|
||||
#include <QMenu>
|
||||
|
@ -12,8 +12,6 @@
|
||||
#ifndef INSET_PARAMS_DIALOG_H
|
||||
#define INSET_PARAMS_DIALOG_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
|
||||
#include "DialogView.h"
|
||||
#include "ui_InsetParamsUi.h"
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "FuncCode.h"
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#ifndef LYX_LAYOUT_BOX_H
|
||||
#define LYX_LAYOUT_BOX_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <QComboBox>
|
||||
|
||||
|
@ -15,6 +15,9 @@
|
||||
#ifndef GRAPHICSTYPES_H
|
||||
#define GRAPHICSTYPES_H
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
namespace graphics {
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef PREVIEWIMAGE_H
|
||||
#define PREVIEWIMAGE_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "RowFlags.h"
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "support/types.h"
|
||||
|
||||
#include <climits>
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#include "support/docstring.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "support/docstring.h"
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
#ifndef LYXFIND_H
|
||||
#define LYXFIND_H
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
// FIXME
|
||||
#include "support/docstring.h"
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "support/lstrings.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <ostream>
|
||||
|
||||
using namespace lyx::support;
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
#define MATH_MATRIXINSET_H
|
||||
|
||||
#include "InsetMathGrid.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef MATHAUTOCORRECT_H
|
||||
#define MATHAUTOCORRECT_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -20,6 +20,8 @@
|
||||
#include "support/docstring.h"
|
||||
#include "support/lassert.h"
|
||||
|
||||
#include <ostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace lyx {
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef MATH_CLASS_H
|
||||
#define MATH_CLASS_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -21,6 +21,8 @@
|
||||
#include "Dimension.h"
|
||||
#include "OutputEnums.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <vector>
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef MATH_EXTERN_H
|
||||
#define MATH_EXTERN_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
#include "MathParser.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
namespace lyx {
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <ostream>
|
||||
#include <FontInfo.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "texstream.h"
|
||||
|
||||
#include "support/Changer.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
@ -14,7 +14,7 @@
|
||||
#define MATH_SUPPORT_H
|
||||
|
||||
#include "MathParser_flags.h"
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "ParagraphList.h"
|
||||
|
||||
#include "support/docstream.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "xml.h"
|
||||
|
||||
namespace lyx {
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef OUTPUT_PLAINTEXT_H
|
||||
#define OUTPUT_PLAINTEXT_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
#include "support/types.h"
|
||||
|
||||
#include <climits>
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
#include "LayoutEnums.h"
|
||||
|
||||
#include "support/strfwd.h"
|
||||
#include "xml.h"
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#ifndef CONSOLEAPPLICATION_H
|
||||
#define CONSOLEAPPLICATION_H
|
||||
|
||||
#include <string>
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
#define FILENAME_H
|
||||
|
||||
#include "support/os.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <ctime>
|
||||
#include <set>
|
||||
|
@ -15,7 +15,7 @@
|
||||
#define FORKEDCALLS_H
|
||||
|
||||
#include "support/signals.h"
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef LENGTH_H
|
||||
#define LENGTH_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
@ -17,7 +17,8 @@
|
||||
#ifndef LEXER_H
|
||||
#define LEXER_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -106,6 +106,7 @@ liblyxsupport_a_SOURCES = \
|
||||
signals.h \
|
||||
socktools.cpp \
|
||||
socktools.h \
|
||||
strfwd.h \
|
||||
Systemcall.cpp \
|
||||
Systemcall.h \
|
||||
SystemcallPrivate.h \
|
||||
@ -115,6 +116,8 @@ liblyxsupport_a_SOURCES = \
|
||||
Translator.h \
|
||||
Timeout.cpp \
|
||||
Timeout.h \
|
||||
trivstring.cpp \
|
||||
trivstring.h \
|
||||
types.h \
|
||||
unique_ptr.h \
|
||||
userinfo.cpp \
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "support/docstring.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef LYX_SUPPORT_PROGRESSINTERFACE_H
|
||||
#define LYX_SUPPORT_PROGRESSINTERFACE_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
class QString;
|
||||
|
||||
|
@ -15,6 +15,8 @@
|
||||
#ifndef SYSTEMCALL_H
|
||||
#define SYSTEMCALL_H
|
||||
|
||||
#include "strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
namespace support {
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "support/convert.h"
|
||||
#include "support/docstring.h"
|
||||
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
//needed for Mac OSX 10.5.2 Leopard
|
||||
#include <cstdlib>
|
||||
|
@ -16,7 +16,7 @@
|
||||
#ifndef CONVERT_H
|
||||
#define CONVERT_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#ifndef COUNTER_REPS_H
|
||||
#define COUNTER_REPS_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef LYXDEBUG_H
|
||||
#define LYXDEBUG_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
#include "support/strfwd.h"
|
||||
|
||||
// Forward definitions do not work with libc++
|
||||
// but ios_base has already been defined in strfwd
|
||||
|
@ -13,68 +13,12 @@
|
||||
#ifndef LYX_DOCSTRING_H
|
||||
#define LYX_DOCSTRING_H
|
||||
|
||||
#ifdef USE_WCHAR_T
|
||||
|
||||
// Prefer this if possible because GNU libstdc++ has usable
|
||||
// std::ctype<wchar_t> locale facets but not
|
||||
// std::ctype<boost::uint32_t>. gcc older than 3.4 is also missing
|
||||
// usable std::char_traits<boost::uint32_t>.
|
||||
namespace lyx { typedef wchar_t char_type; }
|
||||
|
||||
#else
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
|
||||
namespace lyx { typedef uint32_t char_type; }
|
||||
#include "support/numpunct_lyx_char_type.h" // implementation for our char_type needed
|
||||
#else
|
||||
namespace lyx { typedef std::uint32_t char_type; }
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#include "support/strfwd.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
/**
|
||||
* String type for storing the main text in UCS4 encoding.
|
||||
* Use std::string only in cases 7-bit ASCII is to be manipulated
|
||||
* within the variable.
|
||||
*/
|
||||
typedef std::basic_string<char_type, std::char_traits<char_type>,
|
||||
std::allocator<char_type> > docstring;
|
||||
|
||||
/// Base class for UCS4 input streams
|
||||
typedef std::basic_istream<char_type, std::char_traits<char_type> > idocstream;
|
||||
|
||||
/// Base class for UCS4 output streams
|
||||
typedef std::basic_ostream<char_type, std::char_traits<char_type> > odocstream;
|
||||
|
||||
/// UCS4 output stringstream
|
||||
typedef std::basic_ostringstream<char_type, std::char_traits<char_type>, std::allocator<char_type> > odocstringstream;
|
||||
|
||||
#if ! defined(USE_WCHAR_T)
|
||||
extern odocstream & operator<<(odocstream &, char);
|
||||
#endif
|
||||
|
||||
// defined in lstrings.cpp
|
||||
docstring const & empty_docstring();
|
||||
std::string const & empty_string();
|
||||
// defined in docstring.cpp
|
||||
bool operator==(docstring const &, char const *);
|
||||
|
||||
//trivstring signalizes thread-safety request; should not be needed for any
|
||||
//C++11 conformant std::basic_string, e.g. GCC >= 5.
|
||||
//Once properly tested we can ditch these two in favour of std::string/docstring.
|
||||
typedef std::string trivstring;
|
||||
typedef docstring trivdocstring;
|
||||
|
||||
} // namespace lyx
|
||||
|
||||
namespace lyx {
|
||||
|
||||
/// Creates a docstring from a C string of ASCII characters
|
||||
docstring const from_ascii(char const *);
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user