Commit Graph

13 Commits

Author SHA1 Message Date
Michael Meeks
03993b47c5 targetted clean of redundant header piece from 62badf3828
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
2013-07-26 14:18:52 +01:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Caolán McNamara
1205e9e393 drop some unused code
Change-Id: I952fa56cb8cef0321688ccd117659c8603f71e16
2012-06-05 10:14:49 +01:00
Caolán McNamara
b63766b3dd Resolves: fdo#48932 super slow typing and scrolling in large documents
AFAICS it appears that theres a one to one mapping from a SwFrameControl to
a SwFrm, so in any of the three given classes of Page, Footer or Header a
SwFrm will have zero or one SwFrameControls and a SwFrameControl doesn't
get rebound to a different SwFrm or anything like that, so we can use
a map and index off the SwFrm* to find them rather than constantly
looping over vectors to find the right one.

Maybe could move the SwFrameControl directly in the SwPageFrm's
themselves.

Change-Id: I1194f3cdcab747b61c645003c97e651f47f2bc09
2012-05-23 21:09:20 +01:00
Elton Chung
ea1fa6963d Remove unused code 2012-02-10 15:42:53 +00:00
Cédric Bosdonnat
58c4853f54 Page Break: fix remaining indicator in some cases
When creating a new page without using a page break, before a page
break, there was a remaining indicator. These are now checked and
removed to avoid such cases.
2012-01-04 17:38:20 +01:00
Jan Holesovsky
cce76e658a Header/Footer: When editing, show only the appropriate conrol.
Instead of showing both the header and footer controls, show only the
footer-related if in footer, or header-related if in header.
2011-12-29 13:47:05 +01:00
Jan Holesovsky
64e08fd3c5 Header/Footer: Show / hide the control immediately.
- When the mouse pointer enters or leaves the headers / footers, show or hide
  the header / footer control immediately.  Waiting for that to appear is
  annoying; and similarly for disappearing - one usually ended up clicking the
  header / footer area to speed that up, and had a feeling of misbehaving.

- Few related re-paint improvements
2011-12-29 13:46:20 +01:00
Cédric Bosdonnat
610b7bc594 Page Break: fix crash when changing from break before to break after
Keeping a temporary copy of the shared_ptr to avoid the object to be
deleted during the Select method.
2011-11-02 13:21:57 +01:00
Cédric Bosdonnat
a12a2b63e2 Removed some -Weffc++ warnings from the Header/Footer work 2011-10-18 13:00:38 +02:00
Cédric Bosdonnat
fadb5d1dcd Page Break: fixed crasher due to bad removal of frame controls 2011-10-04 13:16:33 +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
Cédric Bosdonnat
e19f926ba2 Header/Footer: refactored the SwEditWin to extend it to page breaks 2011-09-21 17:44:51 +02:00