Commit Graph

54 Commits

Author SHA1 Message Date
Matteo Casalin
4d8701537f SwSortedObjs: Count() to size() and use size_t consistently
Change-Id: I80fa39e9790a0dfff9d4afb534be119eb593b60d
2014-09-06 12:12:25 +02:00
Noel Grandin
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Noel Grandin
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
Valentin Kettner
86075a3f0f Split out IDocumentDrawModelAccess from SwDoc.
To the new class DocumentDrawModelManager.
All moved methods and members have the same in thew new class.

Change-Id: I89ad0e0c4a42885d5810e834983ea8e8e6c0a2d2
2014-06-03 19:12:05 +02:00
Valentin Kettner
4161070eb2 Removed IDocumentSettingAccess.hxx include in SwDoc.hxx
Because it is not needed there anymore with IDocumentSettingManager.

Change-Id: Iad5e0a03f2628c9d26698d23e691b3e6228eee0b
2014-06-03 19:12:02 +02:00
Chris Laplante
0a3fe4c281 Remove ASCII art and useless comments from sw module
Change-Id: I3ba4ac78fd4810e006b1034bbe7c28b1803895d2
Reviewed-on: https://gerrit.libreoffice.org/9494
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-27 01:46:44 -05:00
Thomas Arnhold
97a5ba4a71 remove comments why a file gets included
also remove some commented out code

Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-21 18:08:28 +02:00
Philipp Riemer
13dffbb750 fdo#51304: Remove @author annotation in sw/source/core
Change-Id: I4d4eb9758e1aebcdd37fe38671d60f1713487119
2014-02-15 21:51:54 +01:00
Philipp Riemer
c0377a78d2 deleted code that was commented out in sw/source/core/layout/
Change-Id: Idd251a1b82dd8795b7c0087e1e4b9aeed53b2d82
2014-02-15 21:22:51 +01:00
Philipp Riemer
0ffc090d80 fdo#62475 - remove visual noise
- remove "borders"
- move method explanations if misplaced
- rewrite for Doxygen if needed
- "shrink" multiple blank lines

Change-Id: Ia4678b7f2456de70eb307e9c0d80c4ecd068048b
2014-02-15 21:22:50 +01:00
Arnaud Versini
7726339a64 Writer : Fix fdo#71694 by clearing old anchor frame before setting new
Needed as otherwise AnchoredObjects can be in more than one SwLayoutFrm.
See also 7eae50f9ff5877ef880be9a85d3f7e52b1fec49f ( Access by AnchoredObject of a deleted SwLayoutFrm ).

Change-Id: I54582d6f9fb8b6f853352af27706faabe610874b
Reviewed-on: https://gerrit.libreoffice.org/6720
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-20 03:14:19 -06:00
Caolán McNamara
b376eacdfa Access by AnchoredObject of a deleted SwLayoutFrm
as demonstrated by abi10075-1.doc

just register the AnchoredObjects in the SwLayoutFrm and
inform them when the SwLayoutFrm goes away.

This crash was triggered by "1e113cb7604e1509e7d598a9be329f1f7b6e9322" import
different first page header/footer from doc. But that commit is blameless.

Change-Id: Ia079cc635a81dff1ccbf740641f441aa784328a4
2013-11-08 17:18:29 +00:00
Miklos Vajna
a689d8cf7a sw: unused includes in anchoredobject
Change-Id: Ic7034ed384448a273517f3bf9795adfbbcaeba7b
2013-05-27 09:40:35 +02:00
Marcos Paulo de Souza
0f200cc30e fdo#63154: Change Min/Max/Abs for std::min/max/abs
Now all these usages were removed from LO.

Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6
Reviewed-on: https://gerrit.libreoffice.org/3326
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-20 11:09:54 +00:00
Michael Meeks
caaeb0a046 re-base on ALv2 code. Includes:
Patches contributed by Oliver-Rainer Wittmann
    sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
    apply print settings to new printing routines
    http://svn.apache.org/viewvc?view=revision&revision=1172115
    sw34bf06: #o12311627# use <rtl_random> methods to
    create unique ids for list styles and list ids
    http://svn.apache.org/viewvc?view=revision&revision=1172112
    sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> -
    clear list structures completely
    http://svn.apache.org/viewvc?view=revision&revision=1172122
    i#118572 - remove ui string and help content regarding usage of
    Java Mail in Writer's Mail Merge as Java Mail is not used.
    http://svn.apache.org/viewvc?view=revision&revision=1197035

    Patches contributed by Mathias Bauer
    cws mba34issues01: #i117718#: provide filter name in
    case storage of medium does not allow to detect one
    http://svn.apache.org/viewvc?view=revision&revision=1172350
    cws mba34issues01: #i117721#: directly provide
    parameters retrieved from SfxMedium
    http://svn.apache.org/viewvc?view=revision&revision=1172353
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326
    http://svn.apache.org/viewvc?view=revision&revision=1396797
    http://svn.apache.org/viewvc?view=revision&revision=1397315
    cws mba34issues01: #i117723#: convert assertion into trace
    http://svn.apache.org/viewvc?view=revision&revision=1172355
    cws mba34issues01: #i117699#: keep layout alive until swdoc dies
    http://svn.apache.org/viewvc?view=revision&revision=1172362
    cws mba34issues01: #i117943#: missing color attributes in RTF clipboard
    http://svn.apache.org/viewvc?view=revision&revision=1172363

    Patch contributed by Henning Brinkmann
    imported patch i#103878
    http://svn.apache.org/viewvc?view=revision&revision=1172109

    Patches contributed by Michael Stahl
    sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes
    http://svn.apache.org/viewvc?view=revision&revision=1172119

    Patch contributed by imacat
    Fixed the Asian language work count.
    http://svn.apache.org/viewvc?view=revision&revision=1241345

    Patch contributed by Pedro Giffuni
    i#20878 - Add comment with BZ issue for reference.
    http://svn.apache.org/viewvc?view=revision&revision=1244517

    Patch contributed by Andre Fischer
    Do not add targets for junit tests when junit is disabled.
    http://svn.apache.org/viewvc?view=revision&revision=1241508

add writerperfect dependency.
2012-11-30 10:10:38 +00:00
Norbert Thiebaud
dff7e08711 remove include of pch header from sw 2011-11-27 13:25:10 -06:00
Júlio Hoffimann
ac6c250d9e left arrow comments removed // <-- 2011-04-22 16:04:20 +02:00
Júlio Hoffimann
4f51d1b7bb all bogus comments removed keeping the indentation 2011-04-18 16:43:16 +02:00
Thomas Arnhold
64378f446e Move OSL_ENSURE(false,...) to OSL_FAIL(...) 2011-03-13 16:54:59 +01:00
Guillaume Poussel
cd061ff8b4 Removing bogus comments. 2011-02-06 17:38:15 +01:00
Cédric Bosdonnat
c16ba8a04f Removed DBG_UTIL from sw
* Fixed the different dbglevel builds
* This needed to change all the sw local ASSERT to OSL_ENSURE...
2010-11-25 17:12:34 +01:00
Sebastian Spaeth
61355e51b8 Add vim/emacs modelines to all source files
Fixes #fdo30794 Based on bin/add-modelines script (originally posted
in mail 1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:16:56 +02:00
Vladimir Glazunov
7e12418df5 CWS-TOOLING: integrate CWS changefileheader2 2010-02-17 10:32:35 +01:00
Jens-Heiner Rechtien
1a359bd2a8 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Mathias Bauer
b08e1a88df CWS svxsplit: merge with m71 2010-02-04 17:59:58 +01:00
Mathias Bauer
55f1f483cf #i107450#: build all other modules with new editeng lib 2010-01-08 18:32:51 +01:00
Michael Stahl
733b831970 swunolocking1: swtypes.hxx: rename frame anchor types
enum RndStdIds: rename frame anchor types (FLY_*) to be more intuitive.
 [note the completely ridiculous number of files that care about anchor types]
2010-01-05 16:37:41 +01:00
Oliver Bolte
56a1f3affc CWS-TOOLING: integrate CWS cmcfixes49 2008-10-10 13:02:43 +00:00
Rüdiger Timm
c528b1dc6d INTEGRATION: CWS changefileheader (1.26.242); FILE MERGED
2008/04/01 15:57:14 thb 1.26.242.3: #i85898# Stripping all external header guards
2008/04/01 12:54:12 thb 1.26.242.2: #i85898# Stripping all external header guards
2008/03/31 16:54:20 rt 1.26.242.1: #i87441# Change license header to LPGL v3.
2008-04-10 13:38:54 +00:00
Jens-Heiner Rechtien
86398ecd59 INTEGRATION: CWS swwarnings (1.24.162); FILE MERGED
2007/05/29 11:31:03 os 1.24.162.2: RESYNC: (1.24-1.25); FILE MERGED
2007/04/03 12:59:56 tl 1.24.162.1: #i69287# warning-free code
2007-09-27 08:00:49 +00:00
Rüdiger Timm
7449a9ae74 INTEGRATION: CWS os94 (1.24.186); FILE MERGED
2007/03/12 08:10:42 os 1.24.186.1: #i75235# unused methods removed
2007-04-25 08:07:03 +00:00
Vladimir Glazounov
8878bfef9c INTEGRATION: CWS swqbf88 (1.23.26); FILE MERGED
2006/10/05 09:24:39 od 1.23.26.1: #i70122# method <SwAnchoredObject::GetObjRectWithSpaces()>
	 - use bounding rectangle of anchored object.
2006-11-01 14:12:28 +00:00
Oliver Bolte
db7d9b9c40 INTEGRATION: CWS pchfix02 (1.21.2); FILE MERGED
2006/09/01 17:51:46 kaib 1.21.2.1: #i68856# Added header markers and pch files
2006-09-16 20:16:21 +00:00
Oliver Bolte
0c649c4535 INTEGRATION: CWS swqbf81 (1.20.22); FILE MERGED
2006/08/21 11:06:26 od 1.20.22.2: RESYNC: (1.20-1.21); FILE MERGED
2006/08/21 07:35:44 od 1.20.22.1: #i68520# - performance provement:
	   - introduce cache for bounding rectangle in class <SwAnchoredObject>
2006-09-15 10:41:59 +00:00
Jens-Heiner Rechtien
677d5271f2 INTEGRATION: CWS writercorehandoff (1.14.88); FILE MERGED
2006/07/27 14:43:56 fme 1.14.88.8: RESYNC: (1.19-1.20); FILE MERGED
2006/04/05 13:08:56 tra 1.14.88.7: RESYNC: (1.18-1.19); FILE MERGED
2006/03/17 08:08:56 tra 1.14.88.6: RESYNC: (1.17-1.18); FILE MERGED
2005/11/04 12:58:01 tra 1.14.88.5: #i50348#
2005/10/25 08:31:04 tra 1.14.88.4: RESYNC: (1.15-1.16); FILE MERGED
2005/09/13 14:05:06 tra 1.14.88.3: RESYNC: (1.14-1.15); FILE MERGED
2005/07/14 05:01:14 fme 1.14.88.2: #i50348# Make SwDoc accessible via interfaces
2005/07/12 11:21:30 tra 1.14.88.1: #i50348#make SwDoc interface based
2006-08-14 15:24:35 +00:00
Rüdiger Timm
c8c082cf75 INTEGRATION: CWS swqbf75 (1.19.190); FILE MERGED
2006/07/24 11:45:33 od 1.19.190.1: #b6449874# class <SwAnchoredObject>
	   - implementation of new method <SetTmpConsiderWrapInfluenceOfOtherObjs(..)>
2006-07-26 07:16:52 +00:00
Oliver Bolte
f39636ed1f INTEGRATION: CWS swdrawobjpos203 (1.18.88); FILE MERGED
2006/03/20 08:33:17 od 1.18.88.1: #i62875# method <SwAnchoredObject::ChgAnchor(..)>
	 - do not call <ObjectAttachedToAnchorFrame> is no new anchor frame.
2006-03-22 11:24:22 +00:00
Jens-Heiner Rechtien
acd7eaa1e2 INTEGRATION: CWS swqbf50 (1.17.102); FILE MERGED
2006/01/02 13:21:45 od 1.17.102.1: #125977# <SwAnchoredObject::SetPageFrm(..)>
	 - clear member <mpVertPosOrientFrm>, if it doesn't fit to new
	   page frame.
2006-01-27 13:35:17 +00:00
Jens-Heiner Rechtien
0715824e0b INTEGRATION: CWS swqbf40 (1.15.16); FILE MERGED
2005/10/11 10:25:40 od 1.15.16.2: RESYNC: (1.15-1.16); FILE MERGED
2005/09/29 11:50:00 od 1.15.16.1: #i55204# <SwAnchoredObject::ConsiderObjWrapInfluenceOnObjPos()>
	 - correction: wrapping style influence has been considered,
	   if condition <IsTmpConsiderWrapInfluence()> is hold.
2005-10-27 15:01:12 +00:00
Jens-Heiner Rechtien
a2b1449da2 INTEGRATION: CWS swqbf35 (1.14.144); FILE MERGED
2005/09/22 16:06:51 fme 1.14.144.2: RESYNC: (1.14-1.15); FILE MERGED
2005/08/09 07:15:24 od 1.14.144.1: #i52904# class <SwObjPositioningInProgress>
	 - consider nested usage of this class
2005-09-28 10:10:14 +00:00
Rüdiger Timm
ca05018e29 INTEGRATION: CWS ooo19126 (1.14.226); FILE MERGED
2005/09/05 13:40:12 rt 1.14.226.1: #i54170# Change license header: remove SISSL
2005-09-09 03:07:08 +00:00
Rüdiger Timm
6f79f9c9d7 INTEGRATION: CWS swqbugfixes18 (1.11.58); FILE MERGED
2005/03/15 11:51:48 fme 1.11.58.1: #i45019# Do not search for cell frame if object is anchored to page frame
2005-03-30 09:53:19 +00:00
Vladimir Glazounov
28a1beeed7 INTEGRATION: CWS swqbugfixes17 (1.11.18); FILE MERGED
2005/03/08 09:19:33 od 1.11.18.1: #i44339# methods of classes <SwAnchoredObject> and <SwAnchoredDrawObject>
	 - include code to increase its savety.
2005-03-23 11:58:31 +00:00
Vladimir Glazounov
b8e2de5e8c INTEGRATION: CWS swqbugfixes16 (1.10.76); FILE MERGED
2005/03/03 08:42:33 od 1.10.76.3: RESYNC: (1.10-1.11); FILE MERGED
2005/03/03 07:45:16 od 1.10.76.2: #i43913# <SwAnchoredObject::HasClearedEnvironment()> - layout frame,
	 the vertical position is oriented at, has to be set.
2005/02/22 13:32:19 od 1.10.76.1: #i43255# class <SwAnchoredObject> - implementation of
	 new method <ConsiderObjWrapInfluenceOfOtherObjs()>
2005-03-23 10:52:41 +00:00
Vladimir Glazounov
a6793aa76f INTEGRATION: CWS swqbugfixes14 (1.10.4); FILE MERGED
2005/01/28 12:35:43 od 1.10.4.1: #i33818# <SwAnchoredObject::GetRelPosToPageFrm(..)> - adjustment to
	 improvement WW8 export of anchored object positions.
2005-02-22 07:19:21 +00:00
Kurt Zenker
15a72d55df INTEGRATION: CWS swqbugfixes12 (1.9.8); FILE MERGED
2005/01/11 12:29:53 od 1.9.8.2: #i40147# class <SwAnchoredObject> - new member <mbKeepLockedPositionForSection>
2005/01/07 15:39:03 od 1.9.8.1: #i30669# - implementation of new methods, which provides needed layout
	   information for the WW8 filter.
2005-01-21 09:33:21 +00:00
Vladimir Glazounov
79d9cea3f2 INTEGRATION: CWS swqbugfixes10 (1.8.4); FILE MERGED
2004/12/03 15:26:59 od 1.8.4.1: #115759# <SwAnchoredObject::GetVertPosOrientFrm()> is inline now
2004-12-23 09:06:20 +00:00
Oliver Bolte
783db50edb INTEGRATION: CWS swqbugfixes09 (1.6.40); FILE MERGED
2004/11/15 14:07:50 od 1.6.40.4: RESYNC: (1.6-1.7); FILE MERGED
resolve merge conflict.
2004/11/03 12:17:05 od 1.6.40.3: #114798# <SwAnchoredObject::InvalidationOfPosAllowed()
         - no check, if page frame layout is in progress needed.
2004/10/26 08:26:44 od 1.6.40.2: #i35911# class <SwAnchoredObject> - new member <mbClearedEnvironment>
         inclusive accessors, new method <HasClearedEnvironment()>, and
         adjustment to method <SetTmpConsiderWrapInfluence(..)> to
	 collect anchored object in the <SwLayouter> instance, if its
         wrapping style influence has been temporarly applied
2004/10/18 06:37:07 od 1.6.40.1: #i26945# class <SwAnchoredObject> - implementation and usage of new methods
         <FindAnchorCharFrm()> and <GetAnchorFrmContainingAnchPos()>
2004-11-16 14:44:00 +00:00
Jens-Heiner Rechtien
4a9d1f9985 INTEGRATION: CWS swqbugfixes08 (1.6.4); FILE MERGED
2004/09/23 14:28:35 od 1.6.4.2: #i34520# <SwAnchoredObject::ConsiderObjWrapInfluenceOnObjPos()> -
         no check on the anchored objects layer, because text also
         wraps around anchored object, which are in the layer Hell
2004/09/23 09:23:57 od 1.6.4.1: #i33751# method <SwPageFrm& SwAnchoredObject::GetPageFrmOfAnchor()> is replaced
         by method <SwPageFrm* SwAnchoredObject::FindPageFrmOfAnchor()>
2004-11-09 12:46:39 +00:00
Oliver Bolte
92720007d6 INTEGRATION: CWS swqbugfixes06 (1.4.6); FILE MERGED
2004/08/30 12:53:51 od 1.4.6.2: RESYNC: (1.4-1.5); FILE MERGED
2004/08/25 14:53:29 od 1.4.6.1: #i3317# class <SwAnchoredObject> - implementation for applying temporarly
        the straightforward positioning process.
2004-09-09 09:56:32 +00:00