Commit Graph

1760 Commits

Author SHA1 Message Date
Tor Lillqvist
6047d5952d WaE: unsafe mix of type 'bool' and type 'sal_Bool' in operation 2011-10-25 17:21:38 +03:00
Tor Lillqvist
ec1531b327 WaE: unsafe mix of type 'bool' and type 'sal_Bool' in operation 2011-10-25 17:21:36 +03:00
Tor Lillqvist
ab2cc86cf5 WaE: unreachable code 2011-10-25 17:21:33 +03:00
Olivier Hallot
a5d6dca3e9 Fix for fdo41997 continuation of VCL cleanup 2011-10-25 13:42:00 +01:00
Olivier Hallot
b0224f8050 Fix for bug fdo#41997, cleanup vcl enumeration 2011-10-21 20:48:03 +01:00
Pierre-André Jacquod
7056600878 cppcheck scope reduction in sw/.. trvlfrm.cxx 2011-10-07 15:57:32 +02:00
Cédric Bosdonnat
80d96f738a Page Break: fixed crasher, the page frame can contain no children 2011-10-06 12:46:58 +02:00
Cédric Bosdonnat
86456335a3 Page Break: implement the break before page case 2011-10-05 17:34:04 +02:00
Cédric Bosdonnat
5277f81090 Page Break: Changed the page break into a control
Page break changes (no impact on column breaks):
  + Create a MenuButton control for the page break
  + Moved the line to a SwDashedLine
2011-09-23 22:24:36 +02:00
Bjoern Michaelsen
1b37830b60 fdo#39510: comment added 2011-09-23 01:13:34 +02:00
Bjoern Michaelsen
ac1912ecb1 fdo#39510 lp#854626: crash on closing document with footnotes 2011-09-22 18:47:54 +02:00
Cédric Bosdonnat
13faec8040 Fixed remaining ByteString::SearchAndReplace in dbg level > 1 2011-09-22 08:31:41 +02:00
Cédric Bosdonnat
e19f926ba2 Header/Footer: refactored the SwEditWin to extend it to page breaks 2011-09-21 17:44:51 +02:00
Cédric Bosdonnat
aaa34f74a6 Page Break: Fix the line position in side-by-side pages display 2011-09-21 17:44:51 +02:00
Cédric Bosdonnat
7a6ae7ff20 Page Break: decouple it from the text bounding lines painting 2011-09-21 17:44:50 +02:00
Cédric Bosdonnat
5b01db236e Header/Footer: Fixed a few separators rendering problems
Bugs fixed:
 + Some of the separators weren't hidden (zooming out and then zooming
   in is an example)
 + The footer separator wasn't properly placed under footnotes
containers if there was no footer.
2011-09-20 17:01:37 +02:00
Cédric Bosdonnat
589f754e7c Header/Footer: move the separator line painting to a Window control
This avoids drawing control things on the document OutputDevice and
helps keeping them properly refreshed without refreshing the whole
document layout.
2011-09-20 17:01:19 +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
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
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
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
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
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
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
Cédric Bosdonnat
7607e0db19 Writer Page Breaks: don't print the marker, not for PDF export or printing 2011-09-09 21:34:39 +02:00
Cédric Bosdonnat
79f53401c6 Header/Footer: just don't always drop and create SwHeaderFooterWin
This minimizes the number of creation / deletion of SwHeaderFooterWin
objects and simply updates the existing ones.
2011-09-08 15:42:58 +02:00
Cédric Bosdonnat
4115a81bea Header/Footer: Use a Window with WB_DIALOGCONTROL to fix loads of bugs
Bugs fixed by this change:
  * The Header/footer window is now moving with the parent window
  * The Window rectangle is adapted to the parent area and doesn't go
    over the scrollbar
  * The windows are shown properly in all cases
2011-09-08 15:42:57 +02:00
Stephan Bergmann
b66db1c73f Cleanup of SwFlowFrm flags.
bUndersized was used uninitialized in derived SwFlowFrm, as valgrinding sw/qa/unoapi revealed.
2011-09-08 11:11:18 +02:00
Cédric Bosdonnat
2f375ff51c Fixed build error about double conversion 2011-09-07 10:50:45 +02:00
Cédric Bosdonnat
c7a557cc4f Sw page break: added a text above the line to explain the visualization 2011-09-07 10:50:45 +02:00
Cédric Bosdonnat
b8162ca024 Header/Footer: added the menu button to the separator.
Show either a SPIN_DOWN arrow if there is a header or a plus is there is
none.
2011-09-06 18:50:37 +02:00
Cédric Bosdonnat
ec6905bf85 Header/Footer: enhanced the document subsidiary lines
+ Implemented http://wiki.services.openoffice.org/wiki/DocumentBorder#Option_3
 + Show the text boundaries for the currently edited area, e.g. don't
   show the header and footer boundaries when editing the main body
 + Included the footnote boundaries into the main body ones as it's the
   same editing area
 + Reimplemented the painting of the manual page breaks. These are
   hidden when editing headers/footers and are be toggled with the
   non-printing characters instead of the document boundaries.
2011-09-06 11:28:10 +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
Cédric Bosdonnat
849d47326d Header/Footers: SwPageDesc as a member of SwHeaderFooterWin 2011-09-06 11:28:10 +02:00
Cédric Bosdonnat
9ced6d79ed Header/Footer: Moved line thickness magic numbers to a define 2011-09-05 10:07:56 +02:00
Cédric Bosdonnat
2e3c124e2d Header/Footers: fixed separator line position with footnotes 2011-09-05 10:07:55 +02:00
Cédric Bosdonnat
d004a81afc Header/Footer: Implemented the separator label as a Window
Had quite a hard time drawing the new windows at the correct position
and find the proper VCL attributes. This new Window child class is using
the WB_MOVEABLE and WB_OWNERDRAWDECORATION to workaround bugs in VCL.
2011-09-05 10:07:55 +02:00
Cédric Bosdonnat
ca2568e30a fdo#40344: reverted commit 6f7bd9
The tweak had side effect and is now useless with the new way of
painting the separators.
2011-09-01 12:10:58 +02:00
Cédric Bosdonnat
0930879687 Header/Footer: separator drawing changes
According to Christoph's ideas, here are changes to the separators:
  * labels moved to the right of the page instead of the left
  * the label background color computation has been improved to handle
    more cases
  * the separator line has been removed when there is a header or footer
  * the label is now sticking to the bottom/top of the header/footer
2011-09-01 12:10:58 +02:00
Jan Holesovsky
f952331f0c Remove unused parameter. 2011-08-26 23:49:40 +02:00
Cédric Bosdonnat
89aaee9ada Header/Footer: changed GetCrsrOfst to be able to pick up background objects 2011-08-26 17:13:53 +02:00
Cédric Bosdonnat
bfee324db6 Fixed SwFlowFrm constructor to initialize pPrecede to NULL 2011-08-26 17:13:52 +02:00
Caolán McNamara
b5040d946e Resolves: fdo#40345 don't crash loading temp document to get frame styles 2011-08-24 14:46:31 +01:00
Cédric Bosdonnat
d40dce0f0f Header/Footer: moved the decorator color to the options 2011-08-18 14:34:15 +02:00
Cédric Bosdonnat
0b47801430 Headers/Footers: set only the main color and play with luminance for the other 2011-08-18 14:34:14 +02:00
Cédric Bosdonnat
6f7bd90edc Header/Footer: Update the whole page when SwFooterFrm is invalid
Changing the height of the footer frame (i.e. by creating a new line in
it) didn't update the page margins and broke the rendering of the
header/footer decorators. To avoid that, redraw the whole page when the
SwFooterFrm is invalid.
2011-08-17 14:01:55 +02:00