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 .
|
|
|
|
*/
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_INC_VIEWSH_HXX
|
|
|
|
#define INCLUDED_SW_INC_VIEWSH_HXX
|
2010-09-30 16:01:37 +02:00
|
|
|
|
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>
|
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>
|
2013-10-22 15:14:13 +03:00
|
|
|
#include <boost/shared_ptr.hpp>
|
2011-05-10 16:33:13 +02:00
|
|
|
#include <stack>
|
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
|
|
|
|
|
|
|
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
|
|
|
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;
|
2009-08-14 13:56:56 +00:00
|
|
|
class SwPrintData;
|
2013-10-16 16:36:45 +02:00
|
|
|
class SwPagePreviewPrtData;
|
2000-09-18 16:15:01 +00:00
|
|
|
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
|
|
|
class SwPagePreviewLayout;
|
2006-02-01 13:19:33 +00:00
|
|
|
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;
|
2007-06-26 10:55:41 +00:00
|
|
|
class SdrPaintWindow;
|
2010-02-02 15:11:26 +01:00
|
|
|
class SwAccessibleMap;
|
2007-06-26 10:55:41 +00:00
|
|
|
|
2009-08-14 13:56:56 +00:00
|
|
|
namespace vcl
|
|
|
|
{
|
2009-08-19 07:32:06 +00:00
|
|
|
class OldStylePrintAdaptor;
|
2009-08-14 14:00:36 +00:00
|
|
|
}
|
2009-08-14 13:56:56 +00:00
|
|
|
|
2011-12-29 13:42:43 +01:00
|
|
|
enum FrameControlType
|
|
|
|
{
|
|
|
|
PageBreak,
|
|
|
|
Header,
|
|
|
|
Footer
|
|
|
|
};
|
2009-08-14 13:56:56 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Define for flags needed in ctor or layers below.
|
2013-10-16 16:36:45 +02:00
|
|
|
// Currently the Preview flag is needed for DrawPage.
|
2000-09-18 16:15:01 +00:00
|
|
|
#define VSHELLFLAG_ISPREVIEW ((long)0x1)
|
2013-10-22 15:14:13 +03:00
|
|
|
#define VSHELLFLAG_SHARELAYOUT ((long)0x2)
|
2010-06-13 15:22:56 +02:00
|
|
|
typedef boost::shared_ptr<SwRootFrm> SwRootFrmPtr;
|
2009-08-14 13:56:56 +00:00
|
|
|
|
2013-10-26 19:50:13 +02:00
|
|
|
class SW_DLLPUBLIC SwViewShell : public Ring
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2013-10-26 19:50:13 +02:00
|
|
|
friend void SetOutDev( SwViewShell *pSh, OutputDevice *pOut );
|
|
|
|
friend void SetOutDevAndWin( SwViewShell *pSh, OutputDevice *pOut,
|
2000-09-18 16:15:01 +00:00
|
|
|
Window *pWin, sal_uInt16 nZoom );
|
|
|
|
|
|
|
|
friend class SwViewImp;
|
|
|
|
friend class SwLayIdle;
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// For setting visible area for page preview paint.
|
2003-03-27 14:45:43 +00:00
|
|
|
friend class SwPagePreviewLayout;
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Set SwVisArea in order to enable clean formatting before printing.
|
2013-10-26 19:50:13 +02:00
|
|
|
friend void SetSwVisArea( SwViewShell *pSh, const SwRect & );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
static BitmapEx* mpReplaceBmp; ///< replaced display of still loaded images
|
|
|
|
static BitmapEx* mpErrorBmp; ///< error display of missed images
|
2007-08-03 12:39:19 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
static bool mbLstAct; // sal_True if EndAction of last Shell
|
2011-04-25 22:51:51 +02:00
|
|
|
// i.e. if the EndActions of the other
|
|
|
|
// Shells on the document are through.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
Point maPrtOffst; // Ofst for Printer,
|
2011-04-25 22:51:51 +02:00
|
|
|
// non-printable margin.
|
2013-02-23 12:33:14 +01:00
|
|
|
Size maBrowseBorder; // Border for frame documents.
|
|
|
|
SwRect maInvalidRect;
|
2000-10-25 10:53:58 +00:00
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
SfxViewShell *mpSfxViewShell;
|
2013-10-26 19:50:13 +02:00
|
|
|
SwViewImp *mpImp; // Core-internals of SwViewShell.
|
2011-04-25 22:51:51 +02:00
|
|
|
// The pointer is never 0.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
Window *mpWin; ///< = 0 during printing or pdf export
|
|
|
|
OutputDevice *mpOut; ///< 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
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
SwViewOption *mpOpt;
|
|
|
|
SwAccessibilityOptions* mpAccOptions;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool mbDocSizeChgd :1; // For DocChgNotify(): Announce new DocSize
|
2011-04-25 22:51:51 +02:00
|
|
|
// at EndAction to DocMDI.
|
2014-04-25 14:00:35 +02:00
|
|
|
bool mbPaintWorks :1; // Normal Painting if sal_True,
|
2011-04-25 22:51:51 +02:00
|
|
|
// remember Paint if sal_False.
|
2014-04-25 14:00:35 +02:00
|
|
|
bool mbPaintInProgress :1; // Block any double paint.
|
|
|
|
bool mbViewLocked :1; // Lock visible range;
|
2011-04-25 22:51:51 +02:00
|
|
|
// in this case MakeVisible is ineffectual.
|
2014-04-25 14:00:35 +02:00
|
|
|
bool mbInEndAction :1; // Avoid problems, cf. viewsh.cxx.
|
|
|
|
bool mbPreview :1; // If sal_True it is a Preview-SwViewShell.
|
|
|
|
bool mbFrameView :1; // If sal_True it is a (HTML-)Frame.
|
|
|
|
bool mbEnableSmooth :1; // Disable SmoothScroll, e.g. for drag
|
2011-04-25 22:51:51 +02:00
|
|
|
// of scrollbars.
|
2014-04-25 14:00:35 +02:00
|
|
|
bool mbEndActionByVirDev:1; // Paints from EndAction always via virtual device
|
2011-04-25 22:51:51 +02:00
|
|
|
// (e.g. when browsing).
|
2013-02-23 12:33:14 +01:00
|
|
|
bool mbShowHeaderSeparator:1; ///< Flag to say that we are showing the header control
|
|
|
|
bool mbShowFooterSeparator:1; ///< Flag to say that we are showing the footer control
|
|
|
|
bool mbHeaderFooterEdit:1; ///< Flag to say that we are editing header or footer (according to the bShow(Header|Footer)Separator above)
|
2011-04-25 22:51:51 +02:00
|
|
|
|
|
|
|
// boolean, indicating that class in in constructor.
|
2004-06-28 12:30:55 +00:00
|
|
|
bool mbInConstructor:1;
|
2013-11-15 16:18:42 +01:00
|
|
|
bool mbTiledRendering:1; ///< Set if we are doing the tiled rendering (using PaintTile()).
|
2004-06-28 12:30:55 +00:00
|
|
|
|
2007-06-26 10:55:41 +00:00
|
|
|
SdrPaintWindow* mpTargetPaintWindow;
|
|
|
|
OutputDevice* mpBufferedOut;
|
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
SwRootFrmPtr mpLayout;
|
2010-06-13 15:22:56 +02:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Initialization; called by the diverse constructors.
|
2014-02-03 14:43:37 +01:00
|
|
|
SAL_DLLPRIVATE void Init( const SwViewOption *pNewOpt );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
inline void ResetInvalidRect();
|
|
|
|
|
2014-02-03 14:43:37 +01:00
|
|
|
SAL_DLLPRIVATE void Reformat(); // Invalidates complete Layout (ApplyViewOption).
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-02-03 14:43:37 +01:00
|
|
|
SAL_DLLPRIVATE void PaintDesktop( const SwRect & ); // Collect values for painting of desktop
|
2011-04-25 22:51:51 +02:00
|
|
|
// and calling.
|
2013-10-16 16:36:45 +02:00
|
|
|
// PaintDesktop split. This pars is also used by PreviewPage.
|
2014-02-03 14:43:37 +01:00
|
|
|
SAL_DLLPRIVATE void _PaintDesktop( const SwRegionRects &rRegion );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
SAL_DLLPRIVATE bool CheckInvalidForPaint( const SwRect & ); // Direct Paint or rather
|
2011-04-25 22:51:51 +02:00
|
|
|
// trigger an action.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-02-03 14:43:37 +01:00
|
|
|
SAL_DLLPRIVATE void PrepareForPrint( const SwPrintData &rOptions );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-02-03 14:43:37 +01:00
|
|
|
SAL_DLLPRIVATE void ImplApplyViewOptions( const SwViewOption &rOpt );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
protected:
|
2013-02-23 12:33:14 +01:00
|
|
|
static ShellResource* mpShellRes; ///< Resources for the Shell.
|
|
|
|
static Window* mpCareWindow; ///< Avoid this window.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
SwRect maVisArea; ///< The modern version of VisArea.
|
|
|
|
SwDoc *mpDoc; ///< The document; never 0.
|
2000-10-25 10:53:58 +00:00
|
|
|
|
2014-06-25 14:04:25 +02:00
|
|
|
sal_uInt16 mnStartAction; ///< != 0 if at least one Action is active.
|
2013-02-23 12:33:14 +01:00
|
|
|
sal_uInt16 mnLockPaint; ///< != 0 if Paint is locked.
|
2013-09-16 12:12:42 +02:00
|
|
|
bool mbSelectAll; ///< Special select all mode: whole document selected, even if doc starts with table.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
TYPEINFO();
|
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
SwViewImp *Imp() { return mpImp; }
|
|
|
|
const SwViewImp *Imp() const { return mpImp; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
const SwNodes& GetNodes() const;
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// After change of printer; by Doc.
|
2009-09-01 15:16:12 +00:00
|
|
|
void InitPrt( OutputDevice *pOutDev );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Bracketing of actions belonging together.
|
2000-09-18 16:15:01 +00:00
|
|
|
inline void StartAction();
|
|
|
|
void ImplStartAction();
|
2014-04-25 14:00:35 +02:00
|
|
|
inline void EndAction( const bool bIdleEnd = false );
|
|
|
|
void ImplEndAction( const bool bIdleEnd = false );
|
2013-02-23 12:33:14 +01:00
|
|
|
sal_uInt16 ActionCount() const { return mnStartAction; }
|
2014-04-25 14:00:35 +02:00
|
|
|
bool ActionPend() const { return mnStartAction != 0; }
|
|
|
|
bool IsInEndAction() const { return mbInEndAction; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
void SetEndActionByVirDev( bool b ) { mbEndActionByVirDev = b; }
|
|
|
|
bool IsEndActionByVirDev() { return mbEndActionByVirDev; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// The ActionCount for all Shells is temporarily set to zero and then
|
|
|
|
// restored at the RootFrame via UNO.
|
2000-09-18 16:15:01 +00:00
|
|
|
void SetRestoreActions(sal_uInt16 nSet);
|
|
|
|
sal_uInt16 GetRestoreActions() const;
|
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
inline bool HasInvalidRect() const { return maInvalidRect.HasArea(); }
|
2000-09-18 16:15:01 +00:00
|
|
|
void ChgHyphenation() { Reformat(); }
|
2009-01-05 15:33:41 +00:00
|
|
|
void ChgNumberDigits();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool AddPaintRect( const SwRect &rRect );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
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:
|
2011-05-10 16:33:13 +02:00
|
|
|
std::stack<Region> mPrePostPaintRegions; // acts also as a lock counter (empty == not locked)
|
2007-01-22 14:10:09 +00:00
|
|
|
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; }
|
2006-11-14 14:07:32 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
virtual void Paint(const Rectangle &rRect);
|
2013-10-23 11:44:22 +02:00
|
|
|
|
|
|
|
/** Paint tile.
|
|
|
|
|
|
|
|
Sets the pOut so that the rRect is always painted over the entire
|
|
|
|
pOut, ie. starts in 0,0 and ends in width/height.
|
|
|
|
*/
|
2013-11-15 16:47:20 +01:00
|
|
|
void PaintTile(VirtualDevice &rDevice, int contextWidth, int contextHeight, int tilePosX, int tilePosY, long tileWidth, long tileHeight);
|
2013-10-23 11:44:22 +02:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsPaintInProgress() const { return mbPaintInProgress; }
|
2011-05-10 16:33:13 +02:00
|
|
|
bool IsDrawingLayerPaintInProgress() const { return !mPrePostPaintRegions.empty(); }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Notification that visible area has been changed.
|
|
|
|
// VisArea is reset, after that scrolling takes place.
|
|
|
|
// The passed rect is situated on pixel borders
|
|
|
|
// in order to avoid pixel errors when scrolling.
|
2000-09-18 16:15:01 +00:00
|
|
|
virtual void VisPortChgd( const SwRect & );
|
2014-04-25 14:00:35 +02:00
|
|
|
bool SmoothScroll( long lXDiff, long lYDiff, const Rectangle* );//Browser
|
|
|
|
void EnableSmooth( bool b ) { mbEnableSmooth = b; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
const SwRect& VisArea() const { return maVisArea; }
|
2011-04-25 22:51:51 +02:00
|
|
|
|
|
|
|
// If necessary scroll until passed Rect is situated in visible sector.
|
2000-09-18 16:15:01 +00:00
|
|
|
void MakeVisible( const SwRect & );
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// At nearest occasion pass new document size to UI.
|
2007-09-27 07:17:31 +00:00
|
|
|
void SizeChgNotify();
|
2011-04-25 22:51:51 +02:00
|
|
|
void UISizeNotify(); // Passing of current size.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
Point GetPagePos( sal_uInt16 nPageNum ) const;
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
sal_uInt16 GetNumPages(); // Ask count of current pages from layout.
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsDummyPage( sal_uInt16 nPageNum ) const; // An empty page?
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Invalidate first visible page for all Shells in ring.
|
2000-09-18 16:15:01 +00:00
|
|
|
void SetFirstVisPageInvalid();
|
|
|
|
|
2013-10-22 15:14:13 +03:00
|
|
|
SwRootFrm *GetLayout() const;
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsNewLayout() const; // Has Layout been loaded or created?
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
Size GetDocSize() const; // Get document size.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-05-06 20:43:43 +02:00
|
|
|
virtual void CalcLayout(); // Force complete formatting of layout.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2010-06-13 15:22:56 +02:00
|
|
|
sal_uInt16 GetPageCount() const;
|
|
|
|
|
|
|
|
const Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const;
|
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
inline SwDoc *GetDoc() const { return mpDoc; } //Never 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 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
|
|
|
|
*/
|
2010-12-15 09:14:02 +01:00
|
|
|
IDocumentUndoRedo const& GetIDocumentUndoRedo() const;
|
|
|
|
IDocumentUndoRedo & GetIDocumentUndoRedo();
|
2007-05-22 15:22:29 +00:00
|
|
|
|
2008-02-26 09:32:18 +00:00
|
|
|
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;
|
2013-02-23 12:33:14 +01:00
|
|
|
inline Window* GetWin() const { return mpWin; }
|
|
|
|
inline OutputDevice* GetOut() const { return mpOut; }
|
2003-04-01 08:52:21 +00:00
|
|
|
|
2013-11-29 13:03:27 +00:00
|
|
|
void SetWin(Window* win) { mpWin = win; }
|
2014-04-25 14:00:35 +02:00
|
|
|
static inline bool IsLstEndAction() { return SwViewShell::mbLstAct; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Change of all page descriptors.
|
2000-09-18 16:15:01 +00:00
|
|
|
void ChgAllPageOrientation( sal_uInt16 eOri );
|
|
|
|
void ChgAllPageSize( Size &rSz );
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Printing of one page.
|
2009-06-04 08:23:53 +00:00
|
|
|
// bIsPDFExport == true is: do PDF Export (no printing!)
|
2014-04-25 14:00:35 +02:00
|
|
|
bool PrintOrPDFExport( OutputDevice *pOutDev,
|
2010-09-30 16:03:07 +02:00
|
|
|
SwPrintData const& rPrintData,
|
2009-09-04 14:41:56 +00:00
|
|
|
sal_Int32 nRenderer /* offset in vector of pages to print */ );
|
2005-03-23 10:51:14 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Printing of one brochure page.
|
2009-08-14 13:56:56 +00:00
|
|
|
void PrintProspect( OutputDevice *pOutDev, const SwPrintData &rPrintData,
|
|
|
|
sal_Int32 nRenderer /* offset in vector of page pairs for prospect printing */ );
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Printing for OLE 2.0.
|
2009-08-14 13:56:56 +00:00
|
|
|
static void PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData& rOptions,
|
2000-09-18 16:15:01 +00:00
|
|
|
OutputDevice* pOleOut, const Rectangle& rRect );
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Fill temporary doc with selected text for Print or PDF export.
|
2002-11-14 09:34:44 +00:00
|
|
|
SwDoc * FillPrtDoc( SwDoc* pPrtDoc, const SfxPrinter* pPrt );
|
2002-11-11 12:45:25 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Called internally for Shell. Formats pages.
|
2009-12-08 13:00:42 +01:00
|
|
|
void CalcPagesForPrint( sal_uInt16 nMax );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// All about fields.
|
2014-04-25 14:00:35 +02:00
|
|
|
void UpdateFlds(bool bCloseDB = false);
|
|
|
|
bool IsAnyFieldInDoc() const;
|
2011-04-25 22:51:51 +02:00
|
|
|
// Update all charts, for that exists any table.
|
2000-09-18 16:15:01 +00:00
|
|
|
void UpdateAllCharts();
|
2014-04-25 14:00:35 +02:00
|
|
|
bool HasCharts() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2003-10-15 08:53:56 +00:00
|
|
|
// DOCUMENT COMPATIBILITY FLAGS START
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Add or maximize paragraph spacing?
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetParaSpaceMax( bool bNew );
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Add or maximize paragraph spacing?
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetParaSpaceMaxAtPages( bool bNew );
|
2001-05-03 09:14:42 +00:00
|
|
|
|
2011-04-25 22:51:51 +02: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
|
|
|
|
2011-04-25 22:51:51 +02: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
|
|
|
|
2011-04-25 22:51:51 +02: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
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// 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
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// 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
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Former object positioning.
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetUseFormerObjectPositioning( bool _bUseFormerObjPos );
|
2004-03-31 14:06:34 +00:00
|
|
|
|
2006-08-14 14:38:24 +00:00
|
|
|
void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos );
|
2004-08-02 12:59:09 +00:00
|
|
|
|
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
|
|
|
void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak );
|
|
|
|
|
2003-10-15 08:53:56 +00:00
|
|
|
// DOCUMENT COMPATIBILITY FLAGS END
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Calls Idle-formatter of Layout.
|
2000-09-18 16:15:01 +00:00
|
|
|
void LayoutIdle();
|
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
inline const SwViewOption *GetViewOptions() const { return mpOpt; }
|
2011-03-16 13:45:30 +01:00
|
|
|
virtual void ApplyViewOptions( const SwViewOption &rOpt );
|
2000-09-18 16:15:01 +00:00
|
|
|
void SetUIOptions( const SwViewOption &rOpt );
|
2014-04-25 14:00:35 +02:00
|
|
|
virtual void SetReadonlyOption(bool bSet); // Set readonly-bit of ViewOptions.
|
|
|
|
void SetPDFExportOption(bool bSet); // Set/reset PDF export mode.
|
|
|
|
void SetPrtFormatOption(bool bSet); // Set PrtFormat-Bit of ViewOptions.
|
|
|
|
void SetReadonlySelectionOption(bool bSet); // Change the selection mode in readonly docs.
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
const SwAccessibilityOptions* GetAccessibilityOptions() const { return mpAccOptions;}
|
2002-11-01 12:23:37 +00:00
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
static void SetShellRes( ShellResource* pRes ) { mpShellRes = 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 );
|
2013-10-26 19:50:13 +02:00
|
|
|
static Window* GetCareWin(SwViewShell& rVSh)
|
2013-02-23 12:33:14 +01:00
|
|
|
{ return mpCareWindow ? mpCareWindow : CareChildWin(rVSh); }
|
2013-10-26 19:50:13 +02:00
|
|
|
static Window* CareChildWin(SwViewShell& rVSh);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-02-23 12:33:14 +01:00
|
|
|
inline SfxViewShell *GetSfxViewShell() { return mpSfxViewShell; }
|
|
|
|
inline void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Selection of Draw ::com::sun::star::script::Engine has been changed.
|
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
|
|
|
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
|
|
|
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
|
|
|
*/
|
2010-09-30 16:03:07 +02:00
|
|
|
void AdjustOptionsForPagePreview( SwPrintData const& rPrintOptions );
|
2002-12-06 15:12:04 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsViewLocked() const { return mbViewLocked; }
|
|
|
|
void LockView( bool b ) { mbViewLocked = b; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
inline void LockPaint();
|
|
|
|
void ImplLockPaint();
|
2014-04-25 14:00:35 +02:00
|
|
|
inline void UnlockPaint( bool bVirDev = false );
|
|
|
|
void ImplUnlockPaint( bool bVirDev );
|
|
|
|
bool IsPaintLocked() const { return mnLockPaint != 0; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Get/set DrawView and PageView.
|
2014-04-25 14:00:35 +02:00
|
|
|
bool HasDrawView() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
void MakeDrawView();
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// DrawView may be used at UI.
|
2000-09-18 16:15:01 +00:00
|
|
|
SdrView *GetDrawView();
|
2013-10-26 19:50:13 +02:00
|
|
|
const SdrView *GetDrawView() const { return ((SwViewShell*)this)->GetDrawView(); }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Take care that MarkList is up-to-date in any case (Bug 57153).
|
2000-09-18 16:15:01 +00:00
|
|
|
SdrView *GetDrawViewWithValidMarkList();
|
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Query attribute pool.
|
2000-09-18 16:15:01 +00:00
|
|
|
inline const SfxItemPool& GetAttrPool() const;
|
|
|
|
SfxItemPool& GetAttrPool();
|
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsPreview() const { return mbPreview; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsFrameView() const { return mbFrameView; }
|
2000-09-18 16:15:01 +00:00
|
|
|
void SetFrameView( const Size& rBrowseBorder )
|
2014-04-25 14:00:35 +02:00
|
|
|
{ mbFrameView = true; maBrowseBorder = rBrowseBorder; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Makes the necessary invalidations:
|
|
|
|
// If BrowseMode has changed bBrowseChgd == sal_True
|
|
|
|
// or bBrowseChgd == sal_False in BrowseMode
|
|
|
|
// if proportions have changed.
|
2014-04-25 14:00:35 +02: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
|
|
|
|
|
|
|
::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
|
|
|
|
2013-10-16 16:36:45 +02:00
|
|
|
void ShowPreviewSelection( sal_uInt16 nSelPage );
|
2002-05-16 06:56:53 +00:00
|
|
|
void InvalidateAccessibleFocus();
|
2002-02-20 17:33:01 +00:00
|
|
|
|
2011-04-25 22:51:51 +02:00
|
|
|
// Apply Accessiblity options.
|
2002-05-06 11:11:40 +00:00
|
|
|
void ApplyAccessiblityOptions(SvtAccessibilityOptions& rAccessibilityOptions);
|
|
|
|
|
2006-02-01 13:19:33 +00:00
|
|
|
/** invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs
|
|
|
|
|
|
|
|
@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
|
|
|
|
|
|
|
|
@author OD
|
|
|
|
*/
|
|
|
|
void InvalidateAccessibleParaTextSelection();
|
|
|
|
|
2010-02-17 10:06:40 +01:00
|
|
|
/** invalidate attributes for paragraphs and paragraph's characters
|
2009-02-27 05:38:42 +00:00
|
|
|
|
2010-11-01 02:50:47 +02:00
|
|
|
usage also for changes of the attributes of
|
2010-02-17 10:06:40 +01:00
|
|
|
paragraph's characters.
|
2009-02-27 05:38:42 +00:00
|
|
|
|
|
|
|
@author OD
|
|
|
|
|
|
|
|
@param rTxtFrm
|
|
|
|
input parameter - paragraph frame, whose attributes have changed
|
|
|
|
*/
|
|
|
|
void InvalidateAccessibleParaAttrs( const SwTxtFrm& rTxtFrm );
|
|
|
|
|
2010-02-02 15:11:26 +01:00
|
|
|
SwAccessibleMap* GetAccessibleMap();
|
|
|
|
|
2013-10-26 19:50:13 +02:00
|
|
|
SwViewShell( SwViewShell&, Window *pWin = 0, OutputDevice *pOut = 0,
|
2000-09-18 16:15:01 +00:00
|
|
|
long nFlags = 0 );
|
2013-10-26 19:50:13 +02:00
|
|
|
SwViewShell( SwDoc& rDoc, Window *pWin,
|
2000-09-18 16:15:01 +00:00
|
|
|
const SwViewOption *pOpt = 0, OutputDevice *pOut = 0,
|
|
|
|
long nFlags = 0 );
|
2013-10-26 19:50:13 +02:00
|
|
|
virtual ~SwViewShell();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-09-08 15:08:51 +00:00
|
|
|
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
|
|
|
|
|
|
|
static const BitmapEx& GetReplacementBitmap( bool bIsErrorState );
|
|
|
|
static void DeleteReplacementBitmaps();
|
2008-03-07 13:49:53 +00:00
|
|
|
|
2013-10-26 19:50:13 +02:00
|
|
|
const SwPostItMgr* GetPostItMgr() const { return (const_cast<SwViewShell*>(this))->GetPostItMgr(); }
|
2008-03-07 13:49:53 +00:00
|
|
|
SwPostItMgr* GetPostItMgr();
|
2011-06-29 10:31:24 +02:00
|
|
|
|
2011-12-29 13:42:43 +01:00
|
|
|
/// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
|
|
|
|
void ToggleHeaderFooterEdit();
|
|
|
|
/// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
|
2013-02-23 12:33:14 +01:00
|
|
|
bool IsHeaderFooterEdit() const { return mbHeaderFooterEdit; }
|
|
|
|
bool IsShowHeaderFooterSeparator( FrameControlType eControl ) { return (eControl == Header)? mbShowHeaderSeparator: mbShowFooterSeparator; }
|
|
|
|
virtual void SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow ) { if ( eControl == Header ) mbShowHeaderSeparator = bShow; else mbShowFooterSeparator = bShow; }
|
2013-09-16 12:12:42 +02:00
|
|
|
bool IsSelectAll() { return mbSelectAll; }
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2014-04-21 19:28:47 -04:00
|
|
|
// manages global ShellPointer
|
2000-09-18 16:15:01 +00:00
|
|
|
class CurrShell
|
|
|
|
{
|
|
|
|
public:
|
2013-10-26 19:50:13 +02:00
|
|
|
SwViewShell *pPrev;
|
2000-09-18 16:15:01 +00:00
|
|
|
SwRootFrm *pRoot;
|
|
|
|
|
2013-10-26 19:50:13 +02:00
|
|
|
CurrShell( SwViewShell *pNew );
|
2000-09-18 16:15:01 +00:00
|
|
|
~CurrShell();
|
|
|
|
};
|
|
|
|
|
2013-10-26 19:50:13 +02:00
|
|
|
inline void SwViewShell::ResetInvalidRect()
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2013-02-23 12:33:14 +01:00
|
|
|
maInvalidRect.Clear();
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
2006-08-14 14:38:24 +00:00
|
|
|
|
2013-10-26 19:50:13 +02:00
|
|
|
inline void SwViewShell::StartAction()
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2013-02-23 12:33:14 +01:00
|
|
|
if ( !mnStartAction++ )
|
2000-09-18 16:15:01 +00:00
|
|
|
ImplStartAction();
|
|
|
|
}
|
2014-04-25 14:00:35 +02:00
|
|
|
inline void SwViewShell::EndAction( const bool bIdleEnd )
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2013-02-23 12:33:14 +01:00
|
|
|
if( 0 == (mnStartAction - 1) )
|
2000-09-18 16:15:01 +00:00
|
|
|
ImplEndAction( bIdleEnd );
|
2013-02-23 12:33:14 +01:00
|
|
|
--mnStartAction;
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
2013-10-26 19:50:13 +02:00
|
|
|
inline void SwViewShell::LockPaint()
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2013-02-23 12:33:14 +01:00
|
|
|
if ( !mnLockPaint++ )
|
2000-09-18 16:15:01 +00:00
|
|
|
ImplLockPaint();
|
|
|
|
}
|
2014-04-25 14:00:35 +02:00
|
|
|
inline void SwViewShell::UnlockPaint( bool bVirDev )
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2013-02-23 12:33:14 +01:00
|
|
|
if ( 0 == --mnLockPaint )
|
2000-09-18 16:15:01 +00:00
|
|
|
ImplUnlockPaint( bVirDev );
|
|
|
|
}
|
2013-10-26 19:50:13 +02:00
|
|
|
inline const SfxItemPool& SwViewShell::GetAttrPool() const
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2013-10-26 19:50:13 +02:00
|
|
|
return ((SwViewShell*)this)->GetAttrPool();
|
2000-09-18 16:15:01 +00:00
|
|
|
}
|
|
|
|
|
2013-11-05 02:17:53 +01:00
|
|
|
#endif // INCLUDED_SW_INC_VIEWSH_HXX
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|