summaryrefslogtreecommitdiff
path: root/sd
AgeCommit message (Collapse)AuthorFilesLines
2014-10-13fdo#84213 Add show/hide ruler to sd context menuSamuel Mehrbrodt2-0/+9
Change-Id: Iee42ab31a82ed4459f956706cef513afcf70ef94
2014-10-13oox: refactor embedded media importMichael Stahl1-0/+2
Currently the oox import creates a temp file and leaks it, and there is no way to clean it up afterwards. Unfortunately it turns out that SdrModel has no way to access the imported OOXML storage, so add a really ugly hack to get the embedded media into the SdrMediaObj by setting both MediaURL and PrivateStream properties (currently oox really wants to set the properties in alphabetical order too...) Change-Id: I5a235fbeb08e7bc17faf066de52b94867e9a79a2
2014-10-13boost::rational throws if 0 is passed as denominatorDavid Tardon1-4/+16
Change-Id: I312fd6b964555b3b4aa4e22cec6054c9a83b2c52
2014-10-12Wording: 'Audio/Video' -> 'Audio or Video'Samuel Mehrbrodt1-1/+1
Change-Id: I9572d4c7fb5f50b869e69436302ac8c20e500392
2014-10-11fdo#84912 - MENU: Addition of AutoSpellcheck to Tools menuYousuf Philips2-0/+2
Change-Id: I5e16f68f8565a26857f4ef233e06a002209e2566 Reviewed-on: https://gerrit.libreoffice.org/11915 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2014-10-11fdo#84916 Fix string: Insert Audio/VideoSamuel Mehrbrodt1-1/+1
Change-Id: I76cd8502f9cb2af379dd732d2081feb094599aca
2014-10-11convert SFX_CALLMODE constants to SfxCallMode enum classNoel Grandin71-172/+173
and fix a couple of bugs in SC and SW where the call mode was being passed to the hints parameter by accident Change-Id: Ief805410b3f7035e012e229e77f92d5832430f58 Reviewed-on: https://gerrit.libreoffice.org/11916 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-11convert vcl StateChangedType to enum classNoel Grandin2-4/+8
Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f Reviewed-on: https://gerrit.libreoffice.org/11843 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-11sd: another temp-file leakMichael Stahl1-0/+1
Change-Id: Idcd31ea07c460aaecff3ea56072cf65e26040bda
2014-10-11sd: rename test classes to be uniqueMichael Stahl2-43/+43
Change-Id: I18d4f6af97fcfb9341711751a8d550e421f7a381
2014-10-10coverity#704776 Dereference after null checkCaolán McNamara1-3/+2
Change-Id: Ifbad1fc30665ff6b9238b5fb4728fc302b0458fa
2014-10-10coverity#708132 Uninitialized scalar fieldCaolán McNamara1-0/+1
Change-Id: I830210b44459cf94eabb983b99bfcc104f865492
2014-10-10coverity#1242757 Result is not floating-pointCaolán McNamara1-2/+2
there was two of these, see commit 164bd64255d71d96e35e908f6425acf8372795fb Date: Thu Oct 2 04:44:33 2014 -0500 coverity#1242757 Result is not floating-point Change-Id: I1f66191f329b2d87bdeb52aa1a7528ca662064a6
2014-10-10coverity#1244953 Uncaught exceptionCaolán McNamara1-2/+2
Change-Id: I3c4aeb3318af7cdb964128dd78f7d2cfba48000e
2014-10-10Unused PowerPointExport::mpMasterFSArray memberMatúš Kukan2-4/+0
Change-Id: I02b9c31146396a39a624fbb869a5880b176e0f9e
2014-10-10cid#1244955 Uncaught exceptionNoel Grandin1-2/+2
Change-Id: Iedf06cc78cda022112699be3db650d11c7249adc
2014-10-10vcl, sd: fix some TempFile leaks from vcl Graphic in cppunit testsMichael Stahl1-0/+1
The problem is that utl::TempFile::GetURL() will return an empty string if the file UCP is not available. There will be an entry in the log file: warn:legacy.osl:25344:1:ucb/source/core/provprox.cxx:366: UcbContentProviderProxy::getContentProvider - No provider for 'com.sun.star.ucb.FileContentProvider. Change-Id: I2741a04cf4b8b420294ae521199706921b37e5c6
2014-10-09German comment translation.Lennart Poettering4-11/+9
Change-Id: I479da454235a7cfc084ae1517ab9ffa07580ab0c
2014-10-09German comment translation.Michael Meeks2-20/+20
Change-Id: I98526bfd6f69d95d5c309e67c397bc85fb8817ab
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca39-158/+156
* Added rational util functions used by Fraction class not available in the boost::rational class. * Replaced usage of Fraction by boost::rational<long> * Removed code that relies on: 1. fraction.IsValid() -- rational only allow valid values, ie denominator() != 0 2. rational.denominator() == 0 -- always false 3. rational.denominator() < 0 -- always false but implementation detail: http://www.boost.org/doc/libs/release/libs/rational/rational.html#Internal%20representation * Simplified code that relies on: 1. rational.denominator() != 0 -- always true * BUGS EXIST because Fraction allows the creation of invalid values but boost::rational throws the exception boost::bad_rational Change-Id: I84970a4956afb3f91ac0c8f726547466319420f9 Reviewed-on: https://gerrit.libreoffice.org/11551 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-10-08back out more wrong and confusing tools::Time comment changesEike Rathke1-1/+1
Apparently fc04f76336fdf8c96e35382cdeb497e2f939705c used some sed script to change all ... Change-Id: Ie609bd02a2c5d70109fc6185cf4440480f29d8f5
2014-10-08fix build after PathKind enum commitNoel Grandin2-8/+8
after my hasty commit bc00203 "convert PathKind enum in SD to enum class" Change-Id: I97263e907bf7363121dc1b437eaf564efdb66ad2
2014-10-08convert PathKind enum in SD to enum classNoel Grandin1-1/+1
to get the NONE constant out of the global namespace Change-Id: Iecbe39126c1ec08aa852fcb903cee1a6e6f4594b
2014-10-07Resolves: fdo#44998 crash when opening context menu of a fieldCaolán McNamara1-0/+3
If you right click on a field in an inactive text box, then a mouse down, context command, mouse up sequence is sent. The mouse up is supposed to be captured by the context menu here. But it doesn't because the mouse down in draw sends an artificial mouse down to the editengine which eventually sets up a MouseCapture window so the context menu doesn't get considered (because it occurs before the capture window is released) so the mouse up gets send to sd while the context menu is up and that causes all sorts of havoc. Change-Id: If3b7c501586f8561be484d0828c630d84644f770
2014-10-07disambiguate uniform_int_distributionCaolán McNamara1-3/+3
Change-Id: Ifa0c1b1983d1cc7f22d55b15dee88b7f709dbcf8
2014-10-07Disable sdremote by default, and improve flow control.Michael Meeks1-1/+5
It was intended to disable sdremote by default when it exited experimental mode. This reverts commit 576943b9bf7506829de97d2194c4bee35a485436. Change-Id: I2c1b5443e334021bd9574316167f48b1af6200e5
2014-10-07~SdUnoPageBackground() gets a SolarMutexGuardMichael Stahl1-0/+2
Change-Id: I76582bb6a1a8dee56611f1463d3e63246eefb310
2014-10-06Missing includeStephan Bergmann1-0/+1
Change-Id: I47ddb95018109e5e771324b699dfdc10f529dfc4
2014-10-06fdo#75757: remove inheritance to std::vectorTakeshi Abe1-15/+14
from PptSlidePersistList. This also puts in assertions that every entry in a PptSlidePersistList is non-null. Cf. 9536a28ede89e8c29940e8ba225215a45667062c Change-Id: Iea35532ed668e58a3f02d3f3433a66c2d4e1fe2a Reviewed-on: https://gerrit.libreoffice.org/11807 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-10-06use comphelper::rng::uniform_*_distribution everywhereCaolán McNamara2-5/+7
and automatically seed from time on first use coverity#1242393 Don't call rand coverity#1242404 Don't call rand coverity#1242410 Don't call rand and additionally allow 0xFF as a value coverity#1242409 Don't call rand coverity#1242399 Don't call rand coverity#1242372 Don't call rand coverity#1242377 Don't call rand coverity#1242378 Don't call rand coverity#1242379 Don't call rand coverity#1242382 Don't call rand coverity#1242383 Don't call rand coverity#1242402 Don't call rand coverity#1242397 Don't call rand coverity#1242390 Don't call rand coverity#1242389 Don't call rand coverity#1242388 Don't call rand coverity#1242386 Don't call rand coverity#1242384 Don't call rand coverity#1242394 Don't call rand Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
2014-10-06fdo#73151 Always open Styles&Formatting dialog in the sidebarSamuel Mehrbrodt3-4/+0
Change-Id: I05b63dc00023945d92fd837bd64042135d3f9aed Reviewed-on: https://gerrit.libreoffice.org/11648 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-10-04coverity#1242757 Result is not floating-pointNorbert Thiebaud1-2/+2
Change-Id: Iae8ac2ad9d1713512619c5c33eeee9a21b5835f1
2014-10-03coverity#1242802 coverity gold(?) Structurally dead code, loop doesn't loopCaolán McNamara1-4/+1
Change-Id: I2be3e6d88472ba8b69f012aaf975a91f0ab4f693
2014-10-03coverity#1242533 silence Arguments in wrong orderCaolán McNamara1-1/+3
Change-Id: I7031e7408f5bcd9ae85fc50952253e14d2fb2edf
2014-10-03fdo#84617: Guard the destructor with SolarMutex.Jan Holesovsky1-0/+2
The same pattern as introduced elsewhere recently. Change-Id: Ie7b4fd1ec26d417f63bee26dd336dfc54f4847dc
2014-10-02Bin EE_CNTRL_URLSFXEXECUTE which was only set, never testedTor Lillqvist3-4/+0
Change-Id: I18a9355bb902b19f0eeecb26d33eba4fb25db8cb
2014-10-02bnc#657899: Paragraph vertical spacing differs from PowerPointTor Lillqvist1-0/+22
We need to set the "paragraph summation" flag also for .pptx import. (As is already done for .ppt import.) This is what in the Options (Preferences) UI is called "Add spacing between paragraphs and tables (in current document)", on the LibreOffice Impress:General page. This is a setting that when set becomes local to the document. I actually don't really understand why this needs to be a user-visible option, wouldn't it be enough for it to be an internal flag that is set for documents imported from .ppt and .pptx, and is clear otherwise? Change-Id: I525178957276e7d587b6ac4be8ae7919fc245a27
2014-10-02coverity#1242520 silence Arguments in wrong orderCaolán McNamara1-1/+3
Change-Id: I88b96d42f5ee96641dc21e3e55415f6dc32b3951
2014-10-02coverity#1242496 Resource leakCaolán McNamara1-2/+4
Change-Id: I419b217df306d41ed99e603bae9381f54c633598
2014-10-02coverity#1242497 Resource leakCaolán McNamara1-3/+2
Change-Id: I2c4295c7d308257290aaf04181805d7dc71d6553
2014-10-02coverity#1242800 Result is not floating-pointCaolán McNamara1-2/+2
Change-Id: Idcd1b3bd542512707b722708e4b3336c71fbff80
2014-10-02coverity#1242906 Unused valueCaolán McNamara1-1/+1
Change-Id: I7a282e5adc60e4b123469f46fb480805377626b4
2014-10-02coverity#1242934 Result is not floating-pointCaolán McNamara1-1/+1
Change-Id: I800f978102f1d1427584cf55d3da7768e7c7f2f3
2014-10-01Remove leftover SAL_WNODEPRECATED_DECLARATIONS_PUSH/POPStephan Bergmann2-4/+0
...from times when code used std::auto_ptr. Change-Id: Ia4eca8b0b95a8846886884404009e895daba8a22
2014-10-01sd: std::auto_ptr -> std::unique_ptrStephan Bergmann63-167/+131
ToolBarManager::Implementation::Update in sd/source/ui/view/ToolBarManager.cxx is dubious. It takes its parameter by value (so in UnlockUpdate() the passed-in mpSynchronousLayouterLock is reset upon passing it in), but the comment that it "is [...] released at its end" together with the redundant pLocalLayouterLock.reset() at the end of Update() make it look as though the intention was to pass by reference. However, resetting mpSynchronousLayouterLock even in the case where pass-by-ref would fail to reset it is apparently important, as otherwise e.g. JunitTest_svx_unoapi would run into the OSL_ASSERT(mpSynchronousLayouterLock.get()==NULL) in LockUpdate() with a call stack of ... -> Update -> SetValid -> UpdateLockImplementation -> LockUpdate. Change-Id: I7d2717d5e1f8aa69c79a626c100d7fefb0cfb120
2014-10-01fdo#82577: Handle TimeNoel Grandin16-31/+31
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-30sd: SdUnoForbiddenCharsTable gets a SolarMutexGuard tooMichael Stahl1-0/+2
Change-Id: Ie742b7e38e60f6a77f6b7c3e56ac415d8cb836e1
2014-09-30bnc#584721: invisible text because of wrong color (white)Zolnai Tamás2-0/+41
Color::getColor() method uses some caching mechanism which works wrong when the result depend on one of the input parameters. So avoid caching in these cases. Change-Id: Ifa9221e21e685715454de86d5cec09ff6c266307
2014-09-30fdo#82577: Handle RegionNoel Grandin22-40/+40
Put the VCL Region class in the vcl namespace. Avoids clash with the X11 Region typedef. Change-Id: I6e008111df7cf37121fbc3eaabd44a8306338291
2014-09-28fdo#70998 Termchange: Picture->ImageSamuel Mehrbrodt1-2/+2
Change-Id: I4113d35e2a4778c9833e659b1e4ff4fbb1ab9734