328906 Commits

Author SHA1 Message Date
Tor Lillqvist
1410cac73f WaE: macro is not used
Change-Id: I2f55abf4526f4184ba04fc173df8cf5236219cfc
2013-06-20 12:40:59 +03:00
Caolán McNamara
a3694b1b32 move static bitmap into a svapp member
so it won't crash on exit when its dtor uses stuff destroyed by deinitvcl
already.

also fix comparisons, i.e. presumably
aLastColorTopLeft == aLastColorTopLeft etc
should have been aLastColorTopLeft == aColorTopLeft

Change-Id: I1f3dc47504c5add113b3a8bcadf010ca3b9f4c31
2013-06-20 10:40:47 +01:00
Stephan Bergmann
104a7bab58 -Werror,-Wdeprecated-register
Change-Id: I1ec3d7845477cfb5bc6a3d7f70ddabef12583e1b
2013-06-20 10:54:20 +02:00
Miklos Vajna
a9966b2721 fdo#43641 oox: initial import of lc:lockedCanvas
If that canvas contains a single shape, the result looks OK. If it
contains a groupshape, we also import something, but then the position /
size is still to be improved.

Change-Id: Ic4e4c08016a05a5e3acb005c3a642981ba4fb16d
2013-06-20 10:46:56 +02:00
Miklos Vajna
363dafefad fdo#43641 writerfilter: tokenize lc:lockedCanvas
These are just the minimal changes, so that writerfilter calls into
oox::shape::ShapeContextHandler, which does the real work.

Change-Id: Ia53731ac8592964b70e8a438ed09262463c05360
2013-06-20 10:46:56 +02:00
Miklos Vajna
32b93c5c4f fdo#43641 oox: add support for the lockedCanvas namespace
The plan is that once these are here, the writerfilter ooxml tokenizer
can refer to them. And then the writerfilter will call back to oox to do
the real drawingml import.

Change-Id: Ibc0d9838f3db717004a3bc8b80a408a39c8f0886
2013-06-20 10:46:55 +02:00
Stephan Bergmann
ebc635b95c Turn redundant member direct-initializations into value-initializations
...the direct-initializations were introduced with
032d5126e41562917b91b8f4826b0be628169968 "cppcheck: fix some uninitMemberVar in
configmgr part," presumably to avoid false positives from static analysis tools.
But the initializations are redundant, as the invariants of the affected classes
imply that the members have meaningful values at their points of use.  And the
direct-initializations with arbitrary values make it harder for a maintainer to
understand the relevant invariants, namely to ensure the members must have been
assigned /meaningful/ values by the time they are used.  Give a (subtle) clue by
making those into value-initializations.

Change-Id: Iadb25fa08b6d6b12d5bf8a8f04271270b6a7f7cb
2013-06-20 10:07:21 +02:00
David Tardon
4379180aaa quote $ for files from filelists too
Change-Id: Ice814ea226ddac24325770d038e019e19bc635ce
2013-06-20 09:24:24 +02:00
Luboš Luňák
597178ceec simplify bodynotinblock plugin using parentStmt()
Change-Id: Ia2fe10af2ca555c7b88348e7ed571f1176586580
2013-06-20 07:21:32 +02:00
Luboš Luňák
81b58bb075 simplify postfixincrementfix plugin using parentStmt()
Change-Id: I93fa422afe7f3e1e10576dd64af9d57b2302f44e
2013-06-20 07:21:31 +02:00
Luboš Luňák
ade47d3d67 make it easy to get a parent of an AST node
Clang API doesn't provide this, but it's occasionally needed, and so far
the way has been inspecting the highest possible node in AST and walking down
and remembering, which is complicated, error-prone and annoying.

Change-Id: Id5b72cb5ebfc069e90efe6d673c0ef18ebcdab61
2013-06-20 07:21:31 +02:00
David Tardon
d0db313465 do not try to install helppacks that were not built
Change-Id: I0156c38e71fe46ea599a8366b953d429dfa424bb
2013-06-20 06:35:11 +02:00
Khaled Hosny
22d23d52b0 Fix calculation of internal leading
Stupid me, I totally messed this up! God only knows how many non-bugs
people had to fix because of this typo.

Has the side effect of fixing fdo#64972 (among many others of course,
but this is the only one still open).

Change-Id: I9d8fdb6d37d4af9b0ac973902e469e0bd3a2408a
2013-06-20 01:34:02 +02:00
Michael Stahl
fe444d1f74 fdo#62536: sw: fix AutoCorrect bold/underline on existing AUTOFMT
With the native AUTOFMT in Writer the SETATTR_DONTEXPAND does no longer
work reliably: if there is an existing AUTOFMT at the position then it
will be modified and no new hint with DontExpand will be inserted.

Work around this deficiency by inserting a no-length hint with the
preivous formatting at the end of the range.

(similar fix to the i#75891 problem in SwTextShell::InsertSymbol)

(commit 062eaeffe7cb986255063bb9b0a5f3fb3fc8e34c did not
 introduce the problem but made it far more annoying)

Change-Id: I58ece7f5bd5a786b22a066e5902f1784dafa5dce
2013-06-20 00:34:39 +02:00
Michael Stahl
6db39dbd73 fdo#52028: sw: let text formatting ignore RSID in automatic styles
A suprising regression from 062eaeffe7cb986255063bb9b0a5f3fb3fc8e34c:
The RSID text attributes that are inserted for every user-inserted text
cause the text formatting (SwAttrIter) to create a lot more text portions,
and the portion breaks make font kerning impossible.

This is the only way i can think of to fix this problem; alternatives that
don't work are splitting the RSID out of the AUTOFMT hint into a separate
one and combining them in the sw UNO wrappers (fails because
SwXAutoStylesEnumerator actually does need to enumerate every AUTOFMT
including RSID), trying to detect and ignore them just in the text
formatting (the SwAttrIter cannot easily/cheaply detect when it's allowed
to skip), and having an internal subdivision inside the AUTOFMT hint (one
subsection for every RSID change) (which does not work because it cannot
ignore RSID-only AUTOFMTs completely).

Solve the problem with 2 additional flags on AUTOFMT and CHARFMT
attributes: FormatIgnoreStart and FormatIgnoreEnd, which indicate to
SwAttrIter::GetNextAttr() that the start or end of the hint should be
ignored, so that effectively it is merged with the preceding/subsequent
hint.  Of course the UNO API does not respect the flags so we can store
the RSIDs in automatic styles.

The flags are maintained in SwpHints::MergePortions, which detects both
RSID-only AUTOFMT hints (which can be ignored completely), and the
situation of N CHARFMT hints + AUTOFMT hint vs. N CHARFMT hints +
AUTOFMT hint where the AUTOFMT hints differ only in their RSID attribute.

This means that MergePortions needs to be called more often now, in cases
where the ignore flags may have been invalidated, such as:
- insertion of text with possible DontExpand flag set on hints
- deletion of hints
- SETATTR_NOHINTADJUST mode

Change-Id: I1fb95a87c654c67d114f6f7f2c43b847c50b0ffa
2013-06-20 00:34:38 +02:00
Michael Stahl
e012f326c1 sw: implement proper Undo for SwDoc::UpdateRsid
This is annoying because it's not possible to use StartUndo/EndUndo
because that would break grouping via SwUndoInsert::CanGrouping();
also SwUndoAttr is somehow incapable of removing the inserted hints of a
grouped insert (it seems to leave no-length hints behind); so add an
explicit call to DeleteAttributes which should avoid the no-length
hints.

Change-Id: I1533daed9b2cf59886f380141b4eace4b22c15e0
2013-06-20 00:34:38 +02:00
Michael Stahl
e3e2cf3037 libmwaw: fix infinite loop in findCentralDirectoryEnd
Change-Id: I36ec7ad735fa15cfda88167b11a922883ef2bb72
2013-06-20 00:34:04 +02:00
Caolán McNamara
7694bb997a Resolves: fdo#65930 line height needs to be calculated in ctor
we need to know that right from the start, not after the first
layout event after shown.

Change-Id: If7cc12cdf3e83913f0162fe34b376196162f6a45
2013-06-19 21:18:34 +01:00
Oliver-Rainer Wittmann
b7f2129c11 Resolves: #i120023# RTF export certain special copy-and-paste scenarios
(cherry picked from commit d70e1e8ea81a942875f91fdef75d3e39fba42eff)

Conflicts:
	sw/source/filter/ww8/rtfexport.cxx

Change-Id: I845f3f2bebe411969483a53c45ef9413f7f1b903
2013-06-19 20:15:22 +01:00
Caolán McNamara
4f3287c8b8 bodge callcatcher some more
Change-Id: Ie2e126700540cbec2a94f40250b2a114d1ea9306
2013-06-19 20:09:20 +01:00
Caolán McNamara
bbabdfd841 WaE: for higher debugging levels
Change-Id: Ibcf081c0c64381e8c188764f036687a8bfc0ea0e
2013-06-19 20:09:20 +01:00
Philipp Weissenbacher
f86ec4cdbd Start translating German comments, fix some WS
Change-Id: Ia53a9283fcb8f75386ec23ab3a3df5195a9995df
Reviewed-on: https://gerrit.libreoffice.org/4365
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-19 16:38:37 +00:00
Philipp Weissenbacher
904aff1932 Translate German comments, fix some WS
Change-Id: Ic52fc416aea9d1ca7235613aed7cf494f17ae21a
Reviewed-on: https://gerrit.libreoffice.org/4361
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-19 16:34:44 +00:00
Caolán McNamara
8fd1bd1879 bodge callcatcher build back to half-life
Change-Id: I91393aa912bd69f3fbeb67d895ff7d8021effccb
2013-06-19 16:46:39 +01:00
Stephan Bergmann
38d2ea2b25 Missing import
Regression introduced with 64e85a4cc8259a7d80c781e6698a8f30e7e0151d "Java
cleanup, remove unused imports."

Change-Id: I843cf651e20d2dd410f481222aca5206e0166a30
2013-06-19 17:41:00 +02:00
Stephan Bergmann
5b53053af5 Remove unused, broken rule
That rule was broken as it did not quote $@ which could be a pathname containing
"$", but it is unused anyway since 41efa1535827b3dfef66ed4ce6c20e85081fe060 "use
GeneratedPackage to deliver uno loader classes."

Change-Id: I4e5a15be8e4acca3d5be0c1b228f6c324d12331c
2013-06-19 17:20:34 +02:00
Matteo Casalin
4bb1b555c5 Rework code after OUString'ification
Change-Id: Ic93472b0621a13a777d37cfacc4230630f88a6ac
Reviewed-on: https://gerrit.libreoffice.org/4214
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-19 15:07:31 +00:00
Caolán McNamara
db20a50fab sal_Int32 as long on 32bit, how we hate thee
Change-Id: I702509c7ad9dd3e84feb6d880264df36afe3c5b3
2013-06-19 15:52:25 +01:00
Ariel Constenla-Haile
87dfa6dd33 Resolves: #i121810# Adapt SfxPrintingHint to work with...
the "new" XDocumentEventBroadcaster

(cherry picked from commit 1bfae56dd9d633a80924bfeefc03368100d75a8f)

Conflicts:
	sfx2/inc/sfx2/event.hxx
	sfx2/source/view/viewprn.cxx

Change-Id: I6b3e1edc396b82d85fe059e6cdf7ad0009d5b94b
2013-06-19 15:46:54 +01:00
Ariel Constenla-Haile
bf4ecd6138 Resolves: fdo#65908 #i114817# missing PrintableState_JOB_STARTED notification
(cherry picked from commit 914cb68eed75ee8aa38fbf48d029057a66a21f30)

Change-Id: Icb7c304b856cfca7f80090c2d193a0b92a27bb30
2013-06-19 15:38:38 +01:00
Armin Le Grand
aaf3ff8adf Resolves: #i122497# Filter D&D flags for calc D&D
(cherry picked from commit 73a9e800ff4f61058750acb6840af780a0505b49)

Change-Id: I47975b23d7ef920de24f92d6ba12bae1233b2f38
2013-06-19 15:26:15 +01:00
Caolán McNamara
650eaad6ce drop unused helpids
Change-Id: Ic2cb501330b22227c05b303750152619c4b4abb0
2013-06-19 15:23:31 +01:00
Caolán McNamara
03e93ba2bc Updated core
Project: help  fd638f9abaea98e5a5f788b24faedc45fe01ec1e
2013-06-19 14:23:26 +00:00
Caolán McNamara
d3c1c8d758 expand scheme to share sizes for paragraph dialog preview widgets
Change-Id: Id1ded6828468ff956c83eb57f1da62fd80761b5d
2013-06-19 15:18:30 +01:00
David Tardon
41efa15358 use GeneratedPackage to deliver uno loader classes
This is a workaround for problems with file names containing $ in
gbuild. And it does not matter much in this case, because the classes
are never used during build, so there is no need to have exact
dependencies.

Change-Id: Ibeb30257a62ed13744dc4fe987830d1e5a4102b0
2013-06-19 16:16:42 +02:00
Takeshi Abe
1ae19c8e6a Mark as static
Change-Id: I09a76b4c6ad0e63663c2628e5ad957d203e0283c
2013-06-19 22:41:26 +09:00
Takeshi Abe
913d6fb1cc Mark as const
Change-Id: Ib7f8aeeca64868fa2037145613023a6abfef7648
2013-06-19 22:41:26 +09:00
Takeshi Abe
c974471918 sal_Bool to bool
Change-Id: Ic0597f42b6f0a637e0a3fdfa7972cbe67272c65d
2013-06-19 22:41:25 +09:00
Olivier Hallot
d74323815a Convert Drop Caps tab page to UI widgets
Conflicts:
	sw/UIConfig_swriter.mk

Conflicts:
	sw/source/ui/chrdlg/drpcps.cxx

Change-Id: Ic66f367d23b84666dd0165108c405b5b625b798b
Reviewed-on: https://gerrit.libreoffice.org/4236
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-06-19 13:13:52 +00:00
Tor Lillqvist
97cd0f38a5 Call CheckContext() on OS X, too
Change-Id: I093586b0c979e492ea2a09dca9525b808de3ce70
2013-06-19 16:11:30 +03:00
Matúš Kukan
dbb0703272 solenv/bin: remove unreferenced obsoleted scripts
And move striplanguagetags.sh to bin/ - possibly it's used.

Change-Id: I68e23ef543f4e26f617d9860681273234ec9174c
Reviewed-on: https://gerrit.libreoffice.org/4239
Reviewed-by: Mathias M <matm@gmx.fr>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-06-19 13:05:15 +00:00
Caolán McNamara
cb1ec05a72 Resolves: fdo#65931 why are we futzing with leading on the preview anyway
Change-Id: I0eff88f165a737dfd9a2f348f04b17b6a6212e6f
2013-06-19 13:57:12 +01:00
Tor Lillqvist
a1936e4183 Fix warning: Value stored is never read
Change-Id: Ic41fe1682f19c39faa0a2afc47c11b8a5bead212
2013-06-19 15:56:08 +03:00
Tor Lillqvist
ec13a7bdbf Fix warning: Value stored to 'eEncoding' is never read
eEncoding is assigned again a few lines below.

Change-Id: Ib475095bab30e0c2f066934a10cda650706c2c8a
2013-06-19 15:56:08 +03:00
Tor Lillqvist
f5000d66ba Add missing break statements
Found by Clang static analyzer: Value stored to 'prio' is never read.

Change-Id: I7c0e90e5435b028f0a4b4bded304338cb57271cc
2013-06-19 15:56:08 +03:00
Adam Co
782adba4d4 fdo#64238: fix for missing footer bug
Signed-off-by: Miklos Vajna <vmiklos@suse.cz>

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx

Change-Id: I328547c41bfc1a23f7e6233db57fbfa415e22cb3
Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
2013-06-19 14:31:38 +02:00
David Tardon
8c1d1b6690 fdo#65870 fix changing shape height via dialog
Change-Id: I7c61be2c3d368dfd3ea66427c77636f797a7e88a
2013-06-19 14:27:16 +02:00
David Tardon
8fbb2ebc21 fix copypasta
Change-Id: I7744acc8cf1e8b6cad05d22df43f3d5a5beaa2f6
2013-06-19 14:27:16 +02:00
Tor Lillqvist
47dca10811 Add comment
Change-Id: Id3ec71e8da07a8bf1c979585eb84cd5a9d6f7a77
2013-06-19 15:25:26 +03:00
Tor Lillqvist
b9c46f46ce fdo#63616: Fix GetBoundRect for rotated text in CoreText backend
Change-Id: I8c9ee84afd71481c2c6b002265b86e048f369f5c
2013-06-19 15:15:00 +03:00