summaryrefslogtreecommitdiffstats
path: root/src/extension (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix build when DBUS enabled.Tavmjong Bah2018-01-311-28/+23
|
* Move classes derived from SPObject to own directory.Tavmjong Bah2018-01-3047-137/+135
| | | | 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-0823-30/+30
| | | Found via `codespell`
* Use Gtk::CheckButton label instead of a separate Gtk::LabelGeoff Lankow2018-01-011-7/+3
|
* Show appropriate warning if non-existent export ID is specifiedEduard Braun2017-12-224-1/+15
| | | | | Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1739497
* Allow extensions to throw more fine-grained exceptionsEduard Braun2017-12-222-7/+2
| | | | | | | | | | | | | | | This allows to tell the user something more helpful than "File could not be saved" (leaving the reason open for speculation). The former implementation somehow grew to only ever throw Inkscape::Extension::Output::save_failed for any exception that occurred (which did not really matter as we did not throw anything else but certainly wasn't very useful either). Questionable throwing behavior was introduced in commits trying to workaround other issues: - output.cpp a874b82b41c08fc1738b449d400fcc6aeb85d72a - system.cpp d8d60c60ebeeefb068d9b68bf7d96f1f1f88518a
* Minor cleanup (remove some unimplemented methods)Eduard Braun2017-12-201-5/+0
|
* Make script warnings transient for "Working..." dialogEduard Braun2017-12-207-5/+35
| | | | | | | | | | | This turned out to be a bit of a mess due to the interplay between the classes Script / ExecutionEnv / Effect / PrefDialog. (Basically they don't talk to each other much but all want to contribute to the GUI) Likely "Script" (and possibly "ExecutionEnv") should be refactored to let the other classes handle UI exclusively and throw errors where suitable.
* Effects: make "Working..." dialog transient for preferences dialogEduard Braun2017-12-203-2/+18
|
* Replace GimpSpinScale by InkSpinScale.Tavmjong Bah2017-12-182-2/+8
|
* 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.
* Add a warning dialog for previous commitEduard Braun2017-11-301-1/+5
|
* Extensions: Don't crash on invalid effect extension outputEduard Braun2017-11-301-3/+8
|
* 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-0723-32/+32
|\
| * Misc. typosUnknown2017-11-0723-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | 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
|/
* do not build grid2 in target allMarc Jeanmougin2017-11-021-1/+1
|
* 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.
* | Drop obsolete wrapper around Glib::file_open_tmpStefano Facchini2017-10-192-13/+12
| |
* | Remove all unused makefile.inStefano Facchini2017-10-193-51/+0
|/
* Remove deprecated GNOME VFSStefano Facchini2017-10-132-65/+23
| | | | Just use Gio::File when access to non-local files is needed.
* third batchMarc Jeanmougin2017-10-022-22/+6
|
* 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-0111-175/+138
|/
* 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
|
* Move directory scanners to new get_filenames(...) callsMartin Owens2017-07-026-108/+16
|
* Introduce get_filenames which scans paths for all filenames.Martin Owens2017-07-012-60/+18
|
* Replace ImageMagic with GraphicsMagicchr[]2017-06-301-0/+3
| | | | | | ... just a matter of taste. But both wanna be initialized: fixed.
* Refactor profile directory use and promote IO::Resource get_path and ↵Martin Owens2017-06-285-29/+27
| | | | 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)
* Sort File Save and File Input file type menus.Tavmjong Bah2017-05-311-3/+77
| | | (bzr r15720)
* 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)
* Fix regression introduced in r15634Eduard Braun2017-04-281-2/+2
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1686549 (bzr r15647)
* Restore r14978 which was reverted in r15047 due to messed up mergeEduard Braun2017-04-244-4/+0
| | | | | | http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/14978 http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/15047 (bzr r15638)