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
Caolán McNamara
ea95d600de
check for invalidated item with IsInvalidItem
2011-10-28 12:29:30 +01:00
Philipp Weissenbacher
d1932bfb76
Translate German comments
2011-10-27 20:18:05 -05:00
Ivan Timofeev
a47a5ed0a5
always explicitly handle empty string of ranges
2011-10-24 00:16:18 +04:00
Daniel Di Marco
593e4c36d2
SvUShorts -> std::vector
2011-10-20 22:20:09 +04:00
Cédric Bosdonnat
21352f88ca
Sw styles cleanup: removed now unused methods
2011-10-20 16:53:51 +02:00
Tor Lillqvist
62f4128d74
char can be unsigned, use sal_Int8
2011-10-20 08:41:36 +03:00
Cédric Bosdonnat
359d0fbd03
Removed list and numbering paragraph styles and related option page
2011-10-17 11:35:57 +02:00
Pierre-André Jacquod
3150a33996
cppcheck scope reduction in sw/..docredln.cxx
2011-10-07 15:57:33 +02:00
Tomas Chvatal
db3a8faba1
Solve more ambiguous issues with Locale from sun::star.. and icu::.
2011-09-29 15:14:34 +02:00
Takeshi Abe
a80533c4a7
fix typo in message
2011-09-28 13:46:50 +09:00
Tomas Chvatal
cddea419b6
Avoid ambiguous Locale type by specifying full path to sun::star... ; the other definition is from ICU.
2011-09-24 18:09:58 +02:00
Caolán McNamara
871426533f
just silence the auto_ptr deprecations in isolation
2011-09-22 15:01:05 +01:00
Caolán McNamara
be0cf06933
bah, why did I change it away from size
2011-09-20 16:54:54 +01:00
Takeshi Abe
1ac1b1499f
removed unsatisfiable equalities of conditionals
...
by definition of ComparePosition(), neither *pEnd is equal to *pREnd
in case of POS_OVERLAP_BEFORE, nor *pStt is equal to *pRStt in case
of POS_OVERLAP_BEHIND
2011-09-20 23:14:00 +09:00
Ivan Timofeev
b7d874f49b
Fix for fdo#35513: avoid crash while processing incorrect range of pages
2011-09-20 10:55:50 +01:00
Daniel Di Marco
a0a1c3f4fb
replaced some SvUShorts with std::vector
2011-09-20 09:51:27 +02:00
Tor Lillqvist
6b457882d0
We can't #define _HAS_ITERATOR_DEBUGGING 0 in just some of the source files
...
It seems that _HAS_ITERATOR_DEBUGGING affects the layout of some
classes, which of course means horrible breakage if some of the source
files are compiled with it, the rest not.
http://msdn.microsoft.com/en-us/library/aa985939%28v=vs.80%29.aspx
http://connect.microsoft.com/VisualStudio/feedback/details/334315/has-iterator-debugging-0-causes-crash
I will just have to fix the code in this handful of source files so
that it compiles with _DEBUG defined. If I can be bothered.
2011-09-15 12:02:59 +03:00
Bjoern Michaelsen
dd482fde49
do not try to read from an iterator which we just deleted from the container
2011-09-14 18:14:46 +02:00
Bjoern Michaelsen
e26ea36825
Revert "Revert "i#118224: kill O(n^2) complexity of unique bookmark name creation""
...
This reverts commit 05a66052ae
.
2011-09-14 18:14:46 +02:00
Fridrich Štrba
05a66052ae
Revert "i#118224: kill O(n^2) complexity of unique bookmark name creation"
...
This creates multiple crashes on windows when trying to load writer document
or to save it
This reverts commit e024f61693
.
2011-09-14 16:06:46 +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
Pierre-André Jacquod
80bf270d9b
[cppchecker] deletion of not needed variable
2011-09-06 22:39:09 +02:00
Christoph Lutz
e024f61693
i#118224: kill O(n^2) complexity of unique bookmark name creation
2011-09-06 19:04:00 +02:00
Cédric Bosdonnat
cb3c09c323
Header/Footer: revert objects ghosting to keep writer WYSIWYG
...
This reverts commits:
* 7d700ecf81
* 523ff04440
* f7da7938c5
* 28d1c25092
2011-09-06 11:28:10 +02:00
Tor Lillqvist
68795fe0dc
#define _HAS_ITERATOR_DEBUGGING 0 to fix --enable-dbgutil MSVC compilation
2011-09-05 08:15:56 +03:00
Takeshi Abe
3cbbdedd65
removed dead code
2011-09-04 07:56:15 +09:00
Caolán McNamara
0ab7b0f6e7
tweak for change
2011-08-29 09:56:07 +01:00
Arnaud Versini
b9ee881986
Remove unecessary parameter to IDocumentStatistics::UpdateDocStat
2011-08-23 16:25:52 +01:00
Caolán McNamara
9124003eb1
ByteString::IsNumericAscii->comphelper::string::isAsciiDecimalString
...
shrink ByteString api, remove need for intermediate OString/ByteString
with random-ish encoding solely for check
2011-08-15 09:21:48 +01:00
Troy Rollo
7e631b6160
fdo#33960, Implement new rule for xref to numbered paragraphs
2011-08-10 10:18:03 +02:00
Eike Rathke
ea4470cbac
Number formatter sal_Bool -> bool clean-up and cosmetics
2011-08-10 01:32:41 +02:00
Thomas Arnhold
5210b695af
Get rid of these non-printable chars
2011-07-29 11:09:32 +02:00
Caolán McNamara
715c486c10
use DrawUndoGuard to turn off undo for draw layer for duration of its scope
2011-07-28 09:11:29 +01:00
Caolán McNamara
488974a129
Resolves: fdo#36631 don't crash on undo of ole2 insert
2011-07-27 14:49:41 +01:00
Nigel Hawkins
3bbc37dc54
Replace SvUShorts with vector in redline.hxx and docredln.cxx
2011-07-25 17:07:22 +01:00
Nigel Hawkins
e75fc37685
Replace SvUShorts with vector in rolbck.hxx and cascade changes.
...
LGPLv3+/MPL
2011-07-22 15:11:01 +01:00
Nigel Hawkins
7126d7b96c
Replace SvUShorts with vector in ftnidx.[ch]xx
...
LGPLv3+/MPL
2011-07-13 15:57:23 +01:00
Nigel Hawkins
2643f2a06d
Replace SvUShorts with vector in extinput.hxx and cascade changes.
...
LGPLv3+/MPL.
2011-07-13 15:57:23 +01:00
Petr Mladek
1d2a566337
More conservative fix for aliasing problems (fdo#33781)
...
Inspired by i#99665. It solves the problem where the aliasing caused
problems. It modifies the current aliasing using "byte or" (operator |)
and restores the original aliasing at the end of the "if" block.
2011-07-08 10:46:57 +02:00
marc-andre@atc.tcs.com
ca911d1d43
Fixed core dump and invalid memory access for some edge cases
2011-07-06 09:35:10 +01:00
Francois Tigeot
fc6d147311
Remove .rej file pushed by mistake
2011-07-01 07:36:59 +02:00
Cédric Bosdonnat
f7da7938c5
n#676858: header, footer edition mode: updated paint methods
2011-06-30 17:57:18 +02:00
André Schnabel
f97015652f
fix for fdo#32421: set indent for footnotes / endnotes to 0.6cm
...
with this footnotes with number >99 will look much better
Signed-off-by: Tor Lillqvist <tlillqvist@novell.com >
2011-06-22 14:24:38 +03:00
Roland Baudin
1389a5e8aa
Additional fix for bug fdo#33781
2011-06-20 10:39:28 +03:00
Tor Lillqvist
3bef5d0c62
Must use const_reverse_iterator, fixes build error with MSVC
2011-06-17 13:56:47 +03:00
Nigel Hawkins
8523df7b00
Replace SvULongs with std:vector in docfld.cxx. LGPLv3+/MPL.
2011-06-16 15:40:43 +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