Files
libreoffice/sw/inc/node.hxx

753 lines
23 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2000-09-18 16:15:01 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 16:15:01 +00:00
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
2000-09-18 16:15:01 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 16:15:01 +00:00
*
* This file is part of OpenOffice.org.
2000-09-18 16:15:01 +00:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-09-18 16:15:01 +00:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-09-18 16:15:01 +00:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-09-18 16:15:01 +00:00
*
************************************************************************/
#ifndef SW_NODE_HXX
#define SW_NODE_HXX
#include <vector>
#include <boost/utility.hpp>
#include <boost/shared_ptr.hpp>
2000-09-18 16:15:01 +00:00
#include <tools/mempool.hxx>
#include <tools/gen.hxx>
#include "swdllapi.h"
2000-09-18 16:15:01 +00:00
#include <ndarr.hxx>
#include <ndtyp.hxx>
#include <index.hxx>
#include <fmtcol.hxx>
2000-09-18 16:15:01 +00:00
// ---------------------
// forward declarations
2000-09-18 16:15:01 +00:00
// ---------------------
class SvUShorts;
class SwCntntFrm;
class SwCntntNode;
class SwDoc;
class SwEndNode;
class SwFrm;
class SwFrmFmt;
class SwGrfNode;
class SwNoTxtNode;
class SwNodeIndex;
class SwOLENode;
class SwRect;
class SwSection;
class SwSectionFmt;
class SwTOXBase;
2000-09-18 16:15:01 +00:00
class SwSectionNode;
class SwStartNode;
class SwTabFrm;
class SwTable;
class SwTableNode;
class SwTableBox;
class SwTxtNode;
class SwPageDesc;
class ViewShell;
struct SwPosition;
class IStyleAccess;
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
class IDocumentSettingAccess;
class IDocumentDeviceAccess;
CWS-TOOLING: integrate CWS swrefactormarks2 2009-04-09 12:51:41 +0200 b_michaelsen r270689 : #i94949# cleaned up assertions after rebasing 2009-04-08 17:37:08 +0200 b_michaelsen r270658 : fixing sw/source/ui/utlui/makefile.mk 2009-04-07 17:56:54 +0200 b_michaelsen r270606 : added bookctrl.cxx to EXCEPTIONFILES, because this is needed for stl on unxsols4 2009-04-07 17:05:20 +0200 b_michaelsen r270603 : added crbm.cxx to EXCEPTIONFILES, because this is needed for stl on unxsols4 2009-04-02 23:44:38 +0200 b_michaelsen r270436 : CWS-TOOLING: rebase CWS swrefactormarks2 to trunk@270033 (milestone: DEV300:m45) 2009-02-27 16:25:31 +0100 b_michaelsen r268606 : #i94949# fixed Windows buildbreaker 2009-02-25 18:01:13 +0100 b_michaelsen r268464 : #i94949# Bookmarktest document filter roundtrips 2009-02-24 18:23:55 +0100 b_michaelsen r268404 : #i94949# Bookmark unittests 2009-02-23 19:47:44 +0100 b_michaelsen r268370 : #i94949# added unittest for bookmarks 2009-02-23 12:22:07 +0100 b_michaelsen r268348 : #i94949# fixing CheckCrossReferences testcase 2009-02-20 18:12:50 +0100 b_michaelsen r268335 : #i94949# fixing SwXTextRange 2009-02-18 18:32:57 +0100 b_michaelsen r268252 : #i94949# deregistering DdeBookmarks on delete 2009-02-18 18:29:08 +0100 b_michaelsen r268251 : fixing dbgoutsw.cxx for debug builds 2009-02-16 18:42:43 +0100 b_michaelsen r267834 : CWS-TOOLING: rebase CWS swrefactormarks2 to trunk@267171 (milestone: DEV300:m41) 2009-02-12 15:32:02 +0100 b_michaelsen r267667 : #i94949 fixed crossrefbookmark naming 2009-02-11 18:30:08 +0100 b_michaelsen r267624 : #94949# fixing bookmark navigation 2009-02-11 13:55:26 +0100 b_michaelsen r267599 : #i94949# fixed bookmark naming 2009-02-10 17:53:05 +0100 b_michaelsen r267571 : #i94949# renamed HasOtherMarkPos to IsExpanded 2009-02-10 17:23:01 +0100 b_michaelsen r267564 : #i94949# renamed ::sw::bookmark namespace to more fitting ::sw::mark 2009-02-10 16:16:32 +0100 b_michaelsen r267553 : #i94949# creating only CrossRefBookmark per Txtnode 2009-02-10 12:14:05 +0100 b_michaelsen r267547 : #i94949# fixed bookmark count in navigator 2009-02-09 19:12:18 +0100 b_michaelsen r267532 : #i94949# lcl_CopyBookmarks(..) - handle marks on boundaries correctly 2009-02-09 17:32:45 +0100 b_michaelsen r267524 : #i94949# setting the refobject of the DdeBookmark in Sin SwServerObject::SetDdeBookmark(..) 2009-02-09 17:22:15 +0100 b_michaelsen r267523 : #i94949# trying to harden SwServerObject 2009-02-09 16:47:32 +0100 b_michaelsen r267521 : #i94949# lcl_CopyBookmarks(..): try to get the source mark name, if possible 2009-02-09 16:05:42 +0100 b_michaelsen r267519 : #i94949# clearing the OtherMarkPos if PaM has no mark in repositionMark(..), swapping inverted bookmarks without hissing an assertion 2009-02-09 15:55:38 +0100 b_michaelsen r267518 : #i94949# checking for out-of-bounds in SwView::ExecuteStatusLine(..) 2009-02-09 15:23:47 +0100 b_michaelsen r267517 : #i94949# using an UNO_BOOKMARK in ui/dbui/dbinsdlg.cxx 2009-02-09 14:14:47 +0100 b_michaelsen r267514 : #i94949# IDocumentMarkAccess::GetType(..) asserts on unknown type 2009-02-09 14:04:25 +0100 b_michaelsen r267513 : #i94949# using rtl strings instead of tools-strings in CrossRefBookmarks 2009-02-09 13:55:01 +0100 b_michaelsen r267510 : #i94949# using empty string for UnoMark construction 2009-02-09 13:46:46 +0100 b_michaelsen r267509 : #i94949# removed superfluous #includes, removed superfluous member DdeBookmark::bGenerateName, initialized DdeBookmark::m_aRefObj removed superfluous local _FindItem::ClearObj 2009-02-06 14:38:37 +0100 b_michaelsen r267462 : #i94949# fixing FN_STAT_BOOKMARK dispatches 2009-02-05 18:05:07 +0100 b_michaelsen r267436 : #i94949# removing superfluous #includes 2009-02-04 15:51:31 +0100 b_michaelsen r267391 : fixing resync merge error 2009-02-02 19:39:55 +0100 b_michaelsen r267294 : #i94949# bookmark performance 2009-01-30 19:30:51 +0100 b_michaelsen r267229 : #i94949# throwing IllegalArgumentException, if appropriate 2009-01-30 19:29:56 +0100 b_michaelsen r267228 : #i94949# refactored lcl_FillBookmarkArray, comments, constness 2009-01-30 19:23:49 +0100 b_michaelsen r267227 : #i94949# refactored lcl_FillBookmarkArray, comments, constness 2009-01-30 19:16:06 +0100 b_michaelsen r267226 : #i94949# refactored lcl_FillBookmarkArray 2009-01-30 17:59:27 +0100 b_michaelsen r267222 : #i94949# removed superficial #include 2009-01-30 17:50:02 +0100 b_michaelsen r267220 : #i94949# SwXTextRange remembers its UNO bookmark 2009-01-29 20:19:58 +0100 b_michaelsen r267168 : #i94949# implemented IDocumentMarkAccess::findBookmark 2009-01-29 17:22:17 +0100 b_michaelsen r267162 : #i94949# implemented renameMark in Markmanager 2009-01-29 14:17:10 +0100 b_michaelsen r267134 : #i94949# cleanup in SwXBookmark, whitespace 2009-01-29 13:21:54 +0100 b_michaelsen r267125 : #i94949# cleanup in SwXBookmark, whitespace 2009-01-29 13:06:10 +0100 b_michaelsen r267120 : #i94949# cleanup in SwXBookmark, whitespace 2009-01-29 13:00:09 +0100 b_michaelsen r267118 : #i94949# cleanup in SwXBookmark, whitespace 2009-01-29 10:35:10 +0100 b_michaelsen r267101 : #i94949# renamed SetCrsrToBkmk to SetCrsrToMark, moving to start/end of doc if no more bookmarks can be found 2009-01-28 17:05:36 +0100 b_michaelsen r267070 : #i94949# fixed order in aProvNamesId in unocoll.cxx 2009-01-28 15:46:13 +0100 b_michaelsen r267063 : #i94949# documentation 2009-01-28 15:36:59 +0100 b_michaelsen r267062 : #i94949# removing superficial #include 2009-01-28 15:30:36 +0100 b_michaelsen r267061 : #i94949# basic code conventions 2009-01-28 11:14:30 +0100 b_michaelsen r267039 : #i94949# comparing to the actual name of the new mark 2009-01-26 15:22:25 +0100 b_michaelsen r266927 : #i94949# performance fixes 2009-01-14 21:16:56 +0100 b_michaelsen r266332 : #i94949# fixing linux x86-64 compiler warnings 2009-01-14 19:52:06 +0100 b_michaelsen r266331 : #i94949# fixing some compiler warnings 2008-12-15 13:04:49 +0100 b_michaelsen r265474 : #i94949# fixed microsoft compiler warnings 2008-12-12 18:26:02 +0100 b_michaelsen r265434 : #i94949# fixed pro platform buildbreakers 2008-12-11 17:51:24 +0100 b_michaelsen r265342 : CWS-TOOLING: rebase CWS swrefactormarks2 to trunk@264807 (milestone: DEV300:m37) 2008-12-09 18:30:59 +0100 b_michaelsen r265134 : #i94949# fixed IDocumentMarkAccess::GetType for new mark inheritance tree 2008-12-09 16:56:26 +0100 b_michaelsen r265118 : #i94949# fixed deleteMark optimization 2008-12-09 14:55:58 +0100 b_michaelsen r265092 : #i94949# DdeLink and DdeBookmark 2008-12-05 18:28:05 +0100 b_michaelsen r264914 : #i94949# fixed InitDoc in bookmarks 2008-12-02 02:23:51 +0100 b_michaelsen r264649 : #i94949# removed obsolete naming proposal code in SwXTextRange, fixed navigator reminders to forget the oldest reminder when the pool is empty 2008-12-02 02:05:19 +0100 b_michaelsen r264648 : #i94949# using bisect search for delete 2008-12-02 01:58:16 +0100 b_michaelsen r264647 : #i94949# using bisect search for delete 2008-12-02 01:37:33 +0100 b_michaelsen r264646 : #i94949# using bisect search for delete 2008-12-02 01:03:29 +0100 b_michaelsen r264645 : #i94949# fixed deleteMark crash 2008-12-01 20:55:00 +0100 b_michaelsen r264638 : #i94949# removed crossrefs from ui enumerations 2008-12-01 15:48:12 +0100 b_michaelsen r264613 : #i94949# removed superfluous local functions 2008-12-01 15:01:19 +0100 b_michaelsen r264608 : #i94949# optimized insertion of new marks 2008-12-01 14:33:21 +0100 b_michaelsen r264603 : #i94949# simplified code finding Fieldmark for a position 2008-12-01 14:05:55 +0100 b_michaelsen r264598 : #i94949# fixed reverse travelling through marks, removed obsolete getUniqueMarkName() 2008-11-27 18:48:15 +0100 b_michaelsen r264515 : #i94949# fixed _SaveCntntIdx and friends 2008-11-27 15:59:49 +0100 b_michaelsen r264500 : #i94949# fix Mark position only in ctor 2008-11-27 15:52:28 +0100 b_michaelsen r264497 : #i94949# fixed Bug in SwXBookmark, was using pDoc too early 2008-11-26 14:54:22 +0100 b_michaelsen r264396 : #i94949# fixed documentation, simplified navigator reminder code 2008-11-24 20:45:51 +0100 b_michaelsen r264266 : #i94949# removed last obsolete getUniqueMarkName calls 2008-11-24 20:21:35 +0100 b_michaelsen r264265 : #i94949# fixed typo in IDocumentMarkAccess, removed obsolete getUniqueMarkName calls 2008-11-24 18:34:32 +0100 b_michaelsen r264264 : #i94949# repositioning of Marks, removed possibility to delete marks by name in the core, refactoring of navigator reminder generation 2008-11-21 14:08:49 +0100 b_michaelsen r264137 : #i94949# simplified makeMark 2008-11-21 12:07:09 +0100 b_michaelsen r264120 : #i94949# moved ShortName and KeyCode from IMark to IBookmark 2008-11-19 12:50:49 +0100 b_michaelsen r263981 : #i94949# starting refactoring of bookmark naming 2008-11-19 11:31:08 +0100 b_michaelsen r263972 : #i94949# getting rid of obsolete dynamic casts 2008-11-18 19:06:09 +0100 b_michaelsen r263795 : #i94949# getting rid of index based mark access, IDocumentMarkAccess already provides iterators 2008-11-18 17:50:18 +0100 b_michaelsen r263792 : #i94949# getting rid of index based mark access, IDocumentMarkAccess already provides iterators 2008-11-18 16:48:20 +0100 b_michaelsen r263783 : #i94949# removed methods from crsrsh which are already available directly via IDocumentMarkAccess 2008-11-18 11:31:35 +0100 b_michaelsen r263753 : #i94949# cleaning up mark code in crsrsh 2008-11-17 10:15:25 +0100 b_michaelsen r263705 : #i94949# removed possible integer overflow 2008-11-14 18:48:45 +0100 b_michaelsen r263695 : #i94949# management of mark names in MarkManager 2008-11-14 18:23:40 +0100 b_michaelsen r263693 : #i94949# using polymorphism to do mark-specific setup in SwDoc 2008-11-14 16:27:09 +0100 b_michaelsen r263684 : #i94949# got rid of makeCrossRefBookmark 2008-11-14 13:03:32 +0100 b_michaelsen r263674 : #i94949# refactored Correction methods 2008-11-13 12:27:55 +0100 b_michaelsen r263631 : #i94949# got rid of old-style tools assertions in new code 2008-11-12 16:58:16 +0100 b_michaelsen r263608 : #i94949# added assertion for unique names 2008-11-12 16:55:18 +0100 b_michaelsen r263607 : #i94949# maked XFormField deprecated 2008-11-12 13:04:29 +0100 b_michaelsen r263587 : #i94949# replaced IDocumentMarkAccess::GetType with simple dynamic_cast where possible 2008-11-11 18:45:53 +0100 b_michaelsen r263572 : #i94949# cleaned up SwHstryBookmark 2008-11-11 13:48:18 +0100 b_michaelsen r263557 : #i94949# removed dynamic_casts to SwModify by inheriting IMark from it 2008-11-11 11:26:28 +0100 b_michaelsen r263548 : #i94949# fixed SwXBookmark 2008-11-10 17:01:19 +0100 b_michaelsen r263529 : #i94949# fixed DdeBookmarks in clipboard 2008-11-10 16:44:52 +0100 b_michaelsen r263527 : #i94949# formatting 2008-11-10 16:29:16 +0100 b_michaelsen r263526 : #i94949# fixing unoobj.cxx 2008-11-10 16:23:50 +0100 b_michaelsen r263525 : #i94949# cleaning up crossrefbookmark.cxx/.hxx 2008-11-10 16:02:08 +0100 b_michaelsen r263524 : #i94949# Pdf Export should only generate 'real' bookmarks 2008-11-10 15:33:58 +0100 b_michaelsen r263521 : #i94949# removed const_casts 2008-11-10 15:12:06 +0100 b_michaelsen r263520 : #i94949# moved _DelBookmarks into MarksManager 2008-11-07 18:48:38 +0100 b_michaelsen r263480 : #i94949# using iterator interface 2008-11-07 18:41:46 +0100 b_michaelsen r263478 : #i94949# using iterator interface 2008-11-07 18:07:41 +0100 b_michaelsen r263477 : #i94949# using iterator interface 2008-11-07 17:54:41 +0100 b_michaelsen r263476 : #i94949# using iterator interface 2008-11-07 17:44:41 +0100 b_michaelsen r263475 : #i94949# moved correction methods into MarkManager 2008-11-06 18:47:28 +0100 b_michaelsen r263404 : #i94949# getting rid of superfluous const_casts 2008-11-06 17:58:01 +0100 b_michaelsen r263403 : #i94949# no more setting of mark positions outside of the core 2008-11-06 17:08:37 +0100 b_michaelsen r263401 : #i94949# removed setters from IMark 2008-11-06 13:55:25 +0100 b_michaelsen r263383 : #i94949 SwDoc does not implement IDocumentMarkAccess anymore 2008-11-04 18:17:03 +0100 b_michaelsen r263333 : #i94949# began removing IDocumentMarkAccess from SwDoc 2008-11-04 16:48:34 +0100 b_michaelsen r263330 : removing dead code (SwBitArray) found by mst 2008-11-04 16:29:32 +0100 b_michaelsen r263329 : removing dead code (SwBitArray) found by mst 2008-11-04 14:57:48 +0100 b_michaelsen r263326 : removing dead code (SwBitArray) found by mst 2008-11-04 14:50:18 +0100 b_michaelsen r263325 : #i94949# stricter typing in IDocumentMarkAccess 2008-10-24 15:16:27 +0200 b_michaelsen r262647 : #i94949# renamed ::sw::bookmark::SimpleMark to NavigatorReminder to fit the IDocumentMarkAccess enum 2008-10-24 15:10:10 +0200 b_michaelsen r262646 : #i94949# only 'real' bookmark implement IBookmark, Marks also get removed from m_vFieldmarks on delete/clear 2008-10-24 13:06:23 +0200 b_michaelsen r262636 : #i94949# Fieldmark tabnavigation 2008-10-23 12:16:36 +0200 b_michaelsen r262619 : #i94949# Fieldmark classes and filters 2008-10-22 13:17:18 +0200 b_michaelsen r262597 : #i94949# writer import fixes 2008-10-21 11:30:38 +0200 b_michaelsen r262565 : #i94949# renamed methods containing Bookmark in the generic IMark interface 2008-10-20 14:09:02 +0200 b_michaelsen r262318 : #i94949# fixed SwDoc::CorrRel 2008-10-16 22:45:13 +0200 b_michaelsen r262273 : #i94949 simplified Before/After methods 2008-10-16 21:40:57 +0200 b_michaelsen r262271 : #i94949 renamed SimpleMark to NavigatorReminder 2008-10-16 21:15:23 +0200 b_michaelsen r262270 : #i94949 using shared_ptr only in MarkManager 2008-10-16 17:46:37 +0200 b_michaelsen r262269 : #i94949# getFieldmarkBefore and getFieldmarkAfter 2008-10-16 17:12:13 +0200 b_michaelsen r262265 : #i94949# cleanup in crbm.cxx 2008-10-16 12:49:01 +0200 b_michaelsen r262257 : #i94949# fixed usage of invalid iterator, fixed invalid cast 2008-10-15 15:34:20 +0200 b_michaelsen r262239 : #i94949# added moved files 2008-10-15 15:26:45 +0200 b_michaelsen r262237 : #i94949# initial reimplementation of Bookmarks
2009-04-21 15:40:02 +00:00
class IDocumentMarkAccess;
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
class IDocumentRedlineAccess;
class IDocumentStylePoolAccess;
class IDocumentLineNumberAccess;
class IDocumentLinksAdministration;
class IDocumentFieldsAccess;
class IDocumentContentOperations;
class IDocumentListItems;
2000-09-18 16:15:01 +00:00
// --------------------
// class SwNode
// --------------------
class SW_DLLPUBLIC SwNode : private /* public*/ BigPtrEntry
2000-09-18 16:15:01 +00:00
{
friend class SwNodes;
#if OSL_DEBUG_LEVEL > 1
static long nSerial;
long nMySerial;
#endif
2000-09-18 16:15:01 +00:00
BYTE nNodeType;
// fuer Textnodes: Stufungslevel der Autoformatierung. Ist erstmal hier
// gelandet, weil noch Bits frei sind
BYTE nAFmtNumLvl : 3;
2000-11-06 09:46:12 +00:00
BOOL bSetNumLSpace : 1; // fuer Numerierung: TRUE Einzug setzen
BOOL bIgnoreDontExpand : 1; // for Text Attributes - ignore the flag
2000-09-18 16:15:01 +00:00
protected:
SwStartNode* pStartOfSection;
SwNode( const SwNodeIndex &rWhere, const BYTE nNodeId );
// for the initial StartNode
2000-09-18 16:15:01 +00:00
SwNode( SwNodes& rNodes, ULONG nPos, const BYTE nNodeId );
public:
virtual ~SwNode();
#if OSL_DEBUG_LEVEL > 1
long int GetSerial() const { return nMySerial; }
#endif
2000-09-18 16:15:01 +00:00
USHORT GetSectionLevel() const;
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
2000-09-18 16:15:01 +00:00
inline ULONG StartOfSectionIndex() const;
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline const SwStartNode* StartOfSectionNode() const { return pStartOfSection; }
inline SwStartNode* StartOfSectionNode() { return pStartOfSection; }
2000-09-18 16:15:01 +00:00
inline ULONG EndOfSectionIndex() const;
inline const SwEndNode* EndOfSectionNode() const;
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline SwEndNode* EndOfSectionNode();
2000-09-18 16:15:01 +00:00
2008-10-10 13:02:43 +00:00
inline BYTE GetAutoFmtLvl() const { return nAFmtNumLvl; }
2000-09-18 16:15:01 +00:00
inline void SetAutoFmtLvl( BYTE nVal ) { nAFmtNumLvl = nVal; }
2008-10-10 13:02:43 +00:00
inline BOOL IsSetNumLSpace() const { return bSetNumLSpace; }
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline void SetNumLSpace( BOOL bFlag ) { bSetNumLSpace = bFlag; }
2000-11-06 09:46:12 +00:00
2008-10-10 13:02:43 +00:00
inline BOOL IsIgnoreDontExpand() const { return bIgnoreDontExpand; }
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline void SetIgnoreDontExpand( BOOL bNew ) { bIgnoreDontExpand = bNew; }
2000-09-18 16:15:01 +00:00
BYTE GetNodeType() const { return nNodeType; }
inline SwStartNode *GetStartNode();
inline const SwStartNode *GetStartNode() const;
inline SwCntntNode *GetCntntNode();
inline const SwCntntNode *GetCntntNode() const;
inline SwEndNode *GetEndNode();
inline const SwEndNode *GetEndNode() const;
#ifndef ICC
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline
2000-09-18 16:15:01 +00:00
#endif
SwTxtNode *GetTxtNode();
#ifndef ICC
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline
2000-09-18 16:15:01 +00:00
#endif
const SwTxtNode *GetTxtNode() const;
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline SwOLENode *GetOLENode();
inline const SwOLENode *GetOLENode() const;
inline SwNoTxtNode *GetNoTxtNode();
inline const SwNoTxtNode *GetNoTxtNode() const;
inline SwGrfNode *GetGrfNode();
inline const SwGrfNode *GetGrfNode() const;
2000-09-18 16:15:01 +00:00
inline SwTableNode *GetTableNode();
inline const SwTableNode *GetTableNode() const;
inline SwSectionNode *GetSectionNode();
inline const SwSectionNode *GetSectionNode() const;
inline BOOL IsStartNode() const;
inline BOOL IsCntntNode() const;
inline BOOL IsEndNode() const;
inline BOOL IsTxtNode() const;
inline BOOL IsTableNode() const;
inline BOOL IsSectionNode() const;
inline BOOL IsOLENode() const;
inline BOOL IsNoTxtNode() const;
inline BOOL IsGrfNode() const;
/**
Checks if this node is in redlines.
@retval TRUE this node is in redlines
@retval FALSE else
*/
BOOL IsInRedlines() const;
2000-09-18 16:15:01 +00:00
// suche den TabellenNode, in dem dieser steht. Wenn in keiner
// Tabelle wird 0 returnt.
SwTableNode *FindTableNode();
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline const SwTableNode *FindTableNode() const;
2000-09-18 16:15:01 +00:00
// suche den SectionNode, in dem dieser steht. Wenn es in keiner
// Section steht wird 0 returnt.
SwSectionNode *FindSectionNode();
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline const SwSectionNode *FindSectionNode() const;
2000-09-18 16:15:01 +00:00
SwStartNode* FindSttNodeByType( SwStartNodeType eTyp );
inline const SwStartNode* FindSttNodeByType( SwStartNodeType eTyp ) const;
const SwStartNode* FindTableBoxStartNode() const
{ return FindSttNodeByType( SwTableBoxStartNode ); }
const SwStartNode* FindFlyStartNode() const
{ return FindSttNodeByType( SwFlyStartNode ); }
const SwStartNode* FindFootnoteStartNode() const
{ return FindSttNodeByType( SwFootnoteStartNode ); }
const SwStartNode* FindHeaderStartNode() const
{ return FindSttNodeByType( SwHeaderStartNode ); }
const SwStartNode* FindFooterStartNode() const
{ return FindSttNodeByType( SwFooterStartNode ); }
// in welchem Nodes-Array/Doc steht der Node ?
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline SwNodes& GetNodes();
2000-09-18 16:15:01 +00:00
inline const SwNodes& GetNodes() const;
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
inline SwDoc* GetDoc();
inline const SwDoc* GetDoc() const;
/** Provides access to the document setting interface
*/
const IDocumentSettingAccess* getIDocumentSettingAccess() const;
/** Provides access to the document device interface
*/
const IDocumentDeviceAccess* getIDocumentDeviceAccess() const;
/** Provides access to the document bookmark interface
*/
CWS-TOOLING: integrate CWS swrefactormarks2 2009-04-09 12:51:41 +0200 b_michaelsen r270689 : #i94949# cleaned up assertions after rebasing 2009-04-08 17:37:08 +0200 b_michaelsen r270658 : fixing sw/source/ui/utlui/makefile.mk 2009-04-07 17:56:54 +0200 b_michaelsen r270606 : added bookctrl.cxx to EXCEPTIONFILES, because this is needed for stl on unxsols4 2009-04-07 17:05:20 +0200 b_michaelsen r270603 : added crbm.cxx to EXCEPTIONFILES, because this is needed for stl on unxsols4 2009-04-02 23:44:38 +0200 b_michaelsen r270436 : CWS-TOOLING: rebase CWS swrefactormarks2 to trunk@270033 (milestone: DEV300:m45) 2009-02-27 16:25:31 +0100 b_michaelsen r268606 : #i94949# fixed Windows buildbreaker 2009-02-25 18:01:13 +0100 b_michaelsen r268464 : #i94949# Bookmarktest document filter roundtrips 2009-02-24 18:23:55 +0100 b_michaelsen r268404 : #i94949# Bookmark unittests 2009-02-23 19:47:44 +0100 b_michaelsen r268370 : #i94949# added unittest for bookmarks 2009-02-23 12:22:07 +0100 b_michaelsen r268348 : #i94949# fixing CheckCrossReferences testcase 2009-02-20 18:12:50 +0100 b_michaelsen r268335 : #i94949# fixing SwXTextRange 2009-02-18 18:32:57 +0100 b_michaelsen r268252 : #i94949# deregistering DdeBookmarks on delete 2009-02-18 18:29:08 +0100 b_michaelsen r268251 : fixing dbgoutsw.cxx for debug builds 2009-02-16 18:42:43 +0100 b_michaelsen r267834 : CWS-TOOLING: rebase CWS swrefactormarks2 to trunk@267171 (milestone: DEV300:m41) 2009-02-12 15:32:02 +0100 b_michaelsen r267667 : #i94949 fixed crossrefbookmark naming 2009-02-11 18:30:08 +0100 b_michaelsen r267624 : #94949# fixing bookmark navigation 2009-02-11 13:55:26 +0100 b_michaelsen r267599 : #i94949# fixed bookmark naming 2009-02-10 17:53:05 +0100 b_michaelsen r267571 : #i94949# renamed HasOtherMarkPos to IsExpanded 2009-02-10 17:23:01 +0100 b_michaelsen r267564 : #i94949# renamed ::sw::bookmark namespace to more fitting ::sw::mark 2009-02-10 16:16:32 +0100 b_michaelsen r267553 : #i94949# creating only CrossRefBookmark per Txtnode 2009-02-10 12:14:05 +0100 b_michaelsen r267547 : #i94949# fixed bookmark count in navigator 2009-02-09 19:12:18 +0100 b_michaelsen r267532 : #i94949# lcl_CopyBookmarks(..) - handle marks on boundaries correctly 2009-02-09 17:32:45 +0100 b_michaelsen r267524 : #i94949# setting the refobject of the DdeBookmark in Sin SwServerObject::SetDdeBookmark(..) 2009-02-09 17:22:15 +0100 b_michaelsen r267523 : #i94949# trying to harden SwServerObject 2009-02-09 16:47:32 +0100 b_michaelsen r267521 : #i94949# lcl_CopyBookmarks(..): try to get the source mark name, if possible 2009-02-09 16:05:42 +0100 b_michaelsen r267519 : #i94949# clearing the OtherMarkPos if PaM has no mark in repositionMark(..), swapping inverted bookmarks without hissing an assertion 2009-02-09 15:55:38 +0100 b_michaelsen r267518 : #i94949# checking for out-of-bounds in SwView::ExecuteStatusLine(..) 2009-02-09 15:23:47 +0100 b_michaelsen r267517 : #i94949# using an UNO_BOOKMARK in ui/dbui/dbinsdlg.cxx 2009-02-09 14:14:47 +0100 b_michaelsen r267514 : #i94949# IDocumentMarkAccess::GetType(..) asserts on unknown type 2009-02-09 14:04:25 +0100 b_michaelsen r267513 : #i94949# using rtl strings instead of tools-strings in CrossRefBookmarks 2009-02-09 13:55:01 +0100 b_michaelsen r267510 : #i94949# using empty string for UnoMark construction 2009-02-09 13:46:46 +0100 b_michaelsen r267509 : #i94949# removed superfluous #includes, removed superfluous member DdeBookmark::bGenerateName, initialized DdeBookmark::m_aRefObj removed superfluous local _FindItem::ClearObj 2009-02-06 14:38:37 +0100 b_michaelsen r267462 : #i94949# fixing FN_STAT_BOOKMARK dispatches 2009-02-05 18:05:07 +0100 b_michaelsen r267436 : #i94949# removing superfluous #includes 2009-02-04 15:51:31 +0100 b_michaelsen r267391 : fixing resync merge error 2009-02-02 19:39:55 +0100 b_michaelsen r267294 : #i94949# bookmark performance 2009-01-30 19:30:51 +0100 b_michaelsen r267229 : #i94949# throwing IllegalArgumentException, if appropriate 2009-01-30 19:29:56 +0100 b_michaelsen r267228 : #i94949# refactored lcl_FillBookmarkArray, comments, constness 2009-01-30 19:23:49 +0100 b_michaelsen r267227 : #i94949# refactored lcl_FillBookmarkArray, comments, constness 2009-01-30 19:16:06 +0100 b_michaelsen r267226 : #i94949# refactored lcl_FillBookmarkArray 2009-01-30 17:59:27 +0100 b_michaelsen r267222 : #i94949# removed superficial #include 2009-01-30 17:50:02 +0100 b_michaelsen r267220 : #i94949# SwXTextRange remembers its UNO bookmark 2009-01-29 20:19:58 +0100 b_michaelsen r267168 : #i94949# implemented IDocumentMarkAccess::findBookmark 2009-01-29 17:22:17 +0100 b_michaelsen r267162 : #i94949# implemented renameMark in Markmanager 2009-01-29 14:17:10 +0100 b_michaelsen r267134 : #i94949# cleanup in SwXBookmark, whitespace 2009-01-29 13:21:54 +0100 b_michaelsen r267125 : #i94949# cleanup in SwXBookmark, whitespace 2009-01-29 13:06:10 +0100 b_michaelsen r267120 : #i94949# cleanup in SwXBookmark, whitespace 2009-01-29 13:00:09 +0100 b_michaelsen r267118 : #i94949# cleanup in SwXBookmark, whitespace 2009-01-29 10:35:10 +0100 b_michaelsen r267101 : #i94949# renamed SetCrsrToBkmk to SetCrsrToMark, moving to start/end of doc if no more bookmarks can be found 2009-01-28 17:05:36 +0100 b_michaelsen r267070 : #i94949# fixed order in aProvNamesId in unocoll.cxx 2009-01-28 15:46:13 +0100 b_michaelsen r267063 : #i94949# documentation 2009-01-28 15:36:59 +0100 b_michaelsen r267062 : #i94949# removing superficial #include 2009-01-28 15:30:36 +0100 b_michaelsen r267061 : #i94949# basic code conventions 2009-01-28 11:14:30 +0100 b_michaelsen r267039 : #i94949# comparing to the actual name of the new mark 2009-01-26 15:22:25 +0100 b_michaelsen r266927 : #i94949# performance fixes 2009-01-14 21:16:56 +0100 b_michaelsen r266332 : #i94949# fixing linux x86-64 compiler warnings 2009-01-14 19:52:06 +0100 b_michaelsen r266331 : #i94949# fixing some compiler warnings 2008-12-15 13:04:49 +0100 b_michaelsen r265474 : #i94949# fixed microsoft compiler warnings 2008-12-12 18:26:02 +0100 b_michaelsen r265434 : #i94949# fixed pro platform buildbreakers 2008-12-11 17:51:24 +0100 b_michaelsen r265342 : CWS-TOOLING: rebase CWS swrefactormarks2 to trunk@264807 (milestone: DEV300:m37) 2008-12-09 18:30:59 +0100 b_michaelsen r265134 : #i94949# fixed IDocumentMarkAccess::GetType for new mark inheritance tree 2008-12-09 16:56:26 +0100 b_michaelsen r265118 : #i94949# fixed deleteMark optimization 2008-12-09 14:55:58 +0100 b_michaelsen r265092 : #i94949# DdeLink and DdeBookmark 2008-12-05 18:28:05 +0100 b_michaelsen r264914 : #i94949# fixed InitDoc in bookmarks 2008-12-02 02:23:51 +0100 b_michaelsen r264649 : #i94949# removed obsolete naming proposal code in SwXTextRange, fixed navigator reminders to forget the oldest reminder when the pool is empty 2008-12-02 02:05:19 +0100 b_michaelsen r264648 : #i94949# using bisect search for delete 2008-12-02 01:58:16 +0100 b_michaelsen r264647 : #i94949# using bisect search for delete 2008-12-02 01:37:33 +0100 b_michaelsen r264646 : #i94949# using bisect search for delete 2008-12-02 01:03:29 +0100 b_michaelsen r264645 : #i94949# fixed deleteMark crash 2008-12-01 20:55:00 +0100 b_michaelsen r264638 : #i94949# removed crossrefs from ui enumerations 2008-12-01 15:48:12 +0100 b_michaelsen r264613 : #i94949# removed superfluous local functions 2008-12-01 15:01:19 +0100 b_michaelsen r264608 : #i94949# optimized insertion of new marks 2008-12-01 14:33:21 +0100 b_michaelsen r264603 : #i94949# simplified code finding Fieldmark for a position 2008-12-01 14:05:55 +0100 b_michaelsen r264598 : #i94949# fixed reverse travelling through marks, removed obsolete getUniqueMarkName() 2008-11-27 18:48:15 +0100 b_michaelsen r264515 : #i94949# fixed _SaveCntntIdx and friends 2008-11-27 15:59:49 +0100 b_michaelsen r264500 : #i94949# fix Mark position only in ctor 2008-11-27 15:52:28 +0100 b_michaelsen r264497 : #i94949# fixed Bug in SwXBookmark, was using pDoc too early 2008-11-26 14:54:22 +0100 b_michaelsen r264396 : #i94949# fixed documentation, simplified navigator reminder code 2008-11-24 20:45:51 +0100 b_michaelsen r264266 : #i94949# removed last obsolete getUniqueMarkName calls 2008-11-24 20:21:35 +0100 b_michaelsen r264265 : #i94949# fixed typo in IDocumentMarkAccess, removed obsolete getUniqueMarkName calls 2008-11-24 18:34:32 +0100 b_michaelsen r264264 : #i94949# repositioning of Marks, removed possibility to delete marks by name in the core, refactoring of navigator reminder generation 2008-11-21 14:08:49 +0100 b_michaelsen r264137 : #i94949# simplified makeMark 2008-11-21 12:07:09 +0100 b_michaelsen r264120 : #i94949# moved ShortName and KeyCode from IMark to IBookmark 2008-11-19 12:50:49 +0100 b_michaelsen r263981 : #i94949# starting refactoring of bookmark naming 2008-11-19 11:31:08 +0100 b_michaelsen r263972 : #i94949# getting rid of obsolete dynamic casts 2008-11-18 19:06:09 +0100 b_michaelsen r263795 : #i94949# getting rid of index based mark access, IDocumentMarkAccess already provides iterators 2008-11-18 17:50:18 +0100 b_michaelsen r263792 : #i94949# getting rid of index based mark access, IDocumentMarkAccess already provides iterators 2008-11-18 16:48:20 +0100 b_michaelsen r263783 : #i94949# removed methods from crsrsh which are already available directly via IDocumentMarkAccess 2008-11-18 11:31:35 +0100 b_michaelsen r263753 : #i94949# cleaning up mark code in crsrsh 2008-11-17 10:15:25 +0100 b_michaelsen r263705 : #i94949# removed possible integer overflow 2008-11-14 18:48:45 +0100 b_michaelsen r263695 : #i94949# management of mark names in MarkManager 2008-11-14 18:23:40 +0100 b_michaelsen r263693 : #i94949# using polymorphism to do mark-specific setup in SwDoc 2008-11-14 16:27:09 +0100 b_michaelsen r263684 : #i94949# got rid of makeCrossRefBookmark 2008-11-14 13:03:32 +0100 b_michaelsen r263674 : #i94949# refactored Correction methods 2008-11-13 12:27:55 +0100 b_michaelsen r263631 : #i94949# got rid of old-style tools assertions in new code 2008-11-12 16:58:16 +0100 b_michaelsen r263608 : #i94949# added assertion for unique names 2008-11-12 16:55:18 +0100 b_michaelsen r263607 : #i94949# maked XFormField deprecated 2008-11-12 13:04:29 +0100 b_michaelsen r263587 : #i94949# replaced IDocumentMarkAccess::GetType with simple dynamic_cast where possible 2008-11-11 18:45:53 +0100 b_michaelsen r263572 : #i94949# cleaned up SwHstryBookmark 2008-11-11 13:48:18 +0100 b_michaelsen r263557 : #i94949# removed dynamic_casts to SwModify by inheriting IMark from it 2008-11-11 11:26:28 +0100 b_michaelsen r263548 : #i94949# fixed SwXBookmark 2008-11-10 17:01:19 +0100 b_michaelsen r263529 : #i94949# fixed DdeBookmarks in clipboard 2008-11-10 16:44:52 +0100 b_michaelsen r263527 : #i94949# formatting 2008-11-10 16:29:16 +0100 b_michaelsen r263526 : #i94949# fixing unoobj.cxx 2008-11-10 16:23:50 +0100 b_michaelsen r263525 : #i94949# cleaning up crossrefbookmark.cxx/.hxx 2008-11-10 16:02:08 +0100 b_michaelsen r263524 : #i94949# Pdf Export should only generate 'real' bookmarks 2008-11-10 15:33:58 +0100 b_michaelsen r263521 : #i94949# removed const_casts 2008-11-10 15:12:06 +0100 b_michaelsen r263520 : #i94949# moved _DelBookmarks into MarksManager 2008-11-07 18:48:38 +0100 b_michaelsen r263480 : #i94949# using iterator interface 2008-11-07 18:41:46 +0100 b_michaelsen r263478 : #i94949# using iterator interface 2008-11-07 18:07:41 +0100 b_michaelsen r263477 : #i94949# using iterator interface 2008-11-07 17:54:41 +0100 b_michaelsen r263476 : #i94949# using iterator interface 2008-11-07 17:44:41 +0100 b_michaelsen r263475 : #i94949# moved correction methods into MarkManager 2008-11-06 18:47:28 +0100 b_michaelsen r263404 : #i94949# getting rid of superfluous const_casts 2008-11-06 17:58:01 +0100 b_michaelsen r263403 : #i94949# no more setting of mark positions outside of the core 2008-11-06 17:08:37 +0100 b_michaelsen r263401 : #i94949# removed setters from IMark 2008-11-06 13:55:25 +0100 b_michaelsen r263383 : #i94949 SwDoc does not implement IDocumentMarkAccess anymore 2008-11-04 18:17:03 +0100 b_michaelsen r263333 : #i94949# began removing IDocumentMarkAccess from SwDoc 2008-11-04 16:48:34 +0100 b_michaelsen r263330 : removing dead code (SwBitArray) found by mst 2008-11-04 16:29:32 +0100 b_michaelsen r263329 : removing dead code (SwBitArray) found by mst 2008-11-04 14:57:48 +0100 b_michaelsen r263326 : removing dead code (SwBitArray) found by mst 2008-11-04 14:50:18 +0100 b_michaelsen r263325 : #i94949# stricter typing in IDocumentMarkAccess 2008-10-24 15:16:27 +0200 b_michaelsen r262647 : #i94949# renamed ::sw::bookmark::SimpleMark to NavigatorReminder to fit the IDocumentMarkAccess enum 2008-10-24 15:10:10 +0200 b_michaelsen r262646 : #i94949# only 'real' bookmark implement IBookmark, Marks also get removed from m_vFieldmarks on delete/clear 2008-10-24 13:06:23 +0200 b_michaelsen r262636 : #i94949# Fieldmark tabnavigation 2008-10-23 12:16:36 +0200 b_michaelsen r262619 : #i94949# Fieldmark classes and filters 2008-10-22 13:17:18 +0200 b_michaelsen r262597 : #i94949# writer import fixes 2008-10-21 11:30:38 +0200 b_michaelsen r262565 : #i94949# renamed methods containing Bookmark in the generic IMark interface 2008-10-20 14:09:02 +0200 b_michaelsen r262318 : #i94949# fixed SwDoc::CorrRel 2008-10-16 22:45:13 +0200 b_michaelsen r262273 : #i94949 simplified Before/After methods 2008-10-16 21:40:57 +0200 b_michaelsen r262271 : #i94949 renamed SimpleMark to NavigatorReminder 2008-10-16 21:15:23 +0200 b_michaelsen r262270 : #i94949 using shared_ptr only in MarkManager 2008-10-16 17:46:37 +0200 b_michaelsen r262269 : #i94949# getFieldmarkBefore and getFieldmarkAfter 2008-10-16 17:12:13 +0200 b_michaelsen r262265 : #i94949# cleanup in crbm.cxx 2008-10-16 12:49:01 +0200 b_michaelsen r262257 : #i94949# fixed usage of invalid iterator, fixed invalid cast 2008-10-15 15:34:20 +0200 b_michaelsen r262239 : #i94949# added moved files 2008-10-15 15:26:45 +0200 b_michaelsen r262237 : #i94949# initial reimplementation of Bookmarks
2009-04-21 15:40:02 +00:00
const IDocumentMarkAccess* getIDocumentMarkAccess() const;
INTEGRATION: CWS writercorehandoff (1.12.140); FILE MERGED 2006/07/31 06:20:58 fme 1.12.140.18: #i50348# Resync 2006/07/27 14:34:16 fme 1.12.140.17: RESYNC: (1.14-1.15); FILE MERGED 2006/05/09 10:06:39 fme 1.12.140.16: #i50348# make SwDoc accessible via interfaces 2006/05/08 10:40:27 fme 1.12.140.15: #i50348# Make SwDoc accessible via interfaces 2006/01/20 09:16:34 fme 1.12.140.14: #i50348# General cleanup - removed unused header files, functions, members, declarations 2006/01/19 08:42:53 fme 1.12.140.13: #i50348# General cleanup - removed unused header files, functions, members, declarations 2005/12/20 15:02:15 tra 1.12.140.12: RESYNC: (1.13-1.14); FILE MERGED 2005/11/18 14:52:01 fme 1.12.140.11: #i50348# Make SwDoc accessible via interfaces 2005/11/11 07:54:40 fme 1.12.140.10: #i50348# make SwDoc accessible via interfaces 2005/11/10 21:32:45 tra 1.12.140.9: #i50348# 2005/09/13 11:41:16 tra 1.12.140.8: RESYNC: (1.12-1.13); FILE MERGED 2005/07/19 06:05:20 fme 1.12.140.7: #i50348# make SwDoc accessible via interfaces 2005/07/13 13:23:43 fme 1.12.140.6: #i50348# Make SwDoc accessible via interfaces 2005/07/05 08:12:33 tra 1.12.140.5: #i50348#make SwDoc interface based 2005/06/24 11:42:36 fme 1.12.140.4: #i50348# Make SwDoc accessible via interfaces 2005/06/22 13:08:11 tra 1.12.140.3: #i50348#toward a interface based SwDoc 2005/06/22 06:37:40 tra 1.12.140.2: #i50348# make SwDoc accessible via interfaces 2005/06/07 14:10:09 fme 1.12.140.1: #i50348# General cleanup - removed unused header files, functions, members, declarations etc.
2006-08-14 14:28:28 +00:00
/** Provides access to the document redline interface
*/
const IDocumentRedlineAccess* getIDocumentRedlineAccess() const;
/** Provides access to the document style pool interface
*/
const IDocumentStylePoolAccess* getIDocumentStylePoolAccess() const;
/** Provides access to the document line number information interface
*/
const IDocumentLineNumberAccess* getIDocumentLineNumberAccess() const;
/** Provides access to the document draw model interface
*/
const IDocumentDrawModelAccess* getIDocumentDrawModelAccess() const;
/** Provides access to the document layout interface
*/
const IDocumentLayoutAccess* getIDocumentLayoutAccess() const;
IDocumentLayoutAccess* getIDocumentLayoutAccess();
/** Provides access to the document links administration interface
*/
const IDocumentLinksAdministration* getIDocumentLinksAdministration() const;
IDocumentLinksAdministration* getIDocumentLinksAdministration();
/** Provides access to the document fields administration interface
*/
const IDocumentFieldsAccess* getIDocumentFieldsAccess() const;
IDocumentFieldsAccess* getIDocumentFieldsAccess();
/** Provides access to the document content operations interface
*/
IDocumentContentOperations* getIDocumentContentOperations();
2000-09-18 16:15:01 +00:00
/** Provides access to the document automatic styles interface
*/
IStyleAccess& getIDocumentStyleAccess();
/** Provides access to the document's numbered items interface
@author OD
*/
IDocumentListItems& getIDocumentListItems();
2000-09-18 16:15:01 +00:00
// liegt der Node im Sichtbarenbereich der Shell ?
BOOL IsInVisibleArea( ViewShell* pSh = 0 ) const;
2000-09-18 16:15:01 +00:00
// befindet sich der Node in einem geschuetzten Bereich?
BOOL IsInProtectSect() const;
// befindet sich der Node in irgendetwas geschuetzten ?
// (Bereich/Rahmen/Tabellenzellen/... incl. des Ankers bei
// Rahmen/Fussnoten/..)
BOOL IsProtect() const;
// suche den PageDesc, mit dem dieser Node formatiert ist. Wenn das
// Layout vorhanden ist wird ueber das gesucht, ansonsten gibt es nur
// die harte Tour ueber die Nodes nach vorne suchen!!
const SwPageDesc* FindPageDesc( BOOL bCalcLay, sal_uInt32* pPgDescNdIdx = 0 ) const;
2000-09-18 16:15:01 +00:00
// falls der Node in einem Fly steht, dann wird das entsprechende Format
// returnt
SwFrmFmt* GetFlyFmt() const;
// falls der Node in einer Tabelle steht, dann wird die entsprechende
// TabellenBox returnt
SwTableBox* GetTblBox() const;
inline ULONG GetIndex() const { return GetPos(); }
const SwTxtNode* FindOutlineNodeOfLevel( BYTE nLvl ) const;
BYTE HasPrevNextLayNode() const;
private:
// privater Constructor, weil nie kopiert werden darf !!
SwNode( const SwNode & rNodes );
SwNode & operator= ( const SwNode & rNodes );
2000-09-18 16:15:01 +00:00
};
// --------------------
// class SwStartNode
// --------------------
class SwStartNode: public SwNode
{
friend class SwNode;
friend class SwNodes;
friend class SwEndNode; // to set the theEndOfSection !!
2000-09-18 16:15:01 +00:00
SwEndNode* pEndOfSection;
SwStartNodeType eSttNdTyp;
// for the initial StartNode
2000-09-18 16:15:01 +00:00
SwStartNode( SwNodes& rNodes, ULONG nPos );
protected:
SwStartNode( const SwNodeIndex &rWhere,
const BYTE nNodeType = ND_STARTNODE,
SwStartNodeType = SwNormalStartNode );
public:
DECL_FIXEDMEMPOOL_NEWDEL(SwStartNode)
SwStartNodeType GetStartNodeType() const { return eSttNdTyp; }
// an alle ContentNodes der Section das ChkCondColl rufen
void CheckSectionCondColl() const;
private:
// privater Constructor, weil nie kopiert werden darf !!
SwStartNode( const SwStartNode & rNode );
SwStartNode & operator= ( const SwStartNode & rNode );
2000-09-18 16:15:01 +00:00
};
// --------------------
// class SwEndNode
// --------------------
class SwEndNode : public SwNode
{
friend class SwNodes;
friend class SwTableNode; // um seinen EndNode anlegen zukoennen
friend class SwSectionNode; // um seinen EndNode anlegen zukoennen
// for the initial StartNode
2000-09-18 16:15:01 +00:00
SwEndNode( SwNodes& rNodes, ULONG nPos, SwStartNode& rSttNd );
protected:
SwEndNode( const SwNodeIndex &rWhere, SwStartNode& rSttNd );
DECL_FIXEDMEMPOOL_NEWDEL(SwEndNode)
private:
// privater Constructor, weil nie kopiert werden darf !!
SwEndNode( const SwEndNode & rNode );
SwEndNode & operator= ( const SwEndNode & rNode );
2000-09-18 16:15:01 +00:00
};
// --------------------
// SwCntntNode
// --------------------
CWS-TOOLING: integrate CWS libmsword 2008-12-18 12:33:19 +0100 kendy r265681 : Export less symbols. 2008-12-17 19:26:56 +0100 kendy r265655 : Move libmsword to the -writer package. 2008-12-15 17:46:16 +0100 kendy r265516 : Enable exceptions for iodetect.cxx. 2008-12-15 15:17:53 +0100 kendy r265504 : Deliver the msword.dll. 2008-12-09 19:38:17 +0100 kendy r265138 : Remove accidentally added method. 2008-12-09 19:33:57 +0100 kendy r265137 : Fix linking on Win32. 2008-12-09 18:37:16 +0100 kendy r265135 : Move SwFltControlStack::Delete() to ww1/fltshell.cxx to fix linking. 2008-12-09 18:01:56 +0100 kendy r265127 : Visibility fixes. 2008-12-09 15:51:52 +0100 kendy r265109 : Fix ambiguous usage of class Color. 2008-12-09 14:54:27 +0100 kendy r265091 : Add #include "precompiled_sw.hxx" to fix --enable-pch build. 2008-12-09 14:44:59 +0100 kendy r265088 : Add #include "precompiled_sw.hxx" to fix --enable-pch build. 2008-12-08 19:14:49 +0100 kendy r265015 : #i96313# Get rid of inc/iodetect.cxx, it's a really bad idea to share code by #ifdefing parts of it, and #including a .cxx file ;-) This change moves it to iodetect.cxx, which is compiled to a .o/.obj that is used where needed. 2008-11-20 17:45:08 +0100 kendy r264083 : #i96313# Make the destruction of Readers consistent. 2008-11-20 17:18:11 +0100 kendy r264070 : #i96313# Added missing SW_DLLPUBLIC for (Import|Export)(DOC|RTF). 2008-11-18 19:21:07 +0100 kendy r263797 : #i96313# Remove accidentally added file. 2008-11-18 17:14:31 +0100 kendy r263790 : #i96313# Split doc and rtf filters into a separate library From: Radek Doulik <rodo@novell.com> fix SwFieldBookmark class visibility (suggested by kendy) 2008-11-18 17:14:01 +0100 kendy r263789 : #i96313# Split doc and rtf filters into a separate library From: Fridrich Strba <fstrba@novell.com> add visibility markup to allow linking 2008-11-18 17:13:29 +0100 kendy r263788 : #i96313# Split doc and rtf filters into a separate library From: Jan Holesovsky <kendy@suse.cz> Visibility markup for libmsword. This is the most trivial approach, every class that had a symbol that needed to be visible was marked with SW_DLLPUBLIC; the correct (but more time consuming) way would be to mark just the exact methods that were needed. To be done later if generally shows that the separate libmsword makes sense; and also now we have the upper limit of symbols that needed to be added, and we can only make it better [decrease the number] ;-) 2008-11-18 17:12:58 +0100 kendy r263787 : #i96313# Split doc and rtf filters into a separate library From: Jan Holesovsky <kendy@suse.cz> Added the missing msword.map. 2008-11-18 17:12:25 +0100 kendy r263786 : #i96313# Split doc and rtf filters into a separate library From: Jan Holesovsky <kendy@suse.cz> scp2 change for libmsword. 2008-11-18 17:11:55 +0100 kendy r263785 : #i96313# Split doc and rtf filters into a separate library From: Jan Holesovsky <kendy@suse.cz> Convert the binary .doc and .rtf filters into a separate library. It is called 'libmsword' and loaded on demand when either of the formats (.doc, .rtf) is loaded or saved.
2009-01-05 14:06:42 +00:00
class SW_DLLPUBLIC SwCntntNode: public SwModify, public SwNode, public SwIndexReg
2000-09-18 16:15:01 +00:00
{
//FEATURE::CONDCOLL
SwDepend* pCondColl;
//FEATURE::CONDCOLL
mutable bool mbSetModifyAtAttr;
2000-09-18 16:15:01 +00:00
protected:
SwCntntNode( const SwNodeIndex &rWhere, const BYTE nNodeType,
SwFmtColl *pFmtColl );
virtual ~SwCntntNode();
// Attribut-Set fuer alle AUTO-Attribute eines CntntNodes
// ( z.B: TxtNode oder NoTxtNode
boost::shared_ptr<const SfxItemSet> mpAttrSet;
2000-09-18 16:15:01 +00:00
// lasse von den entsprechenden Nodes die spz. AttrSets anlegen
virtual void NewAttrSet( SwAttrPool& ) = 0;
// There some functions that like to remove items from the internal
// SwAttrSet (handle):
USHORT ClearItemsFromAttrSet( const std::vector<USHORT>& rWhichIds );
2000-09-18 16:15:01 +00:00
public:
TYPEINFO(); //Bereits in Basisklasse Client drin.
virtual void Modify( SfxPoolItem *pOld, SfxPoolItem *pNew);
virtual SwCntntFrm *MakeFrm() = 0;
virtual SwCntntNode *SplitCntntNode(const SwPosition & ) = 0;
2000-09-18 16:15:01 +00:00
virtual SwCntntNode *JoinNext();
virtual SwCntntNode *JoinPrev();
// koennen 2 Nodes zusammengefasst werden ?
// in pIdx kann die 2. Position returnt werden.
int CanJoinNext( SwNodeIndex* pIdx =0 ) const;
int CanJoinPrev( SwNodeIndex* pIdx =0 ) const;
void MakeStartIndex( SwIndex * pIdx ) { pIdx->Assign( this, 0 ); }
void MakeEndIndex( SwIndex * pIdx ) { pIdx->Assign( this, Len() ); }
BOOL GoNext(SwIndex *, USHORT nMode ) const;
BOOL GoPrevious(SwIndex *, USHORT nMode ) const;
2000-09-18 16:15:01 +00:00
SwCntntFrm *GetFrm( const Point* pDocPos = 0,
const SwPosition *pPos = 0,
const BOOL bCalcFrm = TRUE ) const;
// Gibt die tatsaechlcheGroesse des Frames zurueck bzw. ein leeres
// Rechteck, wenn kein Layout existiert.
// Wird fuer die Export Filter benoetigt.
SwRect FindLayoutRect( const BOOL bPrtArea = FALSE,
const Point* pPoint = 0,
const BOOL bCalcFrm = FALSE ) const;
SwRect FindPageFrmRect( const BOOL bPrtArea = FALSE,
const Point* pPoint = 0,
const BOOL bCalcFrm = FALSE ) const;
/*
* Methode erzeugt fuer den angegebenen Node alle Ansichten vom
* Dokument. Die erzeugten Contentframes werden in das entsprechende
* Layout gehaengt.
*/
void MakeFrms( SwCntntNode& rNode );
/*
* Methode loescht fuer den Node alle Ansichten vom
* Dokument. Die Contentframes werden aus dem entsprechenden
* Layout ausgehaengt.
*/
void DelFrms();
/*
* liefert die Anzahl der Elemente des Inhalts des Nodes;
* Default ist 1, Unterschiede gibt es beim TextNode und beim
* Formelnode.
*/
virtual xub_StrLen Len() const;
virtual SwCntntNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const = 0;
// erfrage vom Client Informationen
2000-09-18 16:15:01 +00:00
virtual BOOL GetInfo( SfxPoolItem& ) const;
// SS fuer die PoolItems: (Harte-(Fmt)Attrbutierung)
// Ist bInParent FALSE, wird nur in diesem Node nach dem Attribut gesucht.
const SfxPoolItem& GetAttr( USHORT nWhich, BOOL bInParent=TRUE ) const;
BOOL GetAttr( SfxItemSet& rSet, BOOL bInParent=TRUE ) const;
// made virtual
virtual BOOL SetAttr( const SfxPoolItem& );
virtual BOOL SetAttr( const SfxItemSet& rSet );
virtual BOOL ResetAttr( USHORT nWhich1, USHORT nWhich2 = 0 );
virtual BOOL ResetAttr( const SvUShorts& rWhichArr );
virtual USHORT ResetAllAttr();
2000-09-18 16:15:01 +00:00
// liefert das Attribut, das nicht ueber die bedingte Vorlage kommt!
const SfxPoolItem* GetNoCondAttr( USHORT nWhich, BOOL bInParents ) const;
// hat der Node schon eigene Auto-Attribute ?
// Zugriff auf SwAttrSet
inline const SwAttrSet &GetSwAttrSet() const;
inline const SwAttrSet *GetpSwAttrSet() const { return static_cast<const SwAttrSet*>(mpAttrSet.get()); }
inline BOOL HasSwAttrSet() const { return mpAttrSet ? TRUE : FALSE; }
2000-09-18 16:15:01 +00:00
virtual SwFmtColl* ChgFmtColl( SwFmtColl* );
SwFmtColl* GetFmtColl() const { return (SwFmtColl*)GetRegisteredIn(); }
//FEATURE::CONDCOLL
inline SwFmtColl& GetAnyFmtColl() const;
void SetCondFmtColl( SwFmtColl* );
inline SwFmtColl* GetCondFmtColl() const;
BOOL IsAnyCondition( SwCollCondition& rTmp ) const;
void ChkCondColl();
//FEATURE::CONDCOLL
// invalidiert die am Node gesetzte NumRule. Diese wird
// spaetestend in EndAction einer Shell geupdatet
BOOL InvalidateNumRule();
// determines the text direction for a certain
// position. Return -1, if text direction could *not* be determined.
short GetTextDirection( const SwPosition& rPos,
const Point* pPt ) const;
inline void SetModifyAtAttr( bool bSetModifyAtAttr ) const { mbSetModifyAtAttr = bSetModifyAtAttr; }
inline bool GetModifyAtAttr() const { return mbSetModifyAtAttr; }
2000-09-18 16:15:01 +00:00
private:
// privater Constructor, weil nie kopiert werden darf !!
SwCntntNode( const SwCntntNode & rNode );
SwCntntNode & operator= ( const SwCntntNode & rNode );
2000-09-18 16:15:01 +00:00
};
//---------
// SwTableNode
//---------
2009-01-23 08:38:16 +00:00
class SW_DLLPUBLIC SwTableNode : public SwStartNode, public SwModify
2000-09-18 16:15:01 +00:00
{
friend class SwNodes;
SwTable* pTable;
protected:
virtual ~SwTableNode();
public:
SwTableNode( const SwNodeIndex & );
const SwTable& GetTable() const { return *pTable; }
SwTable& GetTable() { return *pTable; }
SwTabFrm *MakeFrm();
//Legt die Frms fuer den TableNode (also die TabFrms) an.
void MakeFrms( SwNodeIndex* pIdxBehind );
//Methode loescht fuer den Node alle Ansichten vom
//Dokument. Die Contentframes werden aus dem entsprechenden
//Layout ausgehaengt.
void DelFrms();
//Methode erzeugt fuer den vorhergehenden Node alle Ansichten vom
//Dokument. Die erzeugten Contentframes werden in das entsprechende
//Layout gehaengt.
void MakeFrms( const SwNodeIndex & rIdx );
SwTableNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
void SetNewTable( SwTable* , BOOL bNewFrames=TRUE );
private:
// privater Constructor, weil nie kopiert werden darf !!
SwTableNode( const SwTableNode & rNode );
SwTableNode & operator= ( const SwTableNode & rNode );
2000-09-18 16:15:01 +00:00
};
//---------
// SwSectionNode
//---------
class SwSectionNode
: public SwStartNode
, private ::boost::noncopyable
2000-09-18 16:15:01 +00:00
{
friend class SwNodes;
private:
::std::auto_ptr<SwSection> const m_pSection;
2000-09-18 16:15:01 +00:00
protected:
virtual ~SwSectionNode();
public:
SwSectionNode(SwNodeIndex const&,
SwSectionFmt & rFmt, SwTOXBase const*const pTOXBase);
2000-09-18 16:15:01 +00:00
const SwSection& GetSection() const { return *m_pSection; }
SwSection& GetSection() { return *m_pSection; }
2000-09-18 16:15:01 +00:00
SwFrm *MakeFrm();
//Legt die Frms fuer den SectionNode (also die SectionFrms) an.
//Im Defaultfall wird bis die Frames bis zum Ende des Bereichs angelegt,
//uebergibt man einen weiteren NodeIndex pEnd, so wird bis zu diesem
//ein MakeFrms gerufen, genutzt wird dies von TableToText
void MakeFrms( SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = NULL );
//Methode loescht fuer den Node alle Ansichten vom
//Dokument. Die Contentframes werden aus dem entsprechenden
//Layout ausgehaengt.
void DelFrms();
//Methode erzeugt fuer den vorhergehenden Node alle Ansichten vom
//Dokument. Die erzeugten Contentframes werden in das entsprechende
//Layout gehaengt.
void MakeFrms( const SwNodeIndex & rIdx );
SwSectionNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
// setze den Verweis im Format der Section auf sich selbst
void NodesArrChgd();
// ueberprueft bei _nicht_ versteckten Bereichen, ob es Inhalt gibt, der
// _nicht_ in einem versteckten (Unter-)Bereich liegt
BOOL IsCntntHidden() const;
};
inline SwEndNode *SwNode::GetEndNode()
{
return ND_ENDNODE == nNodeType ? (SwEndNode*)this : 0;
}
inline const SwEndNode *SwNode::GetEndNode() const
{
return ND_ENDNODE == nNodeType ? (const SwEndNode*)this : 0;
}
inline SwStartNode *SwNode::GetStartNode()
{
return ND_STARTNODE & nNodeType ? (SwStartNode*)this : 0;
}
inline const SwStartNode *SwNode::GetStartNode() const
{
return ND_STARTNODE & nNodeType ? (const SwStartNode*)this : 0;
}
inline SwTableNode *SwNode::GetTableNode()
{
return ND_TABLENODE == nNodeType ? (SwTableNode*)this : 0;
}
inline const SwTableNode *SwNode::GetTableNode() const
{
return ND_TABLENODE == nNodeType ? (const SwTableNode*)this : 0;
}
inline SwSectionNode *SwNode::GetSectionNode()
{
return ND_SECTIONNODE == nNodeType ? (SwSectionNode*)this : 0;
}
inline const SwSectionNode *SwNode::GetSectionNode() const
{
return ND_SECTIONNODE == nNodeType ? (const SwSectionNode*)this : 0;
}
inline SwCntntNode *SwNode::GetCntntNode()
{
return ND_CONTENTNODE & nNodeType ? (SwCntntNode*)this : 0;
}
inline const SwCntntNode *SwNode::GetCntntNode() const
{
return ND_CONTENTNODE & nNodeType ? (const SwCntntNode*)this : 0;
}
inline BOOL SwNode::IsStartNode() const
{
return ND_STARTNODE & nNodeType ? TRUE : FALSE;
}
inline BOOL SwNode::IsCntntNode() const
{
return ND_CONTENTNODE & nNodeType ? TRUE : FALSE;
}
inline BOOL SwNode::IsEndNode() const
{
return ND_ENDNODE == nNodeType ? TRUE : FALSE;
}
inline BOOL SwNode::IsTxtNode() const
{
return ND_TEXTNODE == nNodeType ? TRUE : FALSE;
}
inline BOOL SwNode::IsTableNode() const
{
return ND_TABLENODE == nNodeType ? TRUE : FALSE;
}
inline BOOL SwNode::IsSectionNode() const
{
return ND_SECTIONNODE == nNodeType ? TRUE : FALSE;
}
inline BOOL SwNode::IsNoTxtNode() const
{
return ND_NOTXTNODE & nNodeType ? TRUE : FALSE;
}
inline BOOL SwNode::IsOLENode() const
{
return ND_OLENODE == nNodeType ? TRUE : FALSE;
}
inline BOOL SwNode::IsGrfNode() const
{
return ND_GRFNODE == nNodeType ? TRUE : FALSE;
}
inline const SwStartNode* SwNode::FindSttNodeByType( SwStartNodeType eTyp ) const
{
return ((SwNode*)this)->FindSttNodeByType( eTyp );
}
inline const SwTableNode* SwNode::FindTableNode() const
{
return ((SwNode*)this)->FindTableNode();
}
inline const SwSectionNode* SwNode::FindSectionNode() const
{
return ((SwNode*)this)->FindSectionNode();
}
inline ULONG SwNode::StartOfSectionIndex() const
{
return pStartOfSection->GetIndex();
}
inline ULONG SwNode::EndOfSectionIndex() const
{
const SwStartNode* pStNd = IsStartNode() ? (SwStartNode*)this : pStartOfSection;
return pStNd->pEndOfSection->GetIndex();
}
inline const SwEndNode* SwNode::EndOfSectionNode() const
{
const SwStartNode* pStNd = IsStartNode() ? (SwStartNode*)this : pStartOfSection;
return pStNd->pEndOfSection;
}
inline SwEndNode* SwNode::EndOfSectionNode()
{
SwStartNode* pStNd = IsStartNode() ? (SwStartNode*)this : pStartOfSection;
return pStNd->pEndOfSection;
}
inline SwNodes& SwNode::GetNodes()
{
return (SwNodes&)GetArray();
}
inline const SwNodes& SwNode::GetNodes() const
{
return (SwNodes&)GetArray();
}
inline SwDoc* SwNode::GetDoc()
{
return GetNodes().GetDoc();
}
inline const SwDoc* SwNode::GetDoc() const
{
return GetNodes().GetDoc();
}
inline SwFmtColl* SwCntntNode::GetCondFmtColl() const
{
return pCondColl ? (SwFmtColl*)pCondColl->GetRegisteredIn() : 0;
}
inline SwFmtColl& SwCntntNode::GetAnyFmtColl() const
{
return pCondColl && pCondColl->GetRegisteredIn()
? *(SwFmtColl*)pCondColl->GetRegisteredIn()
: *(SwFmtColl*)GetRegisteredIn();
}
inline const SwAttrSet& SwCntntNode::GetSwAttrSet() const
{
return mpAttrSet ? *GetpSwAttrSet() : GetAnyFmtColl().GetAttrSet();
2000-09-18 16:15:01 +00:00
}
2000-09-18 16:15:01 +00:00
//FEATURE::CONDCOLL
inline const SfxPoolItem& SwCntntNode::GetAttr( USHORT nWhich,
BOOL bInParents ) const
{
return GetSwAttrSet().Get( nWhich, bInParents );
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */