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,
|
|
|
|
///
|
2010-06-04 22:44:58 +00:00
|
|
|
ARG_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
|
|
|
///
|
2017-10-16 08:12:21 +00:00
|
|
|
COLLAPSIBLE_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,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_CANCEL_CODE,
|
|
|
|
///
|
|
|
|
MATH_CANCELTO_CODE, // 55
|
|
|
|
///
|
2009-07-16 19:00:24 +00:00
|
|
|
MATH_CASES_CODE,
|
|
|
|
///
|
2017-07-03 17:45:58 +00:00
|
|
|
MATH_CHAR_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_COLOR_CODE,
|
|
|
|
///
|
|
|
|
MATH_COMMENT_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_DECORATION_CODE, // 60
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_DELIM_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_DIFF_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_DOTS_CODE,
|
|
|
|
///
|
|
|
|
MATH_ENSUREMATH_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_ENV_CODE, // 65
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_EXFUNC_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_EXINT_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_FONT_CODE,
|
|
|
|
///
|
|
|
|
MATH_FONTOLD_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_FRAC_CODE, // 70
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_GRID_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_HULL_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_KERN_CODE,
|
|
|
|
///
|
|
|
|
MATH_LEFTEQN_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_LIM_CODE, // 75
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_MATRIX_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_MBOX_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_NEST_CODE,
|
|
|
|
///
|
|
|
|
MATH_NUMBER_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_OVERSET_CODE, // 80
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_PAR_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_PHANTOM_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_REF_CODE,
|
|
|
|
///
|
|
|
|
MATH_ROOT_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_SCRIPT_CODE, // 85
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_SIZE_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_SPACE_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_SPECIALCHAR_CODE,
|
|
|
|
///
|
|
|
|
MATH_SPLIT_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_SQRT_CODE, // 90
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_STACKREL_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_STRING_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_SUBSTACK_CODE,
|
|
|
|
///
|
|
|
|
MATH_SYMBOL_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_TABULAR_CODE, // 95
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_UNDERSET_CODE,
|
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
MATH_UNKNOWN_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
MATH_XARROW_CODE,
|
|
|
|
///
|
2016-06-16 18:39:32 +00:00
|
|
|
MATH_XYMATRIX_CODE,
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
2016-06-16 18:39:32 +00:00
|
|
|
MATH_MACRO_CODE, // 100
|
2009-11-15 12:30:26 +00:00
|
|
|
///
|
2012-01-23 01:49:49 +00:00
|
|
|
ARGUMENT_PROXY_CODE,
|
2010-02-15 22:46:50 +00:00
|
|
|
///
|
2010-03-28 13:47:50 +00:00
|
|
|
PREVIEW_CODE,
|
|
|
|
///
|
2017-07-03 17:45:58 +00:00
|
|
|
MATH_DIAGRAM_CODE,
|
2010-09-19 22:12:06 +00:00
|
|
|
///
|
2016-06-16 18:39:32 +00:00
|
|
|
SCRIPT_CODE,
|
2010-11-25 13:01:24 +00:00
|
|
|
///
|
2016-06-16 18:39:32 +00:00
|
|
|
IPA_CODE, // 105
|
2012-03-06 07:54:22 +00:00
|
|
|
///
|
2012-08-23 15:42:53 +00:00
|
|
|
IPACHAR_CODE,
|
|
|
|
///
|
|
|
|
IPADECO_CODE,
|
|
|
|
///
|
2016-10-04 22:25:38 +00:00
|
|
|
MATH_CLASS_CODE,
|
|
|
|
///
|
2020-05-01 01:56:58 +00:00
|
|
|
COUNTER_CODE,
|
|
|
|
///
|
2010-12-17 19:56:51 +00:00
|
|
|
INSET_CODE_SIZE
|
2007-10-13 10:23:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif
|