Thibaut Cuvelier
3502f5c999
Factor out the generation of the code to create a preview.
...
This will be soon reused in InsetText to generate images for DocBook.
2021-10-13 19:26:49 +02:00
Thibaut Cuvelier
46b8101800
Factor out the list of macro definitions for InsetPreview.
...
This will be soon reused in InsetText to generate images for DocBook.
2021-10-13 19:26:49 +02:00
Yuriy Skalko
325c405541
Remove redundant semicolons reported by GCC with -Wextra-semi option
2021-09-28 11:28:43 +03:00
Juergen Spitzmueller
fedd9bf4d0
Do not reset font in preview inset
2020-12-02 15:03:21 +01:00
Yuriy Skalko
43b16548b4
Cleanup headers
2020-11-25 02:43:16 +02:00
Yuriy Skalko
efc0877f8f
Add override
specifiers to improve code maintainability
2020-10-03 12:43:48 +02:00
Jean-Marc Lasgouttes
5d4e6dfb68
Run codespell on src/insets
...
Command was
codespell -w -i 3 -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,pres,pass-thru src/insets/
2020-06-25 23:46:16 +02:00
Jean-Marc Lasgouttes
912704511b
Make some constructors explicit
...
Spotted by cppcheck.
2019-09-17 23:15:09 +02:00
Enrico Forestieri
b6f8a84a35
Fix #9732 : Inconsistent font properties for the preview and superscript insets
2017-03-27 15:00:43 +02:00
Guillaume Munch
8e1a869c45
Change tracking cue: for instant preview
...
Strike through deleted previews (expect for inline math where it is already taken care of by RowPainter).
2016-07-03 17:28:47 +02:00
Guillaume Munch
ca8709aaf5
Replace boost::scoped_ptr with unique_ptr
2016-06-09 15:21:39 +01:00
Jean-Marc Lasgouttes
2804011957
Get rid of use_preview_ in various insets
...
This concerns InsetPreview, InsetIPA and InsetMathHull.
Caching such a value is bad when opening the same buffer in two views.
In this case, it is not necessary to remember use_preview_ at all,
actually.
Also remove private member dim_ which is not used and remove some trailing whitespace.
Fixes bugs #9085 abd #9957 .
2016-02-09 09:54:14 +01:00
Georg Baum
cea2d71e64
Comply with rule-of-three
...
The rule-of-three says that if any of virtual destructor, copy constructor
or assignment operator needs to be manually implemented, then all three
should be implemented. Otherwise you can get subtle bugs which can be
difficult to find. In the changed classes, changing a copy-construction to
an assignment would have had surprising effects. Now they all behave
consistently.
2015-10-11 11:16:09 +02:00
Vincent van Ravesteijn
7287a259c5
Change the type of the context menu name to string
...
There is no need for GUI-elements to use docstring.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40058 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 14:48:55 +00:00
Richard Heck
3f27f951cb
This is intended to be a pure renaming of the Inset::name() routine,
...
preparatory to fixing #7080 . Note that mathed uses the same routine, but
for a completely different purpose, so I did not rename it there. I have
seen no difference in behavior after testing, e.g., opening and
exporting Math.lyx, and also re-saving it and looking at the diff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38109 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-28 22:33:04 +00:00
Vincent van Ravesteijn
e7f2bbe1ee
Rename InsetXXX::contextMenu to InsetXXX::contextMenuName. Now this function doesn't need all the parameters and we split the functionality of choosing which context menu to return, from the functionality of supplying the name for the Inset itself. Now, the InsetText context menu is returned for InsetCollapsables when the button is not hit by the mouse. There is no (intended) change in functionality for insets without a button, collapsed insets. This fixes partly bug #6642 . A fix for InsetTabular and for insets with no button will follow.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36604 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 21:27:25 +00:00
Vincent van Ravesteijn
7222ce9e31
set eol-style
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36379 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 19:50:29 +00:00
Vincent van Ravesteijn
f90f3d146b
More include frenzy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35941 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 01:26:50 +00:00
Pavel Sanda
6a1eb11563
Fix gcc warnings. Vincent, is it correct ploader is unused?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33896 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-28 20:14:44 +00:00
Vincent van Ravesteijn
bb69584112
Introduce InsetPreview.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33890 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-28 13:47:50 +00:00