Commit Graph

177 Commits

Author SHA1 Message Date
Markus Mohrhard
0d20725fcc remove whitespace
Change-Id: Iae0f6b9818f84a92c46b24f90d3051c7b6a45d94
2014-06-04 07:49:14 +02:00
Caolán McNamara
f19ca44a04 callcatcher: update unused code
Change-Id: I23ad8bcbef9a0ef17aaa5d401d111c40a6560ee2
2014-04-04 09:35:19 +01:00
Caolán McNamara
aa16ca7326 Resolves: fdo#76905 long delay when changing font size from % to pt
Change-Id: I33d72b51536ab96653ccda64c6e058c497289327
2014-04-02 13:47:54 +01:00
Noel Grandin
b1de52241c svtools: sal_Bool->bool
Change-Id: Iaa489318f25107e91fc8133523fbd9d724493314
2014-03-24 08:12:08 +02:00
Kohei Yoshida
402fffa1b4 Add dash-dot and dash-dot-dot line styles.
We need these for Excel interop.

Change-Id: I91450c1d205f28636edfb4392aa6ae5091b1d7b7
2014-03-19 00:28:16 -04:00
Eike Rathke
160d289564 cast to the higher capacity type instead
Change-Id: I515f315c93dd19016dfdabdf9524606214f84891
2014-03-05 16:21:25 +01:00
Tor Lillqvist
9d4c3a2a21 WaE: comparison of integers of different signs
Change-Id: I936e7bdaf3a4236775add4982005b465f229eb78
2014-03-05 16:25:43 +02:00
Eike Rathke
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
Noel Grandin
64977e5c2b remove unused code FontSizeBox::GetValue(unsigned short, FieldUnit)
Change-Id: I63df5364d69bf60e7a5ee2b5854b41ce27f10894
2014-02-28 08:32:04 +02:00
Alexander Wilms
bee1cc83ec Remove visual noise from svtools
Change-Id: I7c2b74a449fb20aae5bc643e24a22cf6f732136d
Reviewed-on: https://gerrit.libreoffice.org/8320
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-25 21:14:09 +00:00
Alexander Wilms
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
Stephan Bergmann
e8f8f24c84 vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21 12:53:51 +01:00
Tobias Lippert
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
Kohei Yoshida
3d95457572 Only allow approved border styles in cell borders.
Line styles such as inset, outset, embossed etc are not supportable in Calc.
So, don't show them in the UI.

Change-Id: Ie7be74193d01e13a79132a979e2d9a2e4d06de3f
2014-01-22 19:58:32 -05:00
Kohei Yoshida
ec1a3157c1 Better pixelization of dashed lines for screen rendering.
Now the dashed lines are evenly placed on screen.  For now, horizontal lines
only.  I'll work on vertical lines later.

Change-Id: I474e9c8214e5f079ea2cfca12b35381d8fcf2ae1
2014-01-20 14:37:02 -05:00
Tsutomu Uchino
66ff6924d5 Related: #i56998# use FUNIT_PERCENT on fields that allow relative value
(cherry picked from commit fc6fc5b576b972a8ea0551091cc57aa1cfe1334d)

Conflicts:
	svtools/source/control/ctrlbox.cxx
	svx/source/dialog/relfld.cxx

Change-Id: Ic8f0f550dbbcab0678fbeb9bf45a478b0cea642d
2014-01-20 10:14:29 +00:00
Kohei Yoshida
009b7be7c8 Revise the line patterns further. Now they look satisfactory to my eye.
Change-Id: I27f4e11bceac25c10de28a866bdcec9576027582
2014-01-17 11:33:16 -05:00
Kohei Yoshida
0a8ddb61b1 Apply dashing without consulting current map unit.
Using scaling is sufficient.

Change-Id: If976bec3940772432d814a77681170d7c99306d2
2014-01-17 11:33:15 -05:00
Kohei Yoshida
ba4324917a More fine-tuned stroke patterns.
Only the pixel map mode is visually inspected.

Change-Id: Ia8ac978a0d3049d7e7162f1157822b85d475dfdf
2014-01-17 11:33:13 -05:00
Kohei Yoshida
5cdb7a5934 Remove STYLE_* and use css::table::BorderLineStyle instead.
Change-Id: I187511dbf85ecdfe0c5d05c6f77cf4ac93363051
2014-01-17 11:33:11 -05:00
Luc Castermans
347af397ca translated german comments
Reviewed on:
	https://gerrit.libreoffice.org/7275

Change-Id: I86fef5ab012c7c464271afec3a0a5fa4d3c72f31
2014-01-07 08:42:55 +01:00
Luc Castermans
455b403aaf translated German comments
Change-Id: I75c7611c36c15fb36e00de239f5b322adb182e73
Reviewed-on: https://gerrit.libreoffice.org/7273
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-01-05 19:06:44 +00:00
Noel Grandin
b273106226 convert OutputDevice::HasGlyphs from xub_StrLen->sal_Int32
Change-Id: Ic8f0ae3d263d6cb02e6faa7226db0241681fc45f
2013-12-04 11:29:14 +02:00
Michael Stahl
dd28837249 vcl: mark more Image constructors as "explicit"
Change-Id: If59d7c75c89a102a573738d15d8593cb8ac5c486
2013-10-22 14:42:17 +02:00
Caolán McNamara
e5dd19526f make font style size stable on switching fonts
Change-Id: I891fa5b9b8bd3be7dd4d73f2911ec56d16a3b09f
2013-10-07 11:46:59 +01:00
Julien Nabet
3209594748 cppcheck: redundantAssignment
Change-Id: I16ced23894e461e7953ed4978ca0d4cf7f40f5e8
2013-09-27 23:23:56 +02:00
Zolnai Tamás
1ae3638dbf Fix drawing of fine dashed border type
On the Borders tab in the preview block (called User-defined area
in help) fine dashed border is drawn as solid line.
The problem is that 1 pixel gap is too small and painting
can hadnle it so I doubled the numbers to get the same rate and
get the rigth visual result.

Change-Id: Ide037fa3f4f90b304dc53f5f806c2acd2194ec0c
2013-09-15 18:45:56 +02:00
Noel Grandin
23cafe3f1d convert svtools/source/control/* from String to OUString
Change-Id: I32e411801d3754ca635cfc3ed9529b8ea43ffa3c
2013-08-22 10:49:32 +02:00
Noel Grandin
d09631bd9d convert include/svtools/ctrl*.hxx from String to OUString
Change-Id: I86b78137f02a11c5a2c34930b19cef22acd7ac69
2013-08-22 10:49:25 +02:00
Tor Lillqvist
c6a7300974 Use subfolder names from <config_folders.h>
Change all instances of hardcoded "program", "share" etc subfolder names to
use those from <config_folders.h> instead. In normal builds, the end result
will not change.

Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-08-18 21:11:16 +03:00
Michael Stahl
fa96ed925f Revert "fdo#63926 - remove extra include paths in svtools/ and sfx2/"
This reverts commit 1cbdcc31b8.

Sadly this was going in the wrong direction...
2013-08-15 17:19:01 +02:00
Noel Grandin
4e0d0ee674 convert vcl/font.hxx from String to OUString
Change-Id: I3df88f26516296ca8f4e81576e86372c8b499a84
2013-08-12 11:56:42 +02:00
Caolán McNamara
9dd40c656f XubString->OUString
Change-Id: I04c7da143425a9d8cc4fae155ad45a469df953c1
2013-08-12 08:32:59 +01:00
Radu Ioan
1cbdcc31b8 fdo#63926 - remove extra include paths in svtools/ and sfx2/
- removed some paths from include
- more of this kind wil follow

Change-Id: I0255d8dd338d82dfd4ac3027c34cddea493f105d
Reviewed-on: https://gerrit.libreoffice.org/5281
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-08-05 10:22:35 +00:00
Caolán McNamara
ea3edee44a callcatcher: update unused code
ResId loaders begining to melt away

Change-Id: Ied10d95f6561f24b2305d202847b7e7c39eb63c3
2013-07-19 13:20:19 +01:00
Caolán McNamara
c54f77b718 callcatcher: update unused code
All FontSizeBoxs and SmFontPickListBoxs are now .ui loaded, .res ctors unused

Change-Id: I50aa8606fefacab0b15b6795a7ba90dff8109802
2013-07-15 09:07:49 +01:00
Caolán McNamara
30db63e8a3 arrange a way to describe non-dropdown MetricBoxes
i.e. use a VclComboBoxNumeric which now has an
adjustment option and a dropdown option (defaulting to true).

Rework existing glade widget placeholders to be children of that widget
placeholder.

Centralize the dropdown bit tweaking logic.

Change-Id: Ib6dc4d19b367986e9d6a2fc2bead51e198892893
2013-07-03 12:46:31 +01:00
Caolán McNamara
8e06393ffc remove post .ui conversion unused ResId loaders
Change-Id: Ib6a5455256f4712fc62554cbcbe279e9702d0552
2013-07-02 11:59:52 +01:00
Armin Le Grand
c96802f0e2 Resolves: #i122418# Added workaround to not use GetBitmap on windows
(cherry picked from commit 136976efb17b8617a83c7f26601cd04031b51e7f)

Conflicts:
	vcl/inc/vcl/bitmap.hxx
	vcl/inc/vcl/bitmapex.hxx
	vcl/source/gdi/bitmap4.cxx
	vcl/source/gdi/bitmapex.cxx

Change-Id: I9c3aeae76c155c9050404f67adeb91106502c3f1
2013-06-19 12:17:19 +01:00
Miklos Vajna
4c3d2dcdad Add UI for fine dashed border type
Commit 7d632ff29e added document model /
layout support for this, but UI was lacking.

First, add a new item to the list box in
SvxBorderTabPage::FillLineListBox_Impl().  Second, handle MAP_TWIP unit
in svtools::GetDashing() for STYLE_FINE_DASHED. Pick up some values that
give visually the fine dashed result when painted. (The original values
from 2f0d406911 in other cases seem to be
a bit consistent already anyway.)

Change-Id: Ibf1ed235d51515b065d23a6a5d5eef433162899f
2013-06-16 17:58:06 +02:00
Fridrich Štrba
43135665bf mingw64: use integers able to contain a size in svtools
Change-Id: Id5505f75a2331be682b74d085a7959fc4bf07df8
2013-06-10 14:03:34 +02:00
Fridrich Štrba
35a65baefe Slowly, but surely going on compiling for mingw64
Change-Id: I590aa6a854a040281bf73d5be768c05d4906a984
2013-06-06 15:52:05 +02:00
Armin Le Grand
60285fdc86 Related: #i122041# More unifications for FillStyles
better defaults and better preview visualizations

(cherry picked from commit 35c9acfc98fc98399005815e0464b1944f327d4e)

Conflicts:
	officecfg/registry/schema/org/openoffice/Office/Common.xcs
	svtools/inc/svtools/accessibilityoptions.hxx
	svtools/inc/svtools/valueset.hxx
	svtools/source/config/accessibilityoptions.cxx
	svtools/source/control/ctrlbox.cxx
	svtools/source/control/valueset.cxx
	svtools/source/inc/configitems/accessibilityoptions_const.hxx
	svx/inc/svx/dlgctrl.hxx
	svx/inc/svx/xtable.hxx
	svx/source/dialog/dlgctrl.cxx
	svx/source/tbxctrls/SvxColorValueSet.cxx
	svx/source/xoutdev/xtabdash.cxx
	svx/source/xoutdev/xtable.cxx
	vcl/inc/ilstbox.hxx
	vcl/inc/vcl/combobox.hxx
	vcl/inc/vcl/lstbox.hxx
	vcl/inc/vcl/settings.hxx
	vcl/source/app/settings.cxx
	vcl/source/control/combobox.cxx
	vcl/source/control/ilstbox.cxx
	vcl/source/control/lstbox.cxx

Change-Id: I905b6814cb796a35aa23fedb9ce716f77e2bfda0
2013-05-20 11:33:18 +01:00
Tor Lillqvist
cb6d67c21f Spelling "separate" (etc) correctly is hard 2013-05-15 11:14:28 +03:00
Tor Lillqvist
ec8617568f Bin ugly (ab)use of preprocessor in headers
The time when it made sense to use "clever" #ifdefs to, for performance or
compiler reasons, conditionally bypass private parts of a class declaration
passed a decade or longer ago.

Still more of this in sw and sc. People working on those modules might want to
do it too, or not.

Change-Id: I1053139ca5e5e2631f7b22d99d3bada54fc337be
Reviewed-on: https://gerrit.libreoffice.org/3627
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-27 09:28:37 +00:00
Caolán McNamara
d50fbfabb6 restore a FontSizeBox::GetValue variant
correctly removed by 994a737a31 but
we will need it again soon

Change-Id: Ifedf8da2a33e834a5cba6da11c63c784572bd58d
2013-04-22 14:39:13 +01:00
Caolán McNamara
15f4c47f5b restore FontNameBox from ResId ctor
removed by ecda52f6b3
but we'll need it again soon

Change-Id: I3a038c162beba7147ac7abc8bb4085b41140bf5c
2013-04-22 12:50:19 +01:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Julien Nabet
77b708117c coverity#735364 Logical vs. bitwise operator
Change-Id: I116db00e16a8cb962ee7c98d9bfafb69312c1333
2013-03-21 22:40:31 +01:00
Caolán McNamara
ecda52f6b3 callcatcher: unused code
Change-Id: I7dcaa6f57815321e108cd7ce284fe145dc0506f2
2013-03-04 11:23:59 +00:00