lyx_mirror/src
Jean-Marc Lasgouttes e32a3e7f57 Reduce use of double variables in Row
All the code that is run before row metrics have been computed should use int arithmetic. After metrics have been computed, we still need doubles because fully justified rows use double for Row::Element::extra.

Rename Row::x to Row::left_margin and change its type to int.

Rename Row::Element::width() to full_width(). In some places of the code, use dim.wid (the int version without the extra separator) because metrics have not been computed.

Let Row::Element::x2pos take a int& argument instead of double&

Let Row::Element::breakAt take a int argument instead of double
2014-12-22 14:07:24 +01:00
..
client Add cmake files to autoconf's dist 2014-08-31 15:21:20 +02:00
frontends Fix the last clang warnings about overloaded virtual methods 2014-12-22 11:02:45 +01:00
graphics Encapsulate Converter class 2014-12-07 18:35:28 +01:00
insets Whitespace 2014-12-21 19:01:52 -05:00
mathed Fix the last clang warnings about overloaded virtual methods 2014-12-22 11:02:45 +01:00
support Make Format class almost thread-safe 2014-12-21 21:40:25 +01:00
tests fix coding style 2014-08-16 07:27:00 +02:00
tex2lyx tex2lyx/text.cpp: bring back a comment as discussed 2014-12-04 00:57:14 +01:00
.gitignore
AppleSpellChecker.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
AppleSpellChecker.h Remove ; from end of function definitions 2013-05-12 13:04:18 +02:00
AspellChecker.cpp #8932 improved spell checker debug messages 2014-01-15 21:20:05 +01:00
AspellChecker.h Remove ; from end of function definitions 2013-05-12 13:04:18 +02:00
Author.cpp Accidentally overwrote this commit of Vincent's. 2014-03-15 12:09:35 -04:00
Author.h Fix a bunch of minor issues discovered by the cppcheck script. 2014-04-21 11:52:00 -04:00
BiblioInfo.cpp Fix bug #9296. The key may be multiple keys. 2014-10-16 16:31:03 -04:00
BiblioInfo.h Make BiblioInfo::collectCitedEntries private (since it can be), 2014-08-22 11:18:10 -04:00
Bidi.cpp Get rid of rtl_support preference 2014-07-09 21:11:08 +02:00
Bidi.h Document the Bidi class a bit 2013-06-28 15:18:17 +02:00
boost.cpp
Box.cpp
Box.h
BranchList.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
BranchList.h
buffer_funcs.cpp Make newUnnamedFile() threadsafe 2014-07-05 12:58:22 +02:00
buffer_funcs.h
Buffer.cpp Encapsulate Converter class 2014-12-07 18:35:28 +01:00
Buffer.h Document Buffer::preview() 2014-11-17 22:07:38 +01:00
BufferEncodings.cpp Encodings: Make members of CharInfo private 2013-09-29 15:26:20 +02:00
BufferEncodings.h Encodings: Split off the functions that need Buffer 2013-09-29 15:26:18 +02:00
BufferList.cpp Make BufferList::fileNames() threadsafe 2014-07-05 12:51:40 +02:00
BufferList.h Make BufferList::fileNames() threadsafe 2014-07-05 12:51:40 +02:00
BufferParams.cpp Output package options before loading any package. 2014-12-21 12:10:06 +01:00
BufferParams.h #9130 Text in main work area isn't rendered with high resolution 2014-10-18 15:39:58 +02:00
BufferView.cpp Fix some glitches in inset-select-all 2014-11-14 10:18:34 +01:00
BufferView.h Whitespace only 2014-07-25 22:36:20 +02:00
Bullet.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
Bullet.h
Changes.cpp Fix uncodable author warning 2014-07-05 14:49:51 +02:00
Changes.h Add a member to TocItem that tells us whether the item in question 2013-03-08 16:38:18 -05:00
Chktex.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
Chktex.h
Citation.h New \cite_engine_type default. 2013-05-16 20:39:23 +02:00
CMakeLists.txt Cmake build: Move use of QT5 libraries to the end of linker command line. 2014-08-11 21:30:21 +02:00
CmdDef.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
CmdDef.h
Color.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
Color.h
ColorCode.h ColorCode.h: clarify a comment 2012-12-31 04:10:28 +01:00
ColorSet.h
Compare.cpp Fix a bunch of minor issues discovered by the cppcheck script. 2014-04-21 11:52:00 -04:00
Compare.h Slowly going through the suggestion made by our headers script. 2013-05-15 22:02:10 -07:00
CompletionList.h
Converter.cpp Encapsulate Converter class 2014-12-07 18:35:28 +01:00
Converter.h Make Converter class thread-safe 2014-12-21 22:05:15 +01:00
ConverterCache.cpp Mark some singletons with FIXME THREAD 2014-07-05 15:20:54 +02:00
ConverterCache.h
CoordCache.cpp Move code where it belongs 2014-05-19 22:07:04 +02:00
CoordCache.h Slowly going through the suggestion made by our headers script. 2013-05-15 22:02:10 -07:00
Counters.cpp Let the Foot inset have a different Layout when inside a title 2014-11-21 10:23:56 +01:00
Counters.h Fix caption counter in longtables (see #8993). 2014-02-25 08:00:43 +01:00
Cursor.cpp Remove debug code from TextMetrics 2014-07-08 21:29:52 +02:00
Cursor.h Add introduction to cursor related classes, written by JMarc. 2013-07-01 09:52:06 -07:00
CursorSlice.cpp Reimplement inset-select-all in a generic way 2014-11-01 16:54:23 +01:00
CursorSlice.h Reimplement inset-select-all in a generic way 2014-11-01 16:54:23 +01:00
CutAndPaste.cpp Whitespace. 2014-11-12 00:01:45 +00:00
CutAndPaste.h Fix image pasting regression 2013-07-13 22:44:20 +02:00
DepTable.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
DepTable.h
Dimension.cpp Move code where it belongs 2014-05-19 22:07:04 +02:00
Dimension.h
DispatchResult.h Rename a routine. 2014-02-18 10:42:52 -05:00
DocIterator.cpp Fix typo 2013-12-15 12:19:12 +01:00
DocIterator.h std::min/max are defined in <algorithm> 2014-06-07 08:17:20 +02:00
DocumentClassPtr.h
EnchantChecker.cpp use enchant exception message accessor 2014-11-18 22:06:27 +01:00
EnchantChecker.h Remove ; from end of function definitions 2013-05-12 13:04:18 +02:00
Encoding.cpp Make Encoding class thread-safe 2014-12-08 22:25:40 +01:00
Encoding.h Make Encoding class thread-safe 2014-12-08 22:25:40 +01:00
ErrorList.cpp
ErrorList.h Remove ; from end of function definitions 2013-05-12 13:04:18 +02:00
Exporter.cpp
Exporter.h
factory.cpp Fix bugs #8546 and #9055, and introduce new separator inset. 2014-05-10 23:25:11 +02:00
factory.h
Floating.cpp Fix a bunch of minor issues discovered by the cppcheck script. 2014-04-21 11:52:00 -04:00
Floating.h Fix a bunch of minor issues discovered by the cppcheck script. 2014-04-21 11:52:00 -04:00
FloatList.cpp This is the result of an audit of all static variables, looking 2014-04-21 11:51:57 -04:00
FloatList.h
Font.cpp ulem commands can be nested. 2014-04-21 11:51:58 -04:00
Font.h Slowly going through the suggestion made by our headers script. 2013-05-15 22:02:10 -07:00
FontEnums.h Add support for stmaryrd.sty (bug #8434) 2012-12-15 13:10:31 +01:00
FontInfo.cpp Implement writing of layouts 2013-03-31 15:33:26 +02:00
FontInfo.h Implement writing of layouts 2013-03-31 15:33:26 +02:00
FontList.cpp This is the result of an audit of all static variables, looking 2014-04-21 11:51:57 -04:00
FontList.h This is the result of an audit of all static variables, looking 2014-04-21 11:51:57 -04:00
Format.cpp Fix viewer file paths on windows (bug #8892) 2014-11-19 22:47:36 +01:00
Format.h Make Format class almost thread-safe 2014-12-21 21:40:25 +01:00
FuncCode.h Add LFUN_SERVER_GET_STATISTICS command 2014-10-23 16:06:42 +02:00
FuncRequest.cpp
FuncRequest.h
FuncStatus.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
FuncStatus.h
Graph.cpp
Graph.h
HSpace.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
HSpace.h
HunspellChecker.cpp Add lookup for standard location of hunspell dictionaries of Debian packages 2014-11-18 08:56:23 +01:00
HunspellChecker.h
IndicesList.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
IndicesList.h
InsetIterator.cpp
InsetIterator.h
InsetList.cpp
InsetList.h
Intl.cpp
Intl.h
KeyMap.cpp Remove unsafe method FileName::tempName() 2014-06-09 13:05:50 +02:00
KeyMap.h
KeySequence.cpp Use empty() to check empty and non-empty'ness not size() 2012-10-27 01:25:38 +02:00
KeySequence.h
Language.cpp Whitespace 2014-12-07 17:29:12 +01:00
Language.h Make Language and Encoding threadsafe 2014-12-07 18:26:44 +01:00
LaTeX.cpp Fix memory error detected by valgrind 2014-11-17 22:08:21 +01:00
LaTeX.h Get rid of boost::noncopyable. 2014-11-14 23:40:27 +00:00
LaTeXFeatures.cpp Output package options before loading any package. 2014-12-21 12:10:06 +01:00
LaTeXFeatures.h Output package options before loading any package. 2014-12-21 12:10:06 +01:00
LaTeXFonts.cpp Revert 6a5aa1ca 2014-07-12 19:52:12 +02:00
LaTeXFonts.h Load AMS packages before newtxmath (#8824) 2013-09-01 10:21:21 +02:00
LaTeXPackages.cpp
LaTeXPackages.h
Layout.cpp Add layout tag that determines if/when a paragraph can be indented. 2014-05-29 14:10:32 +02:00
Layout.h Add layout tag that determines if/when a paragraph can be indented. 2014-05-29 14:10:32 +02:00
LayoutEnums.h Add layout tag that determines if/when a paragraph can be indented. 2014-05-29 14:10:32 +02:00
LayoutFile.cpp Remove unsafe method FileName::tempName() 2014-06-09 13:05:50 +02:00
LayoutFile.h Get rid of boost::noncopyable. 2014-11-14 23:40:27 +00:00
LayoutModuleList.cpp Import theorems correctly (bugs #5702, #5776) 2012-10-26 22:23:16 +02:00
LayoutModuleList.h Import theorems correctly (bugs #5702, #5776) 2012-10-26 22:23:16 +02:00
Length.cpp Remove unneeded swap() (thanks Jean-Marc) 2014-07-07 21:16:10 +02:00
Length.h Remove unneeded swap() (thanks Jean-Marc) 2014-07-07 21:16:10 +02:00
lengthcommon.cpp Improve support for empty lengths 2013-05-24 15:44:58 +02:00
Lexer.cpp Initialize all members 2014-05-19 22:41:51 +02:00
Lexer.h
lyx_commit_hash.h.in Autotools: read git commit hash at compile time 2014-11-24 22:00:21 +01:00
LyX.cpp Add new variables lyx_build_date/time 2014-11-25 18:58:35 +01:00
LyX.h WS cleanup, remove extraeneous spaces 2012-10-27 01:25:38 +02:00
LyXAction.cpp Fix some glitches in inset-select-all 2014-11-14 10:18:34 +01:00
LyXAction.h Bump LFUN format for LyX 2.1 2012-09-29 20:06:39 +02:00
lyxfind.cpp Rewrite of change-related helpers 2014-10-14 17:40:44 +02:00
lyxfind.h Rewrite of change-related helpers 2014-10-14 17:40:44 +02:00
LyXRC.cpp Encapsulate Converter class 2014-12-07 18:35:28 +01:00
LyXRC.h Get rid of rtl_support preference 2014-07-09 21:11:08 +02:00
LyXVC.cpp Remove unsafe method FileName::tempName() 2014-06-09 13:05:50 +02:00
LyXVC.h Fix monolithic build 2013-03-18 20:42:28 +01:00
lyxwinres.rc
main.cpp
Makefile.am Autotools: read git commit hash at compile time 2014-11-24 22:00:21 +01:00
MetricsInfo.cpp
MetricsInfo.h Slowly going through the suggestion made by our headers script. 2013-05-15 22:02:10 -07:00
ModuleList.cpp Remove dependency on TEX2LYX #define in ModuleList.cpp 2013-09-29 15:26:12 +02:00
ModuleList.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
Mover.cpp Centralize replacement of "$$s" 2014-05-14 15:45:20 -04:00
Mover.h
output_docbook.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
output_docbook.h
output_latex.cpp Fix bug with wrong baseline calculation in last paragraph (2nd attempt) 2014-09-01 09:14:26 +02:00
output_latex.h Header cleanup cont. 2013-05-25 16:38:20 -07:00
output_plaintext.cpp Fix a bunch of small performance issues spotted by cppcheck 2014-07-05 19:13:10 +02:00
output_plaintext.h Introduce max_length parameter for plaintext() output routines, 2013-03-08 15:12:58 -05:00
output_xhtml.cpp Fix a bunch of small performance issues spotted by cppcheck 2014-07-05 19:13:10 +02:00
output_xhtml.h struct with virtual functions should have virtual destructor 2014-04-30 23:14:41 +02:00
output.cpp
output.h
OutputEnums.h
OutputParams.cpp Fix a bunch of minor issues discovered by the cppcheck script. 2014-04-21 11:52:00 -04:00
OutputParams.h Remove unneeded mutable keywords 2014-11-18 21:08:43 +01:00
paper.h
Paragraph.cpp corrected_env: use breakln instead of hardcoded linebreak 2014-12-01 14:45:11 +01:00
Paragraph.h Rename FontSpan::inside(pos) to contains(pos) 2014-07-28 20:42:01 +02:00
ParagraphList.h
ParagraphMetrics.cpp Fix bug in 81badf: char_type and double do not have the same size 2014-11-24 22:51:12 +01:00
ParagraphMetrics.h Fix a bunch of minor issues discovered by the cppcheck script. 2014-04-21 11:52:00 -04:00
ParagraphParameters.cpp
ParagraphParameters.h
ParIterator.cpp
ParIterator.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
pch.h
PDFOptions.cpp Fix a bunch of small performance issues spotted by cppcheck 2014-07-05 19:13:10 +02:00
PDFOptions.h Fix a bunch of small performance issues spotted by cppcheck 2014-07-05 19:13:10 +02:00
PersonalWordList.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
PersonalWordList.h Fix a bunch of minor issues discovered by the cppcheck script. 2014-04-21 11:52:00 -04:00
PrinterParams.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
PrinterParams.h
Row.cpp Reduce use of double variables in Row 2014-12-22 14:07:24 +01:00
Row.h Reduce use of double variables in Row 2014-12-22 14:07:24 +01:00
RowPainter.cpp Reduce use of double variables in Row 2014-12-22 14:07:24 +01:00
RowPainter.h Rename rowpainter.* to RowPainter.* 2014-07-25 21:55:08 +02:00
Server.cpp Fix wrong test: boolean variable is never negative 2014-11-01 16:06:08 +01:00
Server.h
ServerSocket.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
ServerSocket.h Header cleanup cont. 2013-05-19 18:07:53 -07:00
Session.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
Session.h
sgml.cpp Whoops. Forgot to add before amending commit. 2014-10-26 13:02:49 -04:00
sgml.h Fix a bunch of small performance issues spotted by cppcheck 2014-07-05 19:13:10 +02:00
Spacing.cpp
Spacing.h
SpellChecker.h
TexRow.cpp
TexRow.h
Text2.cpp Text2.cpp (checkAndActivateInset, checkAndActivateInsetVisual): activate insets on selection if the anchor is inside the inset. 2014-10-12 10:07:18 +02:00
Text3.cpp Fix warnings reported by clang 2014-11-27 19:10:43 +01:00
Text.cpp Rewrite of change-related helpers 2014-10-14 17:40:44 +02:00
Text.h Whitespace fixes 2014-04-29 22:06:02 +02:00
TextClass.cpp Add ObsoletedBy tag to InsetLayout 2014-12-08 09:08:45 +01:00
TextClass.h Update comments. 2014-08-12 15:44:15 -04:00
TextMetrics.cpp Reduce use of double variables in Row 2014-12-22 14:07:24 +01:00
TextMetrics.h Use enum instead of int in TextMetrics::getAlign 2014-07-29 11:05:14 +02:00
Thesaurus.cpp src/*.cpp: reformatting to increase consistency 2012-10-28 17:42:07 +01:00
Thesaurus.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
TocBackend.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
TocBackend.h whitespace 2014-02-24 16:40:57 +01:00
Trans.cpp
Trans.h
Undo.cpp Respect group integrity when removing stuff from the Undo stack. 2014-04-20 19:01:07 +02:00
Undo.h
update_flags.h
VCBackend.cpp Fix return value of CVS::toString() + cosmetics 2014-11-30 12:41:49 +01:00
VCBackend.h Make parameter more readable. 2013-04-13 21:56:52 -07:00
version.cpp Add new variables lyx_build_date/time 2014-11-25 18:58:35 +01:00
version.h Add new variables lyx_build_date/time 2014-11-25 18:58:35 +01:00
VSpace.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
VSpace.h
WordLangTuple.h
WordList.cpp Make theWordList() thread safe. 2014-07-04 22:19:43 +02:00
WordList.h Make WordList noncopyable 2014-07-04 21:15:21 +02:00