Commit Graph

145 Commits

Author SHA1 Message Date
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
Luboš Luňák
624d469642 remove unused variable
Change-Id: Iadc8b161c2742c1b92938c39c00c263b597693f5
2013-02-06 18:37:31 +01:00
Chr. Rossmanith
82e3760855 replace (Xub)String with OUString in vcl
Change-Id: I0a44bab196ae239d3bdea75fd2b657bdfa4ecf31
Reviewed-on: https://gerrit.libreoffice.org/2011
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-06 17:12:24 +00:00
Caolán McNamara
f97ffd1c01 The LineListBox drew lines wider than can fit in its text area
it takes the outputsize of the entire widget and take a little
(not enough) off that as the line width. The line is always
wider that space available, so with widget-layout enabled it
will request more space. On the next update of the lines it
repeats, so listbox grows ever wider.

Change-Id: Ib43239d297bb0ba0dc1096acf347ef17b5e41273
2012-12-20 16:52:57 +00:00
Caolán McNamara
c38a1de224 convert columns dialog (and sections/frame/page tab page) to .ui
Change-Id: I7ce64b63acba1581754e5a75ea48e3df654973ae
2012-12-20 16:52:57 +00:00
Caolán McNamara
166d825797 Resolves: fdo#57469 allow tab to traverse into custom widgets
The magic WB_TABSTOP bit is the one that allows a widget to be accepted as a
candidate for getting focus when pressing tab

Change-Id: I7d964bae6b84184ccbc4652d66cf3d2637566405
2012-12-12 13:27:12 +00:00
Eilidh McAdam
7d632ff29e Support added for fine dashing on table borders.
When reading in docx documents, fine dashing provides a better visual
match for some border types.
Added in this patch:
 - FINE_DASHED in BorderLineStyle UNO enum and in internals
 - Import of docx table borders using this border style

Change-Id: I39cfa18c915ec94d8e4ecfc6a2ca637076d1e468
Reviewed-on: https://gerrit.libreoffice.org/1123
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2012-12-04 10:59:20 +00:00
Eike Rathke
af60316514 some i18n wrappers with LanguageTag
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
2012-11-23 23:09:16 +01:00
Eike Rathke
9955dbebbd AllSettings with LanguageTag
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
2012-11-22 12:34:59 +01:00
Michael Meeks
daeed90f45 re-base on ALv2 code. Includes:
Patch contributed by: Jurgen Schmidt
    remove onlineregistration with dependencies
    http://svn.apache.org/viewvc?view=revision&revision=1240245
    imported patch package_eventlistener.patch
    http://svn.apache.org/viewvc?view=revision&revision=1172103

    Patch contributed by Pedro Giffuni
    Accept Google Chrome OS fonts as equivalent to MS fonts.
    http://svn.apache.org/viewvc?view=revision&revision=1233155
    http://svn.apache.org/viewvc?view=revision&revision=1233408

    Patch contributed by Andre Fischer
    Do not add targets for junit tests when junit is disabled.
    http://svn.apache.org/viewvc?view=revision&revision=1241508

    Patches contributed by Mathias Bauer (and others)
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326
    cws mba34issues01: #i114600#: remove forbidden characters
    from list of unencoded characters
    http://svn.apache.org/viewvc?view=revision&revision=1172370

    Patches contributed by Oliver Rainer-Wittman
    some clean up in JPEGReader due to memory constraints
    http://svn.apache.org/viewvc?view=revision&revision=1299729
    119114 - method <UpdateDialog::addSpecificError(..)> - create
    entry with correct type
    http://svn.apache.org/viewvc?view=revision&revision=1305265

    Patches contributed by Ariel Constenla-Haile
    i118707 - make toolbar control's popup window grab focus
    http://svn.apache.org/viewvc?view=revision&revision=1225846

    Patches contributed by Herbert Duerr
    #i118662# remove usage of BerkeleyDB in desktop module
    http://svn.apache.org/viewvc?view=revision&revision=1213171
    minor cleanups in dp_persmap.*
    http://svn.apache.org/viewvc?view=revision&revision=1215064
    flush early to prevent problem with extension manager not
    cleaning up its objects
    http://svn.apache.org/viewvc?view=revision&revision=1228147
    i118726 do not flush *pmap file while reading it
    http://svn.apache.org/viewvc?view=revision&revision=1230614
    #i119048# migrate BDB extension entries using a simple heuristic
    http://svn.apache.org/viewvc?view=revision&revision=1300972
    #i119048# handle edge cases when importing BDB hash files
    http://svn.apache.org/viewvc?view=revision&revision=1301428
    #i119113# fix of-by-one when importing BDB files
    http://svn.apache.org/viewvc?view=revision&revision=1305420

restore our encryption settings, icon themes, and dictionaries.
removed wrapper hacks, kill obsolete bundled extension blob /
pre-registration handling, remove duplicated quickstart code.
remove OS/2 conditionals.
2012-11-19 17:44:55 +00:00
Noel Grandin
0666e43c45 fdo#46808, use service constructor for i18n::CharacterClassification
Change-Id: I0499ad7de27b1539e97f01ab8aa0ef2d6713ae76
2012-11-05 18:05:00 +01:00
Caolán McNamara
4cc5ccef4b convert index dialog to .ui
Change-Id: I4b16cb517dca25f862b9dd612785dae4d0f21793
2012-10-24 15:39:27 +01: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
Jan Holesovsky
a4e2e50c4d Remove the unneeded "scalable font" icon from the font combobox.
Change-Id: Ifadad736ae39dff67ad7bc499f85bfbb484826ff
2012-10-17 16:22:31 +02:00
Luboš Luňák
83154f9234 mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html

Change-Id: I37b2c7b7acd31437f4be74b0163f4dac2279655b
2012-10-12 13:34:48 +02:00
Caolán McNamara
f2734389f5 XubString->OUString
Change-Id: I15f229010254a51ee485479e8fb751375f288da8
2012-10-11 11:15:41 +01:00
Fridrich Štrba
fa30508fd3 Fix svtools with Visual Studio 2010
Change-Id: I445173e8f469c409801d803ef22cb499935ba19b
2012-10-08 07:33:19 +02:00
Caolán McNamara
e05baffff1 Related: fdo#39626 bootstrap.ini is windows-only, use generic mechanism
Change-Id: If3cb8451b8af874b82512f1b731654d918d0a196
2012-09-28 12:49:56 +01:00
Caolán McNamara
adda1a25f2 convert hard-coded layout of char name tabpage to .ui
Change-Id: I20829b6a0835bf96489d67b6f7effcfa84650328
2012-09-28 08:48:49 +01:00
Caolán McNamara
e4c8ec5fec convert hard-coded layout of effects tabpage to .ui
Change-Id: I6aa02f112b0b13402db1f0cf721d0db8862432bc
2012-09-28 08:48:49 +01:00
Michael Stahl
601bfe2ce3 fdo#51777: add a hack for 1 twip DOUBLE borders:
Arguably such annoyingly thin double borders don't make much sense
anyway, because they're essentially 2 hairlines with ~no space between,
but unfortunately older LO versions are able to create them;
since the refactoring in 2d045cdb69,
which changed the BorderWidthImpl::Get* methods to return 0 due to
rounding, they were ignored at least in the HTML import, which is a
regression.
So add a special purpose hack that essentially rounds up the first line
to 1 but not the other lines so the visual result is a hairline single
border.

Change-Id: I20ac4675bcf67ea58a6931a40bff3605390e9c0d
2012-08-22 00:34:52 +02:00
Caolán McNamara
104261010a some UniString->rtl::OUString
Change-Id: Ie69b30094da25df23a36baca2c7723d6a41f48c3
2012-07-09 12:16:56 +01:00
Michael Stahl
3c6bc3cb6a BorderWidthImpl: let's try if this is a better way to convert to int
Change-Id: Ib374998199afff347786764716646e73dd12de2a
2012-07-06 16:18:11 +02:00
Michael Stahl
2d045cdb69 refactor handling of double border widths:
Word uses a completely different definition of "width" of a double border
than OOo and ODF: for Word the width is apparently the largest of the 3
component widths, while OOo and ODF define the width as the total with of
all 3 components.  The new border implementation in LO 3.4 was apparently
inspired by Word's double border definition, which resulted in
various import filter regressions, see the previous fixes:

36e43b5299
e2ffb71305
70a6a4d425

These fixes set the ScaleMetrics, which actually seems sub-optimal as
there is a ScaleItemSet function somewhere that apparently re-scales
all items in an itemset, which could undo the fixes.

Also, one of the fixes actually managed to break RTF/DOCX import
of double borders, as that ended up in the same code via the API.

This commit now reverses the change, so that the width of a border is
now always the total with of all components, which is (imho) much more
intutitive, and also leads to a consistent UI where selecting say 3pt
width has predictable results, no matter what the border style.

The border widths are now converted in the Word format import/export
filters (writerfilter and sw/source/filter/ww8), and various tests
were adapted to the new handling.

Change-Id: I50456c49b1a298569607e6c88f19f18441348ac3
2012-07-04 17:55:45 +02:00
Caolán McNamara
9e0cbe5eb3 some pesky XubStrings
Change-Id: Ib4095dee416cab6d954e1612d2e3f6e2d4464f48
2012-06-29 11:20:32 +01:00
Julien Nabet
e45bb323ee Fix prefix ++/-- operators for non-primitive types
Change-Id: Ibb55fcedecaf66f0817d24d8f408ef69d273ffa2
2012-06-23 23:06:48 +02:00
Caolán McNamara
8f5629fd5a remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
2012-06-11 14:46:46 +01:00
Michael Meeks
93b415a68f targetted prefer prefix operators reversion
Change-Id: I7e1ae9622bc89b584ddbb307dac15b0ed56ae563
2012-05-31 14:58:05 +01:00
Miklos Vajna
82b0450450 n#760294 svtools: allow border gap < 1pt
Change-Id: I3ac70ea343edde406e78845a112aabcbd8ff65b1
2012-05-14 17:20:30 +02:00
Caolán McNamara
eca06e79c3 callcatcher: update unused code list
Change-Id: I2b21cb0b6d9164b18594e2c122ce242062be276d
2012-05-13 09:50:41 +01:00
Takeshi Abe
be0c5bd426 removed unused defines
Change-Id: Icc2ed1499615728bd8dce1b34e64095fcd5d78b9
2012-05-11 22:27:57 +09:00
Caolán McNamara
8a0685d49f make ResId::toString a non-static member
Change-Id: I756c0a19bea7b1cc0e290d9f382a04d655819bfb
2012-04-30 11:22:09 +01:00
Caolán McNamara
a4feeebd37 refactor ImpSvtData 2012-04-25 16:06:54 +01:00