summaryrefslogtreecommitdiff
path: root/sfx2/inc
AgeCommit message (Collapse)AuthorFilesLines
2014-10-23Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky1-1/+1
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-15More -Werror,-Wunused-private-fieldStephan Bergmann1-1/+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-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca1-1/+1
* 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-02loplugin: cstylecastNoel Grandin1-3/+3
Change-Id: I4a230f45e91773fca7d537e91c9e9fb54773cf10
2014-09-23fdo#82577: Handle WindowNoel Grandin4-5/+5
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-06Related fdo#82088: removing aliases in headersStefan Weiberg1-5/+4
Change-Id: Id3496d1720630dd7a873edd04b664fc279c1c25e Reviewed-on: https://gerrit.libreoffice.org/11294 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-08-26convert sw use of template manager to new managerCaolán McNamara2-170/+0
this completes the conversion of resource hosted dialogs and tabpages to .ui gtkbuilder format Change-Id: Ic1b49d5560bfa47f287e04918c01daeebba28163
2014-08-26sfx2: itemdel.hxx is goneMiklos Vajna1-1/+0
Change-Id: Ic4fb163660b9fae29a32cd30f84f14f9a401f28a
2014-08-18drop unnecessary shl.hxx includesCaolán McNamara1-1/+0
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-14git commit no reason to include FutureDocumentVersionProductUpdateRequest.hppCaolán McNamara1-1/+0
Change-Id: Icc6757254721ed8c03356a6acc28e6f241c07153
2014-08-13fdo#75757: remove inheritance to std::vectorTakeshi Abe1-41/+0
... by replacing the following 3 classes with typedefs of std::vector: SfxObjectShellArr_Impl / SfxViewFrameArr_Impl / SfxViewShellArr_Impl and the following 4 with typedefs of boost::ptr_vector: SfxChildWinFactArr_Impl / SfxMenuCtrlFactArr_Impl / SfxStbCtrlFactArr_Impl / SfxTbxCtrlFactArr_Impl Change-Id: I1754bd19ec418a3e7ba5c47fb6d8568e8fca9b29 Reviewed-on: https://gerrit.libreoffice.org/10891 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-13update_pchThomas Arnhold1-0/+1
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-07-29fdo#46037: remove unused comphelper/configurationhelper.hxxAlexandre Vicenzi1-1/+0
Change-Id: I66f9d2912202ba1393d0c65189f8a945bca4fcaa Reviewed-on: https://gerrit.libreoffice.org/10603 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-07-11new loplugin: externalandnotdefinedNoel Grandin1-0/+18
Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-05-28update_pchThomas Arnhold1-0/+3
Change-Id: I5316693452427ed76a7738b090de023b110caa40
2014-05-19hrc and src files: squeeze multiple newlinesThomas Arnhold1-1/+0
for i in `find . -name *.src -or -name *.hrc`; do FILE=$(cat -s "$i"); echo "$FILE" > "$i"; done Change-Id: I2bac5ad3e1eb3c566e5c867ccf45893a19e1561e
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold2-4/+4
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-06Move a few more headers that are included only in sfx2 to sfx2Tor Lillqvist2-0/+108
Change-Id: I8bd81a45f5ef1b76fce1563b06e05a4eefcff0ec
2014-04-14update_pchThomas Arnhold1-94/+49
Change-Id: I099bff66a7796a5cf18e37e445467bdfb33de602
2014-04-07sfx2: sal_Bool->boolNoel Grandin4-36/+36
Change-Id: I48ae51781f64e60deb0c03352087100729c8c3cd
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann2-2/+2
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann3-9/+9
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-26Split TYPEINFO into plain and TYPEINFO_OVERRIDEStephan Bergmann1-1/+1
...where the latter contains SAL_OVERRIDE annotations Change-Id: Id64794b388d83dfe7026440e8b20a5b5efd412d1
2014-03-13sfx2,svl: prefer passing OUString and OString by referenceNoel Grandin1-3/+3
Change-Id: I9833265f6e635a057cea2c4a945cc73809b1e2ef
2014-02-26Remove visual noise from sfx2Alexander Wilms2-6/+6
Change-Id: I0f556a386ce64d154b695c2a35f808c94b9f0b7a Reviewed-on: https://gerrit.libreoffice.org/8310 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-21vcl: sal_Bool -> boolStephan Bergmann1-1/+1
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-07templatemanager: Nobody calls setSaveMode(false).Jan Holesovsky1-1/+1
Change-Id: Ia1844523c3ed5544b4e250c7607d2148f1c4d3cd
2014-02-07Convert template manager dialog to .ui + adapt code.Jan Holesovsky1-4/+6
Change-Id: I854abb47c2d22206ed5581373b3e841f221672e3
2014-02-06Introduce com.sun.star.ui.theWindowStateConfiguration singleton.Matúš Kukan1-1/+1
Change-Id: I50861ac8952d54cb1a45846ea72a2ecac4f83409
2014-01-30fdo#63154 Removed unused solar.h ref. in linguc., sfx2, starmath, svl and svxAlexandre Vicenzi1-48/+1
Change-Id: I241661119371b75804fcf9215ff5e5da2a5b9265 Reviewed-on: https://gerrit.libreoffice.org/7732 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-30Introduce com.sun.star.ui.theModuleUIConfigurationManagerSupplier singleton.Matúš Kukan1-1/+1
Change-Id: I7b503e5d49865c9ff287bf72eaff1995ce871790
2014-01-30Introduce com.sun.star.ui.theWindowContentFactoryManager singleton.Matúš Kukan1-1/+1
Change-Id: If979db945b2f5e50e146fdadafd1559530c50122
2014-01-29Introduce com.sun.star.ui.theUIElementFactoryManager singleton.Matúš Kukan1-1/+1
To replace single-instance com.sun.star.ui.UIElementFactoryManager service. Change-Id: I4262909c4396e3907d271a56696a06903168a58d
2014-01-29Introduce com.sun.star.frame.ControllerFactory singletons:Matúš Kukan1-1/+1
com.sun.star.frame.thePopupMenuControllerFactory com.sun.star.frame.theStatusbarControllerFactory com.sun.star.frame.theToolbarControllerFactory To replace their single-instance service variants. Change-Id: I00586d0d61e63f9482cb659071e88aa9cf02d5b5
2014-01-28Introduce com.sun.star.frame.theUICommandDescription singleton.Matúš Kukan1-1/+1
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
2014-01-24Introduce com.sun.star.task.theJobExecutor singleton.Matúš Kukan1-1/+1
To replace com.sun.star.task.JobExecutor single-instance service, incorrectly converted in 748aa84e9808ad31c6ff6b71459525c82de10e58 [including changes by Stephan Bergmann <sbergman@redhat.com>] Change-Id: I4cea2c63a20b5b22f6e1f822fb35fcc4d0397687 Reviewed-on: https://gerrit.libreoffice.org/7609 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-01-16sfx: Use constructor feature for BackingComp.Matúš Kukan1-148/+0
Change-Id: Ia461b8315ddd07adcb5609aefa85385db17ebba4
2014-01-15sfx: Use constructor feature for SfxFrameLoader_Impl.Matúš Kukan1-138/+0
Change-Id: If0e20538b85057c52a953a7559f6e7cb75d2fe33
2014-01-13drop unnecessary tools/string.hxx includesCaolán McNamara1-1/+0
Change-Id: I2439ed19b554381f80e882aacbac05167622df92
2014-01-10SfxPoolItem::operator ==, != should return boolStephan Bergmann1-1/+1
...and SfxEnumItemInterface::HasBoolValue, too. Change-Id: Ia032e3d35a4c3b4c1efdc515ca36e466be03fc0a
2014-01-09Remove unused private member: pAccExecZolnai Tamás1-1/+0
Change-Id: Ie21f8a62213954da7f66c1fbe890ba9dee93cf77
2014-01-07Startcenter: Refresh RecentDocsView when select 'Clear list' menu optionZolnai Tamás1-0/+13
Change-Id: I9cbe647563699b9b610661003084d2cd16093f9a
2013-12-10svl: remove SfxDateTimeItem, which is actually unusedMichael Stahl1-1/+0
... since 2f44516d6c3fce6ebe372214ce4bfa11875bd3d1 Change-Id: I25905a69464a43e12fcbb4770c8b0e171ab3271b
2013-12-06convert search dialog to .uiCaolán McNamara1-18/+15
Change-Id: I737da11ed6978edf824f00dfb3dfc29c2c5416ed
2013-11-14Move MediaDescriptor from comphelper to unotoolsStephan Bergmann1-2/+1
...so it will be able to use SvtSecurityOptions internally. Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-11sfx2: include <> for external includesNorbert Thiebaud4-83/+83
Change-Id: I63de4bc034020d19abd20f301194482da9a604f4
2013-11-07fdo#63020: Replace ::comphelper::stl_begin()...Marcos Paulo de Souza1-2/+0
And use some templates inside include/com/sun/star/uno/Sequence.hxx Change-Id: I48875fa1517751fc4cb0cf2b6c08b88975a29b47 Reviewed-on: https://gerrit.libreoffice.org/6599 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-11-06Drop unnecessary #includesTakeshi Abe1-1/+0
Change-Id: I9659279233067a8946a9e54be2f22439854a961e
2013-11-05update pchThomas Arnhold1-0/+2
Change-Id: I10f3dbd9513052b3bbe30ddc6523cd231f26ded3
2013-10-28fixincludeguards.sh: sfx2Thomas Arnhold13-29/+29
Change-Id: I135d03fa8926e0fdba977005e97452045861b2a4