summaryrefslogtreecommitdiff
path: root/vcl/inc
AgeCommit message (Collapse)Author
2014-03-21coverity#708662 Uninitialized pointer fieldCaolán McNamara
Change-Id: Icfa4ee2a525016775b5917143b5c4333212db362
2014-03-21move remaining padmin dialogs into vclCaolán McNamara
and so padmin is no more Change-Id: I554cefa8b38581daad8a78bafa167448b0a0ef61
2014-03-21move the fax dialog from padmin to vclCaolán McNamara
now we don't have to dlopen padmin to get it so we can drop that complicated stuff and don't need to be unx only Change-Id: I0e585b05a4ecf2a1c8a3ac5275185d81ada518e5
2014-03-20cosmetic: split PhysicalFontFamily/Collection out of outdev3.cxxNorbert Thiebaud
Change-Id: Iae8eb15413c0c069c14edd92c94ecb0113d9d371
2014-03-20cosmetic: split PhysicalFontFace class it its own source/headerNorbert Thiebaud
oudev,2,3,4,5,6 are a dumping ground for a lot of things chipping at it one class at the time... organize the #include of the impacted source while at it. Change-Id: I57bbb1f9e3c6b2ac6b3ca127e5976bf16f3e3cf8
2014-03-20rename ImplDevFontList to PhysicalFontCollectionNorbert Thiebaud
again, convergence of teh naming with what is normally used in the underlying native API, where FontFace ) FontFamily ) FontCollection Change-Id: Ieb098b782ea828a3365f00d07914b9566278caba
2014-03-20replace DevFontList with PhysicalFontFamilies propagate the naming changeNorbert Thiebaud
Change-Id: Ib3a4ce44d4bdde5570ece84e7399743ee7b8418f
2014-03-20rename ImplDevFontListData to PhysicalFontFamilyNorbert Thiebaud
following the naming of PhysicalFontFace in an effort to give more explicit and meaning full names to the many-many ImplFontforbar classes Change-Id: I6dcf44e8f9ba312d8293298198b92f283dac0362
2014-03-20Remove unnecessary vcl::SolarMutexObjectStephan Bergmann
Change-Id: I6dfdd7d5d211b66019dfbe364101140e28a3584d
2014-03-20disallow disabling cupsCaolán McNamara
which means that there is only one option left in "add a printer" in spadmin, that to add a pdf so remove the intermediate page Change-Id: I5f19b526b5da9307bec77c731f305280b0ebecc3
2014-03-20Bin some dead codeTor Lillqvist
Has been dead since bff2ddbbfb8a4cebee2cc223c3bba6a8d9ebc038, when we stopped using SvpSalVirtualDevice on iOS. Change-Id: I4403f61fac73596f1c7c3d11b2351c37173c970d
2014-03-20all the filterText impls are now no-ops, so removeCaolán McNamara
Change-Id: I6e67756bb89235198c8d2705833d18ee9fb77fb1
2014-03-20Resolves: #i49980# Autosense fax4cups devices and configure automaticallyCaolán McNamara
If there is a "Dial" ppd key then it's a fax device. If the Dial is set to "Manually" then ignore that it's a fax device and don't prompt for a fax number. If we have a fax number, then set the jobname to the number given that "printing will result in sending the fax to the number contained in the job name" Remove the weird and wonderful non-macosx-unix-only, non-pdf-print-backend, text "scraping" of phone numbers out of the print out in the @@#PHONE@@ format. Allow the phone entry dialog to accept multiple fax numbers separated by ; Change-Id: Ie1d84b68584e82df15ceda5f32c7c75086b035c8 Related: rhbz#159153, #i49981#, #i49920#
2014-03-17fdo#67808 Fix Outline Font Effect support with CoreTextNorbert Thiebaud
We add a new DrawTextSpecial() virtual to SalLayout that allows to attempt to delegate font effects to the underlying native graphic system. The function return false if it was not capable of handling the effect, true otherwise. Right now only Outline Font effect on Coretext is actually handled that way. OutPutDevice is augmented to attempt to delegate the font decoration work, if the task was not handled properly it fallback on the generic code. Note: ideally these effects should really be part of the FontSelector info that is given during layoutting, and the layout should indicate which of these decorations it was able to manage natively but that is a much bigger architectural change.. this will do for now. Change-Id: I5eb1a15e985cc3f234ec3dee899f349f309b42cb Reviewed-on: https://gerrit.libreoffice.org/8599 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-03-13Spelling fix: pinedTor Lillqvist
Change-Id: I7e9e0a3c03e6158894787f6eb072bebdbee0fcad
2014-03-13vcl: prefer passing OUString and OString by referenceNoel Grandin
Change-Id: I6c2c6f597ca62c004ad7dc606cef3a3b10e810b6
2014-03-06Point to "documentation" for XOR emulationTor Lillqvist
Change-Id: I947daf20692bf0504146523e93fed56c418676db
2014-03-06Fix up a few Emacs and vim mode linesTor Lillqvist
Change-Id: I813b3638d6e368e73d8733f652db553a6e1cb029
2014-03-05Simplify resolution calculationKeith Curtis
Removed unnecessary complexity with resolutions because X in 2014 isn't telling the truth about the size of the screen. My brand-new 13" laptop with the latest X and everything apparently has a 33" x 18" monitor. So if the data isn't reliable, just use 96 dpi anyway which is a very reasonable default. Also got rid of exact resolution member variable. LibreOffice can just always think it has exact resolution. If it doesn't, then it just means the code needs to be smarter, not that we need a flag about whether the data we have is "exact" or not. Change-Id: Ic41bdc3a82dbd1fdb6a987d6dc49adad8194ce14 Reviewed-on: https://gerrit.libreoffice.org/8166 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-05made ListBox handle more than 64k elements, fdo#61520 relatedEike Rathke
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-02-28Rename GetGraphics to AcquireGraphicsChris Sherlock
Currently there are a number of classes that have a function called GetGraphics(). It returns a SalGraphics instance if one is available for the sole use of the caller. Some variants keep a pool of available SalGraphics and return one not currently in use by anyone, creating extra ones on demand, sometimes up to a set limit and returning NULL on reaching that limit of simultaneously in use SalGraphics. This is confusing. What is really happening from the perspective of the calling is that is that we are attempting to *acquire* ownership of a SalGraphics instance. Therefore, rename GetGraphics to AcquireGraphics() which returns a handle to a SalGraphics if we can acquire a free graphics instance, and NULL if we cannot, which makes it cleared that ReleaseGraphics should be called on the result of AcquireGraphics. The classes that were changed to include the new acquire function are: * SalFrame * SalVirtualDevice * SalInfoPrinter * PspSalInfoPrinter * X11SalFrame * X11SalVirtualDevice * GtkSalFrame * KDESalFrame * TDESalFrame * WinSalFrame * WinSalInfoPrinter * WinSalVirtualDevice * SvpSalFrame * SvpSalVirtualDevice * AquaSalFrame * AquaSalInfoPrinter * AquaSalVirtualDevice Change-Id: Ic39c08a4bcaf665ae08ba2808cd03b0e80790c46 Reviewed-on: https://gerrit.libreoffice.org/8070 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-28Add SAL_OVERRIDETor Lillqvist
Change-Id: I3b85e2524ce5d8c643daa593e179c22c4c49608f
2014-02-28Add SAL_OVERRIDE markup for the vcl OS X and iOS code, and follow-up cleanupTor Lillqvist
Thanks to SAL_OVERRIDE, I found a couple of unused functions and several that were virtual even if they did not override anything and were not overridden in any derived class. Change-Id: I5981111d2fc38f75a384c52359546a973e772393
2014-02-28Unvirtualize a couple of functionsTor Lillqvist
Change-Id: I1df9d7d1f0186a6983e54906c2d1b1684663826d
2014-02-28WaE: implicit conversion of literal of type 'sal_Bool' to 'bool'Tor Lillqvist
Change-Id: I826f7649a1e9ed8aad06848aa1f2ed5a5827f3ab
2014-02-28sal_Bool -> bool in mostly vcl moduleChris Sherlock
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-28constructor only used on WNT in FontSelectPatternAttributesNoel Grandin
Change-Id: Iffbd9702f5a81e4bfe3baa3952824f4c6ba3bca3
2014-02-28remove unused code in vcl/ImplRegionBandNoel Grandin
ImplRegionBand::IsInside(long, long) ImplRegionBand::IsOver(long, long) Change-Id: I607c589d62a0c9178a32df5cf48fcbe279878030
2014-02-28debug only code SalDisplay::PrintInfo()Noel Grandin
Change-Id: I9ead37ff69dc7198faae6758a346111ed1d029e3
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from vclAlexander Wilms
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-25callcatcher: update unused codeCaolán McNamara
Change-Id: Ia8e6abffb85b92ee4538fb0aeaee4e4aa18f2772
2014-02-25Mac vcl: sal_Bool -> bool sequelStephan Bergmann
Change-Id: Ie180b99a1a2d71922009c85c16ccb33b7968bd03
2014-02-25vcl/osx/sal: SDK 10.5 compatibilityDouglas Mencken
NSWindowDelegate and NSMenuDelegate protocols, IOPMAssertion* are available only in OS X v10.6 and later. Change-Id: Icda4b8014d9a6dde2284b9f5df493eb470fb79fc Reviewed-on: https://gerrit.libreoffice.org/8211 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-02-24Resolves: #i119006# delay Mac initial event until the app has launchedHerbert Dürr
delaying the initial event prevents complaints from OSX>=10.7's "windows restore" feature to recur infinitely. Apparently OSX cleans things up for us just before we get the applicationDidFinishLaunching() callback. (cherry picked from commit 0f3712ff654c740f3593b9580f34cdfe21ac3250) Conflicts: vcl/osx/salinst.cxx Change-Id: I0f1d59f03ffe4efc7c9a73fa881151fa06af5424
2014-02-24warning C4805: '==' : unsafe mix of type 'sal_Bool' and type 'bool'Stephan Bergmann
Change-Id: I3719401a0eb68ba9204be19c2dd4f93617bf097c
2014-02-23CoreText SDK 10.5 compatibilityDouglas Mencken
Change-Id: Ic876ec473b1c03a70c160af4251c68b299b27eca Reviewed-on: https://gerrit.libreoffice.org/7143 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-02-21Adapt vcl to various loplugin warnings on Mac OS XStephan Bergmann
Change-Id: I4553ce218fbcf2ac681b284c71e7d558a451511c
2014-02-21Bug #63962 Dynamically scan the config directory for icon themesTobias Lippert
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-21Windows vcl: sal_Bool -> bool fixupStephan Bergmann
Change-Id: I60cba53ec0a5aaedf20b6c0c295a91be226b4354
2014-02-21Mac OS X vcl: sal_Bool -> bool fixupStephan Bergmann
Change-Id: I77a2e7957351ca6da44948e5a28d08116e1cd14d
2014-02-21vcl: sal_Bool -> boolStephan Bergmann
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-20Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert
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-17Fix fallout from 772c3a202481506b92c496948cfdc0f23ab94b2cTor Lillqvist
Change-Id: I0019ca081086544142b39aac5e6f00d5f1822ccb
2014-02-12callcatcher: update unused codeCaolán McNamara
Change-Id: Iaaad9302ef8edb47fa95ce8ca608b6f36449521b
2014-02-12fdo#63154 Remove unused solar.h ref in vcl, basctl, desktop..Alexandre Vicenzi
Change-Id: Ic0187495d8f7f64ddf9d3c202ec41201c9ac3a8c Reviewed-on: https://gerrit.libreoffice.org/8001 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-02-10Resolves: #i124201# rename apple_remote's MainController...Herbert Dürr
to AppleRemoteController having a MainController class in the global namespace of an application with gazillions of MVC patterns is not a good idea. Renaming it to better match its scope (i.e. the Apple Remote) cleans this up. (cherry picked from commit 8ef3836059ca613d125f66e6bad21c83200dadad) Conflicts: apple_remote/source/RemoteMainController.m include/apple_remote/RemoteMainController.h vcl/inc/osx/saldata.hxx vcl/osx/saldata.cxx vcl/osx/salinst.cxx vcl/osx/vclnsapp.mm Change-Id: I1f252ac51ef65966a48ee03b2cd3519f98d57383
2014-02-07sal_Bool -> boolStephan Bergmann
Change-Id: Ifc80202e0865b59931af6e50d3d60f5021f8b52e
2014-02-07implement expandable toolbox itemsCaolán McNamara
Change-Id: I64ace48ed6a72cea670ac2cdd774764b7c586648
2014-02-06typo fixes in commentsAndras Timar
Change-Id: Idd49478d59cd062118fbf8e99d1c8bc5250013fc