Commit Graph

286 Commits

Author SHA1 Message Date
5cb2e3104b remove toolkit/unohlp.hxx hack
Change-Id: Idb9971d848870f4d00dbf77e80e48bf7dfde8913
Reviewed-on: https://gerrit.libreoffice.org/4601
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 11:49:28 +00:00
b3962c92bf WaE: unused variable 'aText' [loplugin]
Change-Id: I846030c5c7ad4e30e5286d1ee30130a397ad4daa
2013-06-25 08:52:28 +03:00
a1748501d8 Kill SfxAppToolBoxControl_Impl
(cherry picked from commit 273121f8d7e277e35c8e5a8aad46ef0c103ebc03)

Conflicts:
	sfx2/inc/sfx2/mnuitem.hxx
	sfx2/inc/sfx2/tbxctrl.hxx
	sfx2/source/appl/appreg.cxx
	sfx2/source/menu/mnuitem.cxx
	sfx2/source/toolbox/tbxitem.cxx

Change-Id: I6d0750d89ad009f82c5552d971537b78e45426f2

Silence warning C4706

(cherry picked from commit 0b373b3e4c45d09c40a8949e9366adb9b991de4b)

Change-Id: Id497469eba8288565145c47c84b7938a1316c21a
2013-06-24 11:25:34 +01:00
187a592df9 remove dead code minstack.hxx
Change-Id: I67a7a4c51188187c1ab234f8e9d2634eb018badf
Reviewed-on: https://gerrit.libreoffice.org/3397
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-04-16 20:05:27 +00:00
adcae497ce remove dead code
Change-Id: I18b203f9647e2fd5199a2d15f4be67c99f7def5d
Reviewed-on: https://gerrit.libreoffice.org/3361
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-12 15:38:12 +00:00
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
39d45390f4 removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms

Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 10:48:30 +00:00
a0296296fb fdo#60691 add modelines to *.src and *.hrc files
use solenv/bin/add-modulelines script for the task
and remove all UTF bom from *.src and *.hrc files

svx/source/dialog/hdft.src

Change-Id: I745d4f0fe9b05436a142a03f8512970f91c41bd4
2013-03-08 21:02:26 +00:00
a6b9173005 fdo#60148 Clean up warnings from the Clang compiler plugin
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671
loplugin: clean warnings: unused variables, incorrect indentation and log area.
Reviewed-on: https://gerrit.libreoffice.org/2544
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-03-06 12:59:26 +00:00
244c7cdede fdo#46808, convert task::StatusIndicatorFactory to new style
the service already existed, it just needed an IDL file.

Change-Id: I84c8e48e176ec3a38ac48a7abcec7463390523b9
2013-03-04 14:22:33 +02:00
c95d4a7701 coverity#705720: fix memory leak
Change-Id: I374f22ae6cc20c14adb99cd9bc6da1f830067861
2013-03-03 04:35:13 +01:00
1443a9f7ab [Uu]sefull -> [Uu]seful
Change-Id: I5dad83789ff9b6815561208679a5e19821041e1f
2013-02-22 11:12:33 +01:00
77fd448d09 Removed several useless macros: UNISTRING, USTR, USTR_ASCII, ASCII_STR, ASCII_STRING, CONST_ASCII, ASCSTR, ASCII, DEFINE_CONST_UNICODE, DEFINE_CONST_OUSTRING
Change-Id: I96d690bf9f9b319e9eeafcf218ec5ce87f21215f
Reviewed-on: https://gerrit.libreoffice.org/1954
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-02-14 13:20:14 +00:00
0c22f3eadd Make LO buildable again after the GraphicFilter move.
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2013-01-04 22:02:51 +01:00
bb121c864c fdo#46808, Convert frame::Desktop to new style service.
I had to drop XEventBroadcaster from the merged interface
because it introduced method name conflicts (addEventListener).

Shouldn't be an issue since it was scheduled to be dropped anyhow,
and the service implementation still implements it, so existing clients
will be fine.

I dropped the interface XPropertySet from the combined IDL because nobody
seems to be using it, and it's primary purpose appears to be to set weird
flags.

I dropped the optional interfaces
   XStatusIndicatorFactory
   XDispatchInformationProvider
from the combined IDL because the service does not implement them, and
nobody seems to be using them. I suspect they were mistakenly copied
from XFrame.

I also did not convert the Title, UserDefinedAttributes and LayoutManager
properties to attributes, again because no-one is using them.

Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-21 10:57:09 +02:00
66a175834c c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star

Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.

Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01:00
ddcf2363ba fdo#46808: Improve previous commit
* Removing m_xLngMgr.is() check from SfxThesSubMenuHelper::GetThesImplName was
  unsound with SfxThesSubMenuHelper ctor swallowing Exception; best fix appears
  to be to remove the swallowing.

* Prefer forward declarations over #includes.

Change-Id: Ie4e7dcd6cdb14046516d119605bbf78e81359768
2012-10-30 11:40:18 +01:00
43d9f35c26 fdo#46808, Adapt linguistic2::LinguServiceManager UNO service to new style
Create a merged XLinguServiceManager2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: I297bada1066cd74809108641b56ee4d5898112ec
2012-10-30 11:02:39 +01:00
75acbd4b47 delete svl/svstdarr.hxx
Change-Id: Ia3d1d8dbe100443410b80c3881f10ab51b2d0419
2012-07-25 14:13:47 +02:00
3e7832724e Revert hrc string cleanup
This reverts mostly all of my hrc string cleanup commits. As Markus
stated in dc05a825e71316e6f602e5c8dfcd3d10ecb6252f those are erroneous
and mostly untested. And therefore absolutely unsave. I only did test
them by compiling and checking the main screens. Cleaning those files
seems to be much more complicated than I thought.

So to be absolutely save I do this huge revert. Sorry for this.

Revert "hrc cleanup: Further cleanup"
This reverts commit 60212988e1cd84169afb028a4255b6f935f1fd4b.

Revert "hrc cleanup: Remove unused strings"
This reverts commit 0e2d7550dd287843b70c03dee952c02f9bd8afb5.

Revert "hrc cleanup: Remove unused Strings in sfx2/source/doc/doc.hrc"
This reverts commit efb74b5dfdb773ba53b29080e1996a93d2c1cac2.

Revert "hrc cleanup: Remove unused Strings in cui"
This reverts commit 527e8f61868210c54bdad650f16390bda03c4353.

Revert "hrc cleanup: Remove unused Strings in desktop"
This reverts commit ac3800fbb9f3251276302b24fa0542441276a34f.

Revert "hrc cleanup: Remove unused cstitem.src"
This reverts commit ae95e31831916df760503bfc2496b7bc55bc638b.

Revert "hrc cleanup: Remove unused strings in wizards"
This reverts commit 20f9a1744319ecdf18c9ab6d0873bb586eb4d03f.

Revert "hrc cleanup: Remove unused Strings in sfx2"
This reverts commit c26d4d34467008418ebf138412e87886694c326c.
2012-07-18 23:28:54 +02:00
c26d4d3446 hrc cleanup: Remove unused Strings in sfx2
Change-Id: I412cd836ab248ed7c247e1125ff52dc3263604d2
2012-07-13 12:45:57 +02:00
79d386f001 removed unnecessary forward declarations of class
except moving 'class SfxStringItem' to cui/source/inc/acccfg.hxx

Change-Id: I11d3803ebcfa02658d376bacf28b3d6030ee9d1b
2012-07-07 10:09:22 +09:00
e2799d253b re-base on ALv2 code. Includes:
Patches contributed by Mathias Bauer:
    cws mba34issues01: #i117713#: remove superfluous assertions about field unit fallbacks
    http://svn.apache.org/viewvc?view=revision&revision=1172341
    cws mba34issues01: #i117718#: provide filter name in case
    storage of medium does not allow to detect one
    cws mba34issues01: #i117712#: fix several resource errors introduced by IAccessible2 implementation
    http://svn.apache.org/viewvc?view=revision&revision=1172343
    http://svn.apache.org/viewvc?view=revision&revision=1172350
    cws mba34issues01: #i117708#: status indicator for inactive documents
    http://svn.apache.org/viewvc?view=revision&revision=1172358
    cws mba34issues01: #i116025#: fix typo and add missing treatment of new parameter
    http://svn.apache.org/viewvc?view=revision&revision=1172359
    cws mba34issues01: #i117024#: rework parameter conversion for load/save slots
    http://svn.apache.org/viewvc?view=revision&revision=1172360
    cws mba34issues01: #i116803#: possible crash on Linux when
    dispatch.cxx is compiled with optimization
    http://svn.apache.org/viewvc?view=revision&revision=1172367
    cws mba34issues01: #i114600#: fix compiler warning for name clash found on Solaris
    http://svn.apache.org/viewvc?view=revision&revision=1172371
2012-07-06 20:29:14 +01:00
bccf34c19a ditch String::CreateFromAscii
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
2012-07-03 21:24:35 +01:00
ee1c5c4768 Reduce newline bloat at eof
Change-Id: I494ceee07d6825f9466cab810742d7f85291fe14
2012-06-27 13:32:28 +02:00
d9a00ace2c tidy some resource strings
Change-Id: I611a276d048121084ec842d062129e042f3baea5
2012-06-26 13:34:03 +01:00
b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
5fcecf9b88 hrc cleanup: Remove unused defines
All of those defines (should) not be used at any point in the code.
False positives may exist, because some macro names are getting
generated by some template/macro foo. This is the version which
compiled fine for me.

Also there are many commented out lines removed.

Change-Id: I6394024682e4ab3691eb72707a9363d41ba31df8
2012-06-21 11:54:18 +02:00
a1cedf2b1e Convert SV_DECL_PTRARR_DEL(SfxMenuCtrlFactArr_Impl) to std::vector
Change-Id: I65b6f6e1f615c8f6e778b10945c60a28875d88ba
2012-06-20 19:46:38 +02:00
56f3f3e9da targeted string re-work
Change-Id: I20867f9ef04297f27523b63dc1e18a2e31da5d42
2012-06-02 22:27:46 -05:00
7bf761e85d targeted string re-work
Change-Id: I120b321166bb078b44d8b9894a1f906e9c6a611f
2012-06-02 21:09:52 -05:00
bb9f730458 nuke unused typedef
Change-Id: I8848d0e687c3b19be1a8bc1f41c2a0c94e13bbbf
2012-05-31 01:56:28 +09:00
25c70a7232 removed useless static data 2012-04-12 00:45:21 +09:00
f447ac9ec9 removed duplicate includes in sfx2 2012-03-30 22:30:45 +09:00
d7aacb8461 .hrc files don't need executable bits 2012-03-23 21:58:14 +01:00
bd205223ec New IMPL_LINK_NOARG to work around SAL_UNUSED_PARAMETER problem
...see ebe26f72e90337da2d14f3029de148904e3e30b6 "WaE: 'unused' attribute ignored when parsing type"
for the problem.
2012-03-01 18:00:32 +01:00
b737e913c4 callcatcher: update unused list 2012-02-27 09:45:56 +00:00
42eb8d310c unwrap ifdefs with unused members 2012-02-21 14:25:44 +00:00
b655b1fedf apparently this is required on Linux - re-enable it. 2012-02-18 08:00:43 +00:00
019458b151 partial revert of unused code removal, and add LINUX guards 2012-02-18 07:58:32 +00:00
ada6350a7c Removed unused code from svl and sfx2 2012-02-17 21:47:49 +00:00
a0093404ff SfxVirtualMenu: fix context menu crash:
SfxMenuCtrlArr_Impl used to be a PTRARR_DEL, so use a boost::ptr_vector
to ensure elements are deleted.
(regression from 94d4764a42f8f38b884bb8960791d80ac876b786)
2012-01-23 18:40:34 +01:00
f9424e58a3 Revert "Remove DECL_PTRSTACK"
This reverts commit fabf6aa20117fb1132fc7e730e5eeecd0378e67e.
2012-01-20 17:50:50 -05:00
fabf6aa201 Remove DECL_PTRSTACK 2012-01-20 14:49:21 -05:00
21ec8d068f Remove unused DECL_PTRSTACK 2012-01-20 13:47:59 -05:00
94d4764a42 SV_DECL_PTRARR->std::vector 2012-01-20 13:47:57 -05:00
bcb9ddaa7e Remove _SVSTDARR_STRINGSISORTDTOR 2012-01-10 23:18:14 -05:00
e24a27b4cc Fix for fdo43460 Part XXXIII getLength() to isEmpty()
Part XXXIII
Modules
sfx2
2012-01-10 23:39:13 -02:00
1efa072b55 Remove cruft in debug tools 2012-01-10 07:23:04 +01:00
571ad11bc0 Removed unnecessary tools includes. 2012-01-05 15:36:41 +01:00