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
|
|
|
|
|
* \author J<EFBFBD>rgen Vigna
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \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
|
|
|
|
///
|
|
|
|
|
ENVIRONMENT_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
|
|
|
|
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
|
|
|
|
///
|
*** 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
|
|
|
|
MATHMACROARG_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,
|
2008-03-21 17:45:14 +00:00
|
|
|
|
///
|
|
|
|
|
CELL_CODE,
|
2008-02-29 19:32:44 +00:00
|
|
|
|
#if 0
|
|
|
|
|
///
|
|
|
|
|
THEOREM_CODE,
|
|
|
|
|
#endif
|
2007-10-13 10:23:16 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
|
|
#endif
|