2007-10-13 10:23:16 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file InsetCode.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Alejandro Aguilar Sierra
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Jürgen Vigna
|
|
|
|
* \author Lars Gullik Bjønnes
|
2007-10-13 10:23:16 +00:00
|
|
|
* \author Matthias Ettrich
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INSETCODE_H
|
|
|
|
#define INSETCODE_H
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
enum InsetCode {
|
|
|
|
///
|
|
|
|
NO_CODE, // 0
|
|
|
|
///
|
|
|
|
TOC_CODE, // do these insets really need a code? (ale)
|
|
|
|
///
|
|
|
|
QUOTE_CODE,
|
|
|
|
///
|
|
|
|
MARK_CODE,
|
|
|
|
///
|
|
|
|
REF_CODE,
|
|
|
|
///
|
2007-10-13 19:06:09 +00:00
|
|
|
HYPERLINK_CODE, // 5
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
SEPARATOR_CODE,
|
|
|
|
///
|
|
|
|
ENDING_CODE,
|
|
|
|
///
|
|
|
|
LABEL_CODE,
|
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
NOTE_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
ACCENT_CODE, // 10
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
MATH_CODE,
|
|
|
|
///
|
|
|
|
INDEX_CODE,
|
|
|
|
///
|
|
|
|
INCLUDE_CODE,
|
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
GRAPHICS_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
BIBITEM_CODE, // 15
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
BIBTEX_CODE,
|
|
|
|
///
|
|
|
|
TEXT_CODE,
|
|
|
|
///
|
|
|
|
ERT_CODE,
|
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
FOOT_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
MARGIN_CODE, // 20
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
FLOAT_CODE,
|
|
|
|
///
|
|
|
|
WRAP_CODE,
|
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
SPACE_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
SPECIALCHAR_CODE,
|
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
TABULAR_CODE, // 25
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
EXTERNAL_CODE,
|
|
|
|
///
|
|
|
|
CAPTION_CODE,
|
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
MATHMACRO_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
CITE_CODE,
|
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
FLOAT_LIST_CODE, // 30
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
INDEX_PRINT_CODE,
|
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
OPTARG_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
2008-07-07 16:34:55 +00:00
|
|
|
CELL_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
*** File Format Change: UI and enhancement for InsetSpace ***
* src/insets/InsetSpace.{cpp,h}:
- merge in HFill inset, add support for dotfill, hrulefill,
hspace and hspace*
* src/insets/InsetHFill.{cpp,h}:
- remove
* src/frontends/qt4/GuiHSpace.{cpp,h}:
* src/frontends/qt4/ui/HSpaceUi.ui:
* src/frontends/qt4/GuiView:
- new GUI for Space insets.
* src/insets/Inset.{cpp,h}:
* src/insets/InsetCode.h:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetCommandParams.cpp:
- remove HFILL_CODE and LFUN_HFILL_INSERT, add SPACE_CODE where necessary,
new Inset member isStretchableSpace() to indicate HFill and friends.
* Buffer.cpp:
- increase format to 319
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
- conversion/reversion routines
* development/FORMAT:
- document file format change
* src/Makefile.am:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
- deal with UI changes.
* src/LyXAction.cpp:
- remove LFUN_HFILL_INSERT
* src/LyXFunc.cpp:
- handle space dialog.
* src/factory.cpp:
* src/Paragraph.cpp (isHFill):
* src/Text.cpp:
* src/Text3.cpp:
* src/TextMetrics.cpp:
- adapt to changes
* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
- add HSpace dialog, remove HFill.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 09:23:43 +00:00
|
|
|
NEWLINE_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
*** File Format Change: UI and enhancement for InsetSpace ***
* src/insets/InsetSpace.{cpp,h}:
- merge in HFill inset, add support for dotfill, hrulefill,
hspace and hspace*
* src/insets/InsetHFill.{cpp,h}:
- remove
* src/frontends/qt4/GuiHSpace.{cpp,h}:
* src/frontends/qt4/ui/HSpaceUi.ui:
* src/frontends/qt4/GuiView:
- new GUI for Space insets.
* src/insets/Inset.{cpp,h}:
* src/insets/InsetCode.h:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetCommandParams.cpp:
- remove HFILL_CODE and LFUN_HFILL_INSERT, add SPACE_CODE where necessary,
new Inset member isStretchableSpace() to indicate HFill and friends.
* Buffer.cpp:
- increase format to 319
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
- conversion/reversion routines
* development/FORMAT:
- document file format change
* src/Makefile.am:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
- deal with UI changes.
* src/LyXAction.cpp:
- remove LFUN_HFILL_INSERT
* src/LyXFunc.cpp:
- handle space dialog.
* src/factory.cpp:
* src/Paragraph.cpp (isHFill):
* src/Text.cpp:
* src/Text3.cpp:
* src/TextMetrics.cpp:
- adapt to changes
* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
- add HSpace dialog, remove HFill.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 09:23:43 +00:00
|
|
|
LINE_CODE, // 35
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
BRANCH_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
BOX_CODE,
|
|
|
|
///
|
|
|
|
FLEX_CODE,
|
|
|
|
///
|
*** File Format Change: UI and enhancement for InsetSpace ***
* src/insets/InsetSpace.{cpp,h}:
- merge in HFill inset, add support for dotfill, hrulefill,
hspace and hspace*
* src/insets/InsetHFill.{cpp,h}:
- remove
* src/frontends/qt4/GuiHSpace.{cpp,h}:
* src/frontends/qt4/ui/HSpaceUi.ui:
* src/frontends/qt4/GuiView:
- new GUI for Space insets.
* src/insets/Inset.{cpp,h}:
* src/insets/InsetCode.h:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetCommandParams.cpp:
- remove HFILL_CODE and LFUN_HFILL_INSERT, add SPACE_CODE where necessary,
new Inset member isStretchableSpace() to indicate HFill and friends.
* Buffer.cpp:
- increase format to 319
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
- conversion/reversion routines
* development/FORMAT:
- document file format change
* src/Makefile.am:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
- deal with UI changes.
* src/LyXAction.cpp:
- remove LFUN_HFILL_INSERT
* src/LyXFunc.cpp:
- handle space dialog.
* src/factory.cpp:
* src/Paragraph.cpp (isHFill):
* src/Text.cpp:
* src/Text3.cpp:
* src/TextMetrics.cpp:
- adapt to changes
* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
- add HSpace dialog, remove HFill.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 09:23:43 +00:00
|
|
|
VSPACE_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
2009-07-16 19:00:24 +00:00
|
|
|
MATH_MACROARG_CODE, // 40
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
NOMENCL_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
|
|
|
NOMENCL_PRINT_CODE,
|
|
|
|
///
|
2007-11-23 02:10:00 +00:00
|
|
|
NEWPAGE_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
*** File Format Change: UI and enhancement for InsetSpace ***
* src/insets/InsetSpace.{cpp,h}:
- merge in HFill inset, add support for dotfill, hrulefill,
hspace and hspace*
* src/insets/InsetHFill.{cpp,h}:
- remove
* src/frontends/qt4/GuiHSpace.{cpp,h}:
* src/frontends/qt4/ui/HSpaceUi.ui:
* src/frontends/qt4/GuiView:
- new GUI for Space insets.
* src/insets/Inset.{cpp,h}:
* src/insets/InsetCode.h:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetCommandParams.cpp:
- remove HFILL_CODE and LFUN_HFILL_INSERT, add SPACE_CODE where necessary,
new Inset member isStretchableSpace() to indicate HFill and friends.
* Buffer.cpp:
- increase format to 319
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
- conversion/reversion routines
* development/FORMAT:
- document file format change
* src/Makefile.am:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
- deal with UI changes.
* src/LyXAction.cpp:
- remove LFUN_HFILL_INSERT
* src/LyXFunc.cpp:
- handle space dialog.
* src/factory.cpp:
* src/Paragraph.cpp (isHFill):
* src/Text.cpp:
* src/Text3.cpp:
* src/TextMetrics.cpp:
- adapt to changes
* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
- add HSpace dialog, remove HFill.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 09:23:43 +00:00
|
|
|
LISTINGS_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
///
|
*** File Format Change: UI and enhancement for InsetSpace ***
* src/insets/InsetSpace.{cpp,h}:
- merge in HFill inset, add support for dotfill, hrulefill,
hspace and hspace*
* src/insets/InsetHFill.{cpp,h}:
- remove
* src/frontends/qt4/GuiHSpace.{cpp,h}:
* src/frontends/qt4/ui/HSpaceUi.ui:
* src/frontends/qt4/GuiView:
- new GUI for Space insets.
* src/insets/Inset.{cpp,h}:
* src/insets/InsetCode.h:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetCommandParams.cpp:
- remove HFILL_CODE and LFUN_HFILL_INSERT, add SPACE_CODE where necessary,
new Inset member isStretchableSpace() to indicate HFill and friends.
* Buffer.cpp:
- increase format to 319
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
- conversion/reversion routines
* development/FORMAT:
- document file format change
* src/Makefile.am:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
- deal with UI changes.
* src/LyXAction.cpp:
- remove LFUN_HFILL_INSERT
* src/LyXFunc.cpp:
- handle space dialog.
* src/factory.cpp:
* src/Paragraph.cpp (isHFill):
* src/Text.cpp:
* src/Text3.cpp:
* src/TextMetrics.cpp:
- adapt to changes
* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
- add HSpace dialog, remove HFill.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 09:23:43 +00:00
|
|
|
INFO_CODE, // 45
|
2007-10-16 16:48:21 +00:00
|
|
|
///
|
2008-02-29 19:32:44 +00:00
|
|
|
COLLAPSABLE_CODE,
|
2009-01-30 00:56:37 +00:00
|
|
|
///
|
|
|
|
PHANTOM_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_AMSARRAY_CODE,
|
|
|
|
///
|
|
|
|
MATH_ARRAY_CODE,
|
|
|
|
///
|
|
|
|
MATH_BIG_CODE, // 50
|
|
|
|
///
|
|
|
|
MATH_BOLDSYMBOL_CODE,
|
|
|
|
///
|
|
|
|
MATH_BOX_CODE,
|
|
|
|
///
|
|
|
|
MATH_BRACE_CODE,
|
|
|
|
///
|
|
|
|
MATH_CASES_CODE,
|
|
|
|
///
|
|
|
|
MATH_CHAR_CODE, // 55
|
|
|
|
///
|
|
|
|
MATH_COLOR_CODE,
|
|
|
|
///
|
|
|
|
MATH_COMMENT_CODE,
|
|
|
|
///
|
|
|
|
MATH_DECORATION_CODE,
|
|
|
|
///
|
|
|
|
MATH_DELIM_CODE,
|
|
|
|
///
|
|
|
|
MATH_DIFF_CODE, // 60
|
|
|
|
///
|
|
|
|
MATH_DOTS_CODE,
|
|
|
|
///
|
|
|
|
MATH_ENSUREMATH_CODE,
|
|
|
|
///
|
|
|
|
MATH_ENV_CODE,
|
|
|
|
///
|
|
|
|
MATH_EXFUNC_CODE,
|
|
|
|
///
|
|
|
|
MATH_EXINT_CODE, // 65
|
|
|
|
///
|
|
|
|
MATH_FONT_CODE,
|
|
|
|
///
|
|
|
|
MATH_FONTOLD_CODE,
|
|
|
|
///
|
|
|
|
MATH_FRAC_CODE,
|
|
|
|
///
|
|
|
|
MATH_GRID_CODE,
|
|
|
|
///
|
|
|
|
MATH_HULL_CODE, // 70
|
|
|
|
///
|
|
|
|
MATH_KERN_CODE,
|
|
|
|
///
|
|
|
|
MATH_LEFTEQN_CODE,
|
|
|
|
///
|
|
|
|
MATH_LIM_CODE,
|
|
|
|
///
|
|
|
|
MATH_MATRIX_CODE,
|
|
|
|
///
|
|
|
|
MATH_MBOX_CODE, // 75
|
|
|
|
///
|
|
|
|
MATH_NEST_CODE,
|
|
|
|
///
|
|
|
|
MATH_NUMBER_CODE,
|
|
|
|
///
|
|
|
|
MATH_OVERSET_CODE,
|
|
|
|
///
|
|
|
|
MATH_PAR_CODE,
|
|
|
|
///
|
|
|
|
MATH_PHANTOM_CODE, // 80
|
|
|
|
///
|
|
|
|
MATH_REF_CODE,
|
|
|
|
///
|
|
|
|
MATH_ROOT_CODE,
|
|
|
|
///
|
|
|
|
MATH_SCRIPT_CODE,
|
|
|
|
///
|
|
|
|
MATH_SIZE_CODE,
|
|
|
|
///
|
|
|
|
MATH_SPACE_CODE, // 85
|
|
|
|
///
|
|
|
|
MATH_SPECIALCHAR_CODE,
|
|
|
|
///
|
|
|
|
MATH_SPLIT_CODE,
|
|
|
|
///
|
|
|
|
MATH_SQRT_CODE,
|
|
|
|
///
|
|
|
|
MATH_STACKREL_CODE,
|
|
|
|
///
|
|
|
|
MATH_STRING_CODE,// 90
|
|
|
|
///
|
|
|
|
MATH_SUBSTACK_CODE,
|
|
|
|
///
|
|
|
|
MATH_SYMBOL_CODE,
|
|
|
|
///
|
|
|
|
MATH_TABULAR_CODE,
|
|
|
|
///
|
|
|
|
MATH_UNDERSET_CODE,
|
|
|
|
///
|
|
|
|
MATH_UNKNOWN_CODE, // 95
|
|
|
|
///
|
|
|
|
MATH_XARROW_CODE,
|
|
|
|
///
|
|
|
|
MATH_XYARROW_CODE,
|
|
|
|
///
|
|
|
|
MATH_XYMATRIX_CODE,
|
|
|
|
///
|
|
|
|
MATH_MACRO_CODE,
|
2007-10-13 10:23:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif
|