summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
AgeCommit message (Collapse)AuthorFilesLines
2016-04-26update loplugin stylepolice to check local pointers varsNoel Grandin1-17/+17
are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1 Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-17use consistent #define checks for the Windows platformNoel Grandin1-1/+1
stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-09Remove excess newlinesChris Sherlock1-2/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-11-17Use std::vector instead of boost::shared_arrayStephan Bergmann1-19/+19
Change-Id: If28713daab4bb5cbdb450879c2dc2a265c62a4f3
2015-11-11new loplugin: memoryvarNoel Grandin1-5/+3
detect when we can convert a new/delete sequence on a local variable to use std::unique_ptr Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc Reviewed-on: https://gerrit.libreoffice.org/19884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-1/+1
Change-Id: I8aec30601862feaeb99e3ce01adf61665688fa9a
2015-09-30Fix typosAndrea Gelmini1-1/+1
Change-Id: I3ea8a90f0ec917b4e26335fcd31a5f7e0888589e Reviewed-on: https://gerrit.libreoffice.org/18972 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-03-30loplugin:staticfunctionNoel Grandin1-1/+1
Change-Id: I4b7b04031fa74956379c5a1b21abe10b0717f3e9
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann1-1/+1
Change-Id: I207f23b084013f9ce2fcf087a7f335bd8a194f50
2015-02-17SkipImages option for PDF importMihai1-1/+45
This option allows images and drawings to be skipped while importing a PDF, the main reason was performance improvement where images were not needed. Change-Id: Ibca342ff6e7005bedf7b16869473832ce2576fb2 Reviewed-on: https://gerrit.libreoffice.org/14470 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-22fdo#79045 PDF Import: fix text displacementVort1-1/+10
Change-Id: I22e3b90671f1dc4f9720758a7a5b79f56fa2ff49 Reviewed-on: https://gerrit.libreoffice.org/14098 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2015-01-21fdo#85174 PDF Import: fix character positions without modifying popplerVort1-11/+17
Change-Id: I4ec6409e8fa13161c5cd37fcae2055b4bc5ecfd4 Reviewed-on: https://gerrit.libreoffice.org/14066 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-20continue to implement drawChar for unpatched popplers without drawChar2 hackCaolán McNamara1-0/+7
Change-Id: Id4ad86f3f563d88777352722e397cd77cfad45e4
2015-01-20fdo#85174 PDF Import: fix character positionsVort1-5/+3
Change-Id: I0aa75b6cb834341e47bbeeaa15d39387a8cb5240 Reviewed-on: https://gerrit.libreoffice.org/14029 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-20Some more loplugin:cstylecast: sdextStephan Bergmann1-2/+2
Change-Id: Id98eab748280cd9c9c6e34cc3f6938ff6911361a
2015-01-04boost::unordered_map->std::unordered_mapCaolán McNamara1-1/+1
Change-Id: I82f668ef72e916d2ff11df5cda2a02653999f66f
2014-12-23fdo#39440 reduce scope of local variablesMichael Weghorn1-2/+1
This addresses some cppcheck warnings. Change-Id: I404f121ee2e5020359a662f54ffe341f466cd1d5 Reviewed-on: https://gerrit.libreoffice.org/13608 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-08-27Resolves: fdo#83137 NULL pActionCaolán McNamara1-1/+1
Change-Id: I74c4e32aae1e3aa74d197f132c900627062b6d01
2014-05-20fdo#78689 PDF Import: get font's ascent value from different sourceVort1-28/+5
Change-Id: I19018d25ef53bbea225bb5a9ef806ce5c1b4adc7 Reviewed-on: https://gerrit.libreoffice.org/9410 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-15fdo#78549 PDF Import: fix incorrect transformation matrix writingVort1-2/+2
Change-Id: I60d77e01ea7774c234d1ad1b81b90a7db3461e22 Reviewed-on: https://gerrit.libreoffice.org/9310 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-22fdo#71217 PDF Import: Fix importing of JPEG imagesVort1-4/+69
Change-Id: Ic0902a3f9340d2d05be05d13d98f168879b4c3e3 Reviewed-on: https://gerrit.libreoffice.org/9120 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-13Clean up function declarations and some unused functionsStephan Bergmann1-10/+0
Change-Id: I80d15f503bb5714340c051cc1c4890a445e44d56
2014-04-08fdo#45001 fdo#77105 PDF Import: rotated text fixesVort1-5/+2
1. Fix 180 degrees text rotation; 2. Make rotated text fully editable. Change-Id: Ie937f29031bbd0146207ce83678db351b65d2f8d Reviewed-on: https://gerrit.libreoffice.org/8890 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-03fdo#40513 PDF Import: Hack: Replace incorrect values of font's ascent propertyVort1-1/+18
Change-Id: Ib7bd6e15fff5213b5d935c6f03f2c65ea3f6ca50 Reviewed-on: https://gerrit.libreoffice.org/8416 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23Remove unneccessary commentsAlexander Wilms1-2/+2
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-10Use proper bool operationsStephan Bergmann1-1/+1
Change-Id: If9d439faba5a02b50152dfa1090b9eb1afa0fc18
2013-12-17fdo#72598 Remove SunStudio cruft from code baseJelle van der Waa1-6/+2
Change-Id: I6f75d0df0ddafc892fef0ce1bfdcdd6c70151afc Reviewed-on: https://gerrit.libreoffice.org/7104 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-10-29Drop unnecessary #includeTakeshi Abe1-1/+0
Change-Id: I20448aebfae86c097413660e9ec836a786507a85
2013-08-20also adjust for poppler 0.24Bjoern Michaelsen1-1/+1
Change-Id: I177cc28ec357ec5f88bb1efae1928eb120dcd9f2
2013-07-16fix build with system poppler-0.23.0Petr Mladek1-1/+5
XRef *xref parameter has been added to the OutputDev::startPage method, see http://cgit.freedesktop.org/poppler/poppler/commit/?id=8eb489c355d734a72e140ce7e32470d048362499 Change-Id: I7ad875bf58f6998e639c740f0dac3795738cd1db
2013-04-30Fix import of images from pdf.Thorsten Behrens1-2/+22
Seems poppler changed outputdev virt func signatures with version 12, so with system poppler, we never got any image import functions called. Added override annotation to prevent this from happening in the future. Change-Id: I565de80ce218e831e276d3a1d88ded3baee876e7
2013-03-04coverity#982282: Resource leak in objectJulien Nabet1-0/+4
Change-Id: Ia7d936c90d7afd4ffa4e22a86289aba47956f576 Reviewed-on: https://gerrit.libreoffice.org/2511 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-18coverity#983173 Resource leakNorbert Thiebaud1-1/+4
Change-Id: I913ce32579ef9045fd3d33b48a653bc4ffc628da Reviewed-on: https://gerrit.libreoffice.org/2206 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2013-02-18coverity#983175 Resource leakNorbert Thiebaud1-0/+3
Change-Id: I03eadb6f1e7235f03149a386c407066f81473772 Reviewed-on: https://gerrit.libreoffice.org/2207 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-12-27Sigh, my git grep regexps missed some casesTor Lillqvist1-1/+1
Change-Id: I085f14f40fb83cba171b35b14cf7c0d99091fc00
2012-11-21fix build with poppler-0.21.1Petr Mladek1-1/+6
heh, they put back UTF8.h Change-Id: Id915b1a1e41440a4b53058779355e99e3592e5fa
2012-10-31fix sdext build with poppler >= 0.19.xRene Engelhard1-1/+3
Change-Id: I655e8e15c7f7a8c292b3a1820ee48c29e847d05a
2012-10-31fix build with system poppler-0.21.0Petr Mladek1-0/+4
UTF8.h is split and renamed to UTF.h Change-Id: I3c0c271324f79189aa2d10b9f159d2cb5743eb64
2012-10-02re-base on ALv2 code. Includes:Michael Meeks1-26/+14
#i118662# remove berkeleyDB from module l10tools Patch contributed by Oliver-Rainer Wittmann http://svn.apache.org/viewvc?view=revision&revision=1213189 reportdesign: remove extra items from Help menu Patch contributed by Ariel Constenla-Haile http://svn.apache.org/viewvc?view=revision&revision=1201215
2012-05-17WaE: MSVC2008 C4309 truncation of constant dataCaolán McNamara1-2/+4
Change-Id: I7cae514cfd3c51bde5e8e0df2c51bed23904569d
2012-05-15Do not call getOrigName everTomas Chvatal1-4/+0
When one take look on what the code did: name = nameA; origName = nameA; GooString *getOrigName() { return origName; } GooString *getName() { return name; } This code is used even with poppler 10 which was branched 4 years ago. So simply do not bother with this code at all. Change-Id: Iba877e765fb763878f5ccd3e1fa62c29cadc9085
2012-05-14better fix for poppler 0.20Petr Mladek1-3/+1
Do not call gfxFont->getName() twice; Thanks David Tardon for catching this. Heh, I wonder if gfxFont->getOrigName() ever given any different value than getName() ;-) Change-Id: Idaf95a6a024076c6d450519923b6129166a5f8bd
2012-05-14poppler 0.20 changed its apiIonut Biru1-0/+4
Modification introduced in http://cgit.freedesktop.org/poppler/poppler/commit/?id=c0affb1845c339f89ca67608cb9fd9134ff902f5 Signed-off-by: Ionut Biru <ibiru@archlinux.org>
2012-03-12suppress errors with -WerrorDavid Tardon1-1/+5
2011-09-02Resolves: rhbz#735182 libreoffice doesn't build with poppler-0.17.3Caolán McNamara1-1/+5
2011-07-19poppler 0.17.0 changed its api for no some reason or otherCaolán McNamara1-0/+4
2011-02-06porting extensions to boost containersFridrich Štrba1-1/+1
2010-10-18remove non-compiled codePovilas Kanapickas1-20/+0
2010-10-13Add vim/emacs modelines to all source filesSebastian Spaeth1-0/+3
Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-03-29native0ext:#161688# rebranding extensions - transplanted from ↵Vladimir Glazunov1-6/+47
28f77bc32e70@native0