Commit Graph

341 Commits

Author SHA1 Message Date
8792ec7b21 Remove visual noise from include
Conflicts:
	include/framework/preventduplicateinteraction.hxx
	include/sfx2/sfxbasecontroller.hxx
	include/sfx2/sfxbasemodel.hxx
	include/toolkit/awt/vclxtabpagemodel.hxx
	include/vcl/field.hxx
	include/vcl/settings.hxx

Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2
Reviewed-on: https://gerrit.libreoffice.org/8272
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-01 09:51:32 -06:00
cd3211dcf1 WaE: implicit conversion of literal of type 'sal_Bool' to 'bool'
Change-Id: I0b325abc275b672a96c5513d285c0f5764dfb4fe
2014-02-28 11:33:52 +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
3543d2d20b fix name of method in vcl/Menu, SetHightlightItem to SetHighlightItem
Change-Id: I89a61aeffeebc69e06da6c1130436fb25528f1c7
2014-02-28 08:32:02 +02:00
b26047be9f remove unused code Menu::GetHighlightItem()
Change-Id: I9b538bacbb98705b0345c3f6dc38fb554ce25bcf
2014-02-28 08:32:02 +02:00
af63727b9f Resolves: #i15508# Added support for BMP file type
(cherry picked from commit 9956ed1303545cd61901e33b110698c4e5e224c4)

Conflicts:
	filter/source/msfilter/escherex.cxx
	include/vcl/gfxlink.hxx
	svx/source/xml/xmlgrhlp.cxx
	sw/source/ui/docvw/romenu.cxx
	vcl/source/filter/graphicfilter.cxx

Change-Id: Ibcbb69b9c57cd8a438788e9a9c95744e99b6fcdd
2014-02-27 19:30:40 +00:00
1f8c2a2e5c coverity#1187868 Uninitialized pointer field
Change-Id: I6fa813b983d217eb8ce028f9ae13a0cc764e29da
2014-02-27 12:58:52 +00:00
0aee68c3fc coverity#1187863 unused mnExtra2
Change-Id: Ic6a55a3640d782ba95a5ba4681f447ee28ae163e
2014-02-27 12:58:48 +00:00
f61b6894ef GetContextMenuDown is always true
Change-Id: Ib2ce1dd91cc7bfaf38feca7b056874a2508869e6
2014-02-27 12:57:24 +00:00
cb40b7d2f9 callcatcher: update unused code
Change-Id: I560471a3c2ac9d8ccf759fca1d8c30ae00d73484
2014-02-27 12:57:24 +00:00
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
a980928ef8 Remove implementation details from vcl/settings.hxx
This reduces the number of files which need to be recompiled
after a change to the internal details.

Also: Remove explicit assignment operators since they are no longer
needed.

Change-Id: Ieb18a8437fbcd39c6003b50c656ce010f5002d9a
Reviewed-on: https://gerrit.libreoffice.org/8161
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2014-02-26 03:16:46 -06:00
1a48228535 remove unused code Menu::GetItemAccKeyStrFromPos(unsigned short)
Change-Id: Ia6967bd5ae412b473187d8bf5485e56fdc934efb
2014-02-25 15:17:01 +02:00
b510f69859 remove unused code Menu::IsTemporaryItemFromPos(unsigned short)
Change-Id: I90a9116aba75316992d2bddaf2f6466288b95bd0
2014-02-25 15:17:00 +02:00
c47496fdf9 Add config_libraries.h definitions to get library names easily.
Works for libmerged too, so we can get rid of LIBO_MERGELIBS.
And remove few more #defines in vcl.

It's generated by gbuild, so probably abusing config_host directory.
Open to improvements.

Change-Id: I87ab109bf109e42751766011daf076e9cdf8f5ee
2014-02-25 09:05:09 +01:00
6e0bdf04ad sal_Bool arg of SetUseImagesInMenus was abused to squeeze '2' through it
which means that icons suddenly reappeared in the menus when the gtk
theme had disabled them

ref e8f8f24c8415898c787bbfb629247ed62e73a2b9

Change-Id: Ia9aef5ca39bda2ddf6d7c4ebc2bddc01d470d09b
2014-02-24 12:53:14 +00:00
33740b7d5a Replace exisiting TriState, AutoState with more generic TriState
Change-Id: Ida05478aae5a379775c671e0c2f2851d820d78be
2014-02-24 12:27:32 +01:00
d84ccb39b7 SAL_DLLPUBLIC_EXPORT->VCL_DLLPUBLIC
Change-Id: If8127ae939f6e38ab72919150ca6a6109355fb11
2014-02-22 10:03:19 +00:00
630ce26a25 WaE: struct/class inconsistency
Change-Id: Iedb9873bc36fa5854de56738351d3683e245024d
2014-02-21 22:07:07 +02: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
a9cfb745c5 Replace handwritten reference counting with shared_ptr
This will help to avoid race conditions because the shared pointers
are thread safe and use atomic increments.

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

Change-Id: Ie3d27d6412167855a0cea1442676b81b733c15e8
2014-02-21 15:38:03 +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
c76cd71fe9 fdo#41524: CUPS printing: use "collate" option when PDF is available
Assume that the CUPS printer is able to handle collating by itself,
don't send multiple print jobs (except if user clicks on "Create single
print jobs for collated output" of course...).

To enable collating with PDF based printers, add the "collate" option;
legacy PS based printers still get the weird stuff read from the PPD
(not sure what the risks of changing that are).

Change-Id: Ia12dc69f9083bba94f2ed633ecbd153aac7e40ab
2014-02-18 22:56:51 +01:00
edbf8a382a coverity#738938 nMouseSensitivity never used
Change-Id: I59193af4c0b4945ef9612862e57a276cc1d89ea4
2014-02-18 15:18:09 +00:00
d29f6eb1dc extend signatures to make some coverity rework easier
Change-Id: I670eaa51aa95bf29f51bc6542eae2f562987d5a4
2014-02-13 14:56:17 +00:00
0d3082dbf2 callcatcher: update unused code
Change-Id: Iaaad9302ef8edb47fa95ce8ca608b6f36449521b
2014-02-12 13:03:50 +00:00
76f5ce409f more similar handling of InputSequenceChecker as in other places
Change-Id: Ia6efc0eda03dac87c73e720d08f320ce3fc6ce4a
2014-02-11 22:34:36 +01:00
19c5867f92 fdo#74424 HasMirroredGraphics changes
HasMirroredGraphics should be called upon by the object using the
OutputDevice. As I'm focussing on Window, which will be shortly decoupled
from OutputDevice, I have changed HasMirroredGraphics into a virtual
function, and introduced a wrapper function of the same name into Window
that calls upon Window's OutputDevice object.

Due to a bug that never appears to have been fully fixed, mirroring in
printing was broken and a workaround ("hotfix" in the code!) was
implemented but never fully fixed. Therefore, I have overridden
HasMirroredGraphics in Printer and just return false.

Change-Id: I9029e2c50cdb339c1e936bed6b92e8b2aac1dcf9
Reviewed-on: https://gerrit.libreoffice.org/7912
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-10 20:38:22 +00:00
85cdb06fd5 sal_Bool -> bool
Change-Id: Ifc80202e0865b59931af6e50d3d60f5021f8b52e
2014-02-07 18:43:32 +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
850d1b784d Document OutputDevice class
As part of decoupling the OutputDevice class from the Window
class, I am going through and documenting what each public function
does first. This will give a clearer indication of what Window is
responsible for, and what OutputDevice is responsible for.

Also fixed ImplDevicePixelToLogic's parameter - should not be rLogicRect,
it should be rPixelRect in the header definition.

Change-Id: I0d0b977c3d432bd08cd6d7fddc7ed878b95506d1
Reviewed-on: https://gerrit.libreoffice.org/7892
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-07 15:59:29 +00:00
cd21e1ea69 Group like Impl* functions in outdev.hxx
Change-Id: Iede8395d9287a857601080e7a65dc3a3eea93c9e
Reviewed-on: https://gerrit.libreoffice.org/7890
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-07 15:57:28 +00:00
2fb860438c Change from com::sun::star and ::com::sun::star to css alias.
Change-Id: I704f45c156e8e70476409a0369c6b481707152a3
Reviewed-on: https://gerrit.libreoffice.org/7889
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-07 15:27:59 +00:00
2a9b8358f7 Reindent outdev.hxx - minor formatting change
Change-Id: I5095728ca486b6a609d26520ff45f8bc5bde1c21
Reviewed-on: https://gerrit.libreoffice.org/7888
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-07 15:12:33 +00:00
3f1a97eda0 implement expandable toolbox items
Change-Id: I64ace48ed6a72cea670ac2cdd774764b7c586648
2014-02-07 13:59:04 +00:00
b29c078c7f Convert template manager dialog to .ui + adapt code.
Change-Id: I854abb47c2d22206ed5581373b3e841f221672e3
2014-02-07 12:11:50 +01:00
b37bce11cf Resolves: rhbz#975421 wrong chart direction in Farsi
Where Farsi (and apparenly Moroccon) are RTL but have LTR
math and charts should reportedly follow the math direction

Change-Id: Ib60eaaaa90fe46ef240030a91169fdff3f736329
2014-02-06 15:11:59 +00:00
d2d5864462 TabControl::DeactivatePage should return bool
Change-Id: I9fb774a235db2b9bc759976d2d3f84363ed944ec
2014-02-06 15:44:03 +01:00
8285968388 IsUpdateDateEnabled was never called
Change-Id: I056ed836f785191f0685dc6f1313436da33ca0ee
2014-02-06 10:37:25 +01:00
f1e96f263d OutputDevice::ImplHasMirroredGraphics can be const
Change-Id: I639c4821d9ef4da04ccbed6b93f7e6e3b51ae74d
2014-02-05 14:46:37 +00:00
6a6a51ed05 fdo#74424 Start to decouple Window class from OutputDevice
We want to start to decouple Window from OutputDevice. This is
because a Window should *use* an OutputDevice, a Window is *not*
an OutputDevice.

In order to start to decouple the two classes, the strategy will be:

1. This patch adds in a new private member pOutputDevice as well
   as an accessor. When the Window is initialized, pOutputDevice
   is set to a downcasted instance of this (because we are still
   inheriting Window from OutputDevice).

2. We will start to go through all the functions in Window that rely
   on OutputDevice and use the getter function to use the OutputDevice
   private member.

3. Any subclasses of Window will then need to have the same procedure
   done on them.

4. Once this is done, we need to work out the best way of initializing
   mpOutputDevice, then we can remove OutputDevice as the parent
   class of Window (and all Window subclasses).

Change-Id: I39886c77070befb1542c8f22346111cde1c360b1
Reviewed-on: https://gerrit.libreoffice.org/7786
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-05 13:41:13 +00:00
ee2fcbab6d C2872: ´Window´ : ambiguous symbol
Change-Id: Id5a342b9fdc5240b70b0985f4c6de9493162f10c
2014-02-05 11:37:38 +00:00
6b127d40c7 rhbz#1057977 avoid use of invalidated pointers
Change-Id: Ib81f79da696b5e8002f5a2ddcf160903231dc3f1
2014-02-05 11:02:53 +01:00
51a68b4992 Doxygen warnings corrected
* Doxygen spits out a lot of warnings about not being able to find
  match function signatures, etc. This is because in some headers we
  have a using namespace statement, in others it gets confused between
  ::Window and Window (!).

* Wrong use of tags:
  + Lots of @seealso - should be @see
  + Wrong usage of @overload - corrected with the right function
    signature
  + HTML tags that doxygen doesn't recognize removed

Change-Id: I1c2eed941619b8764dbfcfc5ab38027518cdf261
2014-02-05 09:14:53 +00:00
186b4ebc99 convert specialised SvStream::operator>> methods to ReadXXX methods
as preparation for converting the SvStream::operator>> methods on
primitive types

Change-Id: I62f134bced15c687d6e0d46924f56e8d1c3d95b9
Reviewed-on: https://gerrit.libreoffice.org/7798
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-04 22:50:39 +00:00
2b76184892 Revert "Doxygen warnings corrected"
This reverts commit ff8036df5c5575503dc30d255dfbe99cc637c510.

multiple build failures with namespace collisions etc

Change-Id: Ie8ac08feff518af3584a26957f07a60d95932c76
Reviewed-on: https://gerrit.libreoffice.org/7855
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-04 16:14:08 +00:00
ff8036df5c Doxygen warnings corrected
* Doxygen spits out a lot of warnings about not being able to find
  match function signatures, etc. This is because in some headers we
  have a using namespace statement, in others it gets confused between
  ::Window and Window (!).

* Wrong use of tags:
  + Lots of @seealso - should be @see
  + Wrong usage of @overload - corrected with the right function
    signature
  + HTML tags that doxygen doesn't recognize removed

Conflicts:
	include/vcl/toolbox.hxx

Change-Id: I687f45e426280d411ef3cb6d8d5993a829f2f324
Reviewed-on: https://gerrit.libreoffice.org/7725
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-04 14:39:21 +00:00