Commit Graph

6680 Commits

Author SHA1 Message Date
Noel Grandin
0ac9a10d31 fdo#46808, Deprecate configuration::ConfigurationProvider old-style service
...in favor of existing new-style configuration::theDefaultProvider singleton.

Theoretically, ConfigurationProvider instances can be created with specific
Locale and EnableAsync arguments, but this is hardly used in practice, and thus
effectively all uses of the ConfigurationProvider service use the
theDefaultProvider instance, anyway.

theDefaultProvider is restricted to the XMultiServiceFactory interface, while
ConfigurationProvider also makes available XComponent.  However, dispose must
not be called manually on theDefaultProvider singleton anyway, and calls to
add-/removeEventListener are so few (and in dubious code that should better be
cleaned up) that requiring an explicit queryInterface does not really hurt
there.

This commit originated as a patch by Noel Grandin to "Adapt
configuration::ConfigurationProvider UNO service to new style [by creating] a
merged XConfigurationProvider interface for this service to implement."  It was
then modified by Stephan Bergmann by deprecating ConfigurationProvider instead
of adding XConfigurationProvider and by replacing calls to
ConfigurationProvider::create with calls to theDefaultProvider::get.

Change-Id: I9c16700afe0faff1ef6f20338a66bd7a9af990bd
2012-10-31 15:31:36 +01:00
Caolán McNamara
502be5d920 default ScrolledWindow to autoscroll
Change-Id: I5297e4b9480066000bf6d72e54a5d8117528b90c
2012-10-31 14:16:54 +00:00
Caolán McNamara
b57f978104 support cursor-visible property
Change-Id: I2dfb2fa16c64035ef529cec650df7e4bd9c80483
2012-10-31 14:16:54 +00:00
Stephan Bergmann
ced1151a1a Get rid of vcl::unohelper::GetMultiServiceFactory
...which effectively is just a glorious wrapper around
comphelper::getProcessServiceFactory.

In turn gets also rid of ImplSVAppData's mxMSF and mpMSFTempFileName and the
rSMgr parameter to InitVCL.

All the VCL users "soffice", "spadmin", and "unopkg gui" appear to still work
fine.

Change-Id: I797d48f7d0d8c35bb82124c9ab0ee63850c4d863
2012-10-31 09:22:53 +01:00
Noel Grandin
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
Caolán McNamara
4a11a47103 trivial empty-init String::Fill -> comphelper::padToLength
Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e
2012-10-30 00:05:59 +00:00
Noel Grandin
8fff6bf6bd fdo#46808, Adapt i18n::LocaleCalendar UNO service to new style
Did not need to create a new interface, because XCalendar3
already covers the whole service interface.

Change-Id: Iaf094014c16e872d2003ca6e8e7588abd081d882
2012-10-29 17:32:57 +01:00
Caolán McNamara
0dd085f8f3 UniString->rtl::OUStringBuffer
Change-Id: I9938d7c4ab5594baeb10f405f0aa0964ef84d6c5
2012-10-28 23:09:32 +00:00
Caolán McNamara
d21eb6bc91 add hook to block use of markup in .ui files
Change-Id: Ia7eed5e9e1f8fba9876730e909461dabc167deb9
2012-10-26 12:58:56 +01:00
Caolán McNamara
55619c1028 set width in chars for url field to avoid character dialog overgrowing
Change-Id: I892a77f65ad420d0fbf4b95179e4bcfc2ec55192
2012-10-26 12:12:03 +01:00
Caolán McNamara
d3fb6d227c remove .ui mark-up in favor of font attributes
so we can keep translations markup free, and it matches
better our existing font use in controls

Change-Id: Ib762030f8bf831f2b0afabdd643508e660ad9266
See: https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages
2012-10-25 15:32:09 +01:00
Caolán McNamara
7b45dfe097 convert Mnemonic markup automatically
Change-Id: I55b6bf11468ce958aea7c98894d3a76343b53a9a
2012-10-25 12:04:26 +01:00
Michael Stahl
f260c656da vcl: uipreviewer: remove spurious "return false"
Change-Id: Ie853d55f78f27a7249b8e960587c8d2bd833d1a7
2012-10-24 21:58:26 +02:00
Caolán McNamara
e0c4e1f8b7 honour padding property in VclBox
Change-Id: Ie387898535ec8f638c4a2a2785cdb39273136f0e
2012-10-24 16:28:55 +01:00
Caolán McNamara
4cc5ccef4b convert index dialog to .ui
Change-Id: I4b16cb517dca25f862b9dd612785dae4d0f21793
2012-10-24 15:39:27 +01:00
Caolán McNamara
b9326cf05f improve optimal height of empty comboboxes
Change-Id: I481e079136ab0496ac79b60931bfce8509b4af23
2012-10-24 15:39:27 +01:00
Caolán McNamara
88fe7d133b refactor buttonbox calculations to allow nonhomogeneous buttons
Change-Id: If0f3c09a2fb6577615f33576fee1dde5b627ca82
2012-10-24 15:39:27 +01:00
Caolán McNamara
0853819285 merge and correct buttonbox spacing calculation
Change-Id: Ibd378c85c6b7cf774ed2a6f652264a2a78bfe366
2012-10-24 15:39:26 +01:00
Caolán McNamara
39c9ef3991 map some more stock images
Change-Id: I19fbc2062b2857e194d5850f2febea514fde50d9
2012-10-24 15:39:26 +01:00
Noel Grandin
e8aa70b5d4 fdo#46808, convert comphelper::ConfigurationHelper to XComponentContext
Convert the helper methods to take an XComponentContext parameter,
instead of XMultiServiceFactory.

Change-Id: I9f0098af37b91f107d8799f14caa04756eac82b1
2012-10-24 11:29:53 +02:00
Noel Grandin
c0f865c9b5 fdo#46808, use service constructor for i18n::BreakIterator
Note that I found a pre-existing bug in linguistic/source/gciterator.cxx
but I was not able to fix it, because doing so appears to expose
bugs elsewhere!

Change-Id: I17fb9108d98a98d0ae13fe5a8e043d2db5b27a6a
2012-10-23 15:27:49 +02:00
Ivan Timofeev
9dbb62555f disable cursor in about dialog and message boxes
Change-Id: I060872e0a468f2ce26a2ab519c5bfe271574170b
2012-10-22 17:25:12 +04:00
Caolán McNamara
920807d449 Resolves: rhbz#868479 / fdo#56281 doubled ~ in German ok/cancel translations
We have unix-specific code adding ~ to OK/Cancel. So don't add ~ if
string already contains those.

Though its an open question if the presence of ~ is a bad thing
for the Windows case. i.e. if we should have tooling to not
allow the OK/Cancel translations to contain ~ in the first place,
of if we should drop the ifdef UNX and do it globally now

Change-Id: I461c6ac9ca574ed188f51472919be82ec582e389
2012-10-22 13:35:09 +01:00
Caolán McNamara
3c71a0bae6 explictly require Bitmap to get image
Change-Id: I0f7e0510f6c946be7cf930659db961d3c17e1c4f
2012-10-22 13:35:09 +01:00
Stephan Bergmann
dedff8f84c -Werror,-Wtautological-constant-out-of-range-compare
Change-Id: I320c11d4b3d295c65dcd966f70a2de4f05926ebb
2012-10-22 11:31:38 +02:00
Caolán McNamara
841b975a09 implement secondary button groups in buttonboxes
Change-Id: I0e60b7e197ba4f6ebd3f24cb2e9072ce3e1353fb
2012-10-22 10:28:45 +01:00
Caolán McNamara
ca6aa93fd4 add infrastructure for secondary button groups
Change-Id: I5fd1bbc31a0259e92f6eb23beef5d3c77b74eed8
2012-10-22 09:13:39 +01:00
Caolán McNamara
324e116a2e add a stock index image to vcl, ala gtk-index
Change-Id: I96cd80f14d557752c19b88bb2c99298d7c3e3e0b
2012-10-22 09:13:38 +01:00
Caolán McNamara
17d08d421e use correct deferred parent window
Change-Id: Id9d56d9f014cee216f1478d764082b97ddd30b01
2012-10-20 00:56:59 +01:00
Caolán McNamara
e92b3a092b deliberately no parent for dialog
Change-Id: Id28797b9c40694e1b43d1fdd1205833562d760b9
2012-10-20 00:56:58 +01:00
Jan Holesovsky
bfa21ce5fa fdo#44657 Remove hack that "simulates" a mirrored horizontal scrollbar.
We are able to paint mirrored scrolbars with the 'gen' plugin, so just fix the
rendering of the scroolbar with the Gtk+ plugin.

Change-Id: I5dbd13420c6290e165ed2f5827769979298abf37
2012-10-19 14:51:23 +02:00
Norbert Thiebaud
8eb5db8997 replace sxub_Unicode by sal_Unicode
Change-Id: Icf4b434a1961cc4964ee6e362491868e898a1831
Reviewed-on: https://gerrit.libreoffice.org/887
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-19 10:55:56 +00:00
Caolán McNamara
e20ebf2653 support width-chars property for labels
Change-Id: Iba51f30a5e74d1e486bce10901ccb58f3488ce97
2012-10-18 22:07:56 +01:00
Caolán McNamara
9aa8e185d4 minimize calls to queue_resize
Change-Id: Idbb7da30c985253a37ff6fe0e86fe04dec2dbbeb
2012-10-18 21:48:41 +01:00
Caolán McNamara
3b696181eb SetMaxWidthInChars should be SetMinWidthInChars
Change-Id: I5cf508e7930eb7e04016ffa43683f76a07e5173e
2012-10-18 21:45:26 +01:00
Caolán McNamara
4e5fdfb31e add stock new and edit button texts
Change-Id: Ia8f5f6592211e50323de66a4177f752a1adcf584
2012-10-18 21:31:09 +01:00
Caolán McNamara
47391fb139 XubString->OUString
Change-Id: I45ddca425871eb19aabd9876b64c2e2dac5bc774
2012-10-17 16:06:34 +01:00
Caolán McNamara
c648d42878 annoying border/child window confusion
Change-Id: I6ab919ff326a8525d1bed7db6474764de4e5bcf0
2012-10-17 16:06:31 +01:00
Caolán McNamara
e8029a19ec super simple bold/italic label support
Change-Id: I2c42b344139ca2603e1e5392e9d15d89d07986d5
2012-10-17 16:06:27 +01:00
Norbert Thiebaud
9048f4e010 cid 703925 : strncpy can lead to non-null terminated string
Change-Id: Idfe2278d0008715a2e0f06d60df9af430e4df25c
Reviewed-on: https://gerrit.libreoffice.org/874
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-15 14:02:01 +00:00
Caolán McNamara
12a971118f don't process empty grid cells
Change-Id: Ibd8ea6a40ced219c5f64d1c04df28b85c99a00bb
2012-10-12 12:51:35 +01:00
Caolán McNamara
0ac7f6120e Resolves: fdo#55685 SvxLanguageBox is in svxcore not in svx
Change-Id: I50f68674e057dd358357d611bbbbb3332d8cd00b
2012-10-12 10:43:00 +01:00
Caolán McNamara
5551d2776d handle ui-previewer on .ui in cwd
Change-Id: If13c5494ffb960e943fa8d2c99f2da28b5f95736
2012-10-12 09:19:42 +01:00
Zolnai Tamás
ec14fbd00b Correct misnomer in vclmedit.hxx/.cxx
Originally vclmedit was in svtools and during
moving it down to vcl sv prefix was not removed
everywhere.

Change-Id: I7693a33f59d9f31b00f368ad992f86b3fce3a984
Reviewed-on: https://gerrit.libreoffice.org/859
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2012-10-11 19:44:39 +00:00
Caolán McNamara
c08c67c8a0 add a get_label_widget to VclFrame
Change-Id: Ia0561a5f185878342b15be54c6147aa1c81fa9ef
2012-10-11 17:31:25 +01:00
Caolán McNamara
1a3a787766 import password echo char setting
Change-Id: I36a82a8bb915e72a191787a2e44f9bd814271ea1
2012-10-11 11:15:41 +01:00
Caolán McNamara
d7cdef2c49 VCLMultiLineEdit->VclMultiLineEdit to align with other new widget names
Change-Id: I97b7459b9c5c680d624234e8c51a5997a02fd5f7
2012-10-11 09:21:42 +01:00
Caolán McNamara
e38d9aa925 add a stub ScrolledWindow to store scroll properties
e.g. VclMultiLineEdit manages its own scrolling, so just
store that info in a dummy ScrolledWindow for now and
set the scroll window settings onto the VCLMultiLineEdit
if it has a scrolledwindow parent

Change-Id: I8f7282e1348aa4e9ff77cce384dcc367b17bd3b0
2012-10-11 09:21:42 +01:00
Caolán McNamara
40796af946 map GtkTextView to VCLMultiLineEdit
Change-Id: I05c4b4d50400035a2542e375a773ed6d867187e6
2012-10-10 16:08:29 +01:00
Caolán McNamara
f2b34cb356 merge double fix
Change-Id: Id213a881bbb56fbd6a8e16e8a40ce1dc3e57cab7
2012-10-09 21:33:20 +01:00