Commit graph

31029 commits

Author SHA1 Message Date
Ivan Timofeev
b7d874f49b Fix for fdo#35513: avoid crash while processing incorrect range of pages 2011-09-20 10:55:50 +01:00
Caolán McNamara
05139b62b2 ByteString->rtl::OStringBuffer 2011-09-20 10:11:42 +01:00
Fridrich Štrba
691518d27a Remove some warnings 2011-09-20 09:51:27 +02:00
Daniel Di Marco
a0a1c3f4fb replaced some SvUShorts with std::vector 2011-09-20 09:51:27 +02:00
Takeshi Abe
0aa547c18d reduce duplicate code to one template 2011-09-20 09:55:21 +09:00
Takeshi Abe
2defcfa33e removed an assignment in no use 2011-09-20 09:55:21 +09:00
Stephan Bergmann
e1945ba903 Do not delete SwIndexReg::pEmptyIndexArray while SwXTextCursor instances can still reference it.
Found during termination of sw/qa/unoapi soffice.bin run under Valgrind/memcheck.
2011-09-19 23:33:09 +02:00
Cédric Bosdonnat
0803f08bb1 Page Break: draw a dashed line using the header/footer separator code 2011-09-19 20:37:28 +02:00
Cédric Bosdonnat
42ba2b6c03 Text Boundaries: draw small inner corners for the columns areas
Drawing small inner corners for the columns helps showing the columns
without drawing a full rectangle and it is still compatible with the
page and sections text boundaries.

The whole subsidiary lines painting has been changed to call the method
on all nested SwLayoutFrm. In order not to draw anything, simply
override the method and do nothing in it: (almost) every object takes
care of its boundaries.
2011-09-19 20:37:28 +02:00
Cédric Bosdonnat
b0bcdb7913 Header/Footer: draw page breaks between the two pages and in all cases 2011-09-19 20:37:28 +02:00
Caolán McNamara
4ca4cd6669 ByteString->rtl::OString[Buffer] 2011-09-19 09:59:24 +01:00
Tomas Chvatal
395bb9c3c4 Explicitly state namespace to avoid ambiguous type clash with ICU. 2011-09-17 05:01:20 +02:00
Cédric Bosdonnat
403305d593 Header/Footer: Don't hide & show the separator windows all the time
This avoids permanent calls to the SwHeaderFooterWin::Paint method. The
loop is now broken and the cursor doesn't blink anymore.
2011-09-16 17:07:30 +02:00
Cédric Bosdonnat
363591e754 Header/Footer: mouse-over timer set down to 1s instead of 2s. 2011-09-16 17:07:21 +02:00
Cédric Bosdonnat
a9904f07de Header/Footer: enable quickly hiding the separators
After having triggered the separators using a mouse-over, hide the
separator when clicking in the main body or typing.
2011-09-16 17:07:04 +02:00
Stephan Bergmann
7d1bb036e1 Simplified setting headless mode for smoke-/subsequenttetss.
Both C++ and Java OfficeConnection code now always pass --headless, so no
need for SAL_USE_VCLPLUGIN=svp etc. any more.  Only some C++ unit tests that
link against vcl still need an explicit --headless.
2011-09-16 10:38:06 +02:00
Julien Nabet
a5745e9e73 Some cppcheck cleaning 2011-09-15 22:03:06 +02:00
Cédric Bosdonnat
289eaef686 Page Break: Fixed columns boundaries and breaks rendering
Merged the page and column breaks rendering: columns breaks are now
easily visible. The column boundaries are shown as before using plain
lines.

Also fixed the breaks rendering for vertical layout
2011-09-15 18:13:35 +02:00
Cédric Bosdonnat
254b17ba2a Header/Footer: don't show the separators if mouse isn't over SwEditWin 2011-09-15 18:13:23 +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
Cédric Bosdonnat
c95d901993 Header/Footer: add the Border and Background... menu item 2011-09-15 10:57:30 +02: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
Caolán McNamara
188696a20a don't crash 2011-09-14 16:27:57 +01:00
Caolán McNamara
8578e3c80d Related: fdo#40599 add a initial basic test for deleting graphics 2011-09-14 15:31:07 +01: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
79dc19fcbd ByteString->rtl::OStringBuffer 2011-09-14 09:54:09 +01:00
Caolán McNamara
1cd1e4a3c6 use read_uInt8s_AsOString here 2011-09-14 09:54:09 +01:00
Cédric Bosdonnat
59e708a6f2 Page Break: show/hide them with the line breaks 2011-09-13 17:29:04 +02:00
Cédric Bosdonnat
e88eb733ed Header/Footer: handle high contrast mode in Paint method 2011-09-13 17:29:04 +02:00
Cédric Bosdonnat
883991e847 Header/Footer: use a plus symbol instead of the add icon
This will help drawing the high contrast mode and makes the plus more
visible even given the background color.
2011-09-13 17:29:04 +02:00
Cédric Bosdonnat
59585dab4b Header/Footer: fixed the Ctrl+PgUp and Ctrl+PdDown behaviors
When in a header and hitting Ctrl+PgDown, go to the end of the page if
there is no footer in it instead of staying in the header. The same case
for footers has been fixed too.

Removed the cursor positioning hackery in ToggleHeaderFooterEdit(): this
is now handled by the caller.

Show the Header/Footer edition when hitting Ctrl+PgUp and Ctrl+PgDown
and actually landing into a header or footer.
2011-09-13 14:11:14 +02:00
Cédric Bosdonnat
c0251bf65d Header/Footer: shared code for the insertion/removal
Moved the ChangedHeaderOrFooter method from SwTextShell to SwWrtShell
for it to be accessible from the SwHeaderFooterWin objects... and that
method didn't really need to be in the root shell.

That fixed a few quirks from the copied code in SwHeaderFooterWin.
2011-09-13 14:11:04 +02:00
Cédric Bosdonnat
c900069dee Header/Footer: display improvements
Changed the following:
 + Draw a gradient in the separator tabs background
 + Draw a solid line under the dotted one to have a contrast for some page
   background colors.
2011-09-13 14:10:50 +02:00
Caolán McNamara
7a16bd69d0 not sure if this is copyable 2011-09-13 10:15:23 +01:00
Caolán McNamara
1cf8e70f78 ByteString->rtl::OStringBuffer 2011-09-13 10:15:22 +01:00
Caolán McNamara
d3f4455c54 let's use scoped_ptr to avoid c++0x deprecated warnings 2011-09-13 10:15:21 +01:00
Caolán McNamara
f64dc2c9fb I believe the src charset pragma is archaic and unused 2011-09-13 10:15:20 +01:00
Stephan Bergmann
37e5910c13 fdo#40819# Disabled failing complex.writer.CheckBookmarks test for now. 2011-09-13 10:07:09 +02:00
Stephan Bergmann
e849071acc fdo#33960#, fdo#35690#: Disabled failing checkCrossReferences tests for now. 2011-09-13 09:36:08 +02:00
Cédric Bosdonnat
6b6e6b8dbc Header/Footer: the whole separator tab is now a menu button 2011-09-12 22:54:11 +02:00
Cédric Bosdonnat
f189e7275d Header/Footer: forgot to remove a sequence realloc 2011-09-12 22:53:57 +02:00
Cédric Bosdonnat
053d4c9c7a Header/Footer: small painting improvements
The dashed line is now 1px wide and has smaller dashes. The separator
button has also smaller padding.
2011-09-12 22:53:43 +02:00
Stephan Bergmann
d996328cd5 sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed out a6913c9677c2
For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-09-12 22:47:50 +02:00
Stephan Bergmann
23b04dae8b sb140: #i117698# no implementations of XIdlClassProvider remain, so code that checks for it can be removed 2011-09-12 22:47:49 +02:00
Stephan Bergmann
2b39501b8e fs34b: #i117545# (patch provided by mathias.bauer@oracle.com) 2011-09-12 22:47:48 +02:00
Cédric Bosdonnat
ecc5249190 Revert "n#676858: added new menu entry for headers/footers edit mode"
This reverts the following commits:
  + f3e275a212
  + 29a45a09ba (partly)

Conflicts:

	officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
2011-09-12 18:09:50 +02:00
Cédric Bosdonnat
3d29410263 Header/Footer: added a timer to show the separator
When leaving the mouse over a header or footer area for 2 seconds, the
separator is shown. This feature enables adding headers and footers
easily without knowing anything about page styles.

The separators are hidden back after 2 seconds outside the header or
footer area.
2011-09-12 18:09:36 +02:00
Caolán McNamara
8cc839dc6a Resolves: fdo#40717 ensure required settings and styles exist in paste doc 2011-09-12 16:53:54 +01:00
Caolán McNamara
64a377efa5 factor out code for copying compatability options 2011-09-12 09:09:58 +01:00