summaryrefslogtreecommitdiffstats
path: root/src/extension/internal (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move classes derived from SPObject to own directory.Tavmjong Bah2018-01-3037-129/+125
| | | | A lot of header clean-up.
* Fix handling of filenames of linked images in .odg exportEduard Braun2018-01-242-6/+1
| | | | | | | | | | | | | | | - export of .odg files was completely broken on Windows as "documentUri = Inkscape::URI(filename);" always failed (Windows paths are never valid URIs because of '\') - Linked images did not seem to be working on any OS (probably regression in 6f844ef457690c841b0be91d70b1e54b61c04812) I assume support for linked images is still sketchy but seems to work in the most common cases; support for embedded images seems to be non-existent, though. Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1654034
* PDF+LaTeX: fix line spacing, add basic support for line-heightEduard Braun2018-01-141-19/+28
| | | | | | | | | Replace "\stackrel" with "\tabular" to achieve constant line spacing. The former varies line spacing depending on the content of the line (i.e. an line containing "-" will have a very small height) Add basic support for line-height. (currently only the top level text element is considered)
* Misc. typosluz.paz2018-01-089-12/+12
| | | Found via `codespell`
* Show appropriate warning if non-existent export ID is specifiedEduard Braun2017-12-223-1/+10
| | | | | Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1739497
* PDF+LaTeX export: do not apply style to newlinesEduard Braun2017-12-051-25/+28
| | | | | | As the parser seems to wrap newlines into their own tspan which has the same style as the preceding tspan the latex-text renderer produced output like "\texbf{\\}" which broke compilation in LaTeX
* PDF+LaTeX export: Fix multiline textEduard Braun2017-12-051-13/+30
| | | | | | | | | | | Wrap text in "\shortstack" to allow for newlines using "\\". The output extension already produced those but they are ignored in a "\smash" environment. Patch by Michael Jäntsch Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/771959
* PDF+LaTeX export: Avoid printing empty boxesEduard Braun2017-12-051-0/+5
| | | | | | | | | | | | This also fixes an issue with multipage PDF output where an empty string would have been assumed to require emission of the previous page when in fact the CairoRenderer does not produce a new page in this case resulting in another facet of https://bugs.launchpad.net/ubuntu/+source/inkscape/+bug/1417470 Invisible characters might still cause this issue but it seems to be a very unlikely scenario and there's no way to know this without actually rendering the glyphs (which seems to be overkill here)
* CairoRenderer: print warning if rendering failedEduard Braun2017-12-041-1/+5
| | | | | | It happen often that the rendering was interrupted early but the final "cairo_surface_status" claims success which results in incomplete output but no user-visible warning.
* Proper fix for multipage PDF+Latex exportEduard Braun2017-12-041-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | The previous implementation [1] allowed to sandwich text between graphical objects by outputting multiple (partial) PDF pages which are then stacked in the final document to reveal the full image. However this code failed for clipped/masked/transparent objects as those are treated specially by the renderer resulting in missing pages in the output causing [2]. The attempt to workaround this issue which was committed in e4dea66a338824037b6c35b262aa8db4004b6581 (now reverted) fixed document creation in LaTeX by inserting blank pages but did not actually fix the issue with clipped/masked/transparent objects typically resulting in a single page with the full image and all text put on top. This commit resolves the underlying issue, making the former workaround unnecessary and allowing for proper overlaying of text and arbitrarily clipped/masked/transparent objects Fixed bugs: - https://bugs.launchpad.net/inkscape/+bug/771957 [1] - https://bugs.launchpad.net/inkscape/+bug/1417470 [2]
* Revert "Fix PDF+TeX output for text inside groups with clip/mask"Eduard Braun2017-12-042-33/+3
| | | | This reverts commit e4dea66a338824037b6c35b262aa8db4004b6581.
* Two fixes (should work on Linux now)Eduard Braun2017-11-211-3/+2
| | | | | | | | | | - do not call cairo_show_page as the GtkPrintOperation seems to do that internally (calling it manually will emit the current page, clear it, and the cleared page seems to be emitted in error later) - we can (and should) still call cairo_surface_destroy as it's doing reference counting internally (we increase the reference count in CairoRenderContext::setSurfaceTarget) and won't actually destroy anything until the count reaches zero
* Fix printing multiple copies of a documentEduard Braun2017-11-202-5/+8
| | | | | | | | | | | | | Previously only the first page was printed properly, all following pages were either blank or were not printed at all. This was caused by finishing/destroying the cairo surface of the cairo context associated with the GtkPrintContext used for printing which made it impossible to draw to it for any consecutive page Fixed bugs: - https://bugs.launchpad.net/inkscape/+bug/1733424 - https://bugs.launchpad.net/inkscape/+bug/490866
* Merge branch 'luzpaz/inkscape-typos' (!119)Eduard Braun2017-11-079-14/+14
|\
| * Misc. typosUnknown2017-11-079-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | Found using `codespell -q 3 -w --skip="*.svg,*.po,*.ts,./share/tutorials,./src/libavoid,./packaging/win32/languages,./man,./src/2geom" -I ../inkscape-whitelist.txt` whereby whitelist file contained: ``` dum iff glight substract te upto ```
* | Change abs to std::abs to fix warningsSimon Wells2017-11-042-5/+5
|/
* Merge branch 'smartpointer_refactor' of gitlab.com:jali/inkscapeMarc Jeanmougin2017-10-202-4/+2
|\
| * Replace boost::scoped_ptrJan Lingscheid2017-10-172-4/+2
| | | | | | | | | | This replaces all usage of boost::scoped_ptr with std::unique_ptr. Also removes the corresponding includes.
* | Remove all unused makefile.inStefano Facchini2017-10-191-17/+0
|/
* Remove deprecated GNOME VFSStefano Facchini2017-10-131-61/+22
| | | | Just use Gio::File when access to non-local files is needed.
* third batchMarc Jeanmougin2017-10-021-10/+5
|
* Merge branch 'master' of gitlab.com:inkscape/inkscapeMarc Jeanmougin2017-10-011-12/+20
|\
| * Do not crash if raster image can not be opened by ImageMagickEduard Braun2017-09-301-12/+20
| | | | | | | | | | | | | | | | | | | | | | The crash only affected embedded images. (we were already catching the exception when loading a linked file) While at it add some error reporting via debug messages, fix a memory leak and do some minor cleanup. Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1720330
* | Removed all GSList occurences in .h filesMarc Jeanmougin2017-10-013-14/+10
|/
* adapt to poppler 0.58David Tardon2017-09-072-0/+527
|
* Cleanup: eliminate version from config.hEduard Braun2017-07-172-3/+5
| | | | | | The idea behind inkscape-version.h / inkscape-version.cpp is to avoid rebuilding most of the code base when the version number changes. Defining a version number in config.h defeats this purpose.
* Gtkmm deprecation fixesAlexander Valavanis2017-07-063-3/+0
|
* Introduce get_filenames which scans paths for all filenames.Martin Owens2017-07-012-60/+18
|
* Refactor profile directory use and promote IO::Resource get_path and ↵Martin Owens2017-06-282-11/+11
| | | | get_filename methods
* [Bug #1417470] Fix PDF+TeX output for text inside groups with clip/maskMax Gaukler2017-06-132-3/+33
| | | | | Fixes Bug: - https://launchpad.net/bugs/1417470
* Avoid name conflict with libwmf (wmf_free).Tavmjong Bah2017-06-011-1/+1
| | | (bzr r15724)
* Use uniform name for input and output (and PDF is an ISO standard and no ↵Tavmjong Bah2017-06-011-2/+2
| | | | | longer tied to Adobe). (bzr r15723)
* Fix PDF export with respect to 'image-rendering'.Tavmjong Bah2017-05-291-5/+5
| | | (bzr r15715)
* CDR/VSD input: Avoid crash when preview image can not be rendered and show a ↵Eduard Braun2017-04-302-1/+27
| | | | | placeholder instead (bzr r15653)
* Remove unused field "scope"Eduard Braun2017-04-091-2/+2
| | | (bzr r15633.1.2)
* EMF/WMF: Hopefully resolve locale issues with decimal separator for goodEduard Braun2017-04-064-28/+35
| | | | | | | | | | | | This unconditionally sets "LC_NUMERIC" to "C" to use dots (.) in all scanf/printf-like functions to prevent parsing issues with locales that would use a comma (,) instead. Fixed bugs: - https://launchpad.net/bugs/1549015 - https://launchpad.net/bugs/1675755 - https://launchpad.net/bugs/1335660 - https://launchpad.net/bugs/1089857 - https://launchpad.net/bugs/1599763 (bzr r15617)
* Implement rotation via desktop to window affine.Tavmjong Bah2017-03-209-45/+15
| | | | | | Remove rotation via viewbox. Still some work to do... (bzr r15603)
* Fix Gtkmm deprecation warnings in VSD import dialogAlex Valavanis2017-03-111-14/+18
| | | (bzr r15586)
* Fix Gtkmm deprecation warnings in CDR import dialogAlex Valavanis2017-03-111-16/+21
| | | (bzr r15585)
* EMF/WFM export: Fix crash when selecting "Convert gradients to colored ↵Eduard Braun2017-03-062-6/+29
| | | | | | | | | | polygon series" The problem where calls of "sprintf()" to format SVG path data. Unfortunately depending on the locale set at this point via "setlocale()" the output could contain commas (,) instead of dots (.) as decimal spearator resulting in invalid path data. Fixed bugs: - https://launchpad.net/bugs/1549015 (bzr r15568)
* [Bug #1664372] preset filter names inconsistent.suv-lp2017-02-182-2/+2
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1664372 (bzr r15532)
* improve dot dash support in wmf exportmathog2017-02-171-1/+22
| | | (bzr r15526)
* resolve bug 1665421mathog2017-02-171-0/+10
| | | (bzr r15525)
* Fix a memory leak introduced in r15421 and r15501 respectivelyEduard Braun2017-02-113-8/+15
| | | (bzr r15505)
* fix two memory leaksperegrine2017-02-071-0/+1
| | | | | | | Fixed bugs: - https://launchpad.net/bugs/1662686 - https://launchpad.net/bugs/1662683 (bzr r15493)
* [Bug #1537497] Icon preview doesn't render background.tghs2017-01-251-1/+1
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1537497 (bzr r15446)
* fixing to new trunkJabiertxof2017-01-247-22/+84
|\ | | | | (bzr r15142.1.38)
| * Partially fix opening of librevenge based input formats (cdr/vsd/wpg) on ↵Eduard Braun2017-01-173-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows if the filename contains non-ASCII characters The problem is that "RVNGFileStream" uses "fopen()" internally which only supports ANSI filenames on Windows (i.e. a complete fix would require upstream code changes). By using "g_win32_locale_filename_from_utf8()" the problem can be worked around in most cases, though: * the filename is converted to the current codepage (i.e. all 255 characters that are available in the current character encoding are allowed in the filename) * even if the filename contains a character that's not available in the current character encoding it's attempted to use the alternative short (8.3) file name instead Therefore the input operation will only fail in the unlikely case that the filename contains a character not available in the current ANSI code page while at the same time short file names are disabled on the file system (which is not the case in standard configurations). Fixed bugs: - https://launchpad.net/bugs/1656763 - https://launchpad.net/bugs/1656763 (bzr r15421)
| * Fix typoAlex Valavanis2016-12-261-1/+1
| | | | | | (bzr r15364)
| * vsd-input: Gtk3 fixesAlex Valavanis2016-12-261-2/+2
| | | | | | (bzr r15363)