Commit Graph

5335 Commits

Author SHA1 Message Date
62951cdd17 Introduce com.sun.star.frame.theGlobalEventBroadcaster singleton
...to supersede com.sun.star.frame.GlobalEventBroadcaster single-instance
service.

Change-Id: I74ecaadadb4c600d39979aa7c13b6389bed38fd7
2014-01-16 18:40:05 +01:00
9874547118 bool improvements
Change-Id: Ice9f38b615b325bce6c15fefe9fbb3f528d36b1e
2014-01-14 21:28:09 +01:00
7d0db7f0ee This shall probably check nId != 0 && ..., not do a bitwise &
Change-Id: I2417f7bff3fc5f2bef6c804af12d1873802b0392
2014-01-14 21:28:08 +01:00
c6775a8f2c fdo#71883 Startcenter: Re-introduce the 'Tools' -> 'Customize...' menu
Change-Id: I4d3993dc855c030f8c51fe2ce3d364240e241dff
2014-01-09 10:59:34 +01:00
396b3594fe Resolves: #i118909# fix empty elements of return value...
in UICategoryDescription::getElementNames

(cherry picked from commit e4eb014761df0bd5c88acbcee1935743cb2a04e0)

Change-Id: Ib5a2e14ecb446c339afe5e53be435478845a4024
2014-01-08 10:33:20 +00:00
382b013275 Some ConfigurationProvider -> theDefaultProvider simplifications
Change-Id: I7c25cd94f8a1ca339f7423c26f21f13c7a68906d
2014-01-08 09:10:29 +01:00
d930cefbe6 Startcenter: Refresh RecentDocsView when select 'Clear list' menu option
Change-Id: I9cbe647563699b9b610661003084d2cd16093f9a
2014-01-07 22:59:49 +01:00
87d5f40818 Remove unused methods
Change-Id: Ib1fb65981151ef1c0c1cd316790e9906d1072dfc
2014-01-07 18:07:48 +01:00
296fece62f get master dictionaries in master core
and a janitorial drive-by in framework

Change-Id: I3106925423cb53f58b59714da49b7928c533e613
2013-12-28 17:18:03 +00:00
fe868bf7cf can use string literals here now
Change-Id: Ieeead634ac23003924d74140a5b6aba2611db8d7
2013-12-28 17:11:31 +00:00
d1c74734c8 Transex3: NO_LOCALIZE_EXPORT
In the past, NO_LOCALIZE_EXPORT macro must be used to
skip uneeded parsing of src files which has no localizable content.
It is unsued by now and it is more effective to handle
this files on gmake level:
gb_SrsTarget_add_nonlocalizable_files
gb_SrsTarget_add_nonlocalizable_templates

Plus remove some empty src file.

Change-Id: I8fc9b2db0b5fd7a3379d3c5be970c4fc691f4c53
2013-12-27 07:14:57 +01:00
ea65158833 The #ifndef MACOSX can surround even more code
Change-Id: Ia771d36711364bcf53789b3f7a623582451d175d
2013-12-26 18:28:08 +02:00
4274e6a9af WaE: unused variables
Change-Id: I42549eaa7048a6bcb248d3bd1bb28ca2c7c38763
2013-12-26 18:19:45 +02:00
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
a94390d20c A singleton is not a service
Change-Id: I9059370e21e753a9578f231fd0c0eb0a1d6a981e
2013-12-19 22:45:59 +01:00
8233226fe4 No need for implbase1.hxx to include XComponentContext.hpp
...which it did unlike all the other implbaseN.hxx.  Required lots of downstream clean-up,
of course.

Change-Id: Ib720e7a0a43410dcd7e6338b84a3973dfbb20866
2013-12-17 17:32:58 +01:00
9ed364774c Adapt all (non-extension, SharedLibrary) .components to environment="..."
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17 11:06:00 +01:00
08fe82e59c Remove unnecessary use of OUString constructor in + expressions
Convert code like
  aFilename =  OUString::number(nFilePostfixCount) + OUString(".bmp");
to
  aFilename =  OUString::number(nFilePostfixCount) + ".bmp";

Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
2013-12-17 11:49:03 +02:00
78c7eb3507 uiconfig is a l10n-relevant target
Change-Id: I8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06
2013-12-16 17:36:26 +01:00
83e191e25d Do not use C++-UNO internal static_type functions in client code
...use cppu::UnoType instead.

Change-Id: I507914b30ef8acda910ee4ecc0589fd328eb6f31
2013-12-12 11:10:10 +01:00
bcc10ce1a5 Some clean-up
Change-Id: Ieefd4653c18dceb5e5300b8411207cca100e4653
2013-12-10 15:55:27 +01:00
87dd1780a3 Get rid of $(share_subdir_name) again
Quoting 56211a166ab25d80de84c2cccce22be15a9be051 "fdo#72394 Don't endlessly
expand $(share_subdir_name) into itself":

* The compile-time variable LIBO_SHARE_FOLDER should not end up as a runtime
  framework path variable, esp. since accidentally re-substituting it for
  "share" segments in unrelated URLs like <file:///export/share/for-all> does
  not make sense.  ac4e19f9085dbd0103c7336a5318aa1e55b3e3e0 "fdo#68552: Don't
  (attempt to) do run-time expansion of build-time parameters" had already
  attempted a fix for that, but it had to be reverted again with
  791a8b96f754798192875da287c84f8cfa4e533e because it "Unfortunately does not
  work if BUILDDIR is different from SRCDIR."

So this time fix it not via configure-expanded *.in files, but via xsltproc
(for officecfg/registry/ files) and sed (for wizards/soruce/configshare files).

The changes to officecfg/util/alllang.xsl will replace @LIBO_SHARE_FOLDER@ only
in oor:name attribues (and in <value> text), not in any other attributes,
because I have no idea how to write that generically in XSLT and it happens to
be only needed in oor:name for now.

Change-Id: Iec78eb70dcbf1a5bbabf4e42f21c44dc65c3e438
2013-12-10 12:41:36 +01:00
dae9b7060d Drop duplicate #include
Change-Id: Ib8969d5cd4898b81a5dcd90dc313abd28adfe052
2013-12-10 15:52:49 +09:00
c5b7a5fd19 fix equalsAscii conversion. Noticed in fdo#72391
In commit 363cc397172f2b0a94d9c4dc44fc8d95072795a3
"convert equalsAsciiL calls to startWith calls where possible"
I incorrectly converted equalsAsciiL calls to startsWith calls.
This commit fixes those places to use the == OUString operator.

Change-Id: If76993baf73e3d8fb3bbcf6e8314e59fdc1207b6
2013-12-09 12:53:18 +02:00
b596c6d74d Bin pointless micro-optimisation
Change-Id: I87285411001a1535dae5dd921f5cceb1570d5f95
2013-12-09 11:26:37 +02:00
56211a166a fdo#72394 Don't endlessly expand $(share_subdir_name) into itself
The introduction of $(share_subdir_name) expanding to "share" in
c6a73009747814513ab5a7277c211449c7378870 "Use subfolder names from
<config_folders.h>" shows that
SubstitutePathVariables::impl_reSubstituteVariables is fundamentally flawed in
that it allows reducing variable occurrences even in variable names, so that it
will expand an occurrence of "share" into an endless recursion of
"$(share_subdir_name)" -> "$($(share_subdir_name)_subdir_name)" -> ...

Adding $(share_subdir_name) to the list of variables that can only replace a
complete path segment (delimited by "/"), from which it had erroneously been
missing, "fixes" this problem for now.

But the code is still wrong in at least two respects:
* SubstitutePathVariables::impl_reSubstituteVariables arguably needs to be made
  more robust, to never reduce variable occurrences in variable names.
* The compile-time variable LIBO_SHARE_FOLDER should not end up as a runtime
  framework path variable, esp. since accidentally re-substituting it for
  "share" segments in unrelated URLs like <file:///export/share/for-all> does
  not make sense.  ac4e19f9085dbd0103c7336a5318aa1e55b3e3e0 "fdo#68552: Don't
  (attempt to) do run-time expansion of build-time parameters" had already
  attempted a fix for that, but it had to be reverted again with
  791a8b96f754798192875da287c84f8cfa4e533e because it "Unfortunately does not
  work if BUILDDIR is different from SRCDIR."

Change-Id: If214c179c0068fbaa475c1c9cac804d6a1dbb2dc
2013-12-09 09:55:44 +01:00
0fa31bed9a Default OMultiTypeInferfaceContainerHelperVar equalImpl parameter
...and assorted OUStringHash clean up

Change-Id: I779904e1275e8df88f567beb388d1d11af9e9671
2013-12-06 12:03:59 +01:00
fb51e1cc40 Start center: Re-introduce the Macros menu, people use it.
Change-Id: I99da1fbbd158622933445f7e97f4266a24a2d85d
2013-12-03 12:31:38 +01:00
f74149bc21 Fix some typos for "height"
Change-Id: Ibe1fdd7a63ff09097cfe053279d779592d389539
2013-11-25 23:03:11 +01:00
480a0ef7c1 rigth -> right (other occurences)
Change-Id: Ic899aa36b1b18237f90295eaa04ea83450958c87
2013-11-23 21:49:02 +01:00
73342dbb82 remove unnecessary RTL_CONSTASCII_STRINGPARAM
A final pass through the code, converting code to use the new
OUString and OString methods that can detect string literals.

Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
2013-11-22 08:07:19 +02:00
1730df0127 remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::append
Convert code like:
   aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") );
to:
   aOStringBuf.append( " is missing )" );
which compiles down to the same code.

Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
2013-11-20 10:07:32 +02:00
52bbd9cc00 remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
Convert code like:
    aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" ));
to:
    aStrBuf.append( "ln(x)" );
which compiles down to the same code.

Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-20 10:07:32 +02:00
3af99e4d59 convert equalsAsciiL calls to startsWith calls
Convert code like:
    aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) )
to
    aStr.startsWith( "ActiveConnection" )
which compiles down to the same machine code.

Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
2013-11-20 10:07:31 +02:00
363cc39717 convert equalsAsciiL calls to startWith calls where possible
Simplify code like:
    aStr.equalsAsciiL( "%", 1 )
to
    aStr.startsWith( "%" )

Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
2013-11-19 12:49:29 +02:00
610b2b94b3 remove unnecessary use of OUString constructor when assigning
change code like
   aStr = OUString("xxxx");
to
   aStr = "xxxx";

Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19 10:29:31 +02:00
2c35fff7ec remove most use of RTL_CONSTASCII_USTRINGPARAM macro
This is largely unnecessary when working with OUString

Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-19 10:29:30 +02:00
d4fa4c7b38 fdo#69500: Revert "fix bug #60700 - de-crutify ODF files"
This reverts commit da06166015689eca260c702602bef4cea58afbd3.
2013-11-18 13:27:50 +01:00
986644335c fdo#66864: Return from full-screen should restore toolbars.
The fix for fdo#37758 was not correct, we shouldn't fiddle with the m_bVisible
itself, but instead react on the m_bMasterHide flag; or at least that is my
understanding of the related framework code (why is it so confusing?!)

Change-Id: I791fcea9e5e5313b6a5b776cb3187cbd1a028386
2013-11-15 11:11:47 +01:00
ab5d1fbfb4 SAL_WARN_UNUSED com::sun::uno::Any
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14 21:02:40 +01:00
04dead1c6b make l10n buildable separately
- this renames the 'almost' module target to non-l10n
- and adds a l10n target which is intended to only build l10n parts of
  the product
- packagers should then be able to build l10n and non-l10n parts of the
  product independently, thus:
   - enable quicker rebuilds
   - distribution of load
   - updates to l10n without a full rebuild
   - security fixes to binaries without rebuilding all l10n
- the new targets are called build-l10n-only and build-non-l10n-only
- note this is not intended to move a concept of split packages
  upstream -- while this exsists in distros, the number of test
  scenarios for this would explode upstream

Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863

Conflicts:
	filter/Module_filter.mk
2013-11-14 16:45:02 +01:00
46666a7720 startcenter: Remove useless menu entries.
Change-Id: Ie886beceb57201ee1a0893943c455d5f87b0d6cc
2013-11-14 14:25:55 +01:00
24cad6a649 Move MediaDescriptor from comphelper to unotools
...so it will be able to use SvtSecurityOptions internally.

Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14 11:13:24 +01:00
d366c9b20e remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-14 08:17:32 +02:00
9c5a91efdb expand out the A2S macro
Which is not doing anything useful anymore.

Change-Id: I83422e811d52a77b65655924c07b55dd7229449c
2013-11-13 09:08:08 +02:00
fcd1637d51 convert OUString compareToAscii == 0 to equalsAscii
Convert code like
   aStr.compareToAscii("XXX") == 0
to
  aStr.equalsAscii("XXX")
which is both easier to read and faster.

Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11 12:58:13 +02:00
e52779d2f8 remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11 11:21:26 +02:00
c4a593b6b1 remove unnecessary use of OUString constructor in FRAMEWORK module
Change-Id: Icbed4f318043a166ed78fe0c49a53f87ebf7201d
2013-11-11 08:36:07 +02:00
897bf27a95 cppcheck: reduce scope
Change-Id: I06c97b99a55d8b291ea31e6a751ced01b0b80e23
2013-11-10 14:41:22 +01:00
dfe1a6fbd8 Unwind SFX_REFERER_USER
...and remove remaining unused content of sfx2/source/inc/referers.hxx.

Change-Id: I5c533f63e13da930f6944af0e85d4b061c30e5b0
2013-11-08 17:54:16 +01:00