Commit Graph

419 Commits

Author SHA1 Message Date
937abc32bf stray debugging
Change-Id: Ie9408fecfdb9216a6a80d92a2c215ebf25997e9f
2013-06-28 13:46:18 +01:00
396ab1eba7 convert pdf security page to .ui
Change-Id: Ie785f4b112b8992707f886720d92bd34d0823f39
2013-06-28 11:50:15 +01:00
feaebe7f93 Always embed 14 standard Postscript fonts in PDF
Ealier version of PDF standard allowed for not embedding the so called
standard PostScript fonts in the PDF files and all PDF readers had to
include them or a "suitable substitute". This behaviour had many issues
and is deprecated for 10 years now. The current version of PDF spec
says:

  Beginning with PDF 1.5, the special treatment given to the standard 14
  fonts is deprecated. Conforming writers should represent all fonts
  using a complete font descriptor. For backwards capability, conforming
  readers shall still provide the special treatment identified for the
  standard 14 fonts.

This commits removes support for not embedding these fonts, and the, now
redundant, option to embed them.

This has the side effect of elimanating the cause of fdo#66108 and
fdo#41547.

Change-Id: I4f1fc4137a2de7baeef9e504f2e4f84fbec0a491
Reviewed-on: https://gerrit.libreoffice.org/4495
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-06-27 19:03:31 +00:00
dbf1360e9f Convert to .ui pdf userinterface tab page
Change-Id: I9203a63b2d6d1ab14ebee17611a78221755af082
2013-06-21 15:54:12 +02:00
c5debaa9c4 convert pdf links tab page to .ui
Change-Id: I305021366a2670a582f00433be2a6e26d745f587
2013-06-08 11:51:09 +02:00
73e686725e fdo#46808, Convert some more XMultiServiceFactory
Change-Id: Ib96976e0a40c025d1b6408aeadfc70d7885c11d4
2013-06-05 14:48:20 +02:00
c0654ce022 fdo#46808, Convert XMultiServiceFactory in filter module
Change-Id: I9dcddba4f5a8a7adeddc31b5df014b0174b9745d
2013-06-05 08:13:22 +02:00
265c837940 remove unused member and method
Change-Id: I325acbb98797f5feb4f5dbeb400d00b11e911d10
2013-05-21 14:20:55 +02:00
eea4a30a43 fdo#37222 and possibly fdo#37219
Added an checkbox option "View PDF after Export"  in Export as Pdf  Dialog Box .

If a user ticks the checkbox , pdf file will be opened after export
else only export will be done .

Goto File > Export as PDF >> Tick the checkbox "View PDF after Export "
to observe changes .

There is a lot of space in between last checkbox and this ViewPDF checkbox , because if we
open impress and check export as pdf , there are more options in the dialog.

If user export PDF and check view PDF after export, the PDF file is added to recent documents of the OS . ( tested on opensuse)

It will require make dev-install to work properly .

Change-Id: I76611c0e3382e27289d648942a98b092edc430ae
Reviewed-on: https://gerrit.libreoffice.org/3948
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-17 15:46:16 +00:00
9a9110b7d9 Drop String.AppendAscii from filter
Change-Id: I73f61b9a20297b6b704aca52b1fc9efac563a224
Reviewed-on: https://gerrit.libreoffice.org/3799
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-05-09 11:22:49 +00:00
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
54e8623d73 fdo#62890: Fix for the dialog PDF Options, register Digital Signatures
This patch changes the length of the fixed text field "Use this certificate (...)"
because in some languages, e.g. German, the translation fits not into the available
space.
It also changes for the same reason the width of the Select- and the Clear-Button.

Change-Id: Ifbba3e40b27d96da4706c8dcdf4d9ab26069a83f
Reviewed-on: https://gerrit.libreoffice.org/3157
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-04-03 16:54:51 +00:00
5be14df244 ResMgr with LanguageTag
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
2013-03-29 14:09:01 +01:00
a066525b42 fdo#46808, Convert a bunch of comphelper::ComponentContext stuff
.. to Reference<XComponentContext>
mostly in the dbaccess module, but it also affected some other
modules.

Change-Id: I09b3f6fe7a9b33498b11d98b5521b5aeeb8882be
2013-03-20 07:32:53 +02:00
a0296296fb fdo#60691 add modelines to *.src and *.hrc files
use solenv/bin/add-modulelines script for the task
and remove all UTF bom from *.src and *.hrc files

svx/source/dialog/hdft.src

Change-Id: I745d4f0fe9b05436a142a03f8512970f91c41bd4
2013-03-08 21:02:26 +00:00
1a5c827302 RTL_CONSTASCII_USTRINGPARAM removals
All RTL_CONSTASCII_USTRINGPARAM removed from filter/source/pdf

Change-Id: Ic4a5ae8ca8476a1498e7fca5a06c4f465d45749b
Reviewed-on: https://gerrit.libreoffice.org/2284
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-02-20 23:08:05 +00:00
92064bb2c2 fdo#57950: Remove more chained appends in filter
And also sanitize some OUStringBuffer uses.

Change-Id: I338b18981e1f925d76c0d640159de30bab219122
Reviewed-on: https://gerrit.libreoffice.org/2186
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2013-02-16 17:19:32 +00:00
bdb3c21ee5 bnc#437516: Hide minimum password info in the password dialog.
When launching it from the Security tab of the PDF Options dialog
during PDF export.

Change-Id: Ife2d3a7b508ba2e077018d11478ad680d18d3f0d
2013-01-31 10:09:45 -05:00
e13a3d566e fdo#38838 Some removal/replacement of the String/UniString with OUString
Also used the new OUString::number(...) methods.

Change-Id: I3174c43d56d1ae359901bb8a13fe0096f2c74808
Reviewed-on: https://gerrit.libreoffice.org/1766
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-22 14:25:15 +00:00
e3f11c10d8 Changed SetText() / GetText() to take/return OUString
replaced lots of Len() with isEmpty()

Change-Id: I6b82d48245ee2a0782e05a326f7934e9357227d0
Reviewed-on: https://gerrit.libreoffice.org/1795
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-01-21 20:48:35 +00:00
0c22f3eadd Make LO buildable again after the GraphicFilter move.
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2013-01-04 22:02:51 +01:00
9955dbebbd AllSettings with LanguageTag
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
2012-11-22 12:34:59 +01:00
c4008ef546 re-base on ALv2 code. Includes:
tkr41: #117828# office crash fixed . (null pointer) + add unit test
    Patch contributed by Tobias Krause
    http://svn.apache.org/viewvc?view=revision&revision=1172105

    Do not add targets for junit tests when junit is disabled.
    Patch contributed by Andre Fischer
    http://svn.apache.org/viewvc?view=revision&revision=1241508

    remove the OutDev::GetKernPair* stubs completely
    Patch contributed by Herbert Duerr
    http://svn.apache.org/viewvc?view=revision&revision=1179221

    reverting un-necessary OS/2 conditionals.
2012-10-03 16:56:06 +01:00
8c04828bb1 Use prefix
Change-Id: Ie741222944bf8ed6cacd5a3037f8aa75a6a4dec3
2012-10-01 23:05:37 +03:00
968ed85d73 fdo#54225: PDFExport::mbSignPDF potentially used uninitialized
Change-Id: I2b83f4c6a1fd0ca4b230ab19c806f654232f9f96
2012-10-01 15:42:31 +02:00
1c7a54e3a1 fdo#46808, Adapt frame::ModuleManager UNO service to new style
Create a merged XModuleManager2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Explicitly document the XNameReplace interface in the IDL, which
is already implemented by the service, since there is code currently using it.

Change-Id: Ib46349174b1ce495c240031e93c9427fc33d9853
2012-09-05 14:56:19 +02:00
af5059d19a Some clean up of previous commit
Change-Id: I0ea6d6439f97fcf74162c19671483aaa17b5a6cb
2012-09-04 17:23:18 +02:00
197a79e571 fdo#46808, Adapt DocumentDigitalSignatures UNO service to new style
Rename service from "Decryptor" to "DocumentDigitalSignatures" to be consistent
with the other UNO services, and with it's own header file name.
Add service constructor for passing in arguments.

Change-Id: Iaca0c40bb2f1a1af2ef9ca29361bfd023ade2678
2012-09-04 16:41:37 +02:00
0a7000e032 -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: Id2034a3ec40e1cfcd21f60e19f4faa99bb1f6164
2012-08-31 09:04:16 +02:00
34091bc0e3 drop these memory trashers
some are the wrong length anyway, and anyway the copies remain untrashed,
and munging immutable strings is dubious

Change-Id: Ic7ac3bea35e57ed015092b3b255d48819195490d
2012-08-27 20:36:23 +01:00
f906ac2776 Use PassWord property in impdialog.src for certificate Edit widget.
Change-Id: I597de8efa8838b35597a401c27e1eb709fd8ef31
2012-08-20 19:48:41 +02:00
74ae4c4462 Use Thunderbird-like certificate selection GUI in pdf signing.
Change-Id: Ibe834f1aecc60ba09a2c19d75b094881b82c248a
Reviewed-on: https://gerrit.libreoffice.org/431
Reviewed-by: Jan Holesovsky <kendy@suse.cz>
Tested-by: Jan Holesovsky <kendy@suse.cz>
2012-08-20 13:13:03 +00:00
706e7b1e20 Replace usage of rtl/memory.h in filter with equivalent from string.h
Change-Id: If8313df67e037f48c56d9d4e4251316fc99894e7
2012-08-04 17:47:00 +02:00
739e20ac58 Decrease header files dependencies
Change-Id: I654e71e56d60bf629625df09eb93b21c9ef670e8
2012-07-11 11:12:15 +05:30
104261010a some UniString->rtl::OUString
Change-Id: Ie69b30094da25df23a36baca2c7723d6a41f48c3
2012-07-09 12:16:56 +01:00
9c8dc01d3a Merge branch 'feature/pdf-signing' 2012-07-09 10:16:17 +03:00
5f995a0d8f Add password edit and pass XCertificate to PDFWriter code in VCL.
Now, we have the password of private key and the certificate to
sign. Ready to use NSS and create necessary PKCS7 object using
these.

Change-Id: Id69487e92283059fcd558d33cf6a6128df0f50d9
2012-07-07 23:10:30 +03:00
bb1ba4f3b7 Use new chooseCertificate UNO method to pop up certificate dialog.
Change-Id: I713357547c462cd0164f2aa361c44fca63cce435
2012-07-07 19:15:17 +03:00
64f614d93e Add CertificateChooser code in comment.
When I solve #include "xmlsecurity/..." problem, I will use that code.

Change-Id: Ia119557d90ba231d848b7eaac41249a8acd897a2
2012-07-01 11:35:12 +03:00
7a2a0dc032 Make PDF Signing GUI operative.
Now, PDFWriterContext is used for signing information. GUI elements are
recorded to PDFWriterContext and used during signing process. Sign PDF
checkbox and Location/Contact Info/Reason boxes are all working now.

Change-Id: I1d0cb53323707efa7e460431dd1519bcd34e8b29
2012-07-01 00:33:03 +03:00
863cf84802 Show signing GUI in experimentalmode only.
Change-Id: I5e4481d75eca357235eadc99bac170dec488045f
2012-06-30 17:41:32 +03:00
ee1c5c4768 Reduce newline bloat at eof
Change-Id: I494ceee07d6825f9466cab810742d7f85291fe14
2012-06-27 13:32:28 +02:00
4ba4b87042 removed unused forward declarations of class
except moving CGMBitmapDescriptor into filter/source/graphicfilter/icgm/outact.hxx

Change-Id: Ib11d1c907b4c52c6e0f261b20992659b52f4c136
2012-06-26 10:35:23 +09:00
a4ca3ebfab Add certificate selection button and its click handler.
Change-Id: I3f2fff0a3c5cfb77de0ecd11832345b6e162816b
2012-06-24 17:42:30 +03:00
2a537c6d96 Add a simple GUI for digital signatures.
Right now, there is no certificate selection and password
edit but this GUI will make things easier to test. If Sign PDF
checkbox is checked, I will create the necessary data in PDF file
with a garbage PKCS7 object, for now.

Change-Id: Ib9f0b33d3be31cb3eb8acb12a6aa2e37f2d3beeb
2012-06-24 16:25:39 +03:00
ecf943247f re-base on ALv2 code.
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-22 09:51:05 +01:00
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
5fcecf9b88 hrc cleanup: Remove unused defines
All of those defines (should) not be used at any point in the code.
False positives may exist, because some macro names are getting
generated by some template/macro foo. This is the version which
compiled fine for me.

Also there are many commented out lines removed.

Change-Id: I6394024682e4ab3691eb72707a9363d41ba31df8
2012-06-21 11:54:18 +02:00
00f1180c96 removed unused const rtl::OUString
Change-Id: If02be864f958de96ae1c54fe575b1828410390b1
2012-05-18 22:56:54 +09:00