lyx_mirror/src/mathed
Vincent van Ravesteijn 573500dd04 Remove unneccessary uses of dynamic_cast from the code.
A dynamic_cast is necessary when:

- the object to be casted is from an external library because we can't add Qxxx::asXxxx() to Qt e.g.:
    * QAbstractListModel to GuiIdListModel,
    * QValidator to PathValidator,
    * QWidget to TabWorkArea,
    * QWidget to GuiWorkArea;

- the object is to be casted from an interface to the implementing class, because the Interface does not know by whom it is implemented:
    * ProgressInterface to GuiProgress,
    * Application to GuiApplication.

A dynamic_cast can be replaced by:
  - already existing as***Inset() functions, e.g.:
    * asHullInset(),
    * asInsetMath()->asMacro(),
    * asInsetText();

  - a static_cast when we are sure this can't go wrong, e.g.:
    * we are sure that CellData::inset->clone() is an InsetTableCell,
    * in cases where we explicitly check it->lyxCode().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35855 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 15:03:51 +00:00
..
BUGS
CommandInset.cpp remove unused include of FuncRequest 2010-08-24 03:07:09 +00:00
CommandInset.h
InsetFormulaMacro.cpp
InsetFormulaMacro.h
InsetMath.cpp The beginnings of pure HTML output of math, for our internal XHTML 2010-03-29 22:52:13 +00:00
InsetMath.h Proper implementatiom of isInToc() 2010-10-26 01:10:19 +00:00
InsetMathAMSArray.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetMathAMSArray.h Comment. 2010-07-29 14:29:54 +00:00
InsetMathArray.cpp
InsetMathArray.h
InsetMathBig.cpp The delimiters '<' and '>' can also be used as big delimiters. They are 2010-06-06 18:11:15 +00:00
InsetMathBig.h InsetMathBig via HTML. 2010-03-30 02:04:07 +00:00
InsetMathBoldSymbol.cpp Bold symbols via HTML. 2010-03-30 02:05:49 +00:00
InsetMathBoldSymbol.h Bold symbols via HTML. 2010-03-30 02:05:49 +00:00
InsetMathBox.cpp Fix up the math stream. 2010-03-31 18:57:37 +00:00
InsetMathBox.h HTML for math boxes. 2010-03-30 02:37:05 +00:00
InsetMathBrace.cpp HTML for InsetMathBrace. 2010-03-30 02:40:32 +00:00
InsetMathBrace.h HTML for InsetMathBrace. 2010-03-30 02:40:32 +00:00
InsetMathCases.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetMathCases.h Cases for HTML. 2010-03-30 02:57:05 +00:00
InsetMathChar.cpp Fix math char stuff. 2010-03-30 00:18:08 +00:00
InsetMathChar.h Simple characters. 2010-03-29 23:03:37 +00:00
InsetMathColor.cpp
InsetMathColor.h HTML for comments and colors. 2010-03-30 17:24:22 +00:00
InsetMathComment.cpp Fix bug #6759. Thanks to Vincent. 2010-06-09 17:02:55 +00:00
InsetMathComment.h HTML for comments and colors. 2010-03-30 17:24:22 +00:00
InsetMathDecoration.cpp Changing only the shape does not always work. For example, 2010-04-27 21:31:28 +00:00
InsetMathDecoration.h Fix bug #4565: Using keyboard shortcuts to write Greek letters with an underbar produces LaTeX errors. 2010-03-31 01:09:38 +00:00
InsetMathDelim.cpp Do the obvious thing with delimiters. 2010-03-30 22:07:05 +00:00
InsetMathDelim.h Do the obvious thing with delimiters. 2010-03-30 22:07:05 +00:00
InsetMathDiagram.cpp Add support for feyn package and Diagram inset. 2010-09-19 22:12:06 +00:00
InsetMathDiagram.h Add support for feyn package and Diagram inset. 2010-09-19 22:12:06 +00:00
InsetMathDiff.cpp We do not need special treatment of differentials for MathML. 2009-12-31 21:09:28 +00:00
InsetMathDiff.h We do not need special treatment of differentials for MathML. 2009-12-31 21:09:28 +00:00
InsetMathDots.cpp HTML for dots. 2010-03-30 22:14:00 +00:00
InsetMathDots.h HTML for dots. 2010-03-30 22:14:00 +00:00
InsetMathEnsureMath.cpp Index: src/mathed/InsetMathEnsureMath.cpp 2010-04-28 01:58:11 +00:00
InsetMathEnsureMath.h Revert r32684, per Andre's suggestion. 2009-12-31 15:46:39 +00:00
InsetMathEnv.cpp
InsetMathEnv.h
InsetMathExFunc.cpp Revert r33989. We do need this. 2010-03-31 21:02:10 +00:00
InsetMathExFunc.h Revert r33989. We do need this. 2010-03-31 21:02:10 +00:00
InsetMathExInt.cpp Integrals via HTML. 2010-03-30 22:51:02 +00:00
InsetMathExInt.h Integrals via HTML. 2010-03-30 22:51:02 +00:00
InsetMathFont.cpp support for formal math script 2010-07-17 15:51:11 +00:00
InsetMathFont.h HTML for math fonts. 2010-03-31 18:57:47 +00:00
InsetMathFontOld.cpp Better fix for bug #6851. 2010-08-14 17:57:06 +00:00
InsetMathFontOld.h Better fix for bug #6851. 2010-08-14 17:57:06 +00:00
InsetMathFrac.cpp Don't hardcode Color_math, such that decorations and other math 2010-04-28 13:19:09 +00:00
InsetMathFrac.h HTML for binomials. 2010-03-31 21:33:33 +00:00
InsetMathGrid.cpp Try to move all updateBuffer() calls to a central location. We now use 2010-07-09 14:37:00 +00:00
InsetMathGrid.h Fix bug #6595: empty last row of matrix or eqnarray vanishes. 2010-07-04 16:31:53 +00:00
InsetMathHull.cpp Proper fix for #6967 that does not reintroduce #6793 2010-10-25 21:36:25 +00:00
InsetMathHull.h I don't like negated logic. Especially not if it leads to the use of more !-operations. 2010-10-24 17:27:32 +00:00
InsetMathKern.cpp Revert r32684, per Andre's suggestion. 2009-12-31 15:46:39 +00:00
InsetMathKern.h Ignore kerning in HTML. 2010-03-31 18:59:04 +00:00
InsetMathLefteqn.cpp
InsetMathLefteqn.h
InsetMathLim.cpp We do not need to extract limits for MathML. 2010-01-21 21:01:51 +00:00
InsetMathLim.h We do not need to extract limits for MathML. 2010-01-21 21:01:51 +00:00
InsetMathMatrix.cpp Matrix output via HTML. I have to say, this one took some work. 2010-03-31 19:59:09 +00:00
InsetMathMatrix.h Change semantics of two-arg htmlize to make more consistent with other 2010-03-31 19:17:06 +00:00
InsetMathMBox.cpp This doesn't seem to be compiled even, but oh well. 2010-03-31 19:01:15 +00:00
InsetMathMBox.h This doesn't seem to be compiled even, but oh well. 2010-03-31 19:01:15 +00:00
InsetMathNest.cpp Remove unneccessary uses of dynamic_cast from the code. 2010-10-26 15:03:51 +00:00
InsetMathNest.h Fix bug #3900: Mathed corners displayed without mouse hover. 2010-04-30 14:55:37 +00:00
InsetMathNumber.cpp HTML for numbers. 2010-03-30 01:23:10 +00:00
InsetMathNumber.h HTML for numbers. 2010-03-30 01:23:10 +00:00
InsetMathOverset.cpp HTML for overset. 2010-03-31 20:04:39 +00:00
InsetMathOverset.h HTML for overset. 2010-03-31 20:04:39 +00:00
InsetMathPar.cpp
InsetMathPar.h
InsetMathPhantom.cpp
InsetMathPhantom.h Ignore phantoms for now. 2010-03-31 20:31:15 +00:00
InsetMathRef.cpp Try to move all updateBuffer() calls to a central location. We now use 2010-07-09 14:37:00 +00:00
InsetMathRef.h s/updateLabels/updateBuffer/g, per a suggestion of Abdel's. 2010-03-03 22:13:45 +00:00
InsetMathRoot.cpp Don't hardcode Color_math, such that decorations and other math 2010-04-28 13:19:09 +00:00
InsetMathRoot.h HTML for roots. 2010-03-31 20:31:04 +00:00
InsetMathScript.cpp DispatchResult::update() ==> DispatchResult::screenUpdate() 2010-10-13 17:28:55 +00:00
InsetMathScript.h HTML for scripts. 2010-03-30 01:31:25 +00:00
InsetMathSize.cpp Make sure to call the parent's validate method. 2010-03-31 21:24:16 +00:00
InsetMathSize.h HTML for math sizes. 2010-03-31 20:37:23 +00:00
InsetMathSpace.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetMathSpace.h HTML for math spaces. 2010-03-31 20:47:55 +00:00
InsetMathSpecialChar.cpp HTML for special characters. 2010-03-31 20:49:21 +00:00
InsetMathSpecialChar.h HTML for special characters. 2010-03-31 20:49:21 +00:00
InsetMathSplit.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetMathSplit.h HTML for InsetMathSplit. 2010-03-31 20:50:29 +00:00
InsetMathSqrt.cpp Don't hardcode Color_math, such that decorations and other math 2010-04-28 13:19:09 +00:00
InsetMathSqrt.h HTML for roots. 2010-03-31 20:31:04 +00:00
InsetMathStackrel.cpp HTML for stackrel. 2010-03-31 20:54:27 +00:00
InsetMathStackrel.h HTML for stackrel. 2010-03-31 20:54:27 +00:00
InsetMathString.cpp Fix bug #3325: Labels with special characters in equations do not work 2010-02-04 19:08:17 +00:00
InsetMathString.h Revert r32684, per Andre's suggestion. 2009-12-31 15:46:39 +00:00
InsetMathSubstack.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetMathSubstack.h HTML for substack. Sort of. There's an odd problem here, that is 2010-03-31 21:17:30 +00:00
InsetMathSymbol.cpp Introduce and use a "math_flavor" flag with OutputParams. 2010-03-31 18:24:52 +00:00
InsetMathSymbol.h Integrals via HTML. 2010-03-30 22:51:02 +00:00
InsetMathTabular.cpp
InsetMathTabular.h
InsetMathUnderset.cpp HTML for underset. 2010-03-31 20:12:52 +00:00
InsetMathUnderset.h HTML for underset. 2010-03-31 20:12:52 +00:00
InsetMathUnknown.cpp MathML and HTML definitely can't handle MathUnknown!! 2010-07-29 15:48:01 +00:00
InsetMathUnknown.h MathML and HTML definitely can't handle MathUnknown!! 2010-07-29 15:48:01 +00:00
InsetMathXArrow.cpp HTML for xarrows. 2010-07-29 15:44:17 +00:00
InsetMathXArrow.h HTML for xarrows. 2010-07-29 15:44:17 +00:00
InsetMathXYArrow.cpp MathML and HTML can't handle XYArrow. 2010-07-29 15:46:26 +00:00
InsetMathXYArrow.h MathML and HTML can't handle XYArrow. 2010-07-29 15:46:26 +00:00
InsetMathXYMatrix.cpp MathML and HTML definitely can't handle XYMatrix. 2010-07-29 15:38:01 +00:00
InsetMathXYMatrix.h MathML and HTML definitely can't handle XYMatrix. 2010-07-29 15:38:01 +00:00
MacroTable.cpp Patch by John McCabe-Dansted to fix bug #6502: 2010-02-08 17:39:55 +00:00
MacroTable.h Patch by John McCabe-Dansted to fix bug #6502: 2010-02-08 17:39:55 +00:00
MathAtom.cpp
MathAtom.h Typo. 2009-11-14 23:28:50 +00:00
MathAutoCorrect.cpp
MathAutoCorrect.h
MathCompletionList.h
MathData.cpp Fix bug #6739: Loading in a 1.6.5 file causes 1.6.6-1 to crash 2010-05-31 23:20:30 +00:00
MathData.h s/updateLabels/updateBuffer/g, per a suggestion of Abdel's. 2010-03-03 22:13:45 +00:00
MathExtern.cpp Proper camel case for FileName.absFilename 2010-04-21 01:19:09 +00:00
MathExtern.h The beginnings of pure HTML output of math, for our internal XHTML 2010-03-29 22:52:13 +00:00
MathFactory.cpp Add support for feyn package and Diagram inset. 2010-09-19 22:12:06 +00:00
MathFactory.h
MathGridInfo.h
MathMacro.cpp Remove unneccessary uses of dynamic_cast from the code. 2010-10-26 15:03:51 +00:00
MathMacro.h Pure HTML output for math macros. 2010-03-30 00:18:24 +00:00
MathMacroArgument.cpp
MathMacroArgument.h
MathMacroTemplate.cpp Sanitize ColorChanger 2010-09-09 13:02:20 +00:00
MathMacroTemplate.h Suppress XHTML output for math macros. (We used to get the default from 2010-03-18 22:19:34 +00:00
MathParser_flags.h
MathParser.cpp Some cosmetics (from my local cosmetics branch). 2010-10-18 14:20:03 +00:00
MathParser.h
MathStream.cpp Fix up the math stream. 2010-03-31 18:57:37 +00:00
MathStream.h Framework for math export exceptions. We can throw these if we find 2010-07-29 15:37:42 +00:00
MathSupport.cpp MathSupport.cpp: 2010-08-29 22:59:24 +00:00
MathSupport.h Index: src/mathed/InsetMathHull.cpp 2010-04-28 01:40:11 +00:00
README
ReplaceData.h
texify
TextPainter.cpp
TextPainter.h

Inset 'Xyz' is implemented by 'MathXyzInset' in 'math_xyzinset.[hC]'


Inset hierarchy:

                                   MathInset
                                (abstract base)

                         /            |               \

              Dim                  Char               Symbol, Space, ...
         (thing that need       (for things formerly
          the width_/ascent_     known as characters)
          /descent_ cache)

          /             \

       Nest              Dots,  Func, ...
  (for thing with
   nested content)

        |         \

      Grid        Decoration   Delim   Frac  Macro  Root  Script  Sqrt

      /   \

 Array    Hull
         (base for eqnarray/align/...)