Commit Graph

399660 Commits

Author SHA1 Message Date
Caolán McNamara
7e2ef433d2 Resolves: tdf#102957 revert SetMinOutputSizePixel workaround
of

commit afeddaf7e0
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Wed Dec 16 10:46:10 2015 +0000

    Related: rhbz#1281906 set a min size on un-resizeable non-layout dialogs

and using a mixture of gtk_window_set_default_size before its visible, and
gtk_window_set_default_size + gtk_window_resize after its shown now works for
me under wayland so the original problem can be solved that way

Change-Id: Iaf8fd3019a7e902ad07b6825f919c6f25288e9b7
2016-11-15 15:08:26 +00:00
Samuel Mehrbrodt
ec4e48c750 Fix typos
Change-Id: I3e38b1d445c368c28e807202b94c603bd2b2c672
Reviewed-on: https://gerrit.libreoffice.org/30872
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-11-15 14:51:34 +00:00
Thorsten Behrens
5d1a788468 fix tdf#101832 and tdf#100617
OutDev mapmode takes shortcuts for 'simple' mappings, so clear that flag
once we set scale/origin away from defaults.

Change-Id: I00321e27322d9cb8b86e6cc8400f6396d03328cc
Reviewed-on: https://gerrit.libreoffice.org/30855
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-11-15 14:51:13 +00:00
Caolán McNamara
e71ef59f2b sigh, then you can't shrink manually past size request
Change-Id: Ia919f65f93a3dad0af06a2fa4f7b42b5f9ae2052
2016-11-15 14:04:01 +00:00
Noel Grandin
3bf5bc2e19 Revert some chart2 shader-affecting changes
from

    commit 8d4a306eb0
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Tue Nov 15 11:26:59 2016 +0200
    loplugin:unusedfields

and

    commit c79b7fd8d4
    Author: Noel Grandin <noel@peralex.com>
    Date: 2015-11-20 10:41:00 (GMT)
    loplugin:unusedfields in chart2

Change-Id: I6b61aa9c6abb1d51e96d5eb6c623d86fd6fd5b82
2016-11-15 15:47:25 +02:00
Stephan Bergmann
1c154c84d2 Spurious whitespace at end of line
Change-Id: I684f8ad46527ce13b8c19a52265af3a581dca6cb
2016-11-15 14:43:12 +01:00
Noel Grandin
7ab84fab53 fix build
after commit 0d05173015
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Tue Nov 15 09:13:33 2016 +0200
    loplugin:constantparam

Change-Id: Ia3e761168043e5a8d22793689e9f224a85a6b7ca
2016-11-15 15:41:23 +02:00
Caolán McNamara
68fc92db88 use only widget_set_size_request in gtk3
and remove some bogus out of date comments

Change-Id: I589eb64016241cf2bcd425ccbaa62229f36880e8
2016-11-15 13:23:44 +00:00
Caolán McNamara
1aeff41c4a Resolves: tdf#102957 revert SetMinOutputSizePixel workaround
of

commit afeddaf7e0
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Wed Dec 16 10:46:10 2015 +0000

    Related: rhbz#1281906 set a min size on un-resizeable non-layout dialogs

and setting a size-request seems to do the right thing for me now under wayland
so the original problem can be solved that way

Change-Id: Ie2dd71c5a32131a60729448f0665d5cae2a83692
2016-11-15 13:23:44 +00:00
Noel Grandin
0d05173015 loplugin:constantparam
Change-Id: Iced8ff99d52d55e6b6c3126affafbea6786e94f0
Reviewed-on: https://gerrit.libreoffice.org/30858
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-15 12:56:26 +00:00
jan Iversen
d2e9d3d0ed update lo-pack-sources
os-x has a problem with progress bar on tar
Also remade to sed expression to a simpler one that osx understands.
change

change

Change-Id: If09573760a4bedfa285519241582bbd639a4e976
Reviewed-on: https://gerrit.libreoffice.org/30043
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-11-15 12:47:26 +00:00
Noel Grandin
8d4a306eb0 loplugin:unusedfields
Change-Id: I1400ca0af2c357dff06e5f733ec62b13d6a96461
Reviewed-on: https://gerrit.libreoffice.org/30861
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-15 12:20:59 +00:00
Jan Holesovsky
6b4eaa7ee7 Add the missing lok::Office::registerCallback().
Change-Id: I0aebf12c4d685f69f094b9acbe6b04bb5b3234a4
2016-11-15 13:09:17 +01:00
Khaled Hosny
a5750d92b2 tdf#103725: Fix horizontal scaling on Windows
* Create IDWriteFont from LOGFONT instead of HDC, as it seems the later
  will discard the font width. Without font width, GDI/DirectWrite will
  not scale the font horizontally.
  Does not seem to work with all Windows versions (at least not
  Windows 10 Anniversary Update), seems like this undocumented behaviour
  have been dropped :(
* Adjusting font width on Windows during layout, see the inline comment.


Change-Id: I19b788460b6b6ca2c83d75bbf09a0601a250c289
Reviewed-on: https://gerrit.libreoffice.org/30847
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Tested-by: Khaled Hosny <khaledhosny@eglug.org>
2016-11-15 11:30:42 +00:00
Justin Luth
098f7a4ac2 tdf#34467 - FitToFrame: stretch text to fill drawing obj
Help for Fit To Frame says "Resizes the text to fit the entire area
of the drawing or text object".

reverts commit b7628798ec
and partially addresses the problem of "Shrink font automatically
when text overflows" by treating text as "Autofit" while it is being
edited.
It's not WYSIWYG, but good enough, and maybe better.

Since that part of the change prevents any way of setting ::Autofit,
I also changed the default setting to Autofit instead of NONE, since there
is no good reason why text should be allowed to spill outside of a textbox.
For those who REALLY want that odd behaviour, they can use
.uno:TextFitToSize (Ctrl-Shift-F8) to toggle between "stretch" and "none".

Change-Id: I8313a82cbea82f11fad0f50d966fc77874977da9
Reviewed-on: https://gerrit.libreoffice.org/30727
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-11-15 10:27:34 +00:00
Stephan Bergmann
645583dfd3 New compilerplugins/clang unit tests
...to check that loplugin produces warnings/errors as expected:

* Clang has a -verify switch that makes it easy to write test input .cxx files
  that list in comments all the warnings/errors that are expected, and let Clang
  check those expectations instead of generating object code.  See
  include/clang/Frontend/VerifyDiagnosticConsumer.h in the Clang source tree for
  documentation.

* Introduce a CompilerTest gbuild class that uses the existing LinkTarget class
  as much as possible.  Checking the input files is implicitly phony, as the
  compilation step doesn't generate any object files, and the link step does
  nothing because there is no gb_LinkTarget_set_targettype for CompilerTest.
  The setup at least works for Clang on Linux (will need adaptions for Clang on
  Windows; compilers other than Clang are not relevant for now given this is
  used to check compilerplugins).

* Definition of gb_CFLAGS_WERROR in solenv/gbuild/platform/com_GCC_defs.mk needs
  to be lazy ('=' vs. ':=') so that CompilerTest can override it:  The Clang
  -verify mode wants the input files to specify whether the loplugin diagnostics
  are warnings or errros, so they consistently need to be errors independent of
  --enable-werror configuration.

* A first (example) test is in compilerplugins/clang/test/salbool.cxx.  The
  corresponding gbuild CompilerTest instance is in
  solenv/CompilerTest_compilerplugins_clang.mk for now.  The reason for that odd
  split across compilerplugins/ and solenv/ is that there is no
  compilerplugins/Modules_compilerplugins.mk file, so this setup is the easiest
  hack for now (to be cleaned up).  (Another area that could be improved is that
  all test files need to be listed explicitly in the CompilerTest_*.mk file,
  instead of, say, using all .c/.cxx/.m/.mm files in a specified directory.)

* The test is run somewhat late during a top-level 'make', after loplugin has
  already been used in compilation.  But it can be run manually (e.g., 'make
  solenv') when making changes to loplugin during development.

Change-Id: I01e12fb84887d264ac03ef2484807458c2075af4
2016-11-15 11:09:29 +01:00
Miklos Vajna
10efab2b9a tdf#82824 DOCX import: fix at-char embedded object handling
The anchor type of embedded object was simply not handled, we always
assumed that it's as-char.

When it's at-char set the anchor type accordingly, and also set the
usual 6 properties determining the position of the anchored object.

Change-Id: I3f8bede33c6f1a0bdc4f4d4ea59c4fc805802291
Reviewed-on: https://gerrit.libreoffice.org/30860
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-11-15 09:28:29 +00:00
Chamal
4eb2863e95 tdf#96099 Reduce no of typedefs used for trivial containers
OStringSet replaced with std::set< OString >

Change-Id: Ifad06cd77c5c4123b85171df866ac10a3bea4705
Reviewed-on: https://gerrit.libreoffice.org/29803
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-11-15 09:09:36 +00:00
Noel Grandin
47f323d04c loplugin:constantparam
Change-Id: I1a6e13584ca516f44195e724b39e78360a842c7c
Reviewed-on: https://gerrit.libreoffice.org/30859
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-15 08:40:44 +00:00
Noel Grandin
c37b72c182 loplugin:countusersofdefaultparams in include/vcl
Change-Id: I16979e6d49e7f1ff7ea53194cfc64fddf27d00cf
Reviewed-on: https://gerrit.libreoffice.org/30841
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-15 05:49:20 +00:00
Justin Luth
9259fcd40b tdf#88827 - double-thin border: MINGAPWIDTH is a valid width
double-thin borders are available in the UI starting from 0.5pt.
The actual minumum (as seen in a round-trip), is 1.10pt.
(Each thin line is ~ .50pt, the gap is ~ .05pt, and then some
approximations and rounding show it as 1.10 - at least that is how I
understood it). 1.15pt is the first point at which the gap is larger
than the minimum - and double_thins with a minimum gap were considered
invalid, and thus were not imported.

With this fix, double-thin borders created with a size less than 1.15pt
are valid and visible on import.

Change-Id: I6da2a40d13ed83281de403b22b3acbea4288ac60
Reviewed-on: https://gerrit.libreoffice.org/30857
Reviewed-by: Justin Luth <justin_luth@sil.org>
Tested-by: Justin Luth <justin_luth@sil.org>
2016-11-15 05:39:38 +00:00
Thorsten Behrens
5f293414d6 vcl: include redux in MapMode
Change-Id: Icc43510a3e561b426319465ea98eb374a3aa1f8d
2016-11-15 04:26:58 +01:00
Thorsten Behrens
30d6397809 vcl: cleanup whitespace in MapMode
Change-Id: Ib790bab105c337d62ffc93f72bf6da49a74f00cf
2016-11-15 04:26:48 +01:00
Thorsten Behrens
d55bbd9ea2 vcl: add/unify some clipboard SAL_INFO tracing
Change-Id: I4989da02cbc82d253a486a7adde95551eddb45b3
2016-11-15 04:26:31 +01:00
Takeshi Abe
074f0ab1d7 tdf#76296 Import MathML's <mspace>
as possibly multiple "~" and/or "`" by honoring its width attribute.

Change-Id: I17e361c3f8f5d061c856b72266332369497d16b9
Reviewed-on: https://gerrit.libreoffice.org/30809
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-11-15 00:27:30 +00:00
Eike Rathke
bb50b1609a sc-perf: HasAttrChanged: save unnecessary calls to SfxItemPool::Get()
SfxItemPool::GetItemState() can already return a pointer to a set item so that
doesn't need to be obtained again through SfxItemPool::Get()

tdf#103493 'LotroPlan 3.8.ods'
https://bugs.documentfoundation.org/attachment.cgi?id=128252

         Incl.           Self      Called
Before:
10,210,820,257  1,162,295,513  34,670,201

After:
 9,887,701,235  1,384,985,151  34,670,201

Only ~3% and 0.5% of the overall load time, but..

Change-Id: Icbed8a7982a27472fdfb1dbe4fd2061ab1e601bd
2016-11-15 00:23:57 +01:00
Miklos Vajna
3ab31ae5db vcl PDF NSS sign: upgrade SHA-1 hash to SHA-256
Page 10 of "PAdES Basic" specification from
<http://www.etsi.org/deliver/etsi_ts%5C102700_102799%5C10277802%5C01.02.01_60%5Cts_10277802v010201p.pdf> says:

"The use of SHA-1 is being phased out in some countries and hence the
use of other hashing algorithms is
recommended."

Change-Id: I1fbf4a194a24090b719322f3cb4f9d7eef58f134
2016-11-14 19:36:10 +01:00
Eike Rathke
ec0f1b060a avoid reallocating if allocating once is enough
Change-Id: I30dbdd59304095c3a535af98217ddcb973ba0416
2016-11-14 18:07:01 +01:00
Stephan Bergmann
27ee9ee8e8 Don't AlignToPixel in SwView::SetVisArea
When e.g. inserting a Writer doc in a Calc doc ("Insert - Object - OLE Object...
- Create new - LibreOffice 5.3 Text" in Calc), the resulting .ods contains the
size of the embedded Writer doc in two places.  First as

  <draw:frame svg:width=... svg:height=... ...>

in content.xml, where the size is apparently the original rectangle's size,
before it got aligned in SetVisArea.  And a second time as

  <config:config-item config:name="ViewAreaWidth" config:type="long">...</config:config-item>
<config:config-item config:name="ViewAreaHeight" config:type="long">...</config:config-item>

in Object 1/settings.xml, where the size is apparently the aligned size.

When the document is loaded again, at first the first size is used to display
the inner Writer doc.  But when the inner Writer doc is double-clicked (to make
it editable), now the second size is used, and because they don't match, the
whole document is erroneously considered modified
(ScTabViewShell::ActivateObject -> SfxInPlaceClient::SetObjArea ->
SfxInPlaceClient::Invalidate -> ScClient::ViewChanged ->
ScDocShell::SetDrawModified -> ScDocShell::SetModified ->
SfxObjectShell::SetModified), causing e.g. the "Save" icon to become "active".

It is unclear to me whether these calls to AlignToPixel still serve any real
purpose; lets see whether removing them causes any issues...

Change-Id: I755dd9e8b2406f0b4b41d0f3d1281d6ad4b1b238
2016-11-14 17:48:56 +01:00
Stephan Bergmann
b6ce0cd83a Avoid unnecessary, wrong downcast
...as reported by -fsanitize=vptr when doing "Format - Paragraph... - Area -
Color" in Writer:

> cui/source/tabpages/tpcolor.cxx:65:19: runtime error: downcast of address 0x6030009782b0 which does not point to an object of type 'XOutdevItemPool'
> 0x6030009782b0: note: object is of type 'SwAttrPool'
>  20 01 80 1c  50 e8 e9 85 4d 7f 00 00  e0 28 48 86 4d 7f 00 00  c0 d7 11 00 30 61 00 00  80 29 54 00
>               ^~~~~~~~~~~~~~~~~~~~~~~
>               vptr for 'SwAttrPool'
>     #0 0x7f4b047cfd3a in SvxColorTabPage::SvxColorTabPage(vcl::Window*, SfxItemSet const&) cui/source/tabpages/tpcolor.cxx:65:19
>     #1 0x7f4b0480ec04 in VclPtr<SvxColorTabPage> VclPtr<SvxColorTabPage>::Create<vcl::Window*&, SfxItemSet const&>(vcl::Window*&, SfxItemSet const&) include/vcl/vclptr.hxx:138:46
>     #2 0x7f4b047f8567 in SvxColorTabPage::Create(vcl::Window*, SfxItemSet const*) cui/source/tabpages/tpcolor.cxx:326:12
>     #3 0x7f4b0472132a in CreateFillStyleTabPage(unsigned short, vcl::Window*, SfxItemSet const&) cui/source/tabpages/tparea.cxx:319:42
>     #4 0x7f4b0471ef8b in SvxAreaTabPage::SelectFillTypeHdl_Impl(Button*) cui/source/tabpages/tparea.cxx:330:41
>     #5 0x7f4b047114b3 in SvxAreaTabPage::LinkStubSelectFillTypeHdl_Impl(void*, Button*) cui/source/tabpages/tparea.cxx:323:1
>     #6 0x7f4df3eac737 in Link<Button*, void>::Call(Button*) const include/tools/link.hxx:84:45
>     #7 0x7f4df3e93bb6 in Button::Click()::$_0::operator()() const vcl/source/control/button.cxx:127:85

Change-Id: I6259b100c535fa81b9f7452db84c22d5b10acb1e
2016-11-14 17:45:17 +01:00
Stephan Bergmann
8c12f81453 This RES_FRM_SIZE item is apparently SwFormatFrameSize, not SvxSizeItem
...as reported by -fsanitize=vptr when doing "Format - Page..." in Writer
(though both types have a Size member at the same location, so didn't cause any
real problems):

> sw/source/ui/misc/pgfnote.cxx:283:32: runtime error: downcast of address 0x604000e23f50 which does not point to an object of type 'const SvxSizeItem'
> 0x604000e23f50: note: object is of type 'SwFormatFrameSize'
>  94 01 00 3d  90 ae ee 90 ff 7e 00 00  06 00 00 00 58 00 00 be  d0 2f 00 00 00 00 00 00  e0 3d 00 00
>               ^~~~~~~~~~~~~~~~~~~~~~~
>               vptr for 'SwFormatFrameSize'
>     #0 0x7efd1c8d01e2 in SwFootNotePage::ActivatePage(SfxItemSet const&) sw/source/ui/misc/pgfnote.cxx:283:32
>     #1 0x7efd1c8cbf07 in SwFootNotePage::Reset(SfxItemSet const*) sw/source/ui/misc/pgfnote.cxx:230:5
>     #2 0x7f002e149560 in SfxTabDialog::ActivatePageHdl(TabControl*) sfx2/source/dialog/tabdlg.cxx:1117:19
>     #3 0x7f002e1400e3 in SfxTabDialog::LinkStubActivatePageHdl(void*, TabControl*) sfx2/source/dialog/tabdlg.cxx:1035:1
>     #4 0x7f0008248f37 in Link<TabControl*, void>::Call(TabControl*) const include/tools/link.hxx:84:45
>     #5 0x7f0008204caa in TabControl::ActivatePage() vcl/source/control/tabctrl.cxx:1601:19

Change-Id: I73df2438565a7069153b22140197897df810b2aa
2016-11-14 17:45:17 +01:00
Stephan Bergmann
f3f71b087d Avoid -fsanitize=null
...during CppunitTest_filter_dialogs_test:

> filter/source/xsltdialog/xmlfiltersettingsdialog.cxx:1398:20: runtime error: reference binding to null pointer of type 'ResMgr'
>     #0 0x7f144bf5ab10 in XMLFilterListBox::XMLFilterListBox(vcl::Window*, SvxPathControl*) filter/source/xsltdialog/xmlfiltersettingsdialog.cxx:1398:20
>     #1 0x7f144bf7abb8 in VclPtr<XMLFilterListBox> VclPtr<XMLFilterListBox>::Create<VclPtr<VclVBox>&, SvxPathControl*>(VclPtr<VclVBox>&, SvxPathControl*&&) include/vcl/vclptr.hxx:138:46
>     #2 0x7f144bf50df8 in SvxPathControl::SvxPathControl(vcl::Window*) filter/source/xsltdialog/xmlfiltersettingsdialog.cxx:1312:20
>     #3 0x7f144bf7d487 in VclPtr<SvxPathControl> VclPtr<SvxPathControl>::Create<VclPtr<vcl::Window>&>(VclPtr<vcl::Window>&) include/vcl/vclptr.hxx:138:46
>     #4 0x7f144bf56a2f in makeSvxPathControl filter/source/xsltdialog/xmlfiltersettingsdialog.cxx:1378:1
>     #5 0x7f14d2060a04 in VclBuilder::makeObject(vcl::Window*, rtl::OString const&, rtl::OString const&, std::__debug::map<rtl::OString, rtl::OString, std::less<rtl::OString>, std::allocator<std::pair<rtl::OString const, rtl::OString> > >&) vcl/source/window/builder.cxx:1793:17
>     #6 0x7f14d2078ddb in VclBuilder::insertObject(vcl::Window*, rtl::OString const&, rtl::OString const&, std::__debug::map<rtl::OString, rtl::OString, std::less<rtl::OString>, std::allocator<std::pair<rtl::OString const, rtl::OString> > >&, std::__debug::map<rtl::OString, rtl::OString, std::less<rtl::OString>, std::allocator<std::pair<rtl::OString const, rtl::OString> > >&, std::__debug::map<rtl::OString, rtl::OString, std::less<rtl::OString>, std::allocator<std::pair<rtl::OString const, rtl::OString> > >&) vcl/source/window/builder.cxx:1887:25
>     #7 0x7f14d208790a in VclBuilder::handleObject(vcl::Window*, xmlreader::XmlReader&) vcl/source/window/builder.cxx:2856:37
>     #8 0x7f14d20215bc in VclBuilder::handleChild(vcl::Window*, xmlreader::XmlReader&) vcl/source/window/builder.cxx:2114:33
>     #9 0x7f14d2087bea in VclBuilder::handleObject(vcl::Window*, xmlreader::XmlReader&) vcl/source/window/builder.cxx:2859:17
>     #10 0x7f14d20215bc in VclBuilder::handleChild(vcl::Window*, xmlreader::XmlReader&) vcl/source/window/builder.cxx:2114:33
>     #11 0x7f14d2087bea in VclBuilder::handleObject(vcl::Window*, xmlreader::XmlReader&) vcl/source/window/builder.cxx:2859:17
>     #12 0x7f14d20215bc in VclBuilder::handleChild(vcl::Window*, xmlreader::XmlReader&) vcl/source/window/builder.cxx:2114:33
>     #13 0x7f14d200c59a in VclBuilder::VclBuilder(vcl::Window*, rtl::OUString const&, rtl::OUString const&, rtl::OString const&, com::sun::uno::Reference<com::sun::frame::XFrame> const&) vcl/source/window/builder.cxx:206:9
>     #14 0x7f1492275862 in ScreenshotTest::dumpDialogToPath(rtl::OString const&) test/source/screenshot_test.cxx:177:24

The existing code apparently depended on any calls to getXSLTDialogResMgr in
xmlfiltersettingsdialog.cxx only happening after pXSLTResMgr had been set up in
the outer XMLFilterDialogComponent::execute in xmlfilterdialogcomponent.cxx.
That is not true when each dialog is opened independently in the screenshot
test, so instead just call CreateResMgr on demand wherever needed.

Change-Id: I9f6dc7c66d4999137352a8d91665b954f4088085
2016-11-14 17:45:17 +01:00
Stephan Bergmann
c80ac2ba4a Avoid -fsanitize=signed-integer-overflow
...when doing "Format - Page..." in Writer:

> vcl/source/control/field.cxx:621:20: runtime error: signed integer overflow: 9223372036854775807 * 100 cannot be represented in type 'long'
>     #0 0x7f57787c4868 in NumericFormatter::Normalize(long) const vcl/source/control/field.cxx:621:20
>     #1 0x7f578a4608dc in SetFieldUnit(MetricField&, FieldUnit, bool) svtools/source/misc/unitconv.cxx:75:32
>     #2 0x7f5488952648 in SvxPageDescPage::SvxPageDescPage(vcl::Window*, SfxItemSet const&) cui/source/tabpages/page.cxx:275:5
>     #3 0x7f54889c3ea4 in VclPtr<SvxPageDescPage> VclPtr<SvxPageDescPage>::Create<vcl::Window*&, SfxItemSet const&>(vcl::Window*&, SfxItemSet const&) include/vcl/vclptr.hxx:138:46
>     #4 0x7f5488925d27 in SvxPageDescPage::Create(vcl::Window*, SfxItemSet const*) cui/source/tabpages/page.cxx:162:12
>     #5 0x7f579ea86df4 in SfxTabDialog::ActivatePageHdl(TabControl*) sfx2/source/dialog/tabdlg.cxx:1085:24
>     #6 0x7f579ea800e3 in SfxTabDialog::LinkStubActivatePageHdl(void*, TabControl*) sfx2/source/dialog/tabdlg.cxx:1035:1
>     #7 0x7f5778b88f37 in Link<TabControl*, void>::Call(TabControl*) const include/tools/link.hxx:84:45
>     #8 0x7f5778b44caa in TabControl::ActivatePage() vcl/source/control/tabctrl.cxx:1601:19

and NumericFormatter::mnMax is still SAL_MAX_INT64 (but will be set to a smaller
value a few lines futher down in the SvxPageDescPage ctor).  So initialize mnMax
to a substantially smaller value (that is still "large", but avoids this kind of
overflow), and hope that no code relies on the exact initial value.

Change-Id: If3b4db1d20bc59418d1769e9690bc7ecdbf29a50
2016-11-14 17:45:17 +01:00
Stephan Bergmann
2f0885bb36 Avoid -fsanitize=null
...when doing "Format - Page..." in Writer (and eFillType is TRANSPARENT):

> cui/source/tabpages/tparea.cxx:331:33: runtime error: reference binding to null pointer of type 'SfxTabPage'
>     #0 0x7f9f053e936f in SvxAreaTabPage::SelectFillTypeHdl_Impl(Button*) cui/source/tabpages/tparea.cxx:331:9
>     #1 0x7f9f053e548c in SvxAreaTabPage::ActivatePage(SfxItemSet const&) cui/source/tabpages/tparea.cxx:157:13
>     #2 0x7fa21be01676 in SfxTabDialog::ActivatePageHdl(TabControl*) sfx2/source/dialog/tabdlg.cxx:1126:19
>     #3 0x7fa21bdf70e3 in SfxTabDialog::LinkStubActivatePageHdl(void*, TabControl*) sfx2/source/dialog/tabdlg.cxx:1035:1
>     #4 0x7fa1f5efff37 in Link<TabControl*, void>::Call(TabControl*) const include/tools/link.hxx:84:45
>     #5 0x7fa1f5ebbcaa in TabControl::ActivatePage() vcl/source/control/tabctrl.cxx:1601:19

Change-Id: I279f507038ab4bae1be4f02b6537e6d1aab76348
2016-11-14 17:45:17 +01:00
Stephan Bergmann
4622e44812 Avoid -fsanitize=enum
...when doing "Format - Page..." in Writer:

> cui/source/tabpages/tparea.cxx:268:12: runtime error: load of value 4294967295, which is not a valid value for type 'FillType'
>     #0 0x7f89ff653a41 in SvxAreaTabPage::Reset(SfxItemSet const*) cui/source/tabpages/tparea.cxx:268:12
>     #1 0x7f8d15524560 in SfxTabDialog::ActivatePageHdl(TabControl*) sfx2/source/dialog/tabdlg.cxx:1117:19
>     #2 0x7f8d1551b0e3 in SfxTabDialog::LinkStubActivatePageHdl(void*, TabControl*) sfx2/source/dialog/tabdlg.cxx:1035:1
>     #3 0x7f8cef623f37 in Link<TabControl*, void>::Call(TabControl*) const include/tools/link.hxx:84:45
>     #4 0x7f8cef5dfcaa in TabControl::ActivatePage() vcl/source/control/tabctrl.cxx:1601:19

Change-Id: I19dd3ed9d362132daa3f3be9fb0e9702a62bdeb0
2016-11-14 17:45:17 +01:00
Jean-Tiare Le Bigot
9a86bf76fe chartx: (regression) fix crash on label import
The sparse chart import moved from assuming that the number of elements
in the list parsed from ooxml is the same as the real number of
elements. For this, the patch relies on a new member that was not always
initialized. This patch fixes a missing initialization. According to
'grep' this should be the last one.

Change-Id: I31d8a653f227100436360deef4a53c9418de9d93
Reviewed-on: https://gerrit.libreoffice.org/30838
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-11-14 16:28:51 +00:00
Caolán McNamara
2fdbe655bb gtk3: scrollbar damage area one pixel too narrow/short
under default Ambience theme Ubuntu 16.04

tools rectangle strikes again, rejig to be left/top +
width/height rather than left/top + right/bottom

Change-Id: Id5274f068863cd5219a89142b392c9ca53a1694d
Reviewed-on: https://gerrit.libreoffice.org/30850
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-11-14 16:28:00 +00:00
Stephan Bergmann
682899e313 CXXDestructorDecl is already handled
...a few lines up, together with CXXConstructorDecl

Change-Id: Id9afd4d3936b2efb92de3c6ab950da78d876a5a8
2016-11-14 16:47:25 +01:00
Stephan Bergmann
a796ca45e7 Make CppunitTest_vcl_app_test compile again
...after 6e32e57582 "Resolves: tdf#103915 when
global dark theme is set fall back to breeze_dark".  No idea whether
bDarkIconTheme=false is the right choice in all three cases, but at least the
test succeeds that way.

Change-Id: I633c4ebff19a1d441baa8270d681a73c8f6c4aa0
2016-11-14 15:57:03 +01:00
Katarina Behrens
ada8a2123e tdf#103228: Remember fill type when switching between tabs
This page used not to have exchange support, but it needs it now
since it contains all the fill type subtabs

Change-Id: Ibeefc0ae832b4d53727711a169f1765d28350ec1
Reviewed-on: https://gerrit.libreoffice.org/30843
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-11-14 14:33:16 +00:00
Stephan Bergmann
1e70553585 Make ~OCode an anchor again for vtable and RTTI emission
...had been lost with dd5fa4cea7 "declare default
dtor as virtual"

Change-Id: I30acd02c293a5ecc99f5bf4f6b1f6358ae392e93
2016-11-14 15:29:12 +01:00
Khaled Hosny
ea95ced269 Revert "tdf#103725: Fix horizontal scaling on Windows"
This reverts commit 30fefcf714.

Thuough it works on my system, others report that it made things worse. A
better fix is comming, hopefully.
2016-11-14 16:21:37 +02:00
Caolán McNamara
6e32e57582 Resolves: tdf#103915 when global dark theme is set fall back to breeze_dark
otherwise don't assume a desired iconset ending in *dark means breeze_dark
is a good fallback

Change-Id: Ia294a86e17a2c390b503d5200dfc7195759afa00
2016-11-14 13:50:37 +00:00
Henry Castro
32d0378284 lok: add character parameter to renderFont
When client side request special character, it is very useful to send a
preview of the rendered font character

Conflicts:
	desktop/source/lib/init.cxx

Change-Id: I1f5727163dfcc861add121e616bdb17881c28197
Reviewed-on: https://gerrit.libreoffice.org/30784
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2016-11-14 13:06:47 +00:00
Noel Grandin
65ba7e4dc4 tdf#103897 No space between template previews from Start Center
regression from
	commit	96e9ffa647 (patch)
	loplogin:singlevalfields in include/

I did not notice that the mnItemPadding field was shadowing a
declaration in a superclass

Change-Id: I52cf9945da43fa3d1049b624a6b24bc6d974d445
2016-11-14 14:17:57 +02:00
Noel Grandin
391c6aeeed ignore constructors for method-can-be-private analysis
doesn't work right now

Change-Id: I43693104f4af204a6bd0c22b0f7ef53c1a14bb6e
2016-11-14 13:56:13 +02:00
Caolán McNamara
616bc7b854 Resolves: tdf#103914 if menu no longer has focus, leave focus where it is
In the normal course of events, the menu, or its children, has focus when its
popped down, in this case continue to restored the focus to the previous focus
window which had it when the menu appeared.

If some other non-child window of the menu has focus as popdown time, leave
the focus where it is.

Change-Id: Ia860f90350653ad4d8056738dacbc434fb364989
2016-11-14 11:36:41 +00:00
Julien Nabet
52040395e3 tdf#34212: Accented Characters and Umlauts are missing with Type1 fonts
Following the revert of previous patch:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=297b22bd49ea11a90063ab8503fb83090f351668
Gilbert Röhrbein proposed this patch
See https://bugs.documentfoundation.org/show_bug.cgi?id=34212#c14

Change-Id: I1a30427cd88f5602e7633894ba35307104c2ed8d
Reviewed-on: https://gerrit.libreoffice.org/29792
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-11-14 11:34:47 +00:00
Gabor Kelemen
37c3e57c78 tdf#103703 Turn on single print jobs for collated prints by default
This way when printing documents with odd number of pages
and collated printing is selected the first page of the
second copy is not printed to the empty last page of the firs copy.

Change-Id: Ie4d9f6952e39581690c396665a9894970be54b6b
Reviewed-on: https://gerrit.libreoffice.org/30774
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-11-14 10:14:29 +00:00
Tor Lillqvist
757a60d01d xsd:dateTime must use period as decimal separator, not comma
Change-Id: I8ed5242a4337da2ec1568d92bebfdad4915e6128
2016-11-14 12:05:59 +02:00