lyx_mirror/src/insets
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
..
ExternalSupport.cpp filetools.cpp: introduce a new method to be able to distinguish between valid LaTeX filenames and filenames causing troubles on some DVI viewers. 2010-09-27 02:39:22 +00:00
ExternalSupport.h
ExternalTemplate.cpp fix warning 2010-05-10 12:34:34 +00:00
ExternalTemplate.h
ExternalTransforms.cpp TR1: use std::tr1 regex with msvc10 2010-06-29 17:09:40 +00:00
ExternalTransforms.h
Inset.cpp Proper implementatiom of isInToc() 2010-10-26 01:10:19 +00:00
Inset.h Proper implementatiom of isInToc() 2010-10-26 01:10:19 +00:00
InsetArgument.cpp Renaming: \\begin_inset OptArg to \\begin_inset Argument. 2010-06-07 21:58:27 +00:00
InsetArgument.h Renaming: \\begin_inset OptArg to \\begin_inset Argument. 2010-06-07 21:58:27 +00:00
InsetBibitem.cpp InsetBibitem.cpp: fix #5786 2010-10-09 16:02:19 +00:00
InsetBibitem.h We don't want InsetCommand to have a function updateCommand while this is not a special function of an InsetCommand, but only accidentally a shared function of two children. So, in this case I think we should just (dynamically) cast these objecten and call their own insetCommand function. 2010-10-25 23:20:05 +00:00
InsetBibtex.cpp InsetBibtex.cpp: 2010-10-11 01:05:20 +00:00
InsetBibtex.h Revert r35106. 2010-08-09 19:17:44 +00:00
InsetBox.cpp InsetBox.cpp: only shaded boxes can have a non-plain layout when there is no inner box 2010-07-08 03:01:50 +00:00
InsetBox.h - new support for makebox; fileformat change 2010-07-03 13:14:15 +00:00
InsetBranch.cpp Try to move all updateBuffer() calls to a central location. We now use 2010-07-09 14:37:00 +00:00
InsetBranch.h Migrate Branch dialog to InsetParamsWidget 2010-02-19 20:57:25 +00:00
InsetCaption.cpp There was no need to use ColorChanger after all :) 2010-09-09 13:15:25 +00:00
InsetCaption.h s/updateLabels/updateBuffer/g, per a suggestion of Abdel's. 2010-03-03 22:13:45 +00:00
InsetCitation.cpp remove unused include of FuncRequest 2010-08-24 03:07:09 +00:00
InsetCitation.h s/updateLabels/updateBuffer/g, per a suggestion of Abdel's. 2010-03-03 22:13:45 +00:00
InsetCode.h Add support for feyn package and Diagram inset. 2010-09-19 22:12:06 +00:00
InsetCollapsable.cpp Add virtual bool Inset::clickable(..) to be used to change the cursor. 2010-10-24 20:11:40 +00:00
InsetCollapsable.h Add virtual bool Inset::clickable(..) to be used to change the cursor. 2010-10-24 20:11:40 +00:00
InsetCommand.cpp setMouseHover() functions can be const. 2010-10-24 19:24:36 +00:00
InsetCommand.h Proper implementatiom of isInToc() 2010-10-26 01:10:19 +00:00
InsetCommandParams.cpp Make this a switch. 2010-10-21 18:01:06 +00:00
InsetCommandParams.h Fix bug #6962. I hadn't see how these were being escaped. 2010-10-21 17:56:00 +00:00
InsetERT.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetERT.h Add Preview to ERT context menu 2010-03-28 20:12:24 +00:00
InsetExternal.cpp Implement mouse hovering for InsetExternal. 2010-10-24 19:25:36 +00:00
InsetExternal.h gcc spits out million warnings 2010-10-24 21:46:28 +00:00
InsetFlex.cpp Customize getLayout for InsetFlex and change how we report name() back 2010-10-12 15:37:02 +00:00
InsetFlex.h Customize getLayout for InsetFlex and change how we report name() back 2010-10-12 15:37:02 +00:00
InsetFloat.cpp Try to move all updateBuffer() calls to a central location. We now use 2010-07-09 14:37:00 +00:00
InsetFloat.h s/updateLabels/updateBuffer/g, per a suggestion of Abdel's. 2010-03-03 22:13:45 +00:00
InsetFloatList.cpp Correct toc to floatlist 2010-10-25 19:53:40 +00:00
InsetFloatList.h
InsetFoot.cpp Fix bug #6672 (part 2): Add tooltips to the outliner. 2010-04-26 00:43:08 +00:00
InsetFoot.h s/updateLabels/updateBuffer/g, per a suggestion of Abdel's. 2010-03-03 22:13:45 +00:00
InsetFootlike.cpp Next headers 2010-03-31 19:38:05 +00:00
InsetFootlike.h
InsetGraphics.cpp InsetGraphics.cpp and InsetInclude.cpp: whitespace fixes 2010-09-27 03:21:59 +00:00
InsetGraphics.h gcc spits out million warnings 2010-10-24 21:46:28 +00:00
InsetGraphicsParams.cpp DocFileName.outputFilename -> DocFileName.outputFileName 2010-04-21 01:19:25 +00:00
InsetGraphicsParams.h
InsetHyperlink.cpp Learn URL viewing for hyperlink insets 2010-08-29 23:04:36 +00:00
InsetHyperlink.h Proper implementatiom of isInToc() 2010-10-26 01:10:19 +00:00
InsetInclude.cpp Use Buffer::ReadStatus as a return value for Buffer::loadLyXFile. 2010-10-25 10:18:42 +00:00
InsetInclude.h Revert r35106. 2010-08-09 19:17:44 +00:00
InsetIndex.cpp Try to move all updateBuffer() calls to a central location. We now use 2010-07-09 14:37:00 +00:00
InsetIndex.h
InsetInfo.cpp Fix bug #6664: InsetInfo: lyxrc information broken. 2010-04-23 11:46:24 +00:00
InsetInfo.h LyX version info for InsetInfo. 2010-04-17 13:04:41 +00:00
InsetLabel.cpp Try to move all updateBuffer() calls to a central location. We now use 2010-07-09 14:37:00 +00:00
InsetLabel.h Some cosmetics (from my local cosmetics branch). 2010-10-18 14:20:03 +00:00
InsetLayout.cpp Add ResetsFont tag to InsetLayout, toward fixing bug #5657. 2010-10-13 15:54:39 +00:00
InsetLayout.h Add ResetsFont tag to InsetLayout, toward fixing bug #5657. 2010-10-13 15:54:39 +00:00
InsetLine.cpp InsetLine: 2010-09-17 01:28:08 +00:00
InsetLine.h InsetLine.h revert changes made in r35417 2010-09-17 23:12:19 +00:00
InsetListings.cpp TR1: use std::tr1 regex with msvc10 2010-06-29 17:09:40 +00:00
InsetListings.h fix bugs #6696 and #6697 2010-05-18 13:59:59 +00:00
InsetListingsParams.cpp
InsetListingsParams.h
InsetMarginal.cpp Fix bug #6672 (part 2): Add tooltips to the outliner. 2010-04-26 00:43:08 +00:00
InsetMarginal.h
InsetNewline.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetNewline.h
InsetNewpage.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetNewpage.h
InsetNomencl.cpp Rename a couple routines. This will avoid confusion with a forthcoming 2010-07-08 20:04:35 +00:00
InsetNomencl.h
InsetNote.cpp Try to move all updateBuffer() calls to a central location. We now use 2010-07-09 14:37:00 +00:00
InsetNote.h
InsetPhantom.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetPhantom.h
InsetPreview.cpp Allow InsetPreview in no math preview mode. 2010-09-19 22:33:55 +00:00
InsetPreview.h Fix gcc warnings. Vincent, is it correct ploader is unused? 2010-03-28 20:14:44 +00:00
InsetQuotes.cpp Next headers 2010-03-31 19:38:05 +00:00
InsetQuotes.h
InsetRef.cpp Fix bug #6962. I hadn't see how these were being escaped. 2010-10-21 17:56:00 +00:00
InsetRef.h InsetRef.h: fix #6711 2010-05-22 02:01:47 +00:00
InsetSpace.cpp typo 2010-04-28 21:50:06 +00:00
InsetSpace.h avoid warnings for unused parameters 2010-10-25 08:12:01 +00:00
InsetSpecialChar.cpp implement isChar() in header like all other insets 2010-09-14 12:39:33 +00:00
InsetSpecialChar.h implement isChar() in header like all other insets 2010-09-14 12:39:33 +00:00
InsetTabular.cpp Remove unneccessary uses of dynamic_cast from the code. 2010-10-26 15:03:51 +00:00
InsetTabular.h MetricsInfo::textColor: helper function that helps taking in account the 2010-09-02 12:13:54 +00:00
InsetText.cpp Clean-up the code with respect to PassThru insets and layouts. 2010-08-07 22:07:49 +00:00
InsetText.h Fix bug #6672 (part 2): Add tooltips to the outliner. 2010-04-26 00:43:08 +00:00
InsetTOC.cpp remove unused include of FuncRequest 2010-08-24 03:07:09 +00:00
InsetTOC.h
InsetVSpace.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetVSpace.h gcc spits out million warnings 2010-10-24 21:46:28 +00:00
InsetWrap.cpp Make members of FuncRequest private, per the FIXME there. Again, this is 2010-04-09 19:00:42 +00:00
InsetWrap.h s/updateLabels/updateBuffer/g, per a suggestion of Abdel's. 2010-03-03 22:13:45 +00:00
RenderBase.h
RenderButton.cpp
RenderButton.h
RenderGraphic.cpp Using "using namespace std" with msvc10 makes also std::tr1::bind visible and generates conflicts with boost::bind. 2010-04-22 11:16:58 +00:00
RenderGraphic.h
RenderPreview.cpp Allow images to be export even when LyXRC says no previews. 2010-07-29 15:17:58 +00:00
RenderPreview.h Allow images to be export even when LyXRC says no previews. 2010-07-29 15:17:58 +00:00