summaryrefslogtreecommitdiffstats
path: root/src/text-editing.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring: call setAttribute() directly.Shlomi Fish2019-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call this->setAttribute(...) directly instead of this->getRepr()->setAttribute(...). This avoids clutter and mental indirection. See http://wiki.inkscape.org/wiki/index.php?title=Refactoring_projects&oldid=112116 and https://en.wikipedia.org/wiki/Law_of_Demeter . --- I hereby disclaim any implicit or explicit ownership of my changes in this changeset, and put them under a multiple licence consisting of your choice of one of more of: - The CC0 / Public Domain - https://creativecommons.org/choose/zero/ . - The MIT / Expat license - https://en.wikipedia.org/wiki/MIT_License - The default licence of your project - The https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License - version 2.1 or higher - The https://en.wikipedia.org/wiki/GNU_General_Public_License - version 2 or higher - Any licence in the 2018-Aug-27 popular licenses list of https://opensource.org/licenses - The https://en.wikipedia.org/wiki/Apache_License version 2.0 or later - The https://en.wikipedia.org/wiki/Artistic_License version 2.0 or later - The https://en.wikipedia.org/wiki/ISC_license - The https://opensource.org/licenses/BSD-2-Clause Crediting me will be nice, but not mandatory, and you can change the licence of the project without needing my permission.
* Prevent segmentation fault when editing flow text missing <flowPara>.Tavmjong Bah2019-04-101-2/+21
| | | | Fixes issue #166.
* modernize: add overridesMarc Jeanmougin2019-01-021-1/+1
|
* modernize loops (2)Marc Jeanmougin2019-01-021-1/+1
|
* modernize loopsMarc Jeanmougin2019-01-021-1/+1
|
* Minor style fixesMarc Jeanmougin2019-01-011-1/+1
|
* Clarify licensesMax Gaukler2018-11-081-1/+2
| | | | | | - add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-181-80/+80
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin2018-05-041-4/+4
| | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-291-4/+4
|
* Move classes derived from SPObject to own directory.Tavmjong Bah2018-01-301-11/+11
| | | | A lot of header clean-up.
* Fix keyboard shortcuts for changing line spacing.Tavmjong Bah2017-08-091-53/+98
| | | | | | | Many bug fixes to ensure proper behavior for the different line spacing modes. Return focus to canvas when buttons are pushed in text tool bar. Change step size to a reasonable value for line height when unit not percent. Fix some issues with history for changes to line spacing in flowed text.
* Fix crash when modifying text in "Text and Font" dialogEduard Braun2017-04-231-3/+3
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1618015 (bzr r15632)
* Merged trunkAdrian Boguszewski2016-08-031-2/+0
|\ | | | | (bzr r14954.1.29)
| * Removed unused includes, decreased compilation time. Once againAdrian Boguszewski2016-08-031-2/+0
| | | | | | (bzr r15034)
| * Reverted changes to r15024 after many building problemsAdrian Boguszewski2016-07-281-0/+2
| | | | | | (bzr r15027)
| * Removed unused includes, decrease compilation timeAdrian Boguszewski2016-07-281-2/+0
| | | | | | (bzr r15025)
* | Renamed children list in SPObjectAdrian Boguszewski2016-07-141-8/+8
| | | | | | (bzr r14954.1.21)
* | Last part of new SPObject children listAdrian Boguszewski2016-07-141-6/+3
| | | | | | (bzr r14954.1.20)
* | Second part of new SPObject children listAdrian Boguszewski2016-07-131-25/+28
|/ | | (bzr r14954.1.19)
* static code analysisKris De Gussem2015-12-071-1/+1
| | | (bzr r14509)
* Commented out tidy_operator_styled_whitespace (fixes bug 1477723).Marc Jeanmougin2015-07-261-2/+10
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1477723 (bzr r14258)
* corrected the casts (hopefully)Marc Jeanmougin2015-02-271-1/+1
| | | (bzr r13922.1.10)
* Put a few std::vector<SPitem*>Marc Jeanmougin2015-02-191-2/+2
| | | (bzr r13922.1.5)
* At first, I was thinking "I just have to go to the selection file, and ↵Marc Jeanmougin2015-02-171-4/+3
| | | | | | | | change that GSList* with a std::list, then resolve the few problems" So, i tried that. And I will continue tomorrow, and the days after, on and on. (bzr r13922.1.1)
* Remove sp_style_write_string() and sp_style_write_difference().Tavmjong Bah2014-12-251-20/+19
| | | (bzr r13822.1.4)
* Prevent segfault when style string is null.Tavmjong Bah2014-04-051-2/+2
| | | (bzr r13270)
* "fix" some "unused parameter" warningsKris De Gussem2013-10-281-6/+6
| | | (bzr r12738)
* improve legibilityJohan B. C. Engelen2013-09-101-5/+5
| | | (bzr r12505)
* merge from trunk (r12487)su_v2013-08-291-6/+6
|\ | | | | (bzr r11668.1.75)
| * Eliminate "unit-constants.h".Matthew Petroff2013-07-311-6/+6
| | | | | | (bzr r12380.1.54)
* | changes_2013_05_22a.patch:David Mathog2013-06-191-20/+38
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Resolves issue of bug #988601 message 170 (Support of 'Unset' styles in EMF export). 2. Implements CSS 3 (and CSS 2) text-decoration support. Note that it does not yet provide any method of adding these features - at present it just shows whatever is in the SVG. This new code is also used to display EMF/WMF strike-through and underline text decorations when these files are read in. Those decorations may also be written out to EMF/WMF. Other text decoration features, like overline, or dotted lines, are dropped. For SVG text-decoration -line, -style, -color are all implemented. CSS3 provides two ways to represent the same state, this code uses the compound text-decoration method rather than the 3 fields method. Also it leaves out keywords that are not needed and would break backwards compatibility. For instance: text-decoration: underline solid is valid, but would break CSS2. Solid is the default, so that sort of case is written as: text-decoration: underline If the state is CSS3 specific all of the needed fields are of course include, like text-decoration: underline wavy red 3. It incorporates the fix for bug 1181326 (Text edit mishandles span of just colored spaces) 4. It incorporates further changes to text editing so that style can be changed on spans consisting of only spaces when text decorations are present in the span. 5. It incorporates code to disable text decorations when text so marked is mapped onto a path. 6. Fixed more bugs in Hebrew language support than I can remember. Hebrew language export/import to EMF now works quite well. (See the examples in libTERE v 0.7.) WMF does not support unicode and for all intents and purposes Inkscape has no way to read or write Hebrew to it. Some of more important things that now work that didn't (or didn't always): Hebrew diacritical marks, R/L/center justification, and bidirectional text. The Hebrew fonts "Ezra SIL" and "EZRA SIL SR" should be installed before viewing the libTERE examples, otherwise font substitutions will cause some text shifts. 7. Implemented font failover in Text Reassemble, which makes the process more robust. (Again, see the examples in libTERE. ) (bzr r11668.1.71)
* cppcheckKris De Gussem2013-03-161-1/+1
| | | (bzr r12217)
* A couple of forward declarationsAlex Valavanis2013-02-111-0/+1
| | | (bzr r12119)
* Fix for 903772 : Support --export-text-to-path when outputting plain SVGJohn Smith2012-05-261-0/+17
| | | (bzr r11418)
* (cppcheck and janitorial tasks:) C-style casting to C++-style castingKris De Gussem2012-02-251-2/+2
| | | (bzr r11011)
* cppcheckKris De Gussem2012-02-151-7/+11
| | | (bzr r10987)
* - rename SPItem::i2d_affine to i2dt_affine, to clarify that it is ↵Johan B. C. Engelen2011-07-171-1/+1
| | | | | | | item-to-desktop, not item-to-document. This should make it easier to spot bugs. - tag some instances where the document-to-desktop transform has been hardcoded (bzr r10466)
* Cleanup of oudated/redundant SP_ITEM() macro use.Jon A. Cruz2011-07-161-1/+1
| | | (bzr r10461)
* Merge from trunkKrzysztof Kosi??ski2011-04-071-149/+212
|\ | | | | (bzr r9508.1.73)
| * Finished cleanup of outdated SP_OBJECT_PARENT C macro.Jon A. Cruz2011-02-211-1/+1
| | | | | | (bzr r10064)
| * Finished cleanup of outated SP_OBJECT_DOCUMENT C macro.Jon A. Cruz2011-02-211-142/+205
| | | | | | (bzr r10060)
| * update to latest 2geom !Johan B. C. Engelen2011-02-021-6/+6
| | | | | | (bzr r10025)
* | Merge from trunk (again)Krzysztof Kosi??ski2010-12-151-100/+142
|\| | | | | (bzr r9508.1.72)
| * Merge and cleanup of GSoC C++-ification project.Jon A. Cruz2010-12-121-100/+142
| |\ | | | | | | (bzr r9945.1.1)
| | * C++ification of SPObject continued along with the onset of XML ↵Abhishek Sharma Public2010-07-061-1/+2
| | | | | | | | | | | | | | | Privatisation. Users may checkout [grep -Ir XML Tree *] in the source code and all the places where the XML node/Tree is being used shall be reflected. (bzr r9546.1.5)
| | * another c++ification for sp-object.h/cpp and still in progress...Abhishek Sharma Public2010-07-031-5/+5
| | | | | | | | | (bzr r9546.1.4)
| | * This is the first c++ification commit from me. It handles sp-line, ↵Abhishek Sharma Public2010-06-291-6/+6
| | | | | | | | | | | | | | | sp-polyline, sp-item and marks the onset of document c++ification as well. Users can check performace increase with [/usr/bin/time -v inkscape_binary_with_commandline_options]. (bzr r9546.1.1)
* | | Merge from trunkKrzysztof Kosi??ski2010-11-251-30/+40
|\| | | | | | | | (bzr r9508.1.70)
| * | repr wasn't updated immediately after some text editing operations, which ↵Richard Hughes2010-10-211-7/+9
| | | | | | | | | | | | | | | meant that if the file was immediately saved it might display wrong in other apps (bzr r9840)