summaryrefslogtreecommitdiff
path: root/cui/source
AgeCommit message (Collapse)AuthorFilesLines
2014-12-03Add a limit for graphic cache based on used integer type to avoid overflowZolnai Tamás1-0/+2
Change-Id: Ibdf2cbf3c50f6732301d894d91a1b8ea58e4e5d6 (cherry picked from commit f20043a0805c3a75eb4024ed59f45291aea93ac0)
2014-11-28Fix OpenCL-less buildTor Lillqvist1-0/+4
Change-Id: I36a0151640067e3d040ebf46784bdb8c534153e1
2014-11-28Work in progress: Move Calc-independend OpenCL configuration out of scTor Lillqvist7-12/+359
Intermediate commit. More changes will follow: The device selection logic needs to be moved, too. (And cleaned up.) Instead of the separate formulacalculationoptions dialog we should simply have a normal options page for those OpenCL-related settings that will remain purely Calc-specific, like the formula opcode subsetting. Change-Id: Id60d95e80d377cbbf5780beb473b221bce06b5e5
2014-11-28Make whether to use OpenCL or not a global optionTor Lillqvist2-0/+12
Add a toggle to the "General" page. Change-Id: If35b1472032706b09a3bc3499c55cbd3ac2e13ac
2014-11-28fdo#70861: cui: fix crash in SvxExtParagraphTabPageMichael Stahl1-1/+1
SvxExtParagraphTabPage::Reset() must not request a pool default for SID_ATTR_PARA_PAGENUM because it simply does not exist; the item is backed by a member of SwPageDesc in Writer. Change-Id: I9b157f048cd986566f9b01f3677b53d5974b6c8d (cherry picked from commit 9c1a1b98776ca2216d82af303394a09f2bac0471)
2014-11-26Resolves: fdo#85590 'Pick a color' circle location is incorrect when openedCaolán McNamara1-0/+1
Change-Id: I18a00d0ab7acc30f4751c0e19cceffefdce90474 (cherry picked from commit 7716d86f46dea72bd0e99f7074f718d558e88f49)
2014-11-22fdo#86550 make some strings localizableAndras Timar3-5/+29
Change-Id: Ie3b47e30b22b4bbae86f575ca1c9f3639afd3afd (cherry picked from commit 6745c24fdad942f61c225632688bce78da0a547e)
2014-11-19coverity#735402 Logically dead codeCaolán McNamara1-1/+1
Change-Id: Iafc67b4ccd30afdc2dc1c4fb058f9933fa90185a
2014-11-18fdo#80280 Don't add items with no bitmapsMaxim Monastirsky1-7/+10
Change-Id: I625aff5d2dcae0b1491fa77b04605d4579ec8530
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl1-0/+1
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-16vcl: let the ModalDialog ctor take an OUStringMiklos Vajna6-6/+6
Change-Id: I839435338f4acf80c40896b6c86f7ef122f5449d
2014-11-16fdo#85432 : Add locale details to help->aboutBrij Mohan Lal Srivastava2-0/+31
Added locale text to About dialog Change-Id: Ic26219e8fe845b4c5027b65d5f5edba9279b1b11 Reviewed-on: https://gerrit.libreoffice.org/12464 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2014-11-14coverity#1242900 Unused valueCaolán McNamara1-3/+3
Change-Id: I4276f5dabedac97c0508aa7904473a4e20767e62
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava5-9/+9
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-14vcl: move the Impl class of MapMode ...uhm... out of the public header?Michael Stahl1-0/+1
And remove the tools/fract.hxx include. grep -l -r fract.hxx workdir/Dep/*Object* |wc -l before: 4569 after: 1851 Shrinks some libraries, example from --enable-dbgutil Fedora gcc 4.8.3: libvcllo.so by 473k (0.35%) libswlo.so by ~1Mb (sadly that is just 0.2%) Change-Id: I09bd025d551a5d2c5528b938a68c6aa5f8f114a0
2014-11-11fdo#76658 fix bad conversion of old-style UNO service..Noel Grandin1-0/+1
in my commit 0394cb37a2d378511f265004b285fd93df37e5ca "fdo#46808, Convert ui::ImageManager to new style" Change-Id: I77d3189723403221e7388969b1eb892a244b90af Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-11fdo#84938: replace HELPMODE_ constants with enumNoel Grandin1-1/+1
Change-Id: I44be5567e84cdabd8b10771ea37e28b8a88cc23e Reviewed-on: https://gerrit.libreoffice.org/12333 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-09SfxTabDialog ctors: take an OUStringMiklos Vajna1-2/+2
Change-Id: I91b9b2ffd19b2412ac01dd12429d6460b4c4812c
2014-11-07Resolves: fdo#85939 its not an OKButton anymoreCaolán McNamara1-1/+1
Change-Id: Idecd7dc056749b2135e0690c54560aedf7f653a2
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann1-1/+1
This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin1-1/+1
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-11-05Use basegfx library function to clamp numbersKatarina Behrens1-4/+4
Change-Id: I3142f55ecf94ce2143e92492243bc5959322704f
2014-11-05fdo#38835 strip out OUString globalsNoel Grandin6-53/+43
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-11-03coverity#1250409 Explicit null dereferencedCaolán McNamara1-1/+2
Change-Id: Iab78e3ec447b8a32f43dff3e30c5be254f6d0a48
2014-11-01coverity#1250409 Explicit null dereferencedCaolán McNamara1-2/+4
Change-Id: Ib32e7c9eb979b9d6ab60d81423292be5fac87a54
2014-10-31Removed duplicated includesAndrea Gelmini1-1/+0
Change-Id: I5362d997bfa086c9fb1726efcb15132a966684f6 Reviewed-on: https://gerrit.libreoffice.org/12160 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-10-31convert COMMAND_WHEEL constants to an enumNoel Grandin1-1/+1
Change-Id: I413d821a984ab556bd19c52704c04de6d828f699
2014-10-30Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini1-1/+1
Change-Id: Ia43976d84eede6f699381bc4f3daf89b95e4cb4f Reviewed-on: https://gerrit.libreoffice.org/12150 Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-10-30Remove checks for HTMLMODE_SOME_STYLESHarri Pitkänen1-19/+5
HTMLMODE_SOME_STYLES is enabled for all supported HTML export modes so there is never need to disable these elements in the paragraph dialog. Change-Id: I43df54a6ce900c8a9f957522eb85ca67b6cd756f Reviewed-on: https://gerrit.libreoffice.org/12091 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-10-30Improve SvSimpleTable classPalenik Mihály2-10/+5
It is possible to order columns. This is set in Expert Configuration dialog. The header's itembits weren't set correctly therefore mouse click handler didn't do anything. The comparsion was slow on big table. Conflicts: include/svtools/treelist.hxx svtools/source/contnr/simptabl.cxx Change-Id: I7e1301d40433ef45b3d0a3fb300909345ede9d4d Reviewed-on: https://gerrit.libreoffice.org/12070 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin7-7/+0
It turns out that almost none of them were necessary. Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83 Reviewed-on: https://gerrit.libreoffice.org/12133 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-28cid#1242780 Uninitialized pointer fieldNoel Grandin1-0/+1
Change-Id: I6478f8f2ead1d87365f84aacdfef2bdcccd61248
2014-10-28rename class field pEntries to mpEntriesNoel Grandin2-22/+22
Change-Id: Iea8643dfa472a663023afb57654fccdda85ca601
2014-10-28loplugin: cstylecastNoel Grandin1-1/+1
Change-Id: I287dcb0ca728747ec91b5c3cdd986e60998e3928
2014-10-27fdo#84938: replace KEYTYPE_ constants with enumNoel Grandin1-1/+1
Change-Id: I563cf96f8ca815d6c8ad9f5fe365fc7ce7a2a328 Reviewed-on: https://gerrit.libreoffice.org/12104 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-24coverity#703936 Unchecked return valueCaolán McNamara1-3/+5
Change-Id: I238cdaeab269bcf3ef7a8969ee6077104c12c8a3
2014-10-23Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky2-17/+17
This reverts commit 47a2d7642d249d70b5da0c330a73f3a0032e4bba. Conflicts: cui/source/tabpages/transfrm.cxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx tools/source/generic/rational.cxx Change-Id: I4849916f5f277a4afef0e279b0135c76b36b9d15
2014-10-23Fraction: Revert "fdo#84854 it seems long is not enough on 32 bit"Jan Holesovsky2-7/+7
This reverts commit 582ef22d3e8e30ffd58f092d37ffda30bd07bd9e. Conflicts: svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx Change-Id: I80abc7abdeddc267eaabc9f8ab49611bb3f8ae83
2014-10-23loplugin: cstylecastNoel Grandin56-795/+795
Change-Id: I0eaeebad6be75a1c0cccdf90955fde1a2909bdba
2014-10-23fdo#78214 - rename of '1.2 extended (compat mode)'Yousuf Philips1-1/+1
Change-Id: I2c0d14f8e015304489d2b199db620bf046758331 Reviewed-on: https://gerrit.libreoffice.org/12069 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-10-22Avoid unnecessary #includeStephan Bergmann1-0/+1
Change-Id: I6ec5de40ce2f4cbcce751dcae16dae60abbc1a37
2014-10-22Replace DISABLE_SCRIPTING with HAVE_FEATURE_SCRIPTINGTor Lillqvist1-1/+3
Feature test macros that govern conditional compilation should be defined in config_*.h include files, not on the compilation command line. Change-Id: I40575a4762fd2564f10927b6f38a112dd9f9a3d7
2014-10-21fdo#84938: replace WINDOW_BORDER constants with enumNoel Grandin8-8/+8
Change-Id: I91ca8e09971aee26f16257a4fd01125cfb2ebcdb
2014-10-20fdo#84938: replace TIB_ constants with enumNoel Grandin1-2/+2
Change-Id: I435ce2331fb49e7ce9fe97bdfddfaef706759a84 Reviewed-on: https://gerrit.libreoffice.org/12023 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-18convert SV_BMP_ constants to enumNoel Grandin1-6/+6
Change-Id: I46cb7f649fa44d8967e0e7da03583157d2706f05 Reviewed-on: https://gerrit.libreoffice.org/12018 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-18vcl/layout.hxx was included twiceAndras Timar1-1/+0
Change-Id: I03a30793e02def731cb6c8f130c48aeb325a2528
2014-10-16fdo#84854 it seems long is not enough on 32 bitDavid Tardon2-7/+7
Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
2014-10-16usage info: Checkbox to turn it on and off (Tools -> Options... -> General).Jan Holesovsky2-0/+16
Change-Id: I67143e604314f5553026c369bbed3fdd683c39a6
2014-10-15More -Werror,-Wunused-private-fieldStephan Bergmann8-13/+0
...detected with a modified trunk Clang with > Index: lib/Sema/SemaDeclCXX.cpp > =================================================================== > --- lib/Sema/SemaDeclCXX.cpp (revision 219190) > +++ lib/Sema/SemaDeclCXX.cpp (working copy) > @@ -1917,9 +1917,10 @@ > const Type *T = FD.getType()->getBaseElementTypeUnsafe(); > // FIXME: Destruction of ObjC lifetime types has side-effects. > if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) > - return !RD->isCompleteDefinition() || > - !RD->hasTrivialDefaultConstructor() || > - !RD->hasTrivialDestructor(); > + return !RD->hasAttr<WarnUnusedAttr>() && > + (!RD->isCompleteDefinition() || > + !RD->hasTrivialDefaultConstructor() || > + !RD->hasTrivialDestructor()); > return false; > } > > @@ -3517,9 +3518,11 @@ > bool addFieldInitializer(CXXCtorInitializer *Init) { > AllToInit.push_back(Init); > > +#if 0 > // Check whether this initializer makes the field "used". > if (Init->getInit()->HasSideEffects(S.Context)) > S.UnusedPrivateFields.remove(Init->getAnyMember()); > +#endif > > return false; > } to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about initializations with side effects (cf. <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html> "-Wunused-private-field distracted by side effects"). Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
2014-10-13create a macro library for implementing bit-flags typesNoel Grandin1-1/+1
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, changed from a macro- to a template-based solution. (Unfortunately MSVC 2012 does not support explicit conversion operators. Worked around that with explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a baseline that requires unconditional support for them.) Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396