Commit Graph

315 Commits

Author SHA1 Message Date
Takeshi Abe
136ae4bc2f sal_Bool to bool
Change-Id: I87d6e518aebcd0074f673b84b66df27ae9a0a15a
2012-10-30 11:50:20 +09:00
Takeshi Abe
a94b902736 sal_Bool to bool
Change-Id: Ia71a4dc13e09a5fc42c282efc2b0d46b2ff007ab
2012-10-28 23:47:55 +09:00
Takeshi Abe
9e44e1a819 sal_Bool to bool
Change-Id: I8b76ba6d6a27cebefca3307a648bd5baafd27262
2012-10-25 17:01:50 +09:00
Takeshi Abe
cc64715977 sal_Bool to bool
Change-Id: I47f376f431276396a9f3168a5e39e2c9e9e55cbe
2012-10-24 09:46:07 +09:00
Takeshi Abe
ec9e661988 sal_Bool to bool
Change-Id: I71842ace16eb65b3269754cc36408fe52843b2ea
2012-10-22 12:53:33 +09:00
Takeshi Abe
bb80f99092 sal_Bool to bool
Change-Id: Ideb46a876ef74f505b71e2a788d5f8da50e251af
2012-10-20 23:12:12 +09:00
Takeshi Abe
329d328727 sal_Bool to bool
Change-Id: Id3be1fbf289f04e175bb2fdd71754cad0c9672ce
2012-10-19 04:15:34 +09:00
Takeshi Abe
b1167e1250 sal_Bool to bool
Change-Id: I89050a1aa899b1a6cd49800f805af9611fd0a9a7
2012-10-16 18:33:24 +09:00
Takeshi Abe
701db391b3 sal_Bool to bool
Change-Id: Ieeebcd89ae2728c6314f28413759bbb353c327bf
2012-10-07 09:54:01 +09:00
Arnaud Versini
18bad3e45c Remove unused member SwDoc::pMacroTable
Change-Id: Ic09b960b675d674a16f7f252ed2a974c4e25505b
Reviewed-on: https://gerrit.libreoffice.org/680
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2012-09-24 09:15:49 +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
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
Abdulmajeed Al-Abaulrazzaq
c9d5c88a96 Modifying comments to meet doxygen standards
Change-Id: If7c4162a49a7c7b612b6f480f6fbba75727ae1df
2012-08-01 15:41:41 +02:00
Michael Stahl
75acbd4b47 delete svl/svstdarr.hxx
Change-Id: Ia3d1d8dbe100443410b80c3881f10ab51b2d0419
2012-07-25 14:13:47 +02:00
Miklos Vajna
fb2eac0f8f SwDoc: kill copy&paste with CopyMasterHeader() and CopyMasterFooter()
Change-Id: I10480cc7977e7227a6abe84e7bf27f69a980f89a
2012-07-02 16:34:32 +02:00
Noel Grandin
7ce8873e46 Cleanup SwDoc::GetPageDesc(sal_uInt16) const-ness issues
The code was casting away the const-ness everywhere.
Rather just declare 2 accessor methods, then the code becomes
much cleaner.

Change-Id: Id6b240536485cfebe044bcc427ba24843cf4c051
2012-06-25 20:13:14 +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
Philipp Riemer
f9067ca632 Fix German "adjust left margin" comment in multiple files in sw/{inc/,source/core} 2012-05-28 16:12:20 +03:00
Noel Grandin
da9bf1ee2f Convert SV_DECL_PTRARR_DEL(SwPageDescs) to std::vector
Change-Id: I2301c1f237b1b08926c80942f459ba6062ed457d
2012-05-25 00:17:06 +02:00
Caolán McNamara
cb235067de Resolves: fdo#49897 add+use SwDoc::containsUpdatableFields
Change-Id: I03ab6367a40ddc5748a499c4e2c7f108a3ef8a08
2012-05-14 16:09:44 +01:00
Muhammad Haggag
7e8c0bd73e fdo#31005 Table Autoformats do not save/apply all properties
This change expands the number of properties supported by autoformats,
mainly for Writer.  Some improvements affect Calc as well (e.g. border
styles are now preserved for Calc).

Common: boxitem.hxx, frmitems.cxx
* Added a new version for SvxBoxItem serialization that includes border styles.
* Updated SvxBoxItem and SvxBorderLine serialization logic accordingly.

Writer: fmtornt.hxx, attrfrm.cxx
* Added serialization/deserialization logic for SwFmtVertOrient.

Writer: tblafmt.hxx, tblafmt.cxx, ndtbl.cxx
* Updated file version for autotbl.fmt to be SOFFICE_FILEFORMAT_50.
* Autoformats now record the text orientation and vertical alignment
  of table cells.
* Autoformats now record the following table-level properties:
    - Break
    - Keep with next paragraph
    - Repeat heading
    - Allow table split across pages
    - Allow rows to break across pages
    - Merge adjacent line styles
    - Table shadow

Calc: autoform.hxx, autoform.cxx
* Added support for reading/writing writer-specific data as binary blobs.
* Updated file version for autotbl.fmt to be SOFFICE_FILEFORMAT_50.
2012-05-03 11:12:12 +02:00
Caolán McNamara
e73b235629 tidy up WW8FormulaControl, with knock on results elsewhere 2012-03-08 12:02:36 +00:00
Caolán McNamara
15547450bd Resolves: fdo#46038 don't copy page styles into temporary clipboard doc
writer rtf export has a nasty pgdsctbl extension
sd rtf import has nasty "if its got a table keyword in it its a table"
logic

Classically we never put our styles into the temporary clipboard, so fastest
and safest fix is to simply skip putting the page styles into it.
2012-02-27 12:41:53 +00:00
Miklos Vajna
335b38d831 sw: add doxygen comments for some document model / layout classes 2012-02-15 14:30:42 +01:00
Stephan Bergmann
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
August Sodora
169f3b47c0 SvStringsDtor->boost::ptr_vector 2012-01-13 23:48:59 -05:00
August Sodora
a8c8eae8d5 SvStringsDtor->std::vector 2012-01-13 00:32:30 -05:00
August Sodora
c1400c98ce SvStringsDtor->std::vector 2012-01-12 23:15:09 -05:00
August Sodora
bcb9ddaa7e Remove _SVSTDARR_STRINGSISORTDTOR 2012-01-10 23:18:14 -05:00
Caolán McNamara
45b19123a6 simplify CharClass
multiple variants of toUpper (etc)
some that take a non-const OUString or String and modify it
some that take a const OUString or String and return a new one
some that take part of a const OUString or String and return a new one
2012-01-09 13:28:37 +00:00
Tzvetelina Tzeneva
062eaeffe7 sw: Improved document comparison based on RSIDs. 2011-12-22 17:53:53 +01:00
Cédric Bosdonnat
3c1bc2311c sw: build hidden debug features in all cases
To activate the layout and node dumping features in sw, set the SW_DEBUG
environement variable to anything before running the office. F12 will
then dump the layout as a layout.xml file in the working directory, and
Shift+F12 will dump the nodes structure as nodes.xml at the same place.
2011-12-14 11:16:28 +01:00
Thorsten Behrens
73a395cdc7 Make merges of impress210 build. 2011-12-06 09:39:16 +01:00
Christian Lippka ORACLE
b97726f4b6 impress210: #i117133# put new drawing layer fill and stroke styles in pool only for newly created documents
# HG changeset patch
# User Christian Lippka ORACLE <christian.lippka@oracle.com>
# Date 1299763312 -3600
# Node ID 6b1140cdac81a77836e5be80033f328a0956c94a
# Parent  8edc33ef50a3b6ebbc4e88d574b6b1ba57b1dbaa

impress210: #i117133# put new drawing layer fill and stroke styles in pool only for newly created documents
2011-12-06 09:39:12 +01:00
Michael Stahl
279a176397 sw: replace abuses of OSL_DEBUG_LEVEL with DBG_UTIL
OSL_DEBUG_LEVEL is set by make debug=t, which should never result in ABI
incompatible objects.
2011-11-24 00:52:00 +01: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
Daisuke Nishino
6401ca3325 Get rid of SvStringsSort 2011-11-07 12:27:32 +00:00
Caolán McNamara
75871d9a8c callcatcher: remove some unused methods 2011-11-07 12:27:31 +00: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
Luboš Luňák
b848a2eb7f debug support for dumping writer nodes structure
Similarly to the layout debug support. F12 -> layout, Shift+F12 -> nodes.
2011-09-23 18:27:57 +02:00
Caolán McNamara
64a377efa5 factor out code for copying compatability options 2011-09-12 09:09:58 +01:00
Caolán McNamara
108dabd576 factor out code which sets the defaults for properties 2011-09-12 09:09:58 +01:00
Caolán McNamara
38596e653a SwDoc::ReplaceStyles can be const 2011-09-12 09:09:58 +01:00
Arnaud Versini
b9ee881986 Remove unecessary parameter to IDocumentStatistics::UpdateDocStat 2011-08-23 16:25:52 +01:00
Nigel Hawkins
6f1f0423ee Replace SvUShorts with vector in UndoTable.hxx and cascade changes.
LGPLv3+/MPL
2011-07-22 15:11:01 +01:00
Nigel Hawkins
2a913d6ecb Remove obsolete forward declarations of SvUShortsSort. LGPLv3+/MPL. 2011-06-14 13:04:35 +01:00