2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_INC_NODE_HXX
|
|
|
|
#define INCLUDED_SW_INC_NODE_HXX
|
2010-03-16 11:28:32 +01:00
|
|
|
|
2012-12-25 15:18:26 +01:00
|
|
|
#include <sal/types.h>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <tools/mempool.hxx>
|
2010-03-16 11:28:32 +01:00
|
|
|
|
2004-08-23 07:37:03 +00:00
|
|
|
#include "swdllapi.h"
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <ndarr.hxx>
|
|
|
|
#include <ndtyp.hxx>
|
|
|
|
#include <index.hxx>
|
|
|
|
#include <fmtcol.hxx>
|
2010-03-16 11:28:32 +01:00
|
|
|
|
2015-02-17 16:40:00 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwContentFrm;
|
|
|
|
class SwContentNode;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwDoc;
|
|
|
|
class SwEndNode;
|
|
|
|
class SwFrm;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwFrameFormat;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwGrfNode;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwNoTextNode;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwNodeIndex;
|
|
|
|
class SwOLENode;
|
|
|
|
class SwRect;
|
|
|
|
class SwSection;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwSectionFormat;
|
2010-03-16 11:28:29 +01:00
|
|
|
class SwTOXBase;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwSectionNode;
|
|
|
|
class SwStartNode;
|
|
|
|
class SwTabFrm;
|
2010-06-13 15:22:56 +02:00
|
|
|
class SwRootFrm;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwTable;
|
|
|
|
class SwTableNode;
|
|
|
|
class SwTableBox;
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwTextNode;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwPageDesc;
|
2013-10-26 19:50:13 +02:00
|
|
|
class SwViewShell;
|
2000-09-18 16:15:01 +00:00
|
|
|
struct SwPosition;
|
2006-12-01 14:33:41 +00:00
|
|
|
class IStyleAccess;
|
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;
|
2006-08-14 14:28:28 +00:00
|
|
|
class IDocumentRedlineAccess;
|
|
|
|
class IDocumentStylePoolAccess;
|
|
|
|
class IDocumentLinksAdministration;
|
|
|
|
class IDocumentFieldsAccess;
|
|
|
|
class IDocumentContentOperations;
|
2008-02-26 09:31:02 +00:00
|
|
|
class IDocumentListItems;
|
2012-12-25 15:18:26 +01:00
|
|
|
class Point;
|
2014-11-08 18:19:04 +01:00
|
|
|
typedef std::vector<SwOLENode*> SwOLENodes; // docary.hxx
|
2002-08-23 13:22:12 +00:00
|
|
|
|
2014-06-02 15:00:50 +00:00
|
|
|
//UUUU
|
|
|
|
namespace drawinglayer { namespace attribute {
|
|
|
|
class SdrAllFillAttributesHelper;
|
2015-02-17 16:40:00 +00:00
|
|
|
typedef std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr;
|
2014-06-02 15:00:50 +00:00
|
|
|
}}
|
|
|
|
|
2012-02-17 10:47:49 +01:00
|
|
|
/// Base class of the Writer document model elements.
|
2011-11-24 00:52:00 +01:00
|
|
|
class SW_DLLPUBLIC SwNode
|
|
|
|
: private BigPtrEntry
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
friend class SwNodes;
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt8 nNodeType;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// For text nodes: level of auto format. Was put here because we had still free bits.
|
2015-05-20 13:05:49 +02:00
|
|
|
sal_uInt8 nAFormatNumLvl : 3;
|
2012-10-20 23:12:12 +09:00
|
|
|
bool bSetNumLSpace : 1; ///< For numbering: TRUE: set indent.
|
|
|
|
bool bIgnoreDontExpand : 1; ///< for Text Attributes - ignore the flag
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-11-01 18:46:02 +01:00
|
|
|
#ifdef DBG_UTIL
|
|
|
|
static long s_nSerial;
|
|
|
|
long m_nSerial;
|
|
|
|
#endif
|
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
/// all SwFrameFormat that are anchored at the node
|
2015-06-23 20:42:27 +02:00
|
|
|
/// invariant: SwFrameFormat is in the list iff
|
2015-05-20 13:05:49 +02:00
|
|
|
/// SwFrameFormat::GetAnchor().GetContentAnchor() points to this node
|
|
|
|
std::unique_ptr<std::vector<SwFrameFormat*>> m_pAnchoredFlys;
|
2015-05-08 23:27:49 +02:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
protected:
|
|
|
|
SwStartNode* pStartOfSection;
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SwNode( const SwNodeIndex &rWhere, const sal_uInt8 nNodeId );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// for the initial StartNode
|
2011-01-17 15:06:54 +01:00
|
|
|
SwNode( SwNodes& rNodes, sal_uLong nPos, const sal_uInt8 nNodeId );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
public:
|
2012-09-18 14:22:27 +03:00
|
|
|
/** the = 0 forces the class to be an abstract base class, but the dtor can be still called
|
|
|
|
from subclasses */
|
2011-12-09 15:36:47 +01:00
|
|
|
virtual ~SwNode() = 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-11-24 00:52:00 +01:00
|
|
|
#ifdef DBG_UTIL
|
|
|
|
long GetSerial() const { return m_nSerial; }
|
2005-11-08 16:12:57 +00:00
|
|
|
#endif
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 GetSectionLevel() const;
|
2006-08-14 14:28:28 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
inline sal_uLong StartOfSectionIndex() const;
|
2006-08-14 14:28:28 +00:00
|
|
|
inline const SwStartNode* StartOfSectionNode() const { return pStartOfSection; }
|
|
|
|
inline SwStartNode* StartOfSectionNode() { return pStartOfSection; }
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
inline sal_uLong EndOfSectionIndex() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
inline const SwEndNode* EndOfSectionNode() const;
|
2006-08-14 14:28:28 +00:00
|
|
|
inline SwEndNode* EndOfSectionNode();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
inline sal_uInt8 GetAutoFormatLvl() const { return nAFormatNumLvl; }
|
|
|
|
inline void SetAutoFormatLvl( sal_uInt8 nVal ) { nAFormatNumLvl = nVal; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-10-20 23:12:12 +09:00
|
|
|
inline bool IsSetNumLSpace() const { return bSetNumLSpace; }
|
|
|
|
inline void SetNumLSpace( bool bFlag ) { bSetNumLSpace = bFlag; }
|
2000-11-06 09:46:12 +00:00
|
|
|
|
2012-10-20 23:12:12 +09:00
|
|
|
inline bool IsIgnoreDontExpand() const { return bIgnoreDontExpand; }
|
|
|
|
inline void SetIgnoreDontExpand( bool bNew ) { bIgnoreDontExpand = bNew; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt8 GetNodeType() const { return nNodeType; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
inline SwStartNode *GetStartNode();
|
|
|
|
inline const SwStartNode *GetStartNode() const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline SwContentNode *GetContentNode();
|
|
|
|
inline const SwContentNode *GetContentNode() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
inline SwEndNode *GetEndNode();
|
|
|
|
inline const SwEndNode *GetEndNode() const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline SwTextNode *GetTextNode();
|
|
|
|
inline const SwTextNode *GetTextNode() const;
|
2011-12-09 20:57:29 +00:00
|
|
|
inline SwOLENode *GetOLENode();
|
|
|
|
inline const SwOLENode *GetOLENode() const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline SwNoTextNode *GetNoTextNode();
|
|
|
|
inline const SwNoTextNode *GetNoTextNode() const;
|
2011-12-09 20:57:29 +00:00
|
|
|
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;
|
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool IsStartNode() const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline bool IsContentNode() const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool IsEndNode() const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline bool IsTextNode() const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool IsTableNode() const;
|
|
|
|
inline bool IsSectionNode() const;
|
|
|
|
inline bool IsOLENode() const;
|
2015-05-20 13:05:49 +02:00
|
|
|
inline bool IsNoTextNode() const;
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool IsGrfNode() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2005-11-08 16:12:57 +00:00
|
|
|
/**
|
|
|
|
Checks if this node is in redlines.
|
|
|
|
|
2014-11-08 14:19:22 +01:00
|
|
|
@retval true this node is in redlines
|
|
|
|
@retval false else
|
2005-11-08 16:12:57 +00:00
|
|
|
*/
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsInRedlines() const;
|
2005-11-08 16:12:57 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Search table node, in which it is. If it is in no table
|
|
|
|
@return 0. */
|
2000-09-18 16:15:01 +00:00
|
|
|
SwTableNode *FindTableNode();
|
2006-08-14 14:28:28 +00:00
|
|
|
inline const SwTableNode *FindTableNode() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Search section node, in which it is. If it is in no section
|
|
|
|
@return 0. */
|
2000-09-18 16:15:01 +00:00
|
|
|
SwSectionNode *FindSectionNode();
|
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 ); }
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Node is in which nodes-array/doc?
|
2006-08-14 14:28:28 +00:00
|
|
|
inline SwNodes& GetNodes();
|
2000-09-18 16:15:01 +00:00
|
|
|
inline const SwNodes& GetNodes() const;
|
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;
|
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 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
|
|
|
|
2006-12-01 14:33:41 +00:00
|
|
|
/** Provides access to the document automatic styles interface
|
|
|
|
*/
|
|
|
|
IStyleAccess& getIDocumentStyleAccess();
|
|
|
|
|
2008-02-26 09:31:02 +00:00
|
|
|
/** Provides access to the document's numbered items interface
|
|
|
|
|
|
|
|
@author OD
|
|
|
|
*/
|
|
|
|
IDocumentListItems& getIDocumentListItems();
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Is node in the visible area of the Shell?
|
2014-08-15 19:09:49 +02:00
|
|
|
bool IsInVisibleArea( SwViewShell const * pSh = 0 ) const;
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Is node in an protected area?
|
2012-09-27 13:21:50 +09:00
|
|
|
bool IsInProtectSect() const;
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Is node in something that is protected (range, frame,
|
|
|
|
table cells ... including anchor in case of frames or footnotes)? */
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsProtect() const;
|
2011-02-21 02:20:33 +01:00
|
|
|
|
2015-03-25 21:12:16 +01:00
|
|
|
/** Search PageDesc with which this node is formatted. If layout is existent
|
2012-09-18 14:22:27 +03:00
|
|
|
search over layout, else only the hard way is left: search over the nodes
|
|
|
|
to the front!! */
|
2015-05-13 09:54:50 +02:00
|
|
|
const SwPageDesc* FindPageDesc( bool bCalcLay, size_t* pPgDescNdIdx = 0 ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// If node is in a fly return the respective format.
|
2015-05-20 13:05:49 +02:00
|
|
|
SwFrameFormat* GetFlyFormat() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// If node is in a table return the respective table box.
|
2015-05-20 13:05:49 +02:00
|
|
|
SwTableBox* GetTableBox() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
inline sal_uLong GetIndex() const { return GetPos(); }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
const SwTextNode* FindOutlineNodeOfLevel( sal_uInt8 nLvl ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt8 HasPrevNextLayNode() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
std::vector<SwFrameFormat *> const* GetAnchoredFlys() const { return m_pAnchoredFlys.get(); }
|
|
|
|
void AddAnchoredFly(SwFrameFormat *);
|
|
|
|
void RemoveAnchoredFly(SwFrameFormat *);
|
2015-05-08 23:27:49 +02:00
|
|
|
|
2011-09-23 17:51:41 +02:00
|
|
|
/**
|
|
|
|
* Dumps the node structure to the given destination (file nodes.xml in the current directory by default)
|
|
|
|
* @since 3.5
|
|
|
|
*/
|
2015-03-01 18:11:22 +01:00
|
|
|
virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const;
|
2011-09-23 17:51:41 +02:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
private:
|
2015-02-07 12:31:51 +01:00
|
|
|
SwNode( const SwNode & rNodes ) SAL_DELETED_FUNCTION;
|
|
|
|
SwNode & operator= ( const SwNode & rNodes ) SAL_DELETED_FUNCTION;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2012-02-17 10:47:49 +01:00
|
|
|
/// Starts a section of nodes in the document model.
|
2015-04-16 10:01:37 +02:00
|
|
|
class SwStartNode: public SwNode
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
friend class SwNode;
|
|
|
|
friend class SwNodes;
|
2012-09-18 14:22:27 +03:00
|
|
|
friend class SwEndNode; ///< to set the theEndOfSection !!
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
SwEndNode* pEndOfSection;
|
|
|
|
SwStartNodeType eSttNdTyp;
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// for the initial StartNode
|
2011-01-17 15:06:54 +01:00
|
|
|
SwStartNode( SwNodes& rNodes, sal_uLong nPos );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
SwStartNode( const SwNodeIndex &rWhere,
|
2011-01-17 15:06:54 +01:00
|
|
|
const sal_uInt8 nNodeType = ND_STARTNODE,
|
2000-09-18 16:15:01 +00:00
|
|
|
SwStartNodeType = SwNormalStartNode );
|
|
|
|
public:
|
|
|
|
DECL_FIXEDMEMPOOL_NEWDEL(SwStartNode)
|
|
|
|
|
|
|
|
SwStartNodeType GetStartNodeType() const { return eSttNdTyp; }
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Call ChkCondcoll to all ContentNodes of section.
|
2000-09-18 16:15:01 +00:00
|
|
|
void CheckSectionCondColl() const;
|
|
|
|
|
2015-03-01 17:35:31 +01:00
|
|
|
virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE;
|
2011-09-23 17:51:41 +02:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
private:
|
2015-02-07 12:31:51 +01:00
|
|
|
SwStartNode( const SwStartNode & rNode ) SAL_DELETED_FUNCTION;
|
|
|
|
SwStartNode & operator= ( const SwStartNode & rNode ) SAL_DELETED_FUNCTION;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2012-02-17 10:47:49 +01:00
|
|
|
/// Ends a section of nodes in the document model.
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwEndNode : public SwNode
|
|
|
|
{
|
|
|
|
friend class SwNodes;
|
2012-09-18 14:22:27 +03:00
|
|
|
friend class SwTableNode; ///< To enable creation of its EndNote.
|
|
|
|
friend class SwSectionNode; ///< To enable creation of its EndNote.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// for the initial StartNode
|
2011-01-17 15:06:54 +01:00
|
|
|
SwEndNode( SwNodes& rNodes, sal_uLong nPos, SwStartNode& rSttNd );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
SwEndNode( const SwNodeIndex &rWhere, SwStartNode& rSttNd );
|
|
|
|
|
|
|
|
DECL_FIXEDMEMPOOL_NEWDEL(SwEndNode)
|
|
|
|
|
|
|
|
private:
|
2015-02-07 12:31:51 +01:00
|
|
|
SwEndNode( const SwEndNode & rNode ) SAL_DELETED_FUNCTION;
|
|
|
|
SwEndNode & operator= ( const SwEndNode & rNode ) SAL_DELETED_FUNCTION;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
// SwContentNode
|
2014-02-25 21:01:20 +01:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
class SW_DLLPUBLIC SwContentNode: public SwModify, public SwNode, public SwIndexReg
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
//FEATURE::CONDCOLL
|
|
|
|
SwDepend* pCondColl;
|
|
|
|
//FEATURE::CONDCOLL
|
2006-12-01 14:33:41 +00:00
|
|
|
mutable bool mbSetModifyAtAttr;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
protected:
|
2015-05-20 13:05:49 +02:00
|
|
|
SwContentNode( const SwNodeIndex &rWhere, const sal_uInt8 nNodeType,
|
|
|
|
SwFormatColl *pFormatColl );
|
2012-09-18 14:22:27 +03:00
|
|
|
/** the = 0 forces the class to be an abstract base class, but the dtor can be still called
|
|
|
|
from subclasses */
|
2015-05-20 13:05:49 +02:00
|
|
|
virtual ~SwContentNode() = 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
/** Attribute-set for all auto attributes of a ContentNode.
|
|
|
|
(e.g. TextNode or NoTextNode). */
|
2015-02-17 16:40:00 +00:00
|
|
|
std::shared_ptr<const SfxItemSet> mpAttrSet;
|
2006-12-01 14:33:41 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Make respective nodes create the specific AttrSets.
|
2000-09-18 16:15:01 +00:00
|
|
|
virtual void NewAttrSet( SwAttrPool& ) = 0;
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** There some functions that like to remove items from the internal
|
|
|
|
SwAttrSet (handle): */
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 ClearItemsFromAttrSet( const std::vector<sal_uInt16>& rWhichIds );
|
2008-06-13 08:28:15 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE;
|
2010-12-17 09:02:23 +01:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
public:
|
2014-03-26 11:54:10 +01:00
|
|
|
TYPEINFO_OVERRIDE(); /// Already contained in base class Client.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** MakeFrm will be called for a certain layout
|
|
|
|
pSib is another SwFrm of the same layout (e.g. the SwRootFrm itself, a sibling, the parent) */
|
2015-05-20 13:05:49 +02:00
|
|
|
virtual SwContentFrm *MakeFrm( SwFrm* pSib ) = 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
virtual SwContentNode *SplitContentNode(const SwPosition & ) = 0;
|
2010-06-13 15:22:56 +02:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
virtual SwContentNode *JoinNext();
|
|
|
|
virtual SwContentNode *JoinPrev();
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Is it possible to join two nodes?
|
|
|
|
In pIdx the second position can be returned. */
|
2014-01-17 17:11:45 +01:00
|
|
|
bool CanJoinNext( SwNodeIndex* pIdx =0 ) const;
|
|
|
|
bool CanJoinPrev( SwNodeIndex* pIdx =0 ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
void MakeStartIndex( SwIndex * pIdx ) { pIdx->Assign( this, 0 ); }
|
|
|
|
void MakeEndIndex( SwIndex * pIdx ) { pIdx->Assign( this, Len() ); }
|
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool GoNext(SwIndex *, sal_uInt16 nMode ) const;
|
|
|
|
bool GoPrevious(SwIndex *, sal_uInt16 nMode ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Replacement for good old GetFrm(..):
|
2015-05-20 13:05:49 +02:00
|
|
|
SwContentFrm *getLayoutFrm( const SwRootFrm*,
|
2010-06-13 15:22:56 +02:00
|
|
|
const Point* pDocPos = 0,
|
2000-09-18 16:15:01 +00:00
|
|
|
const SwPosition *pPos = 0,
|
2014-03-12 22:51:01 +01:00
|
|
|
const bool bCalcFrm = true ) const;
|
2012-09-18 14:22:27 +03:00
|
|
|
/** @return the real size of the frame or an empty rectangle if
|
|
|
|
no layout exists. Needed for export filters. */
|
2014-04-25 14:00:35 +02:00
|
|
|
SwRect FindLayoutRect( const bool bPrtArea = false,
|
2000-09-18 16:15:01 +00:00
|
|
|
const Point* pPoint = 0,
|
2014-04-25 14:00:35 +02:00
|
|
|
const bool bCalcFrm = false ) const;
|
|
|
|
SwRect FindPageFrmRect( const bool bPrtArea = false,
|
2000-09-18 16:15:01 +00:00
|
|
|
const Point* pPoint = 0,
|
2014-04-25 14:00:35 +02:00
|
|
|
const bool bCalcFrm = false ) const;
|
2011-02-21 02:20:33 +01:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Method creates all views of document for given node. The content
|
|
|
|
frames that are created are put in the respective layout. */
|
2015-05-20 13:05:49 +02:00
|
|
|
void MakeFrms( SwContentNode& rNode );
|
2011-02-21 02:20:33 +01:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Method deletes all views of document for the node. The content-
|
2013-11-29 13:03:27 +00:00
|
|
|
frames are removed from the respective layout.
|
|
|
|
|
|
|
|
Add an input param to identify if acc table should be disposed
|
|
|
|
*/
|
2014-08-06 17:35:26 +02:00
|
|
|
void DelFrms( bool bIsAccTableDispose = true );
|
2013-11-29 13:03:27 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** @return count of elements of node content. Default is 1.
|
|
|
|
There are differences between text node and formula node. */
|
2013-11-12 00:46:22 +01:00
|
|
|
virtual sal_Int32 Len() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
virtual SwContentNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const = 0;
|
2011-02-21 02:20:33 +01:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Get information from Client.
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual bool GetInfo( SfxPoolItem& ) const SAL_OVERRIDE;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// SS for PoolItems: hard attributation.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// If bInParent is FALSE search for attribute only in this node.
|
2014-04-25 14:00:35 +02:00
|
|
|
const SfxPoolItem& GetAttr( sal_uInt16 nWhich, bool bInParent=true ) const;
|
|
|
|
bool GetAttr( SfxItemSet& rSet, bool bInParent=true ) const;
|
2012-09-18 14:22:27 +03:00
|
|
|
/// made virtual
|
2014-04-25 14:00:35 +02:00
|
|
|
virtual bool SetAttr( const SfxPoolItem& );
|
|
|
|
virtual bool SetAttr( const SfxItemSet& rSet );
|
|
|
|
virtual bool ResetAttr( sal_uInt16 nWhich1, sal_uInt16 nWhich2 = 0 );
|
|
|
|
virtual bool ResetAttr( const std::vector<sal_uInt16>& rWhichArr );
|
2011-01-17 15:06:54 +01:00
|
|
|
virtual sal_uInt16 ResetAllAttr();
|
2006-12-01 14:33:41 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Obtains attribute that is not delivered via conditional style!
|
2014-04-25 14:00:35 +02:00
|
|
|
const SfxPoolItem* GetNoCondAttr( sal_uInt16 nWhich, bool bInParents ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Does node has already its own auto-attributes?
|
|
|
|
Access to SwAttrSet. */
|
2000-09-18 16:15:01 +00:00
|
|
|
inline const SwAttrSet &GetSwAttrSet() const;
|
2006-12-01 14:33:41 +00:00
|
|
|
inline const SwAttrSet *GetpSwAttrSet() const { return static_cast<const SwAttrSet*>(mpAttrSet.get()); }
|
2014-11-08 14:19:22 +01:00
|
|
|
inline bool HasSwAttrSet() const { return mpAttrSet != nullptr; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
virtual SwFormatColl* ChgFormatColl( SwFormatColl* );
|
|
|
|
SwFormatColl* GetFormatColl() const { return const_cast<SwFormatColl*>(static_cast<const SwFormatColl*>(GetRegisteredIn())); }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
//FEATURE::CONDCOLL
|
2015-05-20 13:05:49 +02:00
|
|
|
inline SwFormatColl& GetAnyFormatColl() const;
|
|
|
|
void SetCondFormatColl( SwFormatColl* );
|
|
|
|
inline SwFormatColl* GetCondFormatColl() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsAnyCondition( SwCollCondition& rTmp ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
void ChkCondColl();
|
|
|
|
//FEATURE::CONDCOLL
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Invalidates NumRule at the node. NumRule is updated
|
|
|
|
on EndAction of a Shell at the latest. */
|
2014-04-25 14:00:35 +02:00
|
|
|
bool InvalidateNumRule();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** determines the text direction for a certain
|
|
|
|
position. @return -1, if text direction could *not* be determined. */
|
2005-03-08 10:13:30 +00:00
|
|
|
short GetTextDirection( const SwPosition& rPos,
|
|
|
|
const Point* pPt ) const;
|
|
|
|
|
2006-12-01 14:33:41 +00:00
|
|
|
inline void SetModifyAtAttr( bool bSetModifyAtAttr ) const { mbSetModifyAtAttr = bSetModifyAtAttr; }
|
2007-01-22 10:52:25 +00:00
|
|
|
inline bool GetModifyAtAttr() const { return mbSetModifyAtAttr; }
|
2006-12-01 14:33:41 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
static SwOLENodes* CreateOLENodesArray( const SwFormatColl& rColl, bool bOnlyWithInvalidSize );
|
2010-12-17 09:02:23 +01:00
|
|
|
|
2014-06-02 15:00:50 +00:00
|
|
|
//UUUU Access to DrawingLayer FillAttributes in a preprocessed form for primitive usage
|
|
|
|
virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const;
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
private:
|
2015-05-20 13:05:49 +02:00
|
|
|
SwContentNode( const SwContentNode & rNode ) SAL_DELETED_FUNCTION;
|
|
|
|
SwContentNode & operator= ( const SwContentNode & rNode ) SAL_DELETED_FUNCTION;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// SwTableNode
|
2014-02-25 21:01:20 +01:00
|
|
|
|
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; }
|
2010-06-13 15:22:56 +02:00
|
|
|
SwTabFrm *MakeFrm( SwFrm* );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Creates the frms for the table node (i.e. the TabFrms).
|
2000-09-18 16:15:01 +00:00
|
|
|
void MakeFrms( SwNodeIndex* pIdxBehind );
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Method deletes all views of document for the node.
|
|
|
|
The content frames are removed from the respective layout. */
|
2000-09-18 16:15:01 +00:00
|
|
|
void DelFrms();
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Method creates all views of the document for the previous node.
|
|
|
|
The content frames that are created are put into the respective layout. */
|
2000-09-18 16:15:01 +00:00
|
|
|
void MakeFrms( const SwNodeIndex & rIdx );
|
|
|
|
|
|
|
|
SwTableNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
|
2014-04-25 14:00:35 +02:00
|
|
|
void SetNewTable( SwTable* , bool bNewFrames=true );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-03-23 13:19:15 +02:00
|
|
|
// Removes redline objects that relate to this table from the 'Extra Redlines' table
|
|
|
|
void RemoveRedlines();
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
private:
|
2015-02-07 12:31:51 +01:00
|
|
|
SwTableNode( const SwTableNode & rNode ) SAL_DELETED_FUNCTION;
|
|
|
|
SwTableNode & operator= ( const SwTableNode & rNode ) SAL_DELETED_FUNCTION;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2015-04-16 10:01:37 +02:00
|
|
|
class SwSectionNode
|
2010-03-16 11:28:32 +01:00
|
|
|
: public SwStartNode
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
friend class SwNodes;
|
2010-03-16 11:28:32 +01:00
|
|
|
|
|
|
|
private:
|
2015-02-17 16:40:00 +00:00
|
|
|
SwSectionNode(const SwSectionNode&) SAL_DELETED_FUNCTION;
|
|
|
|
SwSectionNode& operator=(const SwSectionNode&) SAL_DELETED_FUNCTION;
|
|
|
|
|
|
|
|
std::unique_ptr<SwSection> const m_pSection;
|
2010-03-16 11:28:32 +01:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
protected:
|
|
|
|
virtual ~SwSectionNode();
|
|
|
|
|
|
|
|
public:
|
2010-03-16 11:28:29 +01:00
|
|
|
SwSectionNode(SwNodeIndex const&,
|
2015-05-20 13:05:49 +02:00
|
|
|
SwSectionFormat & rFormat, SwTOXBase const*const pTOXBase);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-03-16 11:28:32 +01:00
|
|
|
const SwSection& GetSection() const { return *m_pSection; }
|
|
|
|
SwSection& GetSection() { return *m_pSection; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-06-13 15:22:56 +02:00
|
|
|
SwFrm *MakeFrm( SwFrm* );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Creates the frms for the SectionNode (i.e. the SectionFrms).
|
|
|
|
On default the frames are created until the end of the range.
|
|
|
|
When another NodeIndex pEnd is passed a MakeFrms is called up to it.
|
|
|
|
Used by TableToText. */
|
2000-09-18 16:15:01 +00:00
|
|
|
void MakeFrms( SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = NULL );
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Method deletes all views of document for the node. The
|
|
|
|
content frames are removed from the respective layout. */
|
2000-09-18 16:15:01 +00:00
|
|
|
void DelFrms();
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Method creates all views of document for the previous node.
|
|
|
|
The content frames created are put into the respective layout. */
|
2000-09-18 16:15:01 +00:00
|
|
|
void MakeFrms( const SwNodeIndex & rIdx );
|
|
|
|
|
|
|
|
SwSectionNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/// Set pointer in format of section on itself.
|
2000-09-18 16:15:01 +00:00
|
|
|
void NodesArrChgd();
|
|
|
|
|
2012-09-18 14:22:27 +03:00
|
|
|
/** Check for not hidden areas whether there is content that is not in
|
|
|
|
a hidden sub-area. */
|
2015-05-20 13:05:49 +02:00
|
|
|
bool IsContentHidden() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2015-04-30 12:59:15 +02:00
|
|
|
/** This class is internal, used only during DocumentContentOperationsManager::CopyWithFlyInFly(), and for undo.
|
|
|
|
|
|
|
|
Some of the nodes are then replaced with SwPlaceholderNode, and at the end of the operation, removed again.
|
|
|
|
FIXME find out if this is really necessary, and if we can avoid creation of the SwPlaceholderNodes in the first place.
|
|
|
|
*/
|
|
|
|
class SwPlaceholderNode : private SwNode
|
2011-12-09 15:36:47 +01:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
friend class SwNodes;
|
2015-04-30 12:59:15 +02:00
|
|
|
SwPlaceholderNode(const SwNodeIndex &rWhere);
|
2011-12-09 15:36:47 +01:00
|
|
|
};
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
inline SwEndNode *SwNode::GetEndNode()
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return ND_ENDNODE == nNodeType ? static_cast<SwEndNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline const SwEndNode *SwNode::GetEndNode() const
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return ND_ENDNODE == nNodeType ? static_cast<const SwEndNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline SwStartNode *SwNode::GetStartNode()
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return ND_STARTNODE & nNodeType ? static_cast<SwStartNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline const SwStartNode *SwNode::GetStartNode() const
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return ND_STARTNODE & nNodeType ? static_cast<const SwStartNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline SwTableNode *SwNode::GetTableNode()
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return ND_TABLENODE == nNodeType ? static_cast<SwTableNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline const SwTableNode *SwNode::GetTableNode() const
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return ND_TABLENODE == nNodeType ? static_cast<const SwTableNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline SwSectionNode *SwNode::GetSectionNode()
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return ND_SECTIONNODE == nNodeType ? static_cast<SwSectionNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline const SwSectionNode *SwNode::GetSectionNode() const
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return ND_SECTIONNODE == nNodeType ? static_cast<const SwSectionNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2015-05-20 13:05:49 +02:00
|
|
|
inline SwContentNode *SwNode::GetContentNode()
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2015-05-20 13:05:49 +02:00
|
|
|
return ND_CONTENTNODE & nNodeType ? static_cast<SwContentNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwContentNode *SwNode::GetContentNode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2015-05-20 13:05:49 +02:00
|
|
|
return ND_CONTENTNODE & nNodeType ? static_cast<const SwContentNode*>(this) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool SwNode::IsStartNode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-08 14:19:22 +01:00
|
|
|
return (ND_STARTNODE & nNodeType) != 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2015-05-20 13:05:49 +02:00
|
|
|
inline bool SwNode::IsContentNode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-08 14:19:22 +01:00
|
|
|
return (ND_CONTENTNODE & nNodeType) != 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool SwNode::IsEndNode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-08 14:19:22 +01:00
|
|
|
return ND_ENDNODE == nNodeType;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2015-05-20 13:05:49 +02:00
|
|
|
inline bool SwNode::IsTextNode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-08 14:19:22 +01:00
|
|
|
return ND_TEXTNODE == nNodeType;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool SwNode::IsTableNode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-08 14:19:22 +01:00
|
|
|
return ND_TABLENODE == nNodeType;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool SwNode::IsSectionNode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-08 14:19:22 +01:00
|
|
|
return ND_SECTIONNODE == nNodeType;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2015-05-20 13:05:49 +02:00
|
|
|
inline bool SwNode::IsNoTextNode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-08 14:19:22 +01:00
|
|
|
return (ND_NOTXTNODE & nNodeType) != 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool SwNode::IsOLENode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-08 14:19:22 +01:00
|
|
|
return ND_OLENODE == nNodeType;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool SwNode::IsGrfNode() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-08 14:19:22 +01:00
|
|
|
return ND_GRFNODE == nNodeType;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
inline const SwStartNode* SwNode::FindSttNodeByType( SwStartNodeType eTyp ) const
|
|
|
|
{
|
2015-03-26 15:31:55 +01:00
|
|
|
return const_cast<SwNode*>(this)->FindSttNodeByType( eTyp );
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline const SwTableNode* SwNode::FindTableNode() const
|
|
|
|
{
|
2015-03-26 15:31:55 +01:00
|
|
|
return const_cast<SwNode*>(this)->FindTableNode();
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline const SwSectionNode* SwNode::FindSectionNode() const
|
|
|
|
{
|
2015-03-26 15:31:55 +01:00
|
|
|
return const_cast<SwNode*>(this)->FindSectionNode();
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2011-01-17 15:06:54 +01:00
|
|
|
inline sal_uLong SwNode::StartOfSectionIndex() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
return pStartOfSection->GetIndex();
|
|
|
|
}
|
2011-01-17 15:06:54 +01:00
|
|
|
inline sal_uLong SwNode::EndOfSectionIndex() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : pStartOfSection;
|
2000-09-18 16:15:01 +00:00
|
|
|
return pStNd->pEndOfSection->GetIndex();
|
|
|
|
}
|
|
|
|
inline const SwEndNode* SwNode::EndOfSectionNode() const
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : pStartOfSection;
|
2000-09-18 16:15:01 +00:00
|
|
|
return pStNd->pEndOfSection;
|
|
|
|
}
|
|
|
|
inline SwEndNode* SwNode::EndOfSectionNode()
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : pStartOfSection;
|
2000-09-18 16:15:01 +00:00
|
|
|
return pStNd->pEndOfSection;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline SwNodes& SwNode::GetNodes()
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return static_cast<SwNodes&>(GetArray());
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
inline const SwNodes& SwNode::GetNodes() const
|
|
|
|
{
|
2014-11-10 09:39:17 +02:00
|
|
|
return static_cast<SwNodes&>(GetArray());
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
inline SwDoc* SwNode::GetDoc()
|
|
|
|
{
|
|
|
|
return GetNodes().GetDoc();
|
|
|
|
}
|
|
|
|
inline const SwDoc* SwNode::GetDoc() const
|
|
|
|
{
|
|
|
|
return GetNodes().GetDoc();
|
|
|
|
}
|
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
inline SwFormatColl* SwContentNode::GetCondFormatColl() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2015-05-20 13:05:49 +02:00
|
|
|
return pCondColl ? static_cast<SwFormatColl*>(pCondColl->GetRegisteredIn()) : 0;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
inline SwFormatColl& SwContentNode::GetAnyFormatColl() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
return pCondColl && pCondColl->GetRegisteredIn()
|
2015-05-20 13:05:49 +02:00
|
|
|
? *static_cast<SwFormatColl*>(pCondColl->GetRegisteredIn())
|
|
|
|
: *const_cast<SwFormatColl*>(static_cast<const SwFormatColl*>(GetRegisteredIn()));
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SwAttrSet& SwContentNode::GetSwAttrSet() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2015-05-20 13:05:49 +02:00
|
|
|
return mpAttrSet ? *GetpSwAttrSet() : GetAnyFormatColl().GetAttrSet();
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2006-12-01 14:33:41 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
//FEATURE::CONDCOLL
|
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
inline const SfxPoolItem& SwContentNode::GetAttr( sal_uInt16 nWhich,
|
2014-04-25 14:00:35 +02:00
|
|
|
bool bInParents ) const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
return GetSwAttrSet().Get( nWhich, bInParents );
|
|
|
|
}
|
2011-12-09 15:36:47 +01:00
|
|
|
|
2015-04-30 12:59:15 +02:00
|
|
|
inline SwPlaceholderNode::SwPlaceholderNode(const SwNodeIndex &rWhere)
|
|
|
|
: SwNode(rWhere, ND_PLACEHOLDER)
|
2011-12-09 15:36:47 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-12-07 12:13:45 +01:00
|
|
|
inline SwNodePtr SwNodes::operator[]( sal_uLong n ) const
|
|
|
|
{
|
|
|
|
return static_cast<SwNodePtr>(BigPtrArray::operator[] ( n ));
|
|
|
|
}
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|