Commit Graph

1221 Commits

Author SHA1 Message Date
30fc8e2a48 typo: foreward -> forward 2014-04-14 12:32:43 +02:00
745ef97de4 FS_DEBUG is never defined 2014-04-14 12:31:52 +02:00
6835d9f307 It's "its", not "it's"
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-10 20:22:50 +03:00
99007fdb8e coverity#708589 Uninitialized pointer field
Change-Id: Ifc584276b32e517cb3105133de731e068851254b
2014-04-02 15:51:17 +01:00
50bf123ddb Kill superfluous vertical whitespace
Change-Id: I81ce8fd7022bf283db668705efdfb0666f87bde9
2014-04-02 16:54:18 +03:00
7c860af19b vcl: FixedHyper - take into account text alignment
Change-Id: Icc9b4d73cd2e4945299cbaaa1b55eebc3e1e3922
2014-04-01 10:58:24 +02:00
977aae0cde fdo#74702 Moved EnableRTL() logic to specific classes where appropriate
OutputDevice::EnableRTL() is a bit of a mess. It uses a runtime
variable to see if it is using a VirtualDevice, and it uses a
dynamic_cast to see if the object is a Window or a Control!

I have made it virtual and moved the knowledge of class specific
functionality from OutputDevice to VirtualDevice, Window and Control
as needed. OutputDevice::EnableRTL() functionality is then called.

Also: small formatting change to outdev.hxx, also included a note
that WindowImpl is a pimpl in window.hxx.

Change-Id: I44b66601c4457fb2e0bbc1014fb7acf8f6942f80
Reviewed-on: https://gerrit.libreoffice.org/8721
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-03-25 12:17:01 +00:00
d2bc27c85b Resolves: fdo#76457 image buttons too narrow
but we liked the size of the symbol buttons

regression since 1f6e88276006bea5d597ee6ca6fdf3af4dbf5ffd

Really the PushButton::CalcMinimumSize and PushButton::ImplDrawPushButton are
the better place to handle this, but its such a train-wreck

Change-Id: Ib7ba00c6a9c2698ff4e4f264c4242bf48a686da8
2014-03-21 20:38:26 +00:00
3b1cca8c54 Related: fdo#74468 drop hard-coded 'sec' and use FUNIT_SECONDS
Change-Id: I11e2aa39d77c01446387b13ba4bc9f40b61a958a
2014-03-21 17:00:28 +00:00
d40971a478 MoreButtons cannot be loaded from .src anymore
Change-Id: Ib831895b33323dd478cc125b3bf93c43826ef59d
2014-03-13 11:18:36 +00:00
8238047848 callcatcher: update unused code
Change-Id: I0cfdeefea35d3cb9f00ec4351a1f0f8c58ba5843
2014-03-13 11:18:35 +00:00
59b428189d Avoid possible resource leaks by boost::scoped_array
Change-Id: I3a9131d75690e18caec4c328934735a9ca19e7ca
2014-03-11 09:30:49 +09:00
6f57b77c35 callcatcher: update unused code
Change-Id: I0d7f204473bd5fcddf2342850a16194fdb385c13
2014-03-10 11:36:23 +00:00
1f6e882760 arrow buttons seem too big
Change-Id: I18b16b445c435cc4685712d9cdac4ad23f333f5a
2014-03-07 16:26:44 +00:00
f4f2ba8dd1 callcatcher: update unused code
Change-Id: I6487e6ede0a50d88a4f8c3d3b07bdad2603aa4b4
2014-03-07 10:22:17 +00:00
e4d8bf7426 ReadShortRes() actually reads a wannabe unsigned here
Insert Hyperlink dialog crashed, for example.
Plus some more sanity checks to guard against negative listbox positions
passed.

Change-Id: I6458df6aab3abebfaf64d767013b57db76872eec
2014-03-06 17:17:50 +01:00
68ec95b3f8 made ListBox handle more than 64k elements, fdo#61520 related
ListBox and related now handle up to sal_Int32 elements correctly.
sal_Int32 instead of sal_Size or size_t because of UNO and a11y API.
Also disentangled some of the mess of SvTreeList and other containers
regarding sal_uInt16, sal_uLong, long, size_t, ... type mixtures.

Change-Id: Idb6e0ae689dc5bc2cf980721972b57b0261e688a
Reviewed-on: https://gerrit.libreoffice.org/8460
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2014-03-05 07:31:19 -06:00
c12389d9ee explicitly invalidate contained ImplListBoxWindow
I've seen this a few times where on being Enabled/Disabled
the list boxes don't redraw to their new state.

I can reproduce this reliably now with the chart wizard and
the "shape" listbox when toggling the 3d-look checkbox

Change-Id: I7a67373f45baeb18763ac4f8027e48b0c039455d
2014-03-03 13:27:10 +00:00
8353589e7a WaE: implicit conversion (IntegralCast) from bool to 'int'
These two functions should surely be of type bool.
2014-02-28 11:37:07 +02:00
b530a91f05 WaE: implicit conversion (IntegralCast) from bool to 'long'
Use the proper RET_OK amd RET_CANCEL parameters to EndDialog().

Change-Id: I2500e5e9793ee98c8cf38fc094d9f984576b67db
2014-02-28 11:32:08 +02:00
381f8a5673 sal_Bool -> bool in mostly vcl module
Conflicts:
	include/vcl/settings.hxx
	svtools/source/table/tablecontrol_impl.cxx
	sw/source/core/frmedt/fecopy.cxx
	vcl/inc/canvasbitmap.hxx
	vcl/inc/headless/svpframe.hxx
	vcl/inc/unx/salframe.h
	vcl/inc/win/salframe.h
	vcl/inc/win/salprn.h
	vcl/inc/win/salvd.h
	vcl/osx/DragSource.cxx
	vcl/osx/DragSource.hxx
	vcl/osx/DropTarget.cxx
	vcl/osx/DropTarget.hxx
	vcl/osx/OSXTransferable.cxx
	vcl/osx/OSXTransferable.hxx
	vcl/osx/clipboard.cxx
	vcl/osx/clipboard.hxx
	vcl/osx/salprn.cxx
	vcl/qa/cppunit/canvasbitmaptest.cxx
	vcl/source/components/fontident.cxx
	vcl/source/control/edit.cxx
	vcl/source/control/spinfld.cxx
	vcl/source/gdi/gdimtf.cxx
	vcl/source/gdi/virdev.cxx
	vcl/source/helper/canvasbitmap.cxx
	vcl/source/window/dockwin.cxx
	vcl/unx/generic/dtrans/X11_selection.hxx
	vcl/unx/kde/UnxFilePicker.cxx
	vcl/unx/kde/UnxFilePicker.hxx
	vcl/unx/kde4/KDE4FilePicker.cxx
	vcl/unx/kde4/KDE4FilePicker.hxx
	vcl/unx/kde4/KDESalFrame.hxx

Change-Id: I9866d985da86dea2a56feff23f91c1467a1636b0
Reviewed-on: https://gerrit.libreoffice.org/8219
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-28 03:19:47 -06:00
779b808df1 bad
Change-Id: Ife660e5738d862e28260abe412817fb06272f4e8
2014-02-27 13:14:20 +00:00
583c0ee3e1 coverity#1187660 Dereference after null check
Change-Id: I41a05e34c9b1dd312602f2c499793a4568473394
2014-02-27 12:57:49 +00:00
f6e0d356b7 Removed unnecessary comment decorations and wspace from VCL sources
Change-Id: I190b57bb476a35ede1b6050f3c1edabd0ab00397
Reviewed-on: https://gerrit.libreoffice.org/8374
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-27 06:43:20 -06:00
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
81afed113d Removed unnecessary comment decorations from VCL sources
Conflicts:
	vcl/headless/svpgdi.cxx
	vcl/source/app/dbggui.cxx
	vcl/source/app/help.cxx
	vcl/source/app/idlemgr.cxx
	vcl/source/app/settings.cxx
	vcl/source/app/stdtext.cxx
	vcl/source/app/svdata.cxx
	vcl/source/app/svmain.cxx
	vcl/source/control/fixed.cxx
	vcl/source/control/ilstbox.cxx
	vcl/source/control/spinbtn.cxx
	vcl/source/filter/sgfbram.cxx
	vcl/source/filter/sgvmain.cxx
	vcl/source/filter/sgvtext.cxx
	vcl/source/filter/wmf/emfwr.hxx
	vcl/source/filter/wmf/winmtf.hxx
	vcl/source/filter/wmf/wmfwr.hxx
	vcl/source/fontsubset/cff.cxx
	vcl/source/fontsubset/fontsubset.cxx
	vcl/source/fontsubset/xlat.cxx

Change-Id: Ifc4fa21e552a8b031645eb883bdc23563eebb602
Reviewed-on: https://gerrit.libreoffice.org/8357
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 05:48:00 -06:00
d9f0af83b7 Remove visual noise from vcl
Conflicts:
	vcl/source/app/settings.cxx
	vcl/source/window/dockmgr.cxx
	vcl/source/window/dockwin.cxx
	vcl/source/window/floatwin.cxx
	vcl/source/window/toolbox2.cxx

Change-Id: Ie67681549a76e77064b09d4b5bf80fe4c6010341
Reviewed-on: https://gerrit.libreoffice.org/8339
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 04:56:16 -06:00
33740b7d5a Replace exisiting TriState, AutoState with more generic TriState
Change-Id: Ida05478aae5a379775c671e0c2f2851d820d78be
2014-02-24 12:27:32 +01:00
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
7e8ce6c666 coverity#441533 Dereference after null check
Change-Id: Iee024e2a16291aed98c10bfb6c33af6b17d44e4e
2014-02-23 03:28:22 +00:00
076a7eacca Bug #63962 Dynamically scan the config directory for icon themes
The hard-coded icon themes have been replaced by a dynamic list
which is filled by scanning the config directory

Conflicts:
	include/vcl/settings.hxx
	vcl/source/app/settings.cxx
	vcl/source/window/window.cxx

Change-Id: Ie3680ffe27d06e375acf22753e036cb6ddabc4ed
Reviewed-on: https://gerrit.libreoffice.org/7935
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-21 17:23:50 +00:00
e8f8f24c84 vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21 12:53:51 +01:00
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
49cecd8b41 Related: fdo#74242 hook up a selection and caret change for multiline edits
a) split the textengine selection changed broadcast into a text selection changed
and text caret change event
b) handle both in existing places that handled the text selection event
c) listen for them in VclMultiLineEdit and translate to
VCLEVENT_EDIT_SELECTIONCHANGED VCLEVENT_EDIT_CARETCHANGED events
d) profit from the VCLEVENT_EDIT_SELECTIONCHANGED and
VCLEVENT_EDIT_CARETCHANGED handling in
accessibility/source/standard/vclxaccessibleedit.cxx for VCLXAccessibleEdits

Change-Id: I09187e76ae4eb189ee9469e388374154087faf80
2014-02-19 15:32:00 +00:00
973b47a336 unotools: sal_Bool -> bool
Change-Id: I8051c0756e0474a5b4f748e0aa15a9922e82ea97
2014-02-19 12:47:07 +01:00
3d024d29fa Related: fdo#74242 send selection change before caret change
because that's what I see gtk does

Change-Id: Ifa20f4d84fd31ea6fcc640589b72efd00c9665fd
2014-02-19 11:07:12 +00:00
1b2da3df54 enable spin-size for NumericField too
Change-Id: I77660572947f7a863982be7742cbcb1c784379ed
2014-02-13 14:19:47 +01:00
78ff9d90f2 fdo#74468 fix timing of slide transitions
Regression since commit 16428c9600964a4945cf6fd0d938dea047d1248b.

Change-Id: Id274c21e08d10d2e727f3b5a3fd852cd297e4637
2014-02-13 14:19:46 +01:00
76f5ce409f more similar handling of InputSequenceChecker as in other places
Change-Id: Ia6efc0eda03dac87c73e720d08f320ce3fc6ce4a
2014-02-11 22:34:36 +01:00
455d970206 Renamed VCL's OutputDevice mirroring functions
I have renamed the following functions:

* ImplReMirror            -> ReMirror
* ImplHasMirroredGraphics -> HasMirroredGraphics

This has been done because these functions are definitely public
and there is no need to prefix them with "Impl" as they are exposed
to other objects.

Change-Id: Ib52493c9824e29a038de2fc35736a5ca863c091a
Reviewed-on: https://gerrit.libreoffice.org/7911
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-07 16:57:53 +00:00
d2d5864462 TabControl::DeactivatePage should return bool
Change-Id: I9fb774a235db2b9bc759976d2d3f84363ed944ec
2014-02-06 15:44:03 +01:00
fba46c6efd fdo#74424 Use Window::GetOutDev() to access ImplReMirrored()
Part of the decoupling of Window from OutputDevice. We now get
he Window's OutputDevice instance and manipulate this. Do not rely
on the inherited function.

Conflicts:
	include/vcl/window.hxx

Change-Id: Ie422df837e1596881b61d34a1627b0ecc668a54e
Reviewed-on: https://gerrit.libreoffice.org/7793
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-05 14:24:16 +00:00
c1d37365c4 bool improvements
Change-Id: Iede12ed1e35581cf48d64b898f22949d0c1aa6de
2014-01-28 20:26:19 +01:00
05534b5523 Resolves: #i124008# listbox entry's are selected automatically...
on mouse over instead of mouse click

(cherry picked from commit ae97dcb5b8d2dead81b007c5c71daf608f0c7bc3)

Change-Id: Ib1ce0db60785ddc96473ef4ce88b578287956164
2014-01-28 11:37:23 +00:00
06cfc634cd coverity#735559 Logically dead code
Change-Id: I75205d46243c18bbd63532aea1965a0e058ef739
2014-01-27 17:03:07 +00:00
c3b888d5be coverity#441000 Logically dead code
Change-Id: I4fa2639b62ee08dc2367cfc975bf673cbed65fb6
2014-01-25 20:56:34 +00:00
c4b217c03e coverity#440998 Logically dead code
Change-Id: Ie7647ef6fb605f14febfb83804b23d8fd62bc717
2014-01-25 20:56:34 +00:00
5e6b8aebf1 coverity#440997 Logically dead code
Change-Id: Id8340d1c5c07026da7f737924d5caf3e6254c340
2014-01-25 20:56:33 +00:00
44348f093e coverity#440996 Logically dead code
Change-Id: I4ef10ab73aa506394f49e5501a4f6c35543cc573
2014-01-25 20:56:33 +00:00
081837dbf5 coverity#440995 Logically dead code
Change-Id: I8494cef9c63895c0d7b0a2377961da2df8f34606
2014-01-25 20:56:33 +00:00