Commit Graph

274 Commits

Author SHA1 Message Date
Luboš Luňák
21d10c6f32 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: I21e12d6a4dfb9697d2346a4e564e96af0ad03f96
2012-10-12 16:56:54 +02:00
Takeshi Abe
701db391b3 sal_Bool to bool
Change-Id: Ieeebcd89ae2728c6314f28413759bbb353c327bf
2012-10-07 09:54:01 +09:00
Norbert Thiebaud
750fc20611 replace remaining InterlockedCount() with inlined version
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c
Reviewed-on: https://gerrit.libreoffice.org/671
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-25 01:55:38 +00:00
Miklos Vajna
18b3feb8be n#778133 sw: add BackgroundParaOverDrawings compat flag
In Word, the layer that contains a background image is behind the layer
that contains the paragraph background. In Writer, the paragraph
background is painted before the hell layer. Add a compat flag to change
the order, so the DOCX importer can trigger that.

To reproduce, create an XShape, send it to the background, set some
color for a paragraph background, and notice that the background color
is missing where the shape is behind the text.

Change-Id: I9b1fffd9ac9a6e5a1c3d1f65371440047d125b38
2012-09-12 10:03:18 +02:00
Stephan Bergmann
84db94e97b -Werror,-Wunused-private-field (various sw)
Change-Id: Ib2becb2af810da0fa3d24bd0aa21887d41e2f34c
2012-09-11 17:11:12 +02:00
Caolán McNamara
2195e0c699 Resolves: fdo#53590 you can trust no one to tell you the truth
Change-Id: I6850d2060c1c7490c15c8eff7e0338433e8dab32
2012-09-07 16:48:02 +01:00
Luboš Luňák
7a045f48ba read support for docx w:embedTrueTypeFonts/w:embedSystemFonts
No write support yet.

Change-Id: Ia10239acc77cf9ebc4f511e30c007da36abf43cb
2012-09-06 17:35:48 +02:00
Cédric Bosdonnat
e598ab0447 n#775270: clip pictures instead of scaling they don't fit
Word clips pictures that are bigger than a page instead of scaling them
down. This patch introduces a new compatibility option to allow clipping
a picture in Writer instead of scaling it down.

Change-Id: I4defbee05be81e23ec28a2ed272eaf4e4cc6faf5
2012-09-04 12:59:52 +02:00
Miklos Vajna
50a1df360c n#775899 sw: add FloattableNomargins compat flag
The DOCX filter imports floating tables as frames containing a table.
Word ignores the margins of paragraphs next to such a table, Writer does
not. Add a compatibility flag the import filter can set that triggers
this weird behaviour.

Change-Id: Iaaa1d2a2e2f9d0eaea17832b2e418f9a845efffd
2012-08-23 12:56:41 +02:00
Cédric Bosdonnat
b95d203bc1 fdo#53175: Don't load the default values of the styles in writerfilter
...or we may have some additional properties set on some styles.

Change-Id: I5a5d307931a2a6c1f25bd2da93381d8de65c2480
2012-08-20 11:32:57 +02:00
Thomas Arnhold
548a2ffe3a remove bogus date information
Change-Id: I2789153ee35f4ec10e760f9412eb7d379de031bf
2012-08-07 18:08:30 +02:00
Noel Grandin
ddd84d08c9 Convert SV_DECL_PTRARR_SORT_DEL(_SwRedlineTbl) to o3tl::sorted_vector
Change-Id: Ie7edc6b32b373619d4c0ac154da93650743049cf
2012-07-26 23:35:27 +02:00
Noel Grandin
63f792d9b1 Convert SV_DECL_PTRARR_SORT(SwOutlineNodes) to o3tl::sorted_vector
Change-Id: I17c40bda4ab401bde42b64d090fd7e3259e79026
2012-07-25 14:13:45 +02:00
Noel Grandin
66c7b8fe56 Convert SV_DECL_PTRARR_SORT_DEL(_SetGetExpFlds) to o3tl::sorted_vector
Change-Id: Ibdb223f0209a999028d5d63536a895a9d1f473f2
2012-07-17 15:33:40 +02:00
Noel Grandin
5a4796f78f Convert SV_DECL_PTRARR_DEL(SwUnoCrsrTbl) to std::set
Change-Id: I0d79505e2d97b1f8608e6d6e72b317bfaa344b1d
2012-07-17 15:33:39 +02:00
Michael Meeks
ec5fa0164b replace all but one .hdl include with equivalent .hpp includes.
Change-Id: I15e94f112144549692d0c2babeb48c77adcb93a9
2012-06-21 19:28:47 +01:00
Michael Stahl
d3fe01de1e fix problems in 1015cd4ff7:
- inverted check in SwDoc::RemoveInvisibleContent
- various too short end positions in DeleteAndDestroy calls in
  SwDoc::~SwDoc and SwDoc::ClearDoc
- std::copy to begin() of empty vector in SwReader::Read replaced
  with std::back_inserter; the vector is used as a set here so the
  end position should work just as well

Change-Id: Ib2ddd788fade4ee1a8beb702d5321c503985fba4
2012-06-21 00:20:03 +02:00
Noel Grandin
1015cd4ff7 Convert SV_DECL_PTRARR_DEL of Sw*Fmts to std::vector
- I had to convert SwFrmFmts, SwSpzFrmFmts, SwCharFmts, SwSectionsFmts,
  SwTextFormatColl, SwGrfFmtColl all together because of the code that wants
  to work with any of them.
- Introduce a pure virtual base class SwFmtsBase, since there are a handful
  of methods that want to work with any of the std::vector<Sw*Fmt> types.
- the class SwSpzFrmFmts was dropped, and the code changed to use SwFrmFmts
  instead, since the 2 types are identical.

Change-Id: I8c4056b5aedd574a33666e2d649a8b849958441c

Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-06-20 16:48:03 +02:00
Noel Grandin
2a360b6847 Convert SV_DECL_PTRARR(SvBaseLinks) to std::vector
Change-Id: I9197dc4fd7ed32f030de8121913265ec78c83585
2012-06-12 23:25:10 +02:00
Noel Grandin
da9bf1ee2f Convert SV_DECL_PTRARR_DEL(SwPageDescs) to std::vector
Change-Id: I2301c1f237b1b08926c80942f459ba6062ed457d
2012-05-25 00:17:06 +02:00
Noel Grandin
74dc44a67c Convert SV_DECL_PTRARR_DEL(SwFldTypes) to std::vector
Change-Id: Ia1f52f25680d3f970aa4f7f60a8e5203326a6796
2012-05-25 00:17:06 +02:00
Noel Grandin
426389981c Convert SV_DECL_PTRARR_DEL(SwTOXTypes) to std::vector
Change-Id: Ibf67e586082132f370659a4c79415d5928758d3a
2012-05-25 00:17:05 +02:00
Noel Grandin
b620a39936 Convert SV_DECL_PTRARR_DEL(SwNumRuleTbl) to std::vector
Could not use boost::ptr_vector here because the code manually
moves objects around.

Change-Id: I708270a967ee6663ab1f1ba8d7998c63fa698b8f
2012-05-25 00:17:05 +02:00
Michael Meeks
51270f84bb sw: avoid over-using over-complicated SfxUndoManager::IsUndoEnabled 2012-05-14 22:36:28 +01:00
Cédric Bosdonnat
8a233f17ae n#750258: removed strange non-wrapping condition
In the bug file, some text wrapping was badly computed when showing the
document (but not at the first rendering) due to that weird NotToWrap
mecahnism in SwLayouter. Checked the original issue i#40155 that
removing this does hurt.
2012-03-22 15:10:51 +01:00
Caolán McNamara
e73b235629 tidy up WW8FormulaControl, with knock on results elsewhere 2012-03-08 12:02:36 +00:00
Tor Lillqvist
b344c30ab4 Sprinkle more DISABLE_SCRIPTING ifdefs 2012-03-05 22:30:12 +02:00
Olivier Hallot
9646171562 Fix for fdo43460 Part XL getLength() to isEmpty()
Part XL
Modules
sw
2012-01-17 19:07:47 -02:00
August Sodora
c1400c98ce SvStringsDtor->std::vector 2012-01-12 23:15:09 -05:00
Miklos Vajna
ef684989dd sw: drop exec bit of cxx files 2012-01-08 22:36:43 +01:00
Tzvetelina Tzeneva
062eaeffe7 sw: Improved document comparison based on RSIDs. 2011-12-22 17:53:53 +01:00
Caolán McNamara
f836ad5caa de-obscure things direct ND_TEXTNODE id compare -> IsTxtNode 2011-12-12 09:38:58 +00:00
Michael Stahl
c549ae0b57 sw: tweak translations
cb8b7a86 and 869a0f36
2011-12-09 15:18:01 +01:00
Norbert Thiebaud
dff7e08711 remove include of pch header from sw 2011-11-27 13:25:10 -06:00
Caolán McNamara
ca02d72808 remove [Byte]String::EraseAllChars 2011-11-19 21:11:02 +00:00
Caolán McNamara
6c1ac01a4a fdo#42534: SwRootFrm: clear SwLayouter in dtor
This crash is probably a regression introduced by CWS swlayoutrefactoring.
2011-11-18 22:24:20 +01:00
Cédric Bosdonnat
74b6759ee8 n#707157: Word doesn't break the numberings and prefers hiding them
Added a compatibility option to reproduce Word's behavior when importing
Doc, docx and RTF files. The default behavior isn't changed.
2011-11-12 14:25:11 +01:00
Philipp Weissenbacher
869a0f367c Translate German comments 2011-11-04 09:11:19 -05:00
Ivan Timofeev
0847d1cb98 simplify determination of pages to print 2011-11-02 21:58:52 +04:00
Cédric Bosdonnat
fd886cdc6a n#693238: fixed docx import of tabs set after the end margin
Added a new compatibility option to keep the previous behavior, but
changed the default to avoid lines insertion for tabs when there are tab
stops set beyond the end margin
2011-11-02 15:10:24 +01:00
Michael Stahl
d87d2aa408 SwRenderData: fix regression:
It turns out that the SwDoc member of SwRenderData was not actually
leaked, but was deleted via the ViewShell member.
2011-10-28 17:33:43 +02:00
Michael Stahl
43b116147f SwRenderData: fix assertion:
apparently SwXTextDocument::getRenderCount() may be called more than once,
so make SwRenderData::CreatePostItData() stop complanining and leaking
memory.
2011-10-28 17:33:43 +02:00
Michael Stahl
b6828ca162 rhbz#680365: SwRenderData: do not store SwPageFrm*
Currently when printing via SwXTextDocument::getRendererCount()
two STL containers in class SwRenderData are filled with bare pointers
to page frames from the layout.
These pointers are then used by SwXTextDocument::render(), which takes
one page out of the map and prints it via this non-ref-counted pointer.

This bizarre design will not be tolerated; instead, when printing a page,
iterate over SwRootFrm::GetLower() until the requested page is found.
This is slower, i.e. O(n^2), but at least it does not crash.
2011-10-28 17:33:43 +02:00
Ivan Timofeev
a47a5ed0a5 always explicitly handle empty string of ranges 2011-10-24 00:16:18 +04:00
Caolán McNamara
be0cf06933 bah, why did I change it away from size 2011-09-20 16:54:54 +01:00
Ivan Timofeev
b7d874f49b Fix for fdo#35513: avoid crash while processing incorrect range of pages 2011-09-20 10:55:50 +01:00
Arnaud Versini
b9ee881986 Remove unecessary parameter to IDocumentStatistics::UpdateDocStat 2011-08-23 16:25:52 +01:00
Nigel Hawkins
84d23d37ac Replace SvULongs with std::vector in mvsave.hxx
Also cascaded changes due to this. LGPLv3+/MPL
2011-06-15 13:38:45 +01:00
Luboš Luňák
a20e84fbc2 compatibility option for old size of small caps (bnc#691473)
Version 3.2 had 66 as the small capitals size percentage, later
changed to 80 (see e.g. http://openoffice.org/bugzilla/show_bug.cgi?id=1526).
This however can destroy layout of old documents that rely on the old
size. So for backwards compatibility the old value is used if either
the .odt document has an option enabled or does not have the option
at all (meaning it's an older .odt document). There's unfortunately
a period when the new value was already in effect where this change
can break those documents :-/.
2011-05-20 14:56:39 +02:00
Jacek Wolszczak
4cf350c27f REPLACE DBG_stuff with OSL_ASSERT and OSL_FAIL 2011-05-09 15:06:56 +02:00