summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin12-33/+31
Change-Id: I31a69a997098eb1807361b8049c3312a4f287d75
2015-11-05OpenGL options: clarify setting descriptions, and provide a live status.Michael Meeks1-1/+1
Hopefully this will un-confuse users about whether GL is enabled; the settings only take effect on re-start, so show a current status line too. Change-Id: I82832fd8d35bc76ab2cf1f394f11a881fde80774 Reviewed-on: https://gerrit.libreoffice.org/19790 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-05fix compiling of this java classNoel Grandin1-4/+32
(even though it's not being built right now) Change-Id: I237cce48ea50b1184b166a8a8132ae425597bffe
2015-11-05vcl: This is constantTakeshi Abe1-1/+1
Change-Id: Ib01701c4e89f665cb65cdfa8612b02a70633181e
2015-11-05vcl: fix typo in the Android stub of sgvsplnMiklos Vajna1-1/+1
The intention is to call the real function, not the stub itself. Change-Id: I4bfd3020871c68951b19a3c63ea9a2dc4d736be7
2015-11-04vcl: fix Android buildMiklos Vajna1-0/+11
See <https://code.google.com/p/android/issues/detail?id=74835>, Android's <cmath> currently does not provide std::copysign(), add a forwarding stub till it gets fixed. Change-Id: I49cc74ad1b61fed0460588150f21471d63e9069f
2015-11-04yyyyyNoel Grandin6-20/+20
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-04-Werror,-Wabsolute-valueStephan Bergmann1-2/+2
("using integer absolute value function 'abs' when argument is of floating point type; use function 'std::abs' instead") Change-Id: I3634186a10607f3b3fc6fc7c0aef968b32892156
2015-11-04vcl: What we want here is exactly std::copysignTakeshi Abe1-12/+5
Change-Id: I888ca84342a6c34b99a1f03d44d686e1f50622f4 Reviewed-on: https://gerrit.libreoffice.org/19778 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-11-03loplugin:simplifyboolStephan Bergmann1-1/+1
Change-Id: I7fdcc939154ca6804707039c3311728a0249dec7
2015-11-03tdf#81144 Chinese full-width punctuation does not align properlyMark Hung4-1/+27
Ideographic fullstop and comma in most Chinese fonts are centered, while those in Japanese fonts align closer to the left. Original compression algorithm trimed right side of the punctuation, making fullwidth fullstop or comma in Chinese font visually unbalanced. In worst case, it crowds together with the followed compressed punctuation. This patch fix the situation in the folowing way 1) make compression less stronger. 2) Trim space according to glyph bearing to font height ratio. 3) fix a memory access violation issue Change-Id: Icff215064e6c442fd36eac8e01b01fb6acb27594 Reviewed-on: https://gerrit.libreoffice.org/19517 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-11-03vcl: Prefer std::abs to a home-brewed macroTakeshi Abe1-6/+3
The arguments in use are of type sal_Int16, so now it's the overloaded one of type int in <cstdlib>. Change-Id: I83336c093cf58a351e9390c0eb4e20a5d5340f9e Reviewed-on: https://gerrit.libreoffice.org/19754 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-03vcl: Mark it as constTakeshi Abe1-1/+1
Change-Id: I0ddaf1cf9d0a3f36f88bea3101b7059e04d755ff
2015-11-03vcl: Mark them as constTakeshi Abe1-1/+1
Change-Id: Ia19d3512d156be725840c24d441a3eaa08e83a5e
2015-11-02Handle case that pDock may have no itemsStephan Bergmann1-4/+9
...in code introduced with be1b03a4b0f61b49a3aba8d6b78ae69be7295785 "dock icon's menu doesn't begin with separator anymore," causing CppunitTest_vcl_lifecycle to fail Change-Id: If6eb1f3a0f52d05284ac01f448888aaaa7523a98
2015-11-02afl-eventtesting: crash close impress with spelling dialog activeCaolán McNamara1-0/+0
Change-Id: I1085b655a9a589f2e92edfdacfea6621d2f67d9c
2015-11-02compilerplugins: add "badstatics" to detect abuse of VCL BitmapsMichael Stahl1-1/+1
VCL Image/Bitmap/BitmapEx instances must not have static life-time because then they will be destructed after DeInitVCL() and that likely segfaults. Change-Id: I3ff8d32de729c971b190028094cb4efe206395e2
2015-11-02dock icon's menu doesn't begin with separator anymoreDouglas Mencken1-1/+11
... even when there's no open windows Change-Id: I8c1d8f254e621d1867a100ad984f8b77ed8cfc5a Reviewed-on: https://gerrit.libreoffice.org/19677 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-30tdf#93684 - Remove SalFrame::SyncRyan McCoskrie15-47/+3
Change-Id: Icae9cf0a17f9cdf9a671c7e7278019d6980602b1 Reviewed-on: https://gerrit.libreoffice.org/18453 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-10-30vcl: fix the --disable-dbus buildMichael Stahl1-8/+38
Change-Id: I4562b029172e2dcef7d13bf2c1aa37410d18e25a
2015-10-30vcl: This is a constantTakeshi Abe1-1/+1
Change-Id: Id87952a5eafa6c4ddf2d58b694cadf1fbf5c45a1
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin3-5/+4
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-29tdf#70833: IDNA support when exporing hyperlinks to PDFStephan Bergmann1-4/+7
Any URLs using non-ASCII IDNA syntax need to be resolved to ASCII-only, as PDF URI Action's URI needs to be "encoded in 7-bit ASCII." Introduce URIHelper::resolveIdnaHost (svl/urihelper.hxx), which internally uses icu::IDNA, which requires to bump the minimal --with-system-icu requirement from 4.2 to 4.6, which means ICU_RECLASSIFIED_CLOSE_PARENTHESIS is always true now. Change-Id: I0e20d9a20ed2b869fba0cc7c969721411db590b3 Reviewed-on: https://gerrit.libreoffice.org/19669 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-10-28tdf#94138 also apply settings when printing (Draw call)Tomaž Vajngerl1-0/+2
Change-Id: I72056f3e167923f00c37648a24190b533eb9b471
2015-10-28vcl: This is constantTakeshi Abe1-1/+1
Change-Id: I27a83996031b9494ad736ad82a7fff5740fbaf30
2015-10-27Reduce scope of #include <tools/stream.hxx>Matteo Casalin5-2/+7
Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6
2015-10-27tdf#94022 Print dialog: hide Installable OptionsMichael Weghorn2-6/+45
Options specified in PPD files can be grouped using the keywords "OpenGroup" and "CloseGroup". The keyword "InstallableOptions" is used as a group name for a group containing options that define optional hardware features of the printer that can be present or not (s. section 5.4 in version 4.3 of the PPD specification). As they are not print job specific, it is recommended not to show them in the print dialog. To be able to distinguish those options, the PPD group name was added as an attribute to the PPDKey class. Change-Id: I4a3abf23a711ad98556c0b608a07ef0a91e77e2b Reviewed-on: https://gerrit.libreoffice.org/19623 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-10-27loplugin:unusedmethodsNoel Grandin6-161/+3
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27loplugin:unusedmethodsNoel Grandin1-1/+52
Change-Id: I73180266c0af98dbd8d29bd3b11850996b94def9 Reviewed-on: https://gerrit.libreoffice.org/19195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-10-26Fix graphite line endings for stacking spacesMartin Hosken1-4/+19
Change-Id: I63dab1bea8cbe9c702b543978d04fb6aeb7d363d Reviewed-on: https://gerrit.libreoffice.org/19557 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Martin Hosken <martin_hosken@sil.org>
2015-10-26tdf#75637: Resolve help images via a vnd.libreoffice.image UCPStephan Bergmann9-142/+82
...which uses the logic already available in VCL's ImplImageTree to locate the image zip files and find fallbacks for incomplete themes and for localized images. Change-Id: Ic1c15fcacb6596a27a2b051093232902202bf472
2015-10-26-Werror,-Wunused-functionStephan Bergmann1-9/+0
Change-Id: I3c1066902df047a10cf407900dd040dc4408f88c
2015-10-26Let Gtk handle icon names instead of ResMgr for window and trayiconSimon Steinbeiss3-252/+17
The icons in the themes should be deleted in a second step and the defines should be transformed into an ENUM and stored in one place. Furthermore we will have to decide whether to live with gtkimagemenuitem despite its deprecation in Gtk3.10 or whether to pack GtkImages and GtkLabels in GtkBoxes inside GtkMenuItems and live with the additional padding, which potentially looks horrible. Change-Id: I8dec44375e40a4d2b6668792bc4b813efe83ff31 Reviewed-on: https://gerrit.libreoffice.org/19601 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-10-26It's a constantTakeshi Abe1-1/+1
Change-Id: I2315b580f8c786cc41d3cd43cdec485717785d5c
2015-10-25loplugin:simplifyboolStephan Bergmann1-1/+1
Change-Id: I609e3dffeee6cde33fcbab71c15020434fe1a136
2015-10-25loplugin:defaultparamsStephan Bergmann1-1/+1
Change-Id: I0aefe45eb06ac9d63fa79c33fd63f120c0258470
2015-10-25loplugin:simplifyboolStephan Bergmann1-3/+3
Change-Id: Ice6dfc7b8e295f322f38f8bc8f01d6776c742e54
2015-10-24vcl.osx.print: bin >>vintage<< implementationDouglas Mencken1-316/+3
Change-Id: I09958e48846962aa5ad29e3e6cc0ce2450973f74 Reviewed-on: https://gerrit.libreoffice.org/19516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-24vcl.osx.print: convert to use modern API for print dialogDouglas Mencken4-148/+352
Change-Id: Icc7d7ad95d1ffbf55f1cd704148f3ceb58618e6c Reviewed-on: https://gerrit.libreoffice.org/19432 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-24cppcheck: invalidPrintfArgType_sintCaolán McNamara2-4/+4
Change-Id: I4103c8e1549db44055fbfcb8ced6ec36d27fc126
2015-10-23nSetGoToRMode wants to be boolStephan Bergmann1-4/+4
Change-Id: Ib174a3809dd5433c29efbe08a2c4b9f9b6eda804
2015-10-23take the world scaling factor for fonts, but not the rotationCaolán McNamara1-2/+12
regression from commit 8f705df1221c3f92d8cde68bdf726a7c3ce8fe1b Author: Tomaž Vajngerl <tomaz.vajngerl@collabora.com> Date: Fri Jul 18 13:36:13 2014 +0200 bnc#881024 Don't world transform font size in WMF/EMF import which seems to be a regression from commit 1281c1f52b77c4c4fb08e129542c2c4912b38555 Author: Armin Le Grand <alg@apache.org> Date: Mon Dec 10 16:08:58 2012 +0000 Resolves: #i121382# Corrected size handling including font size handling... for EMF/WMF imports Change-Id: I87307c9993d3343b4db636257e2567b10a73b79d
2015-10-23afl-eventtesting: crash on undoing insert new page in impressCaolán McNamara1-0/+0
this is an intermittent crash in the real world but under event testing we can see that the PaintView is informed that the page has been deleted, but doesn't clear its use of the page if it so happens that there was earlier modification events that caused the fire-modification-timer to be launched If there happens to be no such events then the page is correctly cleared If the timer is active, then the page is not cleared, but eventually the timer will fire and access the deleted page and fall over and die minimal change for backporting ease, follow ups now Change-Id: I090ad62cc175545902574c93dec7082225d97ab7
2015-10-23on unity, default to human if possibleBjoern Michaelsen1-0/+3
2015-10-22tdf#94138 fix printing of edit form fieldsTomaž Vajngerl2-1/+3
There are 2 bugs: - In Window::GetDrawPixelFont we asked for the font to the current window, which didn't work correctly when printing. The device itself should provide the font and not the window. - In paint method the font wasn't setup correctly which should happen before painting by calling ApplySettings. The effect of this is that print preview didn't show the correct font for the edit control and similar when you copy + paste the edit control. The work around for this is to call ApplySettings again. Change-Id: I74960355823c71c1d5a18a82bbc86561a3c4b760
2015-10-22vcl: Free memory by appropriate dtorTakeshi Abe1-1/+1
Change-Id: I863251d742374d0a60820d41fec9d467c9ff4bd4 Reviewed-on: https://gerrit.libreoffice.org/19446 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-10-22afl-eventtesting: improve event testing exitCaolán McNamara1-1/+0
don't "Quit" twice and skip tearing down office ipc etc for the pseudo-quit AFL_PERSISTENT=1 case Change-Id: I26f0e798b95bc9376890381d4e5bd87fe8f12622
2015-10-22tdf#93243 - replaced some boost::bind with C++11 lambdasSahas1-69/+15
Did half the file. Need comments before I finish the rest. Change-Id: Idbd98277e908dc568008925611ab1fd1fb778ab1 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-10-22vcl: add Window::SetClipboard()Miklos Vajna1-0/+6
Change-Id: I385f64b7d5015c9a34f34a436b0ee2ce6b3a83d3
2015-10-22crashtesting+ubsan: rhbz1003919-1.svg left shift of negative numberCaolán McNamara1-2/+4
Change-Id: I6175b4b28af3257f5734685b8fa323f0b9078512