summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2014-10-23Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky
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 Holesovsky
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-23remove --without-ppds option nowCaolán McNamara
This was intended for the time we had a huge bunch of third party ppds, those are now long gone. SGENT42.PS is now the same as SGENPRT.PS since commit 871d8e0f278dab646e1877a505577edc730a26cf Date: Mon Nov 25 14:13:40 2013 +0000 Resolves: rhbz#188467 default to Type42 so get rid of that one, leaving just the single SGENPRT.PS fallback ppd Change-Id: I851f25b2789b8aa101acd18193cd01e8cded4d09
2014-10-23fdo#84938: replace MENUITEM constants with enumNoel Grandin
Change-Id: I7b0085af3b13bd6e1a50bf1e0e986d1524b52d7b
2014-10-22Avoid unnecessary #includeStephan Bergmann
Change-Id: I6ec5de40ce2f4cbcce751dcae16dae60abbc1a37
2014-10-21-Werror,-Wunneeded-internal-declarationStephan Bergmann
Change-Id: Id3c70202bd028bf7400419fcba5ba4217954acd5
2014-10-21Resolves: fdo#33598 don't show filter list any moreCaolán McNamara
Change-Id: I4100600455f1cc48c6d8957dacfe232192895e50
2014-10-21Related: fdo#33598 don't show filter list if there is only one filterCaolán McNamara
Change-Id: If31787ed84157cfb1c28710277fba747f96adc8d
2014-10-21fdo#84938: replace WINDOW_BORDER constants with enumNoel Grandin
Change-Id: I91ca8e09971aee26f16257a4fd01125cfb2ebcdb
2014-10-20Revert "Fix fdo#84795 Menu, DropDown-List not disappears with right mouse click"Caolán McNamara
This reverts commit 53c836701e22b1babd3702b502facd76236df7ff. because it means that all disabled buttons get their "click" delivered so disabled buttons are only visually disabled. e.g. writer: insert->table->autoformat, click on the disabled "rename" or "add" or "remove" and the sub dialog appears. Or in calc insert->object->chart and click on the disabled "back" -> crash
2014-10-20Work around workaround for old MSVC 2012Stephan Bergmann
...not allowing certain o3tl::is_typed_flags::Wrap conversion operators to be explicit, thus causing ambiguities here. Change-Id: I5108885229eb185ceac57042e67405b393cdcf3b
2014-10-20Resolves: fdo#85006 limit script stripping to known suffixesCaolán McNamara
Change-Id: I276535b007bbb55555148d5937076b86da5de825
2014-10-20coverity#1242704 Untrusted loop boundCaolán McNamara
Change-Id: Ib2e00c0cd269dc7ae55b206713fe07e5326072f2
2014-10-20fdo#84938: replace TIB_ constants with enumNoel Grandin
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-18coverity#1242573 Untrusted loop boundCaolán McNamara
Change-Id: Ic84e57fbfa2b532409865c4364b91be594d252cf
2014-10-18coverity#1242573 Untrusted loop boundCaolán McNamara
Change-Id: Id2847c55ccab7272919e76542bc0e0570bc9af12
2014-10-18coverity#1222238 Untrusted loop boundCaolán McNamara
Change-Id: I1a4dec8727d0a27f7fd0396fd22d955f61daaee4
2014-10-18coverity#1209860 try and silence Untrusted loop bound warningCaolán McNamara
we kind of have to trust this data Change-Id: I1b74f8ad95008f5e759fd2267c879091edc5d58e
2014-10-18vcl/layout.hxx was included twiceAndras Timar
Change-Id: I03a30793e02def731cb6c8f130c48aeb325a2528
2014-10-17coverity#704104 Unchecked return valueCaolán McNamara
Change-Id: I4a2c49befe4baea10e36e0d612371fe8c91db401
2014-10-17coverity#735341 Unchecked return value from libraryCaolán McNamara
Change-Id: I8eb5158cb2aa39b5eac45c554d722b9de1c8abe8
2014-10-17coverity#1247652 Uninitialized scalar fieldCaolán McNamara
Change-Id: I4760bc63f61d59c51b6557bf0e3364c1fe0e56be
2014-10-17coverity#1247651 Uninitialized pointer fieldCaolán McNamara
Change-Id: Iff58777cfe8422be90fb59189f98a0f34b0aa102
2014-10-17coverity#735653 avoid division by 0David Tardon
Change-Id: Ie3ec074292467f096e69142dc599b0e29e1e7f7b
2014-10-17coverity#735654 avoid division by 0David Tardon
Change-Id: If368d300c5ed880e1359cbc67df0e13b00fc6ecf
2014-10-17coverity#735655 avoid division by 0David Tardon
Change-Id: I5eeb4cbcaa19bdf9bcafc3830447468dd8dc5c8c
2014-10-17coverity#1209374 avoid division by 0David Tardon
Change-Id: I6728c0f79e0091b88b3269f5b8b25d27c82d9761
2014-10-17java: final fields that can be staticNoel Grandin
Change-Id: I8c06be7bc0b8a38c662209f0de72a00550e25447
2014-10-16fdo#84854 it seems long is not enough on 32 bitDavid Tardon
Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
2014-10-16Related: fdo#84676 try to give floating windows their original stylebitsCaolán McNamara
as they were before becoming .ui components to see if that makes a difference here Change-Id: I1699e19f14b18579f6b8c973d64f069b206b7cb8
2014-10-16MAC_OS_X_VERSION_MAX_ALLOWED is always >= 1080 nowTor Lillqvist
Change-Id: Ieae67cbf917cdf4bca2b0d6c1697eddc6137dbe2
2014-10-15fdo#75757: remove inheritance to std::vectorMichaël Lefèvre
from TEParaPortions (through ToolsList, close to be deleted ;). Change-Id: Iec92ebb54ebc44d94ccc8cb30230ffb44b937b35 Reviewed-on: https://gerrit.libreoffice.org/11954 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-10-15coverity#704088 Unchecked return valueCaolán McNamara
Change-Id: I0fc00b445db0a6254adbfa335e6971c6787109d5
2014-10-15More -Werror,-Wunused-private-fieldStephan Bergmann
...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-15Resolves: #i63015# always default to WinAnsiEncoding...Herbert Dürr
for non-symbol PDF-Type1 export Suggested-By: edv@gruene.de Reviewed-By: hdu@apache.org (cherry picked from commit b8186703cb43d2b57460cb23a7a4e3f989e95426) Conflicts: vcl/source/gdi/pdfwriter_impl.cxx Change-Id: I02227724bff301133ac8ce5562ec5ca1ed94f136
2014-10-15Resolves: fdo#85032 max len property of -1 -> crashCaolán McNamara
Change-Id: Ief903c619204f01784e93fd5e2d582632cef032e
2014-10-15fdo#84938: replace SYMBOL_TYPE constants with enumNoel Grandin
Change-Id: Ib3763f20d74c22e28d519a9ac47f6f3ab4e31f51 Reviewed-on: https://gerrit.libreoffice.org/11983 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-15vcl: cleanup salgdi.hxxChris Sherlock
Change-Id: Iced928a97afdc30e8cb1e24dd148c8b838e8eb72
2014-10-14vcl: re-factor scaling to use a single fn. pointer based invocation.Michael Meeks
Change-Id: Ide61808dbfa82ce67794150f44b6bac4f3c8e302
2014-10-14vcl: Re-factor to use the ScaleContext to pass parameters.Michael Meeks
Change-Id: If4359a6b776b4a94a6934e9fd02ede475a0612a7
2014-10-14vcl: create a ScaleContext to share copy/paste Bitmap scaling code.Michael Meeks
Change-Id: I5a90b7c6065829d74c61b833f0551b8adc3f2711
2014-10-14vcl: hide bitmap helpers in an anonymous namespace.Michael Meeks
Change-Id: I96ad50f538cfb6ecd256c4268feb81796a135b2b
2014-10-14basebmp: accelerated method to create a clipping device.Michael Meeks
This was some staggering proportion of tiled rendering documents with complex clipping; it seems 'clear' is not what memset is for 1bit clip masks. Change-Id: I9142ffb7d7016603feb7782d6f03b9992b9494e3
2014-10-14vcl: warning C4717: GetCharCount() recursive on all control pathsMichael Stahl
Change-Id: Id86dcd2c701510ce15cc2cf71e35c1d908ec6049
2014-10-14vcl: cleanup salframe.hxxChris Sherlock
Change-Id: I0f331a2589d0fab5cf3843bf7531333e07067997
2014-10-14vcl: change to css alias namespaceChris Sherlock
Change-Id: I4af1bd5cd1d614ca92cf843ad7fa5bb518829f89
2014-10-13valgrind + bff, multiple failures, initialize ref counts to 0...Caolán McNamara
for boost::intrusive_ptr ==6595== Conditional jump or move depends on uninitialised value(s) ==6595== at 0xB21664D: intrusive_ptr_release(FontCharMap*) (metric.hxx:226) ==6595== by 0xB2172F6: boost::intrusive_ptr<FontCharMap>::~intrusive_ptr() (intrusive_ptr.hpp:97) ==6595== by 0xB5AE196: FtFontInfo::GetFontCharMap() (gcach_ftyp.cxx:1287) Change-Id: Iea5ab13b093945c840481f29bc626a16dcbc234b
2014-10-13create a macro library for implementing bit-flags typesNoel Grandin
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
2014-10-13Quit after 100 roundsTor Lillqvist
Also, print the timing output to stdout, so that one can run the time command on this, redirecting the program output to /dev/null, and just see the 'time' output. Change-Id: I4b2bfe7f0d37746fe0a015b961512850a880560c
2014-10-13vcl: Make ImplFontCharMap a pImpl and move functions to FontCharMapChris Sherlock
To do this, I've made FontCharMap a friend class for ImplFontCharMap, and have moved the functions directly into FontCharMap. In this patch, I am attempting to stop the direct use of ImplFontCharMap by anything other than FontCharMap. However, FontCharMap itself requires a refcounter, so we will use FontCharMapPtr to access the font character map. Change-Id: I509b990a8cbd911c5cc1572c7d24fc5348ca06d9 Reviewed-on: https://gerrit.libreoffice.org/11823 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>