Commit Graph

4480 Commits

Author SHA1 Message Date
Michael Stahl
652ccbdf31 i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.
Add IsUTC member to:

com.sun.star.util.DateTime
com.sun.star.util.DateTimeRange
com.sun.star.util.Time

Add new stucts with explicit time zones:

com.sun.star.util.DateTimeWithTimezone
com.sun.star.util.DateWithTimezone
com.sun.star.util.TimeWithTimezone

Adapt the sax::Converter to read/write timezones, and fix the unit test.

Everything else just uses default (no time zone), this commit is just
to fix the API.

STRUCT: /UCR/com/sun/star/util/DateTime
    nFields1 = 7  !=  nFields2 = 8
    Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/DateTimeRange
    nFields1 = 14  !=  nFields2 = 15
    Registry2 contains 1 more fields
STRUCT: /UCR/com/sun/star/util/Time
    nFields1 = 4  !=  nFields2 = 5
    Registry2 contains 1 more fields

Conflicts:
	sc/source/filter/oox/unitconverter.cxx

Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18
Reviewed-on: https://gerrit.libreoffice.org/4833
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-07-15 11:46:41 +00:00
Caolán McNamara
82937ce3d7 String::SearchAndReplaceAllAscii -> OUString::replaceAll
Change-Id: I5091835c9f71c712f15996e5c6263fc5f21f6f96
2013-07-14 14:04:03 +01:00
Thomas Arnhold
f42daec5c7 cleanup src files
Those items are unused.

Change-Id: If4fce0f91309d2ca09cbb636d4a5d9f86f38eb9a
2013-07-05 19:59:30 +02:00
Caolán McNamara
e8fdd77a66 restore title on Format Number single tab dialogs
Allow a .ui to be given to the SingleTabDialog ctor. There are *three*
single-tab Format Number dialogs, we really should combine them together into
one dialog.

Change-Id: I1021c9b968764bd9ad35832958ef2bd067fca798
2013-07-03 08:59:56 +01:00
Caolán McNamara
092281f1e7 Resolves: fdo#66252 format->number for controls is busted
Change-Id: I7c88f3acd9a6c5faa40a8fedc7c9f6e7817cefb7
2013-07-02 17:12:55 +01:00
Thomas Arnhold
ba0a57702c remove OUString wrap for string literals
For some functions and all kinds of Exceptions.

CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException

createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService

bash command:

for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
	| cut -d ':' -f1 | sort -u
	| xargs sed -i
		-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
		-e "s/\($i.*\)\"+ /\1\" + /g";
done

Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29 21:52:54 +00:00
Thomas Arnhold
e67c21ee06 Search for char instead of 1 char long string, when possible.
follow-up of a767448225

Change-Id: I25f40c601454c092078307d931333af1bc1447ac
2013-06-29 09:53:41 +02:00
Thomas Arnhold
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
Lionel Elie Mamane
f76cedf1d6 Data-aware ListBox: fix case ListSourceType==TableFields
Change-Id: I9a89374fd1cc56c8185753f5959275a0a2d841ff
2013-06-23 20:05:55 +02:00
Lionel Elie Mamane
4e317158dd ListBox: when LISTSOURCETYPE changes, need to (un)lock BOUNDCOLUMN
Change-Id: If83073ec19c1389bf87fc154fa0ae83fd5bd1f3a
2013-06-23 18:21:01 +02:00
Lionel Elie Mamane
87c50e7563 fdo#66002 correct error introduced by "AppendAscii cleanup"
This reverts
fix endless loop error: 865b5caf6e
which was a partial revert of
AppendAscii cleanup: b7df3446c3

AND fixes the original error in "AppendAscii cleanup".

Change-Id: Ida29af046b277170388e4945c0cdb4ec6116be98
2013-06-23 15:47:36 +02:00
David Ostrovsky
865b5caf6e fix endless loop error
This partially reverts this commit:
b7df3446c3

Change-Id: Id05939da35541f9620d03d9d3998e618d0bb9092
2013-06-23 15:04:57 +02:00
Jelle van der Waa
caab53cf21 fdo#43460 connectivity,extensions,filter,idl,idlc: use isEmpty()
Change-Id: I78ba286be5aa4d731f734e5eb16adb77c686aad9
Reviewed-on: https://gerrit.libreoffice.org/4325
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-18 17:31:20 +00:00
Stephan Bergmann
f4a4fee523 loplugin:literalalternative
Change-Id: Ie2af2b013f95e8cdf7aab82498ce686dfa965cc8
2013-06-15 01:16:20 +02:00
Stephan Bergmann
c128736aad loplugin:unusedvariablecheck
Change-Id: I2202b5fcca4bf4c0a552d25c5c363209fcb6bd84
2013-06-15 00:57:19 +02:00
Armin Le Grand
e0cce521f1 Resolves: #i121504# Support for alpha channel in clipboard for all systems
(cherry picked from commit ef3931ff410117e1237b3bef7bc090e8b83b9519)

Conflicts:
	automation/source/server/statemnt.cxx
	basic/source/runtime/methods.cxx
	canvas/source/vcl/devicehelper.cxx
	canvas/source/vcl/spritedevicehelper.cxx
	drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
	drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
	drawinglayer/source/tools/converters.cxx
	dtrans/source/win32/dtobj/FmtFilter.cxx
	editeng/source/items/bulitem.cxx
	extensions/source/scanner/sanedlg.cxx
	external/gcc3_specific/makefile.mk
	filter/source/graphicfilter/eos2met/eos2met.cxx
	filter/source/graphicfilter/ios2met/ios2met.cxx
	filter/source/msfilter/msdffimp.cxx
	fpicker/source/office/iodlg.cxx
	framework/source/fwe/classes/addonsoptions.cxx
	framework/source/fwe/helper/actiontriggerhelper.cxx
	sc/source/filter/excel/xiescher.cxx
	sc/source/ui/docshell/docsh.cxx
	sc/source/ui/inc/viewfunc.hxx
	sd/source/ui/app/sdxfer.cxx
	sd/source/ui/unoidl/unopage.cxx
	sd/source/ui/view/sdview3.cxx
	sfx2/source/appl/fileobj.cxx
	sfx2/source/appl/linkmgr2.cxx
	sfx2/source/dialog/filedlghelper.cxx
	sfx2/source/dialog/intro.cxx
	sfx2/source/doc/docinf.cxx
	sot/inc/sot/formats.hxx
	sot/source/base/formats.cxx
	svtools/bmpmaker/bmpcore.cxx
	svtools/bmpmaker/bmpsum.cxx
	svtools/inc/svtools/transfer.hxx
	svtools/source/filter/filter.cxx
	svtools/source/filter/wmf/emfwr.cxx
	svtools/source/filter/wmf/enhwmf.cxx
	svtools/source/filter/wmf/winwmf.cxx
	svtools/source/filter/wmf/wmfwr.cxx
	svtools/source/graphic/graphic.cxx
	svtools/source/graphic/provider.cxx
	svtools/source/misc/transfer.cxx
	svx/inc/svx/xoutbmp.hxx
	svx/source/sdr/overlay/overlaymanagerbuffered.cxx
	svx/source/xoutdev/_xoutbmp.cxx
	sw/source/core/view/viewsh.cxx
	sw/source/filter/ww1/w1filter.cxx
	sw/source/filter/ww8/ww8par.hxx
	sw/source/ui/dochdl/swdtflvr.cxx
	toolkit/source/awt/vclxbitmap.cxx
	toolkit/source/helper/vclunohelper.cxx
	vcl/Library_vcl.mk
	vcl/Package_inc.mk
	vcl/aqua/source/dtrans/DataFlavorMapping.cxx
	vcl/aqua/source/dtrans/OSXTransferable.cxx
	vcl/aqua/source/dtrans/PictToBmpFlt.cxx
	vcl/aqua/source/dtrans/PictToBmpFlt.hxx
	vcl/inc/vcl/alpha.hxx
	vcl/inc/vcl/bitmap.hxx
	vcl/inc/vcl/bitmapex.hxx
	vcl/inc/vcl/pngwrite.hxx
	vcl/inc/vcl/salbtype.hxx
	vcl/inc/vcl/wall.hxx
	vcl/source/gdi/animate.cxx
	vcl/source/gdi/bitmap2.cxx
	vcl/source/gdi/bitmapex.cxx
	vcl/source/gdi/bmpconv.cxx
	vcl/source/gdi/cvtsvm.cxx
	vcl/source/gdi/impgraph.cxx
	vcl/source/gdi/impimagetree.cxx
	vcl/source/gdi/metaact.cxx
	vcl/source/gdi/wall.cxx

Change-Id: I79938bc412c048c3d4e64f430f216e73bec16167
2013-06-13 14:50:46 +01:00
Fridrich Štrba
0986d0d558 mingw64: cast to pointer from integer of different size in extensions
Change-Id: Ie2162b71e4e9de9fe24ce54815e5139774bb2ec0
2013-06-10 14:03:38 +02:00
Fridrich Štrba
3e7eb8bcad mingw64: Use the *LongPtr Windows api
Change-Id: I00c753f71460bee9f2bce3af35b352a25a3b8484
2013-06-10 14:03:37 +02:00
Noel Grandin
177f01b9fe fdo#46808, Convert form::inspection::FormComponentPropertyHandler
.. to new style service

Change-Id: Iee4681f94dc9874271dc8a1d5d74e161d7691a29
2013-06-10 10:20:45 +02:00
Julien Nabet
7bdd928c35 Fix typo: alway -> always
Change-Id: I60b4a6086a6e114ff4895755e4c20dfb402a1979
2013-06-08 13:45:37 +02:00
Fridrich Štrba
35a65baefe Slowly, but surely going on compiling for mingw64
Change-Id: I590aa6a854a040281bf73d5be768c05d4906a984
2013-06-06 15:52:05 +02:00
Fridrich Štrba
be8855ebe4 Some more win64 "fixes"
Change-Id: Id3de720a7ab28499644881e628a18f99121cb3c9
2013-06-05 16:26:13 +02:00
Michael Meeks
05e2d2bf03 fdo#64962 - ignore exceptions from checking with the update service.
Change-Id: If627b303f8710b915dcbdcb899454631f607e217
2013-06-05 13:03:22 +01:00
Noel Grandin
95c0d568fd use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.

Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-06-05 08:13:23 +02:00
Noel Grandin
cee55a2c54 fdo#46808, Convert a copy of ComponentContext to XComponentContext
Looks like this extensions had a modified copy of
comphelper::ComponentContext in it.

Change-Id: I7e29aea4e6480a619f3148530fe6d784efe260e1
2013-06-05 08:13:22 +02:00
Noel Grandin
dcbaf7c253 remove unused componentcontext.hxx includes
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-05 08:13:21 +02:00
Julien Nabet
b532752e7b Fix variable value reassigned before old value used
Change-Id: Ide65a35d1dd39cbce9230f951bcc229b0df7b634
2013-06-03 23:09:44 +02:00
Michael Meeks
1e4422a4b4 re-base on ALv2 code. Includes:
Patches contributed by Mathias Bauer
        gnumake4 work variously
        http://svn.apache.org/viewvc?view=revision&revision=1394707
        http://svn.apache.org/viewvc?view=revision&revision=1394326
        http://svn.apache.org/viewvc?view=revision&revision=1397337
        http://svn.apache.org/viewvc?view=revision&revision=1397315
        http://svn.apache.org/viewvc?view=revision&revision=1396797

	Patches contributed by Andre Fischer
	Fixed getcsym.awk to handle #-comments that contain special regexp chars.
        http://svn.apache.org/viewvc?view=revision&revision=1230971
	118778: Added ADDITIONAL_REPOSITORIES environment variable and its
	automatic setup in configure.
        http://svn.apache.org/viewvc?view=revision&revision=1232004
	118160: Added external CoinMP library.
        http://svn.apache.org/viewvc?view=revision&revision=1233909

	Patches contributed by Herbert Duerr
	#i119168# use generic LICENSE file for langpacks and sdks
        http://svn.apache.org/viewvc?view=revision&revision=1310178
	macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars
        http://svn.apache.org/viewvc?view=revision&revision=1183367
	allow gbuild with empty sysroot on linux
        http://svn.apache.org/viewvc?view=revision&revision=1179186

	Patches contributed by Ingo Schmidt
	native373: #164472# improvements for msi database
        http://svn.apache.org/viewvc?view=revision&revision=1167540
        http://svn.apache.org/viewvc?view=revision&revision=1167539

	Patches contributed by Jurgen Schmidt
	adapt setup package scripts to handle special DS_Store file for
	developer snapshot builds
        http://svn.apache.org/viewvc?view=revision&revision=1232430
	imported patch extensions_i117681.patch
	http://svn.apache.org/viewvc?view=revision&revision=1172102

	Patches contributed by Michael Stahl
	gbuild: RepositoryFixes.mk should be optional
        http://svn.apache.org/viewvc?view=revision&revision=1166123
	xslt filter: remove the FLA horror
	wordml import filter: replace FLA usage with plain XSLT
	http://svn.apache.org/viewvc?view=revision&revision=1363727

	Patch contributed by Oliver-Rainer Wittmann
	i#88652: applied patch, remove unicows deps
	http://svn.apache.org/viewvc?view=revision&revision=1177585

    Remove lots of OS2 conditionals, re-extract Rhino Java, unwind
    cppunit pieces, cleanup Mac image bits, remove coin-mp and
    re-package lpsolve, Oxygen & Crystal, fixup qstart bits, expand
    MPLv2 subset checking.

Change-Id: Iad5c8a76399620b892671633c0d8c29996db3564
2013-06-03 11:41:36 +01:00
Tor Lillqvist
f5cd4c2bdd WaE: unused parameter '_rxContext'
Change-Id: I75c9d894f792dd7a4ac85acace586e163d57c077
2013-06-03 11:30:31 +03:00
Noel Grandin
2838b8eb5e fdo#46808, Convert ComponentContext in connectivity,extension..
...modules.

Change-Id: Ie61976dc12b514bb85ca42496c0d9173a1c56264
2013-06-03 10:00:02 +02:00
Noel Grandin
1f79707438 fdo#46808, Convert office::Quickstart service to new style
Service already existed, just needed an IDL file.

Change-Id: Ief5563e53c7331b65dd429079180c4eed2f2c071
2013-06-03 10:00:01 +02:00
Noel Grandin
0f627e06c9 fdo#46808, Convert form::TabOrderDialog service to new style
The service already existed, it just needed an IDL file.

Change-Id: I10219da7292db5e746a89028ddc4fabb069ac388
2013-06-03 10:00:00 +02:00
Lionel Elie Mamane
979b570f76 setPropertyValue can throw PropertyVetoException
fixes abort in report design when entering e.g. invalid positions or size for control

Change-Id: I38835ed79d5bee15c4d7b57ab6780050d250732a
2013-05-30 14:34:54 +02:00
Ariel Constenla-Haile
7e7e4c7a38 Resolves: #i121216# Allow unique logger file name
(cherry picked from commit a9606aa4d8a6bcb3955d991ee45c56cb93be2450)

Conflicts:
	officecfg/registry/schema/org/openoffice/Office/Logging.xcs

Change-Id: I25719f2898df2f91ef9c71234e9eab83f8140b96
2013-05-28 09:14:15 +01:00
Noel Grandin
1d1825db86 fdo#46808, Convert awt::UnoControlDialog to new style
Change-Id: I9a5256c8dbacda60167403b4e26900588943a9b2
2013-05-28 08:10:22 +02:00
Stephan Bergmann
e36f83d81c Revert "fdo#46808, Convert awt::UnoControlDialogModel to new style"
This reverts commit 6c61b20a8d.  As discussed at
<http://lists.freedesktop.org/archives/libreoffice/2013-May/052449.html> "Re:
fdo#46808, Convert awt::UnoControlDialogModel to new style problem" why the odd
change in 2e2a4827ce "scripting: get
CreateUnoDialog() work again" appears to fix things again:

  The problem is that the implementation of the css.awt.UnoControlDialogModel
  involves UNO aggregation
  (IMPL_CREATE_INSTANCE_WITH_GEOMETRY(UnoControlDialogModel) in
  toolkit/soruce/helper/registerservices.cxx creating a
  OGeometryControlModel<UnoControlDialogModel> instance that aggregates a
  UnoControlDialogModel instance).  That means that queryInterface can return a
  reference to something that is technically a different object, and that's
  what's happening here, and explains why calling setPropertyValue in two
  different ways on what logically appears to be a single object can end up
  calling two different implementations (of two different physical objects).
  (UNO aggregation is known to be broken and should not be used.  Nevertheless,
  there's still code that does---code that is a horrible mess and hard to clean
  up.)

  That all this worked as intended in the past is just sheer luck, but any
  way of substantially touching it is asking for trouble.  I'm going to
  revert 6c61b20a8d again.

I wasn't able to revert without also reverting
be50ad28f5 "fdo#46808, Convert
awt::XUnoControlDialog to new style," as the two were tightly dependant.  Also
reverts all the follow-up fixes cb4b6dde8f
"-Werror,-Wuninitialized" (sans the const-ness fix in
UpdateHandler::insertControlModel), 697a007c61
"Fix exception specifications," 2ce6828bbb "fix
awt::UnoControlModelDialog crash," and 2e2a4827ce
"scripting: get CreateUnoDialog() work again."

Conflicts:
	basctl/source/dlged/dlged.cxx
	filter/source/t602/t602filter.cxx
	xmlscript/test/imexp.cxx

Change-Id: I5d133468062f3ca36300db52fbd699be1ac72998
2013-05-25 11:45:47 +02:00
Ariel Constenla-Haile
1bfbe4963d Fix build breaker
(cherry picked from commit 4f7c31cdcf7ba9558e59bc345b3925f6b3d2695c)

Change-Id: Iccb1de40dc66d94128d4db2ca08b05b7e4c567f5
2013-05-23 15:19:12 +01:00
Ricardo Montania
b7df3446c3 AppendAscii cleanup
Change-Id: I7398272de0bd340ebfb5f31b314d32fcff007eec
Reviewed-on: https://gerrit.libreoffice.org/3974
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-22 21:03:56 +00:00
Noel Grandin
6a043e9c0a Use the new type-checking Reference constructor to reduce code noise
Also create a Clang compiler plugin to detect such cases.

Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752
Reviewed-on: https://gerrit.libreoffice.org/4001
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-05-22 10:44:29 +00:00
Stephan Bergmann
cb4b6dde8f -Werror,-Wuninitialized
Bogus

  uno::Reference< awt::XControlModel > xControlModel = xControlModel;

introduced with 6c61b20a8d "fdo#46808, Convert
awt::UnoControlDialogModel to new style."  Correct fix involves adding missing
"const" in declaration of UpdateHandler::insertControlModel, so implicit
Reference up-cast works.

Change-Id: I8f6d679a38d99188eb893366e9b552974b3c1bf2
2013-05-21 16:29:31 +02:00
Noel Grandin
be50ad28f5 fdo#46808, Convert awt::XUnoControlDialog to new style
Change-Id: I40d2e2ddd92186a2ba22ebfbdda8367391e8d355
2013-05-21 08:23:59 +02:00
Noel Grandin
6c61b20a8d fdo#46808, Convert awt::UnoControlDialogModel to new style
Change-Id: I4b912034ef3f4855b87d6d6f18ff13bd1ecc8f72
2013-05-21 08:23:58 +02:00
Tor Lillqvist
026001cd5a Avoid linker warning LNK4222
These symbols should not be assigned an ordinal as they are always
located by name, using GetProcAddress(), says MSDN.

Change-Id: I46caf7da634b1379a5baf5de631571335c6134ca
2013-05-20 12:45:11 +03:00
Tor Lillqvist
cb6d67c21f Spelling "separate" (etc) correctly is hard 2013-05-15 11:14:28 +03:00
Ariel Constenla-Haile
b9d460f18b Related: #i120413# document helpful precalculated CheckInterval vals
(cherry picked from commit 1045898eb4be2f19d8435e86ff600f4d9541abf9)

Conflicts:
	extensions/source/update/check/Jobs.xcu

Change-Id: Iddf1ba34bd6a48ae64c3b7b104d2e942f39df244
2013-05-11 21:11:35 +01:00
Michael Stahl
09373d4583 soltools: remove Package_inc and empty unistd.h nonsense
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
2013-05-10 17:56:24 +02:00
Andras Timar
e1a5110bd9 support MS Office and Flat ODF file types in Mozilla Plug-in
Change-Id: I9bb3b67551dc14fd74e02defa0404e1f83359f2b
2013-05-08 22:07:33 +02:00
Julien Nabet
9d85fe82bc coverity#982973: Resource leak
Change-Id: I1ea51b29c3ad05016f42c215b71877cd8c3f92f4
Reviewed-on: https://gerrit.libreoffice.org/3821
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-05-08 08:47:57 +00:00
Stephan Bergmann
7ef1aa6876 -Werror=unused-macros
Change-Id: I9fd616930eb0b336ce89e97bc333f19d4cf449ae
2013-05-07 11:53:56 +02:00
Philipp Riemer
2ce25faffd fix typos (wich instead of which) 2013-05-06 20:07:23 +02:00