summaryrefslogtreecommitdiff
path: root/sd
AgeCommit message (Collapse)AuthorFilesLines
2016-07-15new loplugin unnecessary overrideNoel Grandin37-234/+1
Change-Id: I88d3e33823d68745b98625050a8a274f9ef04bcb Reviewed-on: https://gerrit.libreoffice.org/27135 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-07-13Remove __cplusplus-checks from apparently-C++-only filesStephan Bergmann1-4/+0
Change-Id: I87e9ce45cf945e75e8140a9d4608da8abcddada6 Reviewed-on: https://gerrit.libreoffice.org/27187 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-07-13Moved SfxModule owner to SfxApplicationMark Page6-33/+14
::GetAppData replaced with SfxApplication::GetModule that now returns SfxModule* SfxModule no longer registers self for ownership instead it is now registered using SfxApplication::SetModule Change-Id: Ifbbe1b2b4c5122da8e643b7926d47878d116c6c8 Reviewed-on: https://gerrit.libreoffice.org/26914 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-12tdf#99107: Unify single click behaviour across panelsKatarina Behrens2-5/+1
Change-Id: Ib182f6caae61eda5f85d241ddb1499671df0a28b Reviewed-on: https://gerrit.libreoffice.org/27134 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-07-12Resolves: tdf#100861 replace all doesn't workCaolán McNamara1-2/+0
Revert "lool - search all - unit test failure - solved" This reverts commit d6f1ca24932ba85607ba3e526c5721132cd39252. Change-Id: I328ece1029955ff9f4e5043084d649898e3e8809
2016-07-12Related: tdf#100861 same selection recorded multiple times...Caolán McNamara2-1/+9
in FindAll libreofficekit impress test on find all we loop through the textboxes searching for the string. We start by searching into the first textbox with the string in it. mbStringFound gets set to true and this first selection is reported. Now the current pos is still in that textbox at the end of the string. The next loop will find nothing in this textbox, but because mbStringFound was set in the earlier pass, the same selection gets reported again. The next loop will move to the next textbox. To keep this fix as simple as possible just check if the selection was the previously reported one and skip it if it is. I believe this is the problem that commit d6f1ca24932ba85607ba3e526c5721132cd39252 Author: Marco Cecchetti <marco.cecchetti@collabora.com> Date: Mon Jan 11 16:43:02 2016 +0100 lool - search all - unit test failure - solved wanted to solve Change-Id: I30e7b9c581488b48fa27f138209f291063b459a3
2016-07-12fix assert about unsorted ids when search+replace in impressCaolán McNamara1-3/+2
Change-Id: Ib4d549a18365f954cb3e35ac016a4c69803cff99
2016-07-11GSoC notebookbar: File tabSzymon Kłos1-43/+161
Change-Id: I98640b0b4585b2fe1088b13b07dce82a185fd8bf
2016-07-11GSoC notebookbar: impress table tabSzymon Kłos7-2/+255
Change-Id: I50338e2f5405171785ea610a9febc3d4f5df96e5 Reviewed-on: https://gerrit.libreoffice.org/27052 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-11loplugin:staticcallStephan Bergmann1-4/+4
Change-Id: I800eef0517f063ff7e08a95de9da268fb0e9d621
2016-07-11rhbz#1351292 correctly set edit modeDavid Tardon1-17/+40
... when switching between different shells, e.g., from Outline to Slide master. Change-Id: I22ef6f6cac73c52fb1bedd97e653b4b57c5a7a24
2016-07-10ditch the font/screen-scaling thingCaolán McNamara1-14/+0
its of limited utility wrt the vcl layout work and optimal size widgets, and its confuses people looking for hidpi settings Change-Id: I37d21b480446f9fe2845b3a2d9fd59cdeddf1a93
2016-07-08tdf#87643: Default Shapes Panel for Shapes DeckSusobhan Ghosh1-1/+1
Change-Id: Ib3d4a32e70b6dc2ae0898846a27d3ffcb43c2a75 Reviewed-on: https://gerrit.libreoffice.org/26770 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-07-08loplugin:redundantcast: redundant static_casts in sdStephan Bergmann12-20/+17
Change-Id: I843ca15d3515273bd78bf9f111974f9be5252549
2016-07-07loplugin:passstuffbyref also for {css::uno,rtl}::ReferenceStephan Bergmann16-30/+32
Change-Id: If24b3ba75023c68fddcaec1ff7ae5f2517761587
2016-07-07tdf#99729: temporary fix unit test for cleartype-disabled configMike Kaganski1-1/+1
With cleartype disabled, the non-white count is twice less than with it. This is a first-aid temporary fix until a better fix is made. Change-Id: Iadff638656d2d35a03cc452b792b0fb5ed138456 Reviewed-on: https://gerrit.libreoffice.org/26981 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-07-06Resolves: rhbz#1353069 don't clear XATTR_FILL* from stylesheet if...Caolán McNamara1-2/+11
the master page is not the sole owner. Which happens when copying and pasting slides which bring along a duplicate master page to an already existing one, and the attempt to remove the duplicate strips the fill properties from the shared stylesheet in use by the other regression from... commit b876bbe2cacce8af379b10d82da6c7e7d229b361 Author: David Tardon <dtardon@redhat.com> Date: Tue Apr 26 09:17:11 2016 +0200 rbhz#1326602 avoid exp. bg bitmaps from deleted slides Change-Id: I91fb8f622a0e35741ecc37cef14fc93199bb730b
2016-07-05tdf#73742 Don't replace existing image when inserting oneSamuel Mehrbrodt3-10/+19
If we want to replace an image, we have an entry in the context menu for that. Change-Id: I7a5326fecb72896c0709c9272769b8d51e4a5ca2 Reviewed-on: https://gerrit.libreoffice.org/26947 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-05sd lok: Fix image insertionPranav Kant1-6/+13
OutputDevice::GetOutputSizePixel() returns invalid value for LOK case which leads to incorrect image positioning when inserted. Lets use page size for LOK, and place the image correctly to center of the page. Change-Id: Ie002d9a2d638cfab954c75a8cb545a003740f547
2016-07-05tdf#100052 Add insert before/after to sd table context menuSamuel Mehrbrodt2-4/+8
Change-Id: I75c840c5d43e4b6edb79f51f0942fb6fd063e73d Reviewed-on: https://gerrit.libreoffice.org/26952 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-05tdf#100052 Add insert before/after for draw tables alsoSamuel Mehrbrodt1-2/+4
Change-Id: Ifaf3b699e7415a1f784063616ac3fa4819d739c6 Reviewed-on: https://gerrit.libreoffice.org/26950 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-05tdf#100052 Add insert before/after for sd tablesSamuel Mehrbrodt1-2/+4
Change-Id: Ifb2152503a3da6cf811f303048efdbc00cc1c940 Reviewed-on: https://gerrit.libreoffice.org/26948 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-05Open sound dialog: Set default path to home dirSamuel Mehrbrodt1-1/+1
Before it was the gallery dir Change-Id: I1d291fbd21c50e622f88f136cec666025cdbbc52 Reviewed-on: https://gerrit.libreoffice.org/26934 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-05Custom animation sound: Set default path to home dirSamuel Mehrbrodt1-1/+1
Before it was the gallery dir Change-Id: Ia02dfa796f3c6ee426447331a459fa5e8c47ef89 Reviewed-on: https://gerrit.libreoffice.org/26933 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-07-04SfxModule to use initializer_list instead of variadic argumentsMark Page1-2/+1
The compiler can perform type checking with initializer lists Change-Id: I1d26b56a3a2b67fe719f33d758ca9b0c95ebd4d1 Reviewed-on: https://gerrit.libreoffice.org/26852 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-04comphelper::OBaseMutex -> cppu::BaseMutexNoel Grandin1-2/+2
convert usage of deprecated class, and remove the old class Change-Id: I19fb9271090d19e5531622b58492e1a848d306e2 Reviewed-on: https://gerrit.libreoffice.org/26843 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-01svx lok: add LOK_CALLBACK_GRAPHIC_VIEW_SELECTIONMiklos Vajna1-0/+68
So a view can be aware where the graphic selections of other views are. Change-Id: I0cc420cfe4bf3824fbfa1a58da889cac5e9a7b60 Reviewed-on: https://gerrit.libreoffice.org/26863 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-07-01Slide transition sound dialog: Set default path to home dirSamuel Mehrbrodt1-1/+1
Not the gallery where user sees only one sdg file Change-Id: I0f30f3d566c0f2e4784e0feb5825f1c3e5926804 Reviewed-on: https://gerrit.libreoffice.org/26848 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-01Add link option to sd file open dialogSamuel Mehrbrodt2-3/+14
Change-Id: I4627996fa142d350ba97aa53ac303dfdc7968f7e Reviewed-on: https://gerrit.libreoffice.org/26847 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-01clang-analyzer-deadcode.DeadStoresStephan Bergmann1-22/+2
...after 19bacff27bd2201fb136963e11e865b8a31d849e "loplugin:singlevalfields in sd" Change-Id: Id0fb95abc3c4f2830abe833fe63f6ec26b9aa18f
2016-07-01filedlg: Improve code readability a bitSamuel Mehrbrodt2-28/+20
Change-Id: Ic018c5795fabc0bf8425b8b5cabae4ab6eb68317 Reviewed-on: https://gerrit.libreoffice.org/26845 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-01clang-analyzer-deadcode.DeadStoresStephan Bergmann1-5/+1
...after 19bacff27bd2201fb136963e11e865b8a31d849e "loplugin:singlevalfields in sd" Change-Id: Ic8dbc4d9f2710b848bfd462285ec86193e55ee8b
2016-07-01loplugin:unreffunStephan Bergmann2-73/+0
...after recently splitting up the test .cxx files Change-Id: I11542454188b3636ef880beb7f28f2638828e99e
2016-07-01loplugin:unreffunStephan Bergmann1-7/+0
...after 0a93639221a9de78eb548cf73a616f74c464d7ce "sd: split up sd_export_tests" added assertion_traits<Color> to sd/qa/unit/sdmodeltestbase.hxx Change-Id: Ief66367b6cd5499d75ac563b6f99427789394ff5
2016-07-01sd: sd_export_ooxml still takes the most time, split it in 2Michael Stahl6-608/+875
Change-Id: Ib102ba9b54c4b7730c583e3cb5e769f70fcb5b09
2016-07-01sd: split up sd_export_testsMichael Stahl5-1213/+1448
Move all PPTX export tests to a new file. Change-Id: Idb90baf6b145cdfaf5301583489a7257c5fa23a4
2016-07-01re-enable unit tests accidentally disabled with HAVE_FEATURE_ATLMichael Stahl1-3/+3
Macro is only true on WNT, but the tests should be enabled then. Change-Id: Ife5657c8204c9906afd42b4b4671a7fa6356a748
2016-06-30tdf#100179 correct cell merging in pptx.Mark Hung2-0/+19
Change-Id: I7a5bc6fb33c64d1ff398986eff5b960fe037df4d Reviewed-on: https://gerrit.libreoffice.org/25791 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
2016-06-30GSoC added button with small paddingSzymon Kłos1-62/+34
+ vcl builder setups action for custom buttons + new control: vcllo-SmallButton with WB_SMALLSTYLE property Change-Id: I54891969f26d237eac8e45532906d76040264272 Reviewed-on: https://gerrit.libreoffice.org/26781 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-30tdf#65356 Photo Album: Disable "Insert Link" in the add dialogSamuel Mehrbrodt1-1/+1
since we have that option in the dialog directly Change-Id: Id8f0e39df7c468759cb4dc4d94f0042f09c8296b Reviewed-on: https://gerrit.libreoffice.org/26797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-30Photo Album: Allow assigning keyboard shortcutsSamuel Mehrbrodt1-1/+1
Change-Id: Ie3a31a02733048421423f8f44846fc7374ae71f0 Reviewed-on: https://gerrit.libreoffice.org/26799 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-30Photo album: Remove padding from preview imageSamuel Mehrbrodt1-1/+0
So that it aligns well with the other controls Change-Id: I32fcb50bf378443dc27c10a1a674ff672b95a15f Reviewed-on: https://gerrit.libreoffice.org/26798 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-30tdf#65356 Photo Album: Allow inserting images as linkSamuel Mehrbrodt3-9/+50
Change-Id: Ic7d1228b9e0a5ee5a303c5e3f4ce4d5a1b2b2036 Reviewed-on: https://gerrit.libreoffice.org/26793 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-30loplugin:unusedfieldsNoel Grandin4-8/+3
Change-Id: If06fffa8db050df0f9c1c7da6163575bf522382e Reviewed-on: https://gerrit.libreoffice.org/26754 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-29move #includes to top of fileNoel Grandin1-2/+1
instead of being randomly embedded somewhere deep inside the CXX code. Found with: git grep -nP '^#include' -- *.cxx | sort -g -k 2 -t : Change-Id: I9ee432d3b665ecb6ec600bd51cc4b735a1b1127a Reviewed-on: https://gerrit.libreoffice.org/26764 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-06-29Reinstate: tdf#99729: fix text alignment (no autofit & no full width)Caolán McNamara4-0/+87
with extra disposes to shutdown the test thingies in the right order This reverts commit a4780b3c8b45261e59ed3cbb34c4463d58ad8079. Change-Id: I13282d6bc54a0dceb3ed91a04cd438a9011154fe Reviewed-on: https://gerrit.libreoffice.org/26756 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-06-29Revert "tdf#99729: fix text alignment (no autofit & no full width)"Miklos Vajna4-83/+0
This reverts commit 0cb200d000fad8ba31c7400e08cd031823f27308. Even if it was verified by Jenkins, it broke CppunitTest_sd_import_tests on a number of tinderboxes. Need to at least find out how to reliably trigger the crash and fix it before it goes in again. Change-Id: I7ed52cae559648ec101b7a343046a7d74a7c48d3
2016-06-28Convert Bitmap tab to Pattern tabRishabh Kumar10-47/+126
Change-Id: I5cf02f1889090539f7adb826483c91a1ef3c3925 Reviewed-on: https://gerrit.libreoffice.org/26015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-06-28GSoC notebookbar: added animation tab for ImpressSzymon Kłos7-21/+569
Change-Id: Iff9d0269f0f8ce0e0a311c1bbcaf5f749c305348 Reviewed-on: https://gerrit.libreoffice.org/26744 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-28tdf#99729: fix text alignment (no autofit & no full width)Mike Kaganski4-0/+83
If TextBox contained text that is larger than the box, and autofit was off, and autosize was off, and full width was off, then text always aligned to box's left top corner, regardless of text anchor setting. Related problem (i103454) was fixed in 2009 by Armin Le Grand, but only for full width text. This patch extends the scope of that fix to correctly process other cases. The fix introduces a new compatibility flag: AnchoredTextOverflowLegacy If it is true, then old behaviour is retained. It is always false for new documents and imported documents. When opening existing ODF documents, it's true by default, unless it is explicitly set in settings.xml. Unfortunately, I couldn't find a way to access the document model from any of SfxBaseModel::load() or SfxObjectShell::DoLoad, where it could enable setting the compatibility flag universally when loading own format. Instead, I had to do it individually in each of SfxObjectShell::Load() implementations. Unit test is included. Change-Id: Ifad79d546739daafff59fb6c7fb0dce51babc53d Reviewed-on: https://gerrit.libreoffice.org/26737 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>