2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 11:06:15 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 11:06:15 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 11:06:15 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 11:06:15 +00:00
|
|
|
* $RCSfile: viewsh.hxx,v $
|
2009-01-05 15:33:41 +00:00
|
|
|
* $Revision: 1.65.40.1 $
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 11:06:15 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 11:06:15 +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
|
|
|
*
|
2008-04-10 11:06:15 +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
|
|
|
*
|
2008-04-10 11:06:15 +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 _VIEWSH_HXX
|
|
|
|
#define _VIEWSH_HXX
|
2004-10-04 18:01:08 +00:00
|
|
|
#include <com/sun/star/embed/XClassifiedObject.hpp>
|
|
|
|
#include <com/sun/star/embed/XEmbeddedObject.hpp>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <tools/rtti.hxx>
|
|
|
|
#include <svtools/svarray.hxx>
|
2004-08-23 09:54:11 +00:00
|
|
|
#include "swdllapi.h"
|
2000-10-25 10:53:58 +00:00
|
|
|
#include <swtypes.hxx>
|
|
|
|
#include <ring.hxx>
|
|
|
|
#include <swrect.hxx>
|
|
|
|
#include <errhdl.hxx>
|
2008-08-19 23:26:16 +00:00
|
|
|
#include <vcl/mapmod.hxx>
|
2009-06-04 08:23:53 +00:00
|
|
|
#include <vcl/print.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2003-04-24 15:09:38 +00:00
|
|
|
namespace com { namespace sun { namespace star { namespace accessibility {
|
|
|
|
class XAccessible; } } } }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-10-04 18:01:08 +00:00
|
|
|
class SfxObjectShellRef;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwDoc;
|
2006-08-14 14:38:24 +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:38:24 +00:00
|
|
|
class IDocumentDrawModelAccess;
|
|
|
|
class IDocumentRedlineAccess;
|
|
|
|
class IDocumentLayoutAccess;
|
|
|
|
class IDocumentFieldsAccess;
|
|
|
|
class IDocumentContentOperations;
|
|
|
|
class IDocumentStylePoolAccess;
|
|
|
|
class IDocumentStatistics;
|
2007-05-22 15:22:29 +00:00
|
|
|
class IDocumentUndoRedo;
|
2008-02-26 09:32:18 +00:00
|
|
|
// --> OD 2007-11-14 #i83479#
|
|
|
|
class IDocumentListItems;
|
|
|
|
class IDocumentOutlineNodes;
|
|
|
|
// <--
|
2000-09-18 16:15:01 +00:00
|
|
|
class SfxPrinter;
|
|
|
|
class SfxProgress;
|
|
|
|
class SwRootFrm;
|
|
|
|
class SwNodes;
|
|
|
|
class SdrView;
|
|
|
|
class SfxItemPool;
|
|
|
|
class SfxViewShell;
|
|
|
|
class SwViewOption;
|
|
|
|
class SwViewImp;
|
|
|
|
class SwPrtOptions;
|
2009-08-14 13:56:56 +00:00
|
|
|
class SwPrintData;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwPagePreViewPrtData;
|
|
|
|
class Window;
|
|
|
|
class OutputDevice;
|
|
|
|
class SwLayIdle;
|
|
|
|
struct ShellResource;
|
|
|
|
class SwRegionRects;
|
|
|
|
class SwFrm;
|
2002-05-06 11:11:40 +00:00
|
|
|
class SvtAccessibilityOptions;
|
2003-03-27 14:45:43 +00:00
|
|
|
// OD 12.12.2002 #103492#
|
|
|
|
class SwPagePreviewLayout;
|
2006-02-01 13:19:33 +00:00
|
|
|
// --> OD 2005-12-01 #i27138#
|
|
|
|
class SwTxtFrm;
|
|
|
|
// <--
|
2007-08-03 12:39:19 +00:00
|
|
|
class BitmapEx;
|
2002-11-11 12:45:25 +00:00
|
|
|
|
2002-11-01 12:23:37 +00:00
|
|
|
struct SwAccessibilityOptions;
|
2006-11-14 14:07:32 +00:00
|
|
|
class Region;
|
2008-03-07 13:49:53 +00:00
|
|
|
class SwPostItMgr;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2007-06-26 10:55:41 +00:00
|
|
|
// #i74769#
|
|
|
|
class SdrPaintWindow;
|
|
|
|
|
2009-08-14 13:56:56 +00:00
|
|
|
namespace vcl
|
|
|
|
{
|
|
|
|
class PrinterController;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
//JP 19.07.98: - Bug 52312
|
|
|
|
// define fuer Flags, die im CTOR oder den darunter liegenden Schichten
|
|
|
|
// benoetigt werden.
|
|
|
|
// Zur Zeit wird fuer die DrawPage das PreView Flag benoetigt
|
|
|
|
#define VSHELLFLAG_ISPREVIEW ((long)0x1)
|
|
|
|
|
2009-08-14 13:56:56 +00:00
|
|
|
|
2004-08-23 09:54:11 +00:00
|
|
|
class SW_DLLPUBLIC ViewShell : public Ring
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
friend void SetOutDev( ViewShell *pSh, OutputDevice *pOut );
|
|
|
|
friend void SetOutDevAndWin( ViewShell *pSh, OutputDevice *pOut,
|
|
|
|
Window *pWin, sal_uInt16 nZoom );
|
|
|
|
|
|
|
|
friend class SwViewImp;
|
|
|
|
friend class SwLayIdle;
|
|
|
|
|
2003-03-27 14:45:43 +00:00
|
|
|
// OD 12.12.2002 #103492# - for setting visible area for page preview paint
|
|
|
|
friend class SwPagePreviewLayout;
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
//Umsetzen der SwVisArea, damit vor dem Drucken sauber formatiert
|
|
|
|
//werden kann.
|
2002-09-06 04:56:09 +00:00
|
|
|
friend void SetSwVisArea( ViewShell *pSh, const SwRect &, BOOL bPDFExport = FALSE );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2007-08-03 12:39:19 +00:00
|
|
|
// --> PB 2007-05-30 #146850#
|
|
|
|
static BitmapEx* pReplaceBmp; // replaced display of still loaded images
|
|
|
|
static BitmapEx* pErrorBmp; // error display of missed images
|
|
|
|
// <--
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
static sal_Bool bLstAct; // sal_True wenn Das EndAction der letzten Shell
|
|
|
|
// laeuft; also die EndActions der
|
|
|
|
// anderen Shells auf das Dokument
|
|
|
|
// abgearbeitet sind.
|
|
|
|
|
2000-10-25 10:53:58 +00:00
|
|
|
Point aPrtOffst; //Ofst fuer den Printer,
|
|
|
|
//nicht bedruckbarer Rand.
|
|
|
|
Size aBrowseBorder; //Rand fuer Framedokumente
|
|
|
|
SwRect aInvalidRect;
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
SfxViewShell *pSfxViewShell;
|
|
|
|
SwViewImp *pImp; //Core-Interna der ViewShell.
|
|
|
|
//Der Pointer ist niemals 0.
|
|
|
|
|
2003-04-01 08:52:21 +00:00
|
|
|
Window *pWin; // = 0 during printing or pdf export
|
|
|
|
OutputDevice *pOut; // Window, Printer, VirtDev, ...
|
2003-06-12 06:37:58 +00:00
|
|
|
OutputDevice* mpTmpRef; // Temporariy reference device. Is used
|
|
|
|
// during (printer depending) prospect
|
|
|
|
// and page preview printing
|
|
|
|
// (because a scaling has to be set at
|
|
|
|
// the original printer)
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2000-10-25 10:53:58 +00:00
|
|
|
SwViewOption *pOpt;
|
2002-11-01 12:23:37 +00:00
|
|
|
SwAccessibilityOptions* pAccOptions;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
sal_Bool bDocSizeChgd :1; //Fuer DocChgNotify(): Neue DocGroesse bei
|
|
|
|
//EndAction an das DocMDI melden.
|
|
|
|
sal_Bool bPaintWorks :1; //Normal Painten wenn sal_True,
|
|
|
|
//Paint merken wenn sal_False
|
|
|
|
sal_Bool bPaintInProgress :1; //Kein zweifaches Paint durchlassen.
|
|
|
|
sal_Bool bViewLocked :1; //Lockt den sichtbaren Bereich,
|
|
|
|
//MakeVisible laeuft dann in's leere.
|
|
|
|
sal_Bool bInEndAction :1; //Fiese unstaende vermeiden, siehe viewsh.cxx
|
|
|
|
sal_Bool bPreView :1; //Ist sal_True wenns eine PreView-ViewShell ist.
|
|
|
|
sal_Bool bFrameView :1; //sal_True wenn es ein (HTML-)Frame ist.
|
|
|
|
sal_Bool bEnableSmooth :1; //Disable des SmoothScroll z.B. fuer
|
|
|
|
//Drag der Scrollbars.
|
|
|
|
sal_Bool bEndActionByVirDev:1; //Paints aus der EndAction immer ueber virtuelles
|
2002-02-20 17:33:01 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
//Device (etwa beim Browsen)
|
|
|
|
|
2004-06-28 12:30:55 +00:00
|
|
|
// OD 2004-06-01 #i26791# - boolean, indicating that class in in constructor
|
|
|
|
bool mbInConstructor:1;
|
|
|
|
|
2007-06-26 10:55:41 +00:00
|
|
|
// #i74769#
|
|
|
|
SdrPaintWindow* mpTargetPaintWindow;
|
|
|
|
OutputDevice* mpBufferedOut;
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
//Initialisierung, wird von den verschiedenen Konstruktoren gerufen.
|
2004-08-23 09:54:11 +00:00
|
|
|
SW_DLLPRIVATE void Init( const SwViewOption *pNewOpt );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
inline void ResetInvalidRect();
|
|
|
|
|
2004-08-23 09:54:11 +00:00
|
|
|
SW_DLLPRIVATE void Reformat(); //Invalidert das ges. Layout (ApplyViewOption)
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-08-23 09:54:11 +00:00
|
|
|
SW_DLLPRIVATE void PaintDesktop( const SwRect & ); // sammeln der Werte fuers
|
2000-09-18 16:15:01 +00:00
|
|
|
// Malen der Wiese und rufen
|
|
|
|
// PaintDesktop gesplittet, dieser Teil wird auch von PreViewPage benutzt
|
2004-08-23 09:54:11 +00:00
|
|
|
SW_DLLPRIVATE void _PaintDesktop( const SwRegionRects &rRegion );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-08-23 09:54:11 +00:00
|
|
|
SW_DLLPRIVATE sal_Bool CheckInvalidForPaint( const SwRect & );//Direkt Paint oder lieber
|
2000-09-18 16:15:01 +00:00
|
|
|
//eine Aktion ausloesen.
|
|
|
|
|
2004-08-23 09:54:11 +00:00
|
|
|
SW_DLLPRIVATE void Scroll(); //Scrollen wenn sich aus der LayAction Scrollmoeglichkeiten
|
2000-09-18 16:15:01 +00:00
|
|
|
//ergaben.
|
|
|
|
|
2009-08-14 13:56:56 +00:00
|
|
|
SW_DLLPRIVATE void PrepareForPrint( const SwPrintData &rOptions );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-08-23 09:54:11 +00:00
|
|
|
SW_DLLPRIVATE void ImplApplyViewOptions( const SwViewOption &rOpt );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static ShellResource* pShellRes; // Resourcen fuer die Shell
|
|
|
|
static Window* pCareWindow; // diesem Fenster ausweichen
|
|
|
|
|
2000-10-25 10:53:58 +00:00
|
|
|
SwRect aVisArea; //Die moderne Ausfuerung der VisArea
|
|
|
|
SwDoc *pDoc; //Das Dokument, niemals 0
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
sal_uInt16 nStartAction; //ist != 0 wenn mindestens eine ::com::sun::star::chaos::Action laeuft
|
|
|
|
sal_uInt16 nLockPaint; //ist != 0 wenn das Paint gelocked ist.
|
|
|
|
|
|
|
|
public:
|
|
|
|
TYPEINFO();
|
|
|
|
|
|
|
|
SwViewImp *Imp() { return pImp; }
|
|
|
|
const SwViewImp *Imp() const { return pImp; }
|
|
|
|
|
|
|
|
const SwNodes& GetNodes() const;
|
|
|
|
|
2002-09-06 04:56:09 +00:00
|
|
|
//Nach Druckerwechsel, vom Doc
|
|
|
|
//pPDFOut != NULL is used for PDF export.
|
2009-06-04 08:23:53 +00:00
|
|
|
void InitPrt( /*TLPDF Printer * ,*/ OutputDevice *pOutDev /* = NULL */ );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
//Klammerung von zusammengehoerenden Aktionen.
|
|
|
|
inline void StartAction();
|
|
|
|
void ImplStartAction();
|
|
|
|
inline void EndAction( const sal_Bool bIdleEnd = sal_False );
|
|
|
|
void ImplEndAction( const sal_Bool bIdleEnd = sal_False );
|
|
|
|
sal_uInt16 ActionCount() const { return nStartAction; }
|
|
|
|
sal_Bool ActionPend() const { return nStartAction != 0; }
|
|
|
|
sal_Bool IsInEndAction() const { return bInEndAction; }
|
|
|
|
|
|
|
|
void SetEndActionByVirDev( sal_Bool b ) { bEndActionByVirDev = b; }
|
|
|
|
sal_Bool IsEndActionByVirDev() { return bEndActionByVirDev; }
|
|
|
|
|
|
|
|
// Per UNO wird am RootFrame fuer alle shells der ActionCount kurzfristig
|
|
|
|
// auf Null gesetzt und wieder restauriert
|
|
|
|
void SetRestoreActions(sal_uInt16 nSet);
|
|
|
|
sal_uInt16 GetRestoreActions() const;
|
|
|
|
|
|
|
|
inline sal_Bool HasInvalidRect() const { return aInvalidRect.HasArea(); }
|
|
|
|
void ChgHyphenation() { Reformat(); }
|
2009-01-05 15:33:41 +00:00
|
|
|
void ChgNumberDigits();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
//Methoden fuer Paint- und Scrollrects, die auf allen Shells im
|
|
|
|
//Ring arbeiten.
|
|
|
|
sal_Bool AddPaintRect( const SwRect &rRect );
|
|
|
|
void AddScrollRect( const SwFrm *pFrm, const SwRect &rRect, long nOffs );
|
|
|
|
void SetNoNextScroll();
|
|
|
|
|
|
|
|
void InvalidateWindows( const SwRect &rRect );
|
2006-11-14 14:07:32 +00:00
|
|
|
|
2007-01-22 14:10:09 +00:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// #i72754# set of Pre/PostPaints with lock counter and initial target OutDev
|
|
|
|
protected:
|
|
|
|
sal_uInt32 mnPrePostPaintCount;
|
|
|
|
OutputDevice* mpPrePostOutDev;
|
2008-08-19 23:26:16 +00:00
|
|
|
MapMode maPrePostMapMode;
|
2007-01-22 14:10:09 +00:00
|
|
|
public:
|
2008-08-19 23:26:16 +00:00
|
|
|
void PrePaint();
|
2007-01-22 14:10:09 +00:00
|
|
|
void DLPrePaint2(const Region& rRegion);
|
2009-01-20 09:49:16 +00:00
|
|
|
void DLPostPaint2(bool bPaintFormLayer);
|
2008-08-19 23:26:16 +00:00
|
|
|
const MapMode& getPrePostMapMode() const { return maPrePostMapMode; }
|
2007-01-22 14:10:09 +00:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
2006-11-14 14:07:32 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
virtual void Paint(const Rectangle &rRect);
|
|
|
|
sal_Bool IsPaintInProgress() const { return bPaintInProgress; }
|
2008-08-19 23:26:16 +00:00
|
|
|
bool IsDrawingLayerPaintInProgress() const { return 0 != mnPrePostPaintCount; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
//Benachrichtung, dass sich der sichtbare Bereich geaendert hat.
|
|
|
|
//VisArea wird neu gesetzt, anschliessend wird gescrollt.
|
|
|
|
//Das uebergebene Rect liegt auf Pixelgrenzen,
|
|
|
|
//um Pixelfehler beim Scrollen zu vermeiden.
|
|
|
|
virtual void VisPortChgd( const SwRect & );
|
|
|
|
sal_Bool SmoothScroll( long lXDiff, long lYDiff, const Rectangle* );//Browser
|
|
|
|
void EnableSmooth( sal_Bool b ) { bEnableSmooth = b; }
|
|
|
|
|
|
|
|
const SwRect &VisArea() const { return aVisArea; }
|
|
|
|
//Es wird, wenn notwendig, soweit gescrollt, dass das
|
|
|
|
//uebergebene Rect im sichtbaren Ausschnitt liegt.
|
|
|
|
void MakeVisible( const SwRect & );
|
|
|
|
|
|
|
|
//Bei naechster Gelegenheit die neue Dokuemntgroesse an das UI weiterreichen.
|
2007-09-27 07:17:31 +00:00
|
|
|
void SizeChgNotify();
|
2000-09-18 16:15:01 +00:00
|
|
|
void UISizeNotify(); //Das weiterreichen der aktuellen groesse.
|
|
|
|
|
|
|
|
Point GetPagePos( sal_uInt16 nPageNum ) const;
|
|
|
|
|
|
|
|
sal_uInt16 GetNumPages(); //Anzahl der aktuellen Seiten Layout erfragen.
|
2002-03-15 10:47:59 +00:00
|
|
|
sal_Bool IsDummyPage( USHORT nPageNum ) const; // An empty page?
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
//Invalidierung der ersten Sichtbaren Seite fuer alle Shells im Ring.
|
|
|
|
void SetFirstVisPageInvalid();
|
|
|
|
|
|
|
|
SwRootFrm *GetLayout() const;
|
|
|
|
sal_Bool IsNewLayout() const; //Wurde das Layout geladen oder neu
|
|
|
|
//erzeugt?
|
|
|
|
|
2000-10-25 10:53:58 +00:00
|
|
|
Size GetDocSize() const;// erfrage die Groesse des Dokuments
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
void CalcLayout(); //Durchformatierung des Layouts erzwingen.
|
|
|
|
|
2000-10-25 10:53:58 +00:00
|
|
|
inline SwDoc *GetDoc() const { return pDoc; } //niemals 0.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2006-08-14 14:38:24 +00:00
|
|
|
/** Provides access to the document setting interface
|
|
|
|
*/
|
|
|
|
const IDocumentSettingAccess* getIDocumentSettingAccess() const;
|
|
|
|
IDocumentSettingAccess* getIDocumentSettingAccess();
|
|
|
|
|
|
|
|
/** Provides access to the document device interface
|
|
|
|
*/
|
|
|
|
const IDocumentDeviceAccess* getIDocumentDeviceAccess() const;
|
|
|
|
IDocumentDeviceAccess* getIDocumentDeviceAccess();
|
|
|
|
|
|
|
|
/** 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;
|
|
|
|
IDocumentMarkAccess* getIDocumentMarkAccess();
|
2006-08-14 14:38:24 +00:00
|
|
|
|
|
|
|
/** Provides access to the document draw model interface
|
|
|
|
*/
|
|
|
|
const IDocumentDrawModelAccess* getIDocumentDrawModelAccess() const;
|
|
|
|
IDocumentDrawModelAccess* getIDocumentDrawModelAccess();
|
|
|
|
|
|
|
|
/** Provides access to the document redline interface
|
|
|
|
*/
|
|
|
|
const IDocumentRedlineAccess* getIDocumentRedlineAccess() const;
|
|
|
|
IDocumentRedlineAccess* getIDocumentRedlineAccess();
|
|
|
|
|
|
|
|
/** Provides access to the document layout interface
|
|
|
|
*/
|
|
|
|
const IDocumentLayoutAccess* getIDocumentLayoutAccess() const;
|
|
|
|
IDocumentLayoutAccess* getIDocumentLayoutAccess();
|
|
|
|
|
|
|
|
/** Provides access to the document fields administration interface
|
|
|
|
*/
|
|
|
|
const IDocumentFieldsAccess* getIDocumentFieldsAccess() const;
|
|
|
|
|
|
|
|
/** Provides access to the content operations interface
|
|
|
|
*/
|
|
|
|
IDocumentContentOperations* getIDocumentContentOperations();
|
|
|
|
|
|
|
|
/** Provides access to the document style pool interface
|
|
|
|
*/
|
|
|
|
IDocumentStylePoolAccess* getIDocumentStylePoolAccess();
|
|
|
|
|
|
|
|
/** Provides access to the document statistics interface
|
|
|
|
*/
|
|
|
|
const IDocumentStatistics* getIDocumentStatistics() const;
|
|
|
|
|
2007-05-22 15:22:29 +00:00
|
|
|
/** Provides access to the document undo/redo interface
|
|
|
|
*/
|
|
|
|
IDocumentUndoRedo* getIDocumentUndoRedoAccess();
|
|
|
|
|
2008-02-26 09:32:18 +00:00
|
|
|
// --> OD 2007-11-14 #i83479#
|
|
|
|
const IDocumentListItems* getIDocumentListItemsAccess() const;
|
|
|
|
const IDocumentOutlineNodes* getIDocumentOutlineNodesAccess() const;
|
|
|
|
// <--
|
|
|
|
|
2006-08-14 14:38:24 +00:00
|
|
|
// 1. GetRefDev: Either the printer or the virtual device from the doc
|
2003-04-01 08:52:21 +00:00
|
|
|
// 2. GetWin: Available if we not printing
|
2006-08-14 14:38:24 +00:00
|
|
|
// 3. GetOut: Printer, Window or Virtual device
|
2003-04-01 08:52:21 +00:00
|
|
|
OutputDevice& GetRefDev() const;
|
|
|
|
inline Window* GetWin() const { return pWin; }
|
|
|
|
inline OutputDevice* GetOut() const { return pOut; }
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
static inline sal_Bool IsLstEndAction() { return ViewShell::bLstAct; }
|
|
|
|
|
|
|
|
//Andern alle PageDescriptoren
|
|
|
|
void ChgAllPageOrientation( sal_uInt16 eOri );
|
|
|
|
void ChgAllPageSize( Size &rSz );
|
|
|
|
|
2009-08-14 13:56:56 +00:00
|
|
|
// printing of one page.
|
2009-06-04 08:23:53 +00:00
|
|
|
// bIsPDFExport == true is: do PDF Export (no printing!)
|
2009-08-14 13:56:56 +00:00
|
|
|
sal_Bool PrintOrPDFExport( OutputDevice *pOutDev, const SwPrtOptions &rPrintData,
|
2009-08-07 14:42:45 +00:00
|
|
|
sal_Int32 nRenderer, /* offset in vector of pages to print */
|
|
|
|
bool bIsPDFExport = sal_False );
|
|
|
|
|
2009-08-14 13:56:56 +00:00
|
|
|
// printing of one brochure page
|
|
|
|
void PrintProspect( OutputDevice *pOutDev, const SwPrintData &rPrintData,
|
|
|
|
sal_Int32 nRenderer /* offset in vector of page pairs for prospect printing */ );
|
|
|
|
|
|
|
|
// printing of a complete document for mail merge
|
|
|
|
// bIsPDFExport == true is: do PDF Export (no printing!)
|
|
|
|
sal_Bool PrintOrPDFExportMM( const boost::shared_ptr< vcl::PrinterController > & rpPrinterController,
|
|
|
|
const SwPrtOptions &rPrintData, bool bIsPDFExport = sal_False );
|
|
|
|
|
|
|
|
// printing of a complete brochure for mail merge
|
|
|
|
void PrintProspectMM( const boost::shared_ptr< vcl::PrinterController > & rpPrinterController,
|
|
|
|
const SwPrintData &rPrintData, bool bProspectRTL );
|
2005-03-23 10:51:14 +00:00
|
|
|
|
2009-08-14 13:56:56 +00:00
|
|
|
// printing for OLE 2.0
|
|
|
|
static void PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData& rOptions,
|
2000-09-18 16:15:01 +00:00
|
|
|
OutputDevice* pOleOut, const Rectangle& rRect );
|
|
|
|
|
2002-11-11 12:45:25 +00:00
|
|
|
// creates temporary doc with selected text for PDF export
|
2009-06-04 08:23:53 +00:00
|
|
|
SwDoc * CreatePrtDoc( /*Printer* pPrt,*/ SfxObjectShellRef& );
|
2002-11-14 09:34:44 +00:00
|
|
|
SwDoc * FillPrtDoc( SwDoc* pPrtDoc, const SfxPrinter* pPrt );
|
2002-11-11 12:45:25 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
//Wird intern fuer die Shell gerufen die Druckt. Formatiert die Seiten.
|
|
|
|
void CalcPagesForPrint( sal_uInt16 nMax, SfxProgress* pProgress = 0,
|
2006-03-16 11:25:50 +00:00
|
|
|
const String* pStr = NULL, ULONG nMergeAct = 0, ULONG nMergeCnt = 0 );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
//All about fields.
|
|
|
|
void UpdateFlds(sal_Bool bCloseDB = sal_False);
|
|
|
|
sal_Bool IsAnyFieldInDoc() const;
|
|
|
|
// update all charts, for that exists any table
|
|
|
|
void UpdateAllCharts();
|
|
|
|
sal_Bool HasCharts() const;
|
|
|
|
|
2003-10-15 08:53:56 +00:00
|
|
|
//
|
|
|
|
// DOCUMENT COMPATIBILITY FLAGS START
|
|
|
|
//
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
// Sollen Absatzabstaende addiert oder maximiert werden?
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetParaSpaceMax( bool bNew );
|
|
|
|
|
|
|
|
// Sollen Absatzabstaende addiert oder maximiert werden?
|
|
|
|
void SetParaSpaceMaxAtPages( bool bNew );
|
2001-05-03 09:14:42 +00:00
|
|
|
|
|
|
|
// compatible behaviour of tabs
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetTabCompat( bool bNew );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2008-01-10 11:29:12 +00:00
|
|
|
//#i24363# tab stops relative to indent
|
|
|
|
void SetTabsRelativeToIndent( bool bNew );
|
|
|
|
|
2003-10-15 08:53:56 +00:00
|
|
|
// font metric attribute "External Leading" should be considered
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetAddExtLeading( bool bNew );
|
2003-10-15 08:53:56 +00:00
|
|
|
|
|
|
|
// formatting by virtual device or printer
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetUseVirDev( bool nNew );
|
2003-10-15 08:53:56 +00:00
|
|
|
|
2004-03-23 10:24:11 +00:00
|
|
|
// OD 2004-02-16 #106629# - adding paragraph and table spacing at bottom
|
|
|
|
// of table cells
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells );
|
2004-03-23 10:24:11 +00:00
|
|
|
|
2004-02-26 15:58:59 +00:00
|
|
|
// OD 06.01.2004 #i11859# - former formatting of text lines with
|
|
|
|
// proportional line spacing or not
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing );
|
2004-02-26 15:58:59 +00:00
|
|
|
|
2004-03-31 14:06:34 +00:00
|
|
|
// OD 2004-03-12 #i11860# - former object positioning
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetUseFormerObjectPositioning( bool _bUseFormerObjPos );
|
2004-03-31 14:06:34 +00:00
|
|
|
|
2004-08-02 12:59:09 +00:00
|
|
|
// OD 2004-05-05 #i28701#
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos );
|
2004-08-02 12:59:09 +00:00
|
|
|
|
2004-05-11 10:27:44 +00:00
|
|
|
// --> FME #108724#
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping );
|
2004-05-11 10:27:44 +00:00
|
|
|
|
2007-07-10 13:58:56 +00:00
|
|
|
// -> PB 2007-06-11 #i45491#
|
|
|
|
void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak );
|
|
|
|
// <--
|
|
|
|
|
2003-10-15 08:53:56 +00:00
|
|
|
//
|
|
|
|
// DOCUMENT COMPATIBILITY FLAGS END
|
|
|
|
//
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
//Ruft den Idle-Formatierer des Layouts
|
|
|
|
void LayoutIdle();
|
|
|
|
|
|
|
|
inline const SwViewOption *GetViewOptions() const { return pOpt; }
|
|
|
|
void ApplyViewOptions( const SwViewOption &rOpt );
|
|
|
|
void SetUIOptions( const SwViewOption &rOpt );
|
|
|
|
void SetReadonlyOption(sal_Bool bSet); // Readonly-Bit d. ViewOptions setzen
|
2003-09-11 08:39:16 +00:00
|
|
|
void SetPDFExportOption(sal_Bool bSet); // set/reset PDF export mode
|
2000-09-18 16:15:01 +00:00
|
|
|
void SetPrtFormatOption(sal_Bool bSet); // PrtFormat-Bit d. ViewOptions setzen
|
2002-08-01 10:45:42 +00:00
|
|
|
void SetReadonlySelectionOption(sal_Bool bSet);//change the selection mode in readonly docs
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2002-11-01 12:23:37 +00:00
|
|
|
const SwAccessibilityOptions* GetAccessibilityOptions() const { return pAccOptions;}
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
static void SetShellRes( ShellResource* pRes ) { pShellRes = pRes; }
|
2007-09-27 07:17:31 +00:00
|
|
|
static ShellResource* GetShellRes();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2007-09-27 07:17:31 +00:00
|
|
|
static void SetCareWin( Window* pNew );
|
2000-10-17 08:25:31 +00:00
|
|
|
static Window* GetCareWin(ViewShell& rVSh)
|
2006-08-14 14:38:24 +00:00
|
|
|
{ return pCareWindow ? pCareWindow : CareChildWin(rVSh); }
|
2000-10-17 08:25:31 +00:00
|
|
|
static Window* CareChildWin(ViewShell& rVSh);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
inline SfxViewShell *GetSfxViewShell() { return pSfxViewShell; }
|
|
|
|
inline void SetSfxViewShell(SfxViewShell *pNew) { pSfxViewShell = pNew; }
|
|
|
|
|
|
|
|
// Selektion der Draw ::com::sun::star::script::Engine geaendert
|
2007-09-27 07:17:31 +00:00
|
|
|
virtual void DrawSelChanged();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2003-03-27 14:45:43 +00:00
|
|
|
// OD 12.12.2002 #103492#
|
|
|
|
SwPagePreviewLayout* PagePreviewLayout();
|
2002-12-02 06:50:35 +00:00
|
|
|
|
2003-03-27 14:45:43 +00:00
|
|
|
/** adjust view options for page preview
|
2002-12-02 06:50:35 +00:00
|
|
|
|
2003-03-27 14:45:43 +00:00
|
|
|
OD 09.01.2003 #i6467#
|
|
|
|
Because page preview should show the document as it is printed -
|
|
|
|
page preview is print preview -, the view options are adjusted to the
|
|
|
|
same as for printing.
|
2002-12-03 14:37:10 +00:00
|
|
|
|
2003-03-27 14:45:43 +00:00
|
|
|
@param _rPrintOptions
|
|
|
|
input parameter - constant reference to print options, to which the
|
|
|
|
view option will be adjusted.
|
2002-12-03 14:37:10 +00:00
|
|
|
*/
|
2003-03-27 14:45:43 +00:00
|
|
|
void AdjustOptionsForPagePreview( const SwPrtOptions &_rPrintOptions );
|
2002-12-06 15:12:04 +00:00
|
|
|
|
2003-03-27 14:45:43 +00:00
|
|
|
// print page/print preview
|
|
|
|
void PrintPreViewPage( SwPrtOptions& rOptions, sal_uInt16 nRowCol,
|
|
|
|
SfxProgress& rProgress,
|
|
|
|
const SwPagePreViewPrtData* = 0 );
|
2002-12-06 15:12:04 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
sal_Bool IsViewLocked() const { return bViewLocked; }
|
|
|
|
void LockView( sal_Bool b ) { bViewLocked = b; }
|
|
|
|
|
|
|
|
inline void LockPaint();
|
|
|
|
void ImplLockPaint();
|
|
|
|
inline void UnlockPaint( sal_Bool bVirDev = sal_False );
|
|
|
|
void ImplUnlockPaint( sal_Bool bVirDev );
|
|
|
|
sal_Bool IsPaintLocked() const { return nLockPaint != 0; }
|
|
|
|
|
|
|
|
// Abfragen/Erzeugen DrawView + PageView
|
2008-10-10 13:02:43 +00:00
|
|
|
sal_Bool HasDrawView() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
void MakeDrawView();
|
|
|
|
|
|
|
|
//DrawView darf u.U. am UI benutzt werden.
|
|
|
|
SdrView *GetDrawView();
|
|
|
|
const SdrView *GetDrawView() const { return ((ViewShell*)this)->GetDrawView(); }
|
|
|
|
|
|
|
|
//sorge dafuer, das auf jedenfall die MarkListe aktuell ist (Bug 57153)
|
|
|
|
SdrView *GetDrawViewWithValidMarkList();
|
|
|
|
|
|
|
|
// erfrage den Attribut Pool
|
|
|
|
inline const SfxItemPool& GetAttrPool() const;
|
|
|
|
SfxItemPool& GetAttrPool();
|
|
|
|
|
|
|
|
sal_Bool IsPreView() const { return bPreView; }
|
|
|
|
|
|
|
|
sal_Bool IsFrameView() const { return bFrameView; }
|
|
|
|
void SetFrameView( const Size& rBrowseBorder )
|
2006-08-14 14:38:24 +00:00
|
|
|
{ bFrameView = sal_True; aBrowseBorder = rBrowseBorder; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
//Nimmt die notwendigen Invalidierungen vor,
|
|
|
|
//wenn sich der BrowdseModus aendert, bBrowseChgd == sal_True
|
|
|
|
//oder, im BrowseModus, wenn sich die Groessenverhaeltnisse
|
|
|
|
//aendern (bBrowseChgd == sal_False)
|
2007-09-27 07:17:31 +00:00
|
|
|
void CheckBrowseView( BOOL bBrowseChgd );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2008-02-19 12:35:47 +00:00
|
|
|
const Size& GetBrowseBorder() const;
|
|
|
|
sal_Int32 GetBrowseWidth() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
void SetBrowseBorder( const Size& rNew );
|
|
|
|
|
2003-04-24 15:09:38 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
|
2002-05-22 10:48:43 +00:00
|
|
|
|
2003-03-27 14:45:43 +00:00
|
|
|
// OD 15.01.2003 #103492# - change method signature due to new page preview
|
|
|
|
// functionality.
|
2002-05-22 10:48:43 +00:00
|
|
|
::com::sun::star::uno::Reference<
|
2003-04-24 15:09:38 +00:00
|
|
|
::com::sun::star::accessibility::XAccessible >
|
2003-03-27 14:45:43 +00:00
|
|
|
CreateAccessiblePreview();
|
2002-05-22 10:48:43 +00:00
|
|
|
|
2002-05-29 14:06:25 +00:00
|
|
|
void ShowPreViewSelection( sal_uInt16 nSelPage );
|
2002-05-16 06:56:53 +00:00
|
|
|
void InvalidateAccessibleFocus();
|
2002-02-20 17:33:01 +00:00
|
|
|
|
2002-05-06 11:11:40 +00:00
|
|
|
//apply Accessiblity options
|
|
|
|
void ApplyAccessiblityOptions(SvtAccessibilityOptions& rAccessibilityOptions);
|
|
|
|
|
2006-02-01 13:19:33 +00:00
|
|
|
/** invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs
|
|
|
|
|
|
|
|
OD 2005-12-01 #i27138#
|
|
|
|
|
|
|
|
@author OD
|
|
|
|
|
|
|
|
@param _pFromTxtFrm
|
|
|
|
input parameter - paragraph frame, for which the relation CONTENT_FLOWS_FROM
|
|
|
|
has to be invalidated.
|
|
|
|
If NULL, no CONTENT_FLOWS_FROM relation has to be invalidated
|
|
|
|
|
|
|
|
@param _pToTxtFrm
|
|
|
|
input parameter - paragraph frame, for which the relation CONTENT_FLOWS_TO
|
|
|
|
has to be invalidated.
|
|
|
|
If NULL, no CONTENT_FLOWS_TO relation has to be invalidated
|
|
|
|
*/
|
|
|
|
void InvalidateAccessibleParaFlowRelation( const SwTxtFrm* _pFromTxtFrm,
|
|
|
|
const SwTxtFrm* _pToTxtFrm );
|
|
|
|
|
|
|
|
/** invalidate text selection for paragraphs
|
|
|
|
|
|
|
|
OD 2005-12-12 #i27301#
|
|
|
|
|
|
|
|
@author OD
|
|
|
|
*/
|
|
|
|
void InvalidateAccessibleParaTextSelection();
|
|
|
|
|
2009-02-27 05:38:42 +00:00
|
|
|
/** invalidate attributes for paragraphs
|
|
|
|
|
|
|
|
OD 2009-01-06 #i88069#
|
|
|
|
|
|
|
|
@author OD
|
|
|
|
|
|
|
|
@param rTxtFrm
|
|
|
|
input parameter - paragraph frame, whose attributes have changed
|
|
|
|
*/
|
|
|
|
void InvalidateAccessibleParaAttrs( const SwTxtFrm& rTxtFrm );
|
|
|
|
|
2000-10-25 10:53:58 +00:00
|
|
|
ViewShell( ViewShell&, Window *pWin = 0, OutputDevice *pOut = 0,
|
2000-09-18 16:15:01 +00:00
|
|
|
long nFlags = 0 );
|
2000-10-25 10:53:58 +00:00
|
|
|
ViewShell( SwDoc& rDoc, Window *pWin,
|
2000-09-18 16:15:01 +00:00
|
|
|
const SwViewOption *pOpt = 0, OutputDevice *pOut = 0,
|
|
|
|
long nFlags = 0 );
|
|
|
|
virtual ~ViewShell();
|
|
|
|
|
2004-09-08 15:08:51 +00:00
|
|
|
// --> FME 2004-06-15 #i12836# enhanced pdf export
|
|
|
|
sal_Int32 GetPageNumAndSetOffsetForPDF( OutputDevice& rOut, const SwRect& rRect ) const;
|
|
|
|
// <--
|
2006-08-14 14:38:24 +00:00
|
|
|
|
|
|
|
inline bool IsInConstructor() const { return mbInConstructor; }
|
2007-08-03 12:39:19 +00:00
|
|
|
|
|
|
|
// --> PB 2007-05-30 #146850#
|
|
|
|
static const BitmapEx& GetReplacementBitmap( bool bIsErrorState );
|
|
|
|
static void DeleteReplacementBitmaps();
|
|
|
|
// <--
|
2008-03-07 13:49:53 +00:00
|
|
|
|
|
|
|
const SwPostItMgr* GetPostItMgr() const { return (const_cast<ViewShell*>(this))->GetPostItMgr(); }
|
|
|
|
SwPostItMgr* GetPostItMgr();
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//---- class CurrShell verwaltet den globalen ShellPointer -------------------
|
|
|
|
|
|
|
|
class CurrShell
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ViewShell *pPrev;
|
|
|
|
SwRootFrm *pRoot;
|
|
|
|
|
|
|
|
CurrShell( ViewShell *pNew );
|
|
|
|
~CurrShell();
|
|
|
|
};
|
|
|
|
|
|
|
|
inline void ViewShell::ResetInvalidRect()
|
|
|
|
{
|
2006-08-14 14:38:24 +00:00
|
|
|
aInvalidRect.Clear();
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2006-08-14 14:38:24 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
inline void ViewShell::StartAction()
|
|
|
|
{
|
|
|
|
if ( !nStartAction++ )
|
|
|
|
ImplStartAction();
|
|
|
|
}
|
|
|
|
inline void ViewShell::EndAction( const sal_Bool bIdleEnd )
|
|
|
|
{
|
|
|
|
if( 0 == (nStartAction - 1) )
|
|
|
|
ImplEndAction( bIdleEnd );
|
|
|
|
--nStartAction;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void ViewShell::LockPaint()
|
|
|
|
{
|
|
|
|
if ( !nLockPaint++ )
|
|
|
|
ImplLockPaint();
|
|
|
|
}
|
|
|
|
inline void ViewShell::UnlockPaint( sal_Bool bVirDev )
|
|
|
|
{
|
|
|
|
if ( 0 == --nLockPaint )
|
|
|
|
ImplUnlockPaint( bVirDev );
|
|
|
|
}
|
|
|
|
inline const SfxItemPool& ViewShell::GetAttrPool() const
|
|
|
|
{
|
|
|
|
return ((ViewShell*)this)->GetAttrPool();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //_VIEWSH_HXX
|