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_SOURCE_UI_INC_WRTSH_HXX
|
|
|
|
#define INCLUDED_SW_SOURCE_UI_INC_WRTSH_HXX
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
#include <com/sun/star/embed/XEmbeddedObject.hpp>
|
|
|
|
#include "swdllapi.h"
|
|
|
|
#include <fesh.hxx>
|
|
|
|
#include <sortopt.hxx>
|
|
|
|
#include <swurl.hxx>
|
2009-11-17 12:33:55 +01:00
|
|
|
#include <IMark.hxx>
|
2011-01-06 12:08:48 +01:00
|
|
|
#include "navmgr.hxx"
|
2013-08-29 17:16:44 +03:00
|
|
|
#include <boost/optional.hpp>
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
class Window;
|
|
|
|
class SbxArray;
|
|
|
|
class SwDoc;
|
|
|
|
class SwViewOption;
|
|
|
|
class SwFlyFrmAttrMgr;
|
|
|
|
class SwField;
|
|
|
|
class SwTOXBase;
|
|
|
|
class SwView;
|
|
|
|
class SvGlobalName;
|
|
|
|
class SwInputFieldList;
|
2010-03-16 11:28:30 +01:00
|
|
|
class SwSectionData;
|
2006-07-26 14:50:43 +00:00
|
|
|
class Timer;
|
|
|
|
class SvxMacro;
|
|
|
|
class SwFmtINetFmt;
|
|
|
|
class SvxAutoCorrect;
|
|
|
|
class NaviContentBookmark;
|
|
|
|
struct SwCallMouseEvent;
|
|
|
|
class SfxStringListItem;
|
|
|
|
|
|
|
|
namespace com { namespace sun { namespace star { namespace util {
|
|
|
|
struct SearchOptions;
|
|
|
|
} } } }
|
|
|
|
|
|
|
|
|
2007-09-27 11:15:57 +00:00
|
|
|
typedef sal_Int32 SelectionType;
|
|
|
|
namespace nsSelectionType
|
|
|
|
{
|
2011-04-21 21:52:58 +02:00
|
|
|
const SelectionType SEL_TXT = CNT_TXT; // text, never frames too 0x0001
|
|
|
|
const SelectionType SEL_GRF = CNT_GRF; // graphic 0x0002
|
|
|
|
const SelectionType SEL_OLE = CNT_OLE; // OLE 0x0010
|
|
|
|
const SelectionType SEL_FRM = 0x000020; // frame, no content type
|
|
|
|
const SelectionType SEL_NUM = 0x000040; // NumList
|
|
|
|
const SelectionType SEL_TBL = 0x000080; // cursor is in table
|
|
|
|
const SelectionType SEL_TBL_CELLS = 0x000100; // table cells are selected
|
|
|
|
const SelectionType SEL_DRW = 0x000200; // drawing objects (rectangle, circle...)
|
|
|
|
const SelectionType SEL_DRW_TXT = 0x000400; // draw-textobjects in edit mode
|
|
|
|
const SelectionType SEL_BEZ = 0x000800; // edit ornament objects
|
|
|
|
const SelectionType SEL_DRW_FORM = 0x001000; // drawing objects: DB-Forms
|
2007-09-27 11:15:57 +00:00
|
|
|
const SelectionType SEL_FOC_FRM_CTRL = 0x002000; // a form control is focused. Neither set nor evaluated by the SwWrtShell itself, only by it's clients.
|
|
|
|
const SelectionType SEL_MEDIA = 0x004000; // Media object
|
|
|
|
const SelectionType SEL_EXTRUDED_CUSTOMSHAPE = 0x008000; // extruded custom shape
|
|
|
|
const SelectionType SEL_FONTWORK = 0x010000; // fontwork
|
2008-02-19 12:57:36 +00:00
|
|
|
const SelectionType SEL_POSTIT = 0x020000; //annotation
|
2007-09-27 11:15:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-07-26 14:50:43 +00:00
|
|
|
class SW_DLLPUBLIC SwWrtShell: public SwFEShell
|
|
|
|
{
|
2007-10-22 14:25:39 +00:00
|
|
|
private:
|
|
|
|
using SwCrsrShell::Left;
|
|
|
|
using SwCrsrShell::Right;
|
|
|
|
using SwCrsrShell::Up;
|
|
|
|
using SwCrsrShell::Down;
|
|
|
|
using SwCrsrShell::LeftMargin;
|
|
|
|
using SwCrsrShell::RightMargin;
|
|
|
|
using SwCrsrShell::SelectTxtAttr;
|
|
|
|
using SwCrsrShell::GotoPage;
|
|
|
|
using SwFEShell::InsertObject;
|
|
|
|
using SwEditShell::AutoCorrect;
|
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
|
|
|
using SwCrsrShell::GotoMark;
|
2007-10-22 14:25:39 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
typedef long (SwWrtShell::*SELECTFUNC)(const Point *, sal_Bool bProp );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
SELECTFUNC fnDrag;
|
|
|
|
SELECTFUNC fnSetCrsr;
|
|
|
|
SELECTFUNC fnEndDrag;
|
|
|
|
SELECTFUNC fnKillSel;
|
|
|
|
|
2011-11-27 15:55:22 +09:00
|
|
|
public:
|
|
|
|
|
|
|
|
using SwEditShell::Insert;
|
|
|
|
|
|
|
|
long SetCursor (const Point* pPt, bool bProp) { return (this->*fnSetCrsr)(pPt, bProp); }
|
|
|
|
long Drag (const Point* pPt, bool bProp) { return (this->*fnDrag)(pPt, bProp); }
|
|
|
|
long EndDrag (const Point* pPt, bool bProp) { return (this->*fnEndDrag)(pPt, bProp); }
|
|
|
|
long KillSelection(const Point* pPt, bool bProp) { return (this->*fnKillSel)(pPt, bProp); }
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// reset all selections
|
2011-01-17 15:06:54 +01:00
|
|
|
long ResetSelect( const Point *, sal_Bool );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// resets the cursorstack after movement with PageUp/-Down if a stack is built up
|
2006-07-26 14:50:43 +00:00
|
|
|
inline void ResetCursorStack();
|
2007-09-27 11:15:57 +00:00
|
|
|
SelectionType GetSelectionType() const;
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2013-02-05 23:42:42 +09:00
|
|
|
bool IsModePushed() const { return 0 != pModeStack; }
|
2006-07-26 14:50:43 +00:00
|
|
|
void PushMode();
|
|
|
|
void PopMode();
|
|
|
|
|
|
|
|
void SttSelect();
|
|
|
|
void EndSelect();
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsInSelect() const { return bInSelect; }
|
|
|
|
void SetInSelect(sal_Bool bSel = sal_True) { bInSelect = bSel; }
|
2011-04-21 21:52:58 +02:00
|
|
|
// is there a text- or frameselection?
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool HasSelection() const { return SwCrsrShell::HasSelection() ||
|
2006-07-26 14:50:43 +00:00
|
|
|
IsMultiSelection() || IsSelFrmMode() || IsObjSelected(); }
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool Pop( sal_Bool bOldCrsr = sal_True );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
void EnterStdMode();
|
2013-02-05 23:42:42 +09:00
|
|
|
bool IsStdMode() const { return !bExtMode && !bAddMode && !bBlockMode; }
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
void EnterExtMode();
|
|
|
|
void LeaveExtMode();
|
|
|
|
long ToggleExtMode();
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsExtMode() const { return bExtMode; }
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
void EnterAddMode();
|
|
|
|
void LeaveAddMode();
|
|
|
|
long ToggleAddMode();
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsAddMode() const { return bAddMode; }
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2007-11-22 14:40:58 +00:00
|
|
|
void EnterBlockMode();
|
|
|
|
void LeaveBlockMode();
|
|
|
|
long ToggleBlockMode();
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsBlockMode() const { return bBlockMode; }
|
2007-11-22 14:40:58 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
void SetInsMode( sal_Bool bOn = sal_True );
|
2006-07-26 14:50:43 +00:00
|
|
|
void ToggleInsMode() { SetInsMode( !bIns ); }
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsInsMode() const { return bIns; }
|
|
|
|
void SetRedlineModeAndCheckInsMode( sal_uInt16 eMode );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
void EnterSelFrmMode(const Point *pStartDrag = 0);
|
|
|
|
void LeaveSelFrmMode();
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsSelFrmMode() const { return bLayoutMode; }
|
2011-04-21 21:52:58 +02:00
|
|
|
// reset selection of frames
|
2006-07-26 14:50:43 +00:00
|
|
|
void UnSelectFrm();
|
|
|
|
|
2009-09-18 10:15:03 +00:00
|
|
|
void Invalidate();
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// select table cells for editing of formulas in the ribbonbar
|
2011-01-17 15:06:54 +01:00
|
|
|
inline void SelTblCells( const Link &rLink, sal_Bool bMark = sal_True );
|
2006-07-26 14:50:43 +00:00
|
|
|
inline void EndSelTblCells();
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// leave per word or per line selection mode. Is usually called in MB-Up.
|
2013-02-05 23:42:42 +09:00
|
|
|
bool IsExtSel() const { return bSelWrd || bSelLn; }
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// query whether the active fnDrag pointer is set to BeginDrag
|
|
|
|
// is needed for MouseMove to work around bugs 55592/55931
|
2013-02-05 23:42:42 +09:00
|
|
|
inline bool Is_FnDragEQBeginDrag() const;
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// base requests
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsInWrd() { return IsInWord(); }
|
|
|
|
sal_Bool IsSttWrd() { return IsStartWord(); }
|
|
|
|
sal_Bool IsEndWrd();
|
2012-09-27 13:21:50 +09:00
|
|
|
bool IsSttOfPara() const { return IsSttPara(); }
|
|
|
|
bool IsEndOfPara() const { return IsEndPara(); }
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// select word / sentense
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool SelNearestWrd();
|
|
|
|
sal_Bool SelWrd (const Point * = 0, sal_Bool bProp=sal_False );
|
2011-04-16 22:42:13 -03:00
|
|
|
// #i32329# Enhanced selection
|
2011-01-17 15:06:54 +01:00
|
|
|
void SelSentence (const Point * = 0, sal_Bool bProp=sal_False );
|
|
|
|
void SelPara (const Point * = 0, sal_Bool bProp=sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
long SelAll();
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// basecursortravelling
|
2011-01-17 15:06:54 +01:00
|
|
|
typedef sal_Bool (SwWrtShell:: *FNSimpleMove)();
|
|
|
|
sal_Bool SimpleMove( FNSimpleMove, sal_Bool bSelect );
|
|
|
|
|
|
|
|
sal_Bool Left ( sal_uInt16 nMode, sal_Bool bSelect,
|
|
|
|
sal_uInt16 nCount, sal_Bool bBasicCall, sal_Bool bVisual = sal_False );
|
|
|
|
sal_Bool Right ( sal_uInt16 nMode, sal_Bool bSelect,
|
|
|
|
sal_uInt16 nCount, sal_Bool bBasicCall, sal_Bool bVisual = sal_False );
|
|
|
|
sal_Bool Up ( sal_Bool bSelect = sal_False, sal_uInt16 nCount = 1,
|
|
|
|
sal_Bool bBasicCall = sal_False );
|
|
|
|
sal_Bool Down ( sal_Bool bSelect = sal_False, sal_uInt16 nCount = 1,
|
|
|
|
sal_Bool bBasicCall = sal_False );
|
|
|
|
sal_Bool NxtWrd ( sal_Bool bSelect = sal_False ) { return SimpleMove( &SwWrtShell::_NxtWrd, bSelect ); }
|
|
|
|
sal_Bool PrvWrd ( sal_Bool bSelect = sal_False ) { return SimpleMove( &SwWrtShell::_PrvWrd, bSelect ); }
|
|
|
|
|
|
|
|
sal_Bool LeftMargin ( sal_Bool bSelect, sal_Bool bBasicCall );
|
|
|
|
sal_Bool RightMargin( sal_Bool bSelect, sal_Bool bBasicCall );
|
|
|
|
|
|
|
|
sal_Bool SttDoc ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool EndDoc ( sal_Bool bSelect = sal_False );
|
|
|
|
|
|
|
|
sal_Bool SttNxtPg ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool SttPrvPg ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool EndNxtPg ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool EndPrvPg ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool SttPg ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool EndPg ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool SttPara ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool EndPara ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool FwdPara ( sal_Bool bSelect = sal_False )
|
2006-07-26 14:50:43 +00:00
|
|
|
{ return SimpleMove( &SwWrtShell::_FwdPara, bSelect ); }
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool BwdPara ( sal_Bool bSelect = sal_False )
|
2006-07-26 14:50:43 +00:00
|
|
|
{ return SimpleMove( &SwWrtShell::_BwdPara, bSelect ); }
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool FwdSentence( sal_Bool bSelect = sal_False )
|
2006-07-26 14:50:43 +00:00
|
|
|
{ return SimpleMove( &SwWrtShell::_FwdSentence, bSelect ); }
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool BwdSentence( sal_Bool bSelect = sal_False )
|
2006-07-26 14:50:43 +00:00
|
|
|
{ return SimpleMove( &SwWrtShell::_BwdSentence, bSelect ); }
|
|
|
|
|
2011-04-16 22:42:13 -03:00
|
|
|
// #i20126# Enhanced table selection
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool SelectTableRowCol( const Point& rPt, const Point* pEnd = 0, bool bRowDrag = false );
|
|
|
|
sal_Bool SelectTableRow();
|
|
|
|
sal_Bool SelectTableCol();
|
|
|
|
sal_Bool SelectTableCell();
|
2007-09-27 11:15:57 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool SelectTxtAttr( sal_uInt16 nWhich, const SwTxtAttr* pAttr = 0 );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// per column jumps
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool StartOfColumn ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool EndOfColumn ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool StartOfNextColumn ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool EndOfNextColumn ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool StartOfPrevColumn ( sal_Bool bSelect = sal_False );
|
|
|
|
sal_Bool EndOfPrevColumn ( sal_Bool bSelect = sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// set the cursor to page "nPage" at the beginning
|
|
|
|
// additionally to a identically named implementation in crsrsh.hxx
|
|
|
|
// here all existing selections are being reset before setting the
|
|
|
|
// cursor
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool GotoPage( sal_uInt16 nPage, sal_Bool bRecord );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// setting the cursor; remember the old position for turning back
|
2006-07-26 14:50:43 +00:00
|
|
|
DECL_LINK( ExecFlyMac, void * );
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool PageCrsr(SwTwips lOffset, sal_Bool bSelect);
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// update fields
|
2013-11-18 11:29:24 +00:00
|
|
|
void UpdateInputFlds( SwInputFieldList* pLst = 0 );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2013-03-01 15:42:53 +09:00
|
|
|
void NoEdit(bool bHideCrsr = true);
|
2006-07-26 14:50:43 +00:00
|
|
|
void Edit();
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool IsRetainSelection() const { return mbRetainSelection; }
|
|
|
|
void SetRetainSelection( sal_Bool bRet ) { mbRetainSelection = bRet; }
|
2007-11-22 14:40:58 +00:00
|
|
|
|
2006-07-26 14:50:43 +00:00
|
|
|
// change current data base and notify
|
|
|
|
void ChgDBData(const SwDBData& SwDBData);
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// delete
|
2006-07-26 14:50:43 +00:00
|
|
|
long DelToEndOfLine();
|
|
|
|
long DelToStartOfLine();
|
|
|
|
long DelLine();
|
|
|
|
long DelLeft();
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// also deletes the frame or sets the cursor in the frame when bDelFrm == sal_False
|
2007-09-27 11:15:57 +00:00
|
|
|
long DelRight();
|
2006-07-26 14:50:43 +00:00
|
|
|
long DelToEndOfPara();
|
|
|
|
long DelToStartOfPara();
|
|
|
|
long DelToEndOfSentence();
|
|
|
|
long DelToStartOfSentence();
|
|
|
|
long DelNxtWord();
|
|
|
|
long DelPrvWord();
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// checks whether a word selection exists.
|
|
|
|
// According to the rules for intelligent Cut / Paste
|
|
|
|
// surrounding spaces are cut out.
|
|
|
|
// returns type of word selection (see enum)
|
2006-07-26 14:50:43 +00:00
|
|
|
enum word {
|
|
|
|
NO_WORD = 0,
|
|
|
|
WORD_SPACE_BEFORE = 1,
|
|
|
|
WORD_SPACE_AFTER = 2,
|
|
|
|
WORD_NO_SPACE = 3
|
|
|
|
};
|
2011-01-17 15:06:54 +01:00
|
|
|
int IntelligentCut(int nSelectionType, sal_Bool bCut = sal_True);
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// edit
|
2012-07-18 10:20:32 +01:00
|
|
|
void Insert(SwField &, SwPaM *pCommentRange = NULL);
|
2013-10-08 13:36:42 +02:00
|
|
|
void Insert(const OUString &);
|
2011-04-21 21:52:58 +02:00
|
|
|
// graphic
|
2013-10-08 13:36:42 +02:00
|
|
|
void Insert( const OUString &rPath, const OUString &rFilter,
|
2007-09-27 11:15:57 +00:00
|
|
|
const Graphic &, SwFlyFrmAttrMgr * = 0,
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool bRule = sal_False );
|
2007-09-27 11:15:57 +00:00
|
|
|
|
2013-10-08 13:36:42 +02:00
|
|
|
void InsertByWord( const OUString & );
|
2013-08-29 17:16:44 +03:00
|
|
|
void InsertPageBreak(const OUString *pPageDesc = 0, ::boost::optional<sal_uInt16> pPgNum = boost::none );
|
2006-07-26 14:50:43 +00:00
|
|
|
void InsertLineBreak();
|
|
|
|
void InsertColumnBreak();
|
2013-10-08 13:36:42 +02:00
|
|
|
void InsertFootnote(const OUString &, sal_Bool bEndNote = sal_False, sal_Bool bEdit = sal_True );
|
2011-01-17 15:06:54 +01:00
|
|
|
void SplitNode( sal_Bool bAutoFormat = sal_False, sal_Bool bCheckTableStart = sal_True );
|
2013-03-01 15:42:53 +09:00
|
|
|
bool CanInsert();
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// indexes
|
2006-07-26 14:50:43 +00:00
|
|
|
void InsertTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet = 0);
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool UpdateTableOf(const SwTOXBase& rTOX, const SfxItemSet* pSet = 0);
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// numbering and bullets
|
2006-07-26 14:50:43 +00:00
|
|
|
/**
|
|
|
|
Turns on numbering or bullets.
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
@param bNum sal_True: turn on numbering
|
|
|
|
sal_False: turn on bullets
|
2006-07-26 14:50:43 +00:00
|
|
|
*/
|
2011-01-17 15:06:54 +01:00
|
|
|
void NumOrBulletOn(sal_Bool bNum); // #i29560#
|
2006-07-26 14:50:43 +00:00
|
|
|
void NumOrBulletOff(); // #i29560#
|
|
|
|
void NumOn();
|
|
|
|
void BulletOn();
|
|
|
|
|
|
|
|
//OLE
|
2011-04-21 21:52:58 +02:00
|
|
|
void InsertObject( /*SvInPlaceObjectRef *pObj, */ // != 0 for clipboard
|
2006-07-26 14:50:43 +00:00
|
|
|
const svt::EmbeddedObjectRef&,
|
2011-04-21 21:52:58 +02:00
|
|
|
SvGlobalName *pName = 0, // != 0 create object accordingly
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool bActivate = sal_True,
|
2011-04-21 21:52:58 +02:00
|
|
|
sal_uInt16 nSlotId = 0); // SlotId for dialog
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool InsertOleObject( const svt::EmbeddedObjectRef& xObj, SwFlyFrmFmt **pFlyFrmFmt = 0 );
|
2011-04-21 21:52:58 +02:00
|
|
|
void LaunchOLEObj( long nVerb = 0 ); // start server
|
2008-09-26 14:43:26 +00:00
|
|
|
virtual void MoveObjectIfActive( svt::EmbeddedObjectRef& xObj, const Point& rOffset );
|
2006-07-26 14:50:43 +00:00
|
|
|
virtual void CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
|
|
|
|
const SwRect *pFlyPrtRect = 0,
|
2011-05-13 16:33:26 +02:00
|
|
|
const SwRect *pFlyFrmRect = 0,
|
|
|
|
const bool bNoTxtFrmPrtAreaChanged = false );
|
2006-07-26 14:50:43 +00:00
|
|
|
virtual void ConnectObj( svt::EmbeddedObjectRef& xIPObj, const SwRect &rPrt,
|
|
|
|
const SwRect &rFrm );
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// styles and formats
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// enum tells when should happen when the style was not found
|
|
|
|
enum GetStyle { GETSTYLE_NOCREATE, // create none
|
|
|
|
GETSTYLE_CREATESOME, // if on PoolId create mapt
|
|
|
|
GETSTYLE_CREATEANY }; // return standard if applicable
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2013-10-08 13:36:42 +02:00
|
|
|
SwTxtFmtColl* GetParaStyle(const OUString &rCollName,
|
2006-07-26 14:50:43 +00:00
|
|
|
GetStyle eCreate = GETSTYLE_NOCREATE);
|
2013-10-08 13:36:42 +02:00
|
|
|
SwCharFmt* GetCharStyle(const OUString &rFmtName,
|
2006-07-26 14:50:43 +00:00
|
|
|
GetStyle eCreate = GETSTYLE_NOCREATE);
|
2013-08-12 18:29:41 +02:00
|
|
|
SwFrmFmt* GetTblStyle(const OUString &rFmtName);
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2013-10-08 13:36:42 +02:00
|
|
|
void SetPageStyle(const OUString &rCollName);
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2013-10-08 13:36:42 +02:00
|
|
|
OUString GetCurPageStyle( const sal_Bool bCalcFrm = sal_True ) const;
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// change current style using the attributes in effect
|
2006-07-26 14:50:43 +00:00
|
|
|
void QuickUpdateStyle();
|
|
|
|
|
|
|
|
enum DoType { UNDO, REDO, REPEAT };
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
void Do( DoType eDoType, sal_uInt16 nCnt = 1 );
|
2013-10-08 13:36:42 +02:00
|
|
|
OUString GetDoString( DoType eDoType ) const;
|
|
|
|
OUString GetRepeatString() const;
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 GetDoStrings( DoType eDoType, SfxStringListItem& rStrLstItem ) const;
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// search and replace
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uLong SearchPattern(const com::sun::star::util::SearchOptions& rSearchOpt,
|
|
|
|
sal_Bool bSearchInNotes,
|
2006-07-26 14:50:43 +00:00
|
|
|
SwDocPositions eStart, SwDocPositions eEnde,
|
|
|
|
FindRanges eFlags = FND_IN_BODY,
|
2011-01-17 15:06:54 +01:00
|
|
|
int bReplace = sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2013-10-08 13:36:42 +02:00
|
|
|
sal_uLong SearchTempl (const OUString &rTempl,
|
2006-07-26 14:50:43 +00:00
|
|
|
SwDocPositions eStart, SwDocPositions eEnde,
|
|
|
|
FindRanges eFlags = FND_IN_BODY,
|
2013-10-08 13:36:42 +02:00
|
|
|
const OUString* pReplTempl = 0 );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uLong SearchAttr (const SfxItemSet& rFindSet,
|
|
|
|
sal_Bool bNoColls,
|
2006-07-26 14:50:43 +00:00
|
|
|
SwDocPositions eStart,SwDocPositions eEnde,
|
|
|
|
FindRanges eFlags = FND_IN_BODY,
|
|
|
|
const com::sun::star::util::SearchOptions* pSearchOpt = 0,
|
|
|
|
const SfxItemSet* pReplaceSet = 0);
|
|
|
|
|
|
|
|
void AutoCorrect( SvxAutoCorrect& rACorr, sal_Unicode cChar = ' ' );
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// action ahead of cursor movement
|
|
|
|
// resets selection if applicable, triggers timer and GCAttr()
|
2011-01-17 15:06:54 +01:00
|
|
|
void MoveCrsr( sal_Bool bWithSelect = sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// update input fields
|
2013-04-07 12:06:47 +02:00
|
|
|
sal_Bool StartInputFldDlg(SwField*, sal_Bool bNextButton, Window* pParentWin = 0, OString* pWindowState = 0);
|
2006-07-26 14:50:43 +00:00
|
|
|
// update DropDown fields
|
2013-04-07 12:06:47 +02:00
|
|
|
sal_Bool StartDropDownFldDlg(SwField*, sal_Bool bNextButton, OString* pWindowState = 0);
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
//"Handler" for changes at DrawView - for controls.
|
2007-09-27 11:15:57 +00:00
|
|
|
virtual void DrawSelChanged( );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// jump to bookmark and set the "selctions-flags" correctly again
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool GotoMark( const ::sw::mark::IMark* const pMark );
|
|
|
|
sal_Bool GotoMark( const ::sw::mark::IMark* const pMark, sal_Bool bSelect, sal_Bool bStart );
|
2013-04-07 12:06:47 +02:00
|
|
|
sal_Bool GotoMark( const OUString& rName );
|
2011-04-21 21:52:58 +02:00
|
|
|
sal_Bool GoNextBookmark(); // sal_True when there still was one
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool GoPrevBookmark();
|
2006-07-26 14:50:43 +00:00
|
|
|
|
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
|
|
|
bool GotoFieldmark(::sw::mark::IFieldmark const * const pMark);
|
2008-09-04 09:27:09 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool GotoField( const SwFmtFld& rFld );
|
2008-04-11 13:03:24 +00:00
|
|
|
|
2006-07-26 14:50:43 +00:00
|
|
|
// jump to the next / previous hyperlink - inside text and also
|
|
|
|
// on graphics
|
2013-02-05 23:42:42 +09:00
|
|
|
bool SelectNextPrevHyperlink( bool bNext = true );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// determine corresponding SwView
|
2006-07-26 14:50:43 +00:00
|
|
|
const SwView& GetView() const { return rView; }
|
|
|
|
SwView& GetView() { return rView; }
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// Because nobody else is doing it, here is a ExecMacro()
|
2013-08-24 19:00:32 +02:00
|
|
|
void ExecMacro( const SvxMacro& rMacro, OUString* pRet = 0, SbxArray* pArgs = 0 );
|
2011-04-21 21:52:58 +02:00
|
|
|
// call into the dark Basic/JavaScript
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCallEvent,
|
2012-10-19 03:59:48 +09:00
|
|
|
bool bCheckPtr = false, SbxArray* pArgs = 0,
|
2006-07-26 14:50:43 +00:00
|
|
|
const Link* pCallBack = 0 );
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// a click at the given field. the cursor is on it.
|
|
|
|
// execute the predefined actions.
|
2007-09-27 11:15:57 +00:00
|
|
|
void ClickToField( const SwField& rFld );
|
2011-01-17 15:06:54 +01:00
|
|
|
void ClickToINetAttr( const SwFmtINetFmt& rItem, sal_uInt16 nFilter = URLLOAD_NOFILTER );
|
2013-02-05 23:42:42 +09:00
|
|
|
bool ClickToINetGrf( const Point& rDocPt, sal_uInt16 nFilter = URLLOAD_NOFILTER );
|
|
|
|
inline bool IsInClickToEdit() const ;
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// if a URL-Button is selected, return its URL; otherwise an empty string
|
2013-10-04 22:03:44 +02:00
|
|
|
bool GetURLFromButton( OUString& rURL, OUString& rDescr ) const;
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
void NavigatorPaste( const NaviContentBookmark& rBkmk,
|
2011-01-17 15:06:54 +01:00
|
|
|
const sal_uInt16 nAction );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-03-16 13:45:30 +01:00
|
|
|
virtual void ApplyViewOptions( const SwViewOption &rOpt );
|
2011-09-09 09:13:10 +02:00
|
|
|
virtual void SetReadonlyOption( sal_Bool bSet );
|
2011-03-16 13:45:30 +01:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// automatic update of styles
|
2006-07-26 14:50:43 +00:00
|
|
|
void AutoUpdateFrame(SwFrmFmt* pFmt, const SfxItemSet& rStyleSet);
|
2011-10-07 16:55:03 +02:00
|
|
|
void AutoUpdatePara(SwTxtFmtColl* pColl, const SfxItemSet& rStyleSet, SwPaM* pPaM = NULL );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// link for inserting ranges via Drag&Drop/Clipboard
|
2010-03-16 11:28:30 +01:00
|
|
|
DECL_STATIC_LINK( SwWrtShell, InsertRegionDialog, SwSectionData* );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// ctor, the first one is a kind of a controlled copy ctor for more views of a document
|
2006-07-26 14:50:43 +00:00
|
|
|
SwWrtShell( SwWrtShell&, Window *pWin, SwView &rShell);
|
|
|
|
SwWrtShell( SwDoc& rDoc, Window *pWin, SwView &rShell,
|
2007-09-27 11:15:57 +00:00
|
|
|
const SwViewOption *pViewOpt = 0);
|
2006-07-26 14:50:43 +00:00
|
|
|
virtual ~SwWrtShell();
|
|
|
|
|
2013-02-05 23:42:42 +09:00
|
|
|
bool TryRemoveIndent(); // #i23725#
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2013-10-08 13:36:42 +02:00
|
|
|
OUString GetSelDescr() const;
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-01-06 12:08:48 +01:00
|
|
|
SwNavigationMgr& GetNavigationMgr();
|
|
|
|
void addCurrentPosition();
|
2013-10-08 13:36:42 +02:00
|
|
|
sal_Bool GotoFly( const OUString& rName, FlyCntType eType = FLYCNTTYPE_ALL,
|
2011-03-14 16:51:14 +00:00
|
|
|
sal_Bool bSelFrame = sal_True );
|
2012-10-30 11:27:06 +09:00
|
|
|
bool GotoINetAttr( const SwTxtINetFmt& rAttr );
|
2011-03-14 16:51:14 +00:00
|
|
|
void GotoOutline( sal_uInt16 nIdx );
|
2013-10-08 13:36:42 +02:00
|
|
|
bool GotoOutline( const OUString& rName );
|
|
|
|
bool GotoRegion( const OUString& rName );
|
|
|
|
sal_Bool GotoRefMark( const OUString& rRefMark, sal_uInt16 nSubType = 0,
|
2011-03-14 16:51:14 +00:00
|
|
|
sal_uInt16 nSeqNo = 0 );
|
2013-08-22 23:04:54 +02:00
|
|
|
sal_Bool GotoNextTOXBase( const OUString* pName = 0);
|
2013-10-08 13:36:42 +02:00
|
|
|
bool GotoTable( const OUString& rName );
|
2011-03-14 16:51:14 +00:00
|
|
|
sal_Bool GotoFld( const SwFmtFld& rFld );
|
|
|
|
const SwRedline* GotoRedline( sal_uInt16 nArrPos, sal_Bool bSelect = sal_False);
|
2011-01-06 12:08:48 +01:00
|
|
|
|
2013-10-08 13:36:42 +02:00
|
|
|
void ChangeHeaderOrFooter(const OUString& rStyleName, sal_Bool bHeader, sal_Bool bOn, sal_Bool bShowWarning);
|
2011-12-29 13:42:43 +01:00
|
|
|
virtual void SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow );
|
2011-09-13 11:32:11 +02:00
|
|
|
|
2006-07-26 14:50:43 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
SW_DLLPRIVATE void OpenMark();
|
2013-03-01 15:42:53 +09:00
|
|
|
SW_DLLPRIVATE void CloseMark( bool bOkFlag );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
struct ModeStack
|
|
|
|
{
|
|
|
|
ModeStack *pNext;
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool bAdd,
|
2007-11-22 14:40:58 +00:00
|
|
|
bBlock,
|
2006-07-26 14:50:43 +00:00
|
|
|
bExt,
|
|
|
|
bIns;
|
2011-01-17 15:06:54 +01:00
|
|
|
ModeStack(ModeStack *pNextMode, sal_Bool _bIns, sal_Bool _bExt, sal_Bool _bAdd, sal_Bool _bBlock):
|
2006-07-26 14:50:43 +00:00
|
|
|
pNext(pNextMode),
|
2007-09-27 11:15:57 +00:00
|
|
|
bAdd(_bAdd),
|
2007-11-22 14:40:58 +00:00
|
|
|
bBlock(_bBlock),
|
2006-07-26 14:50:43 +00:00
|
|
|
bExt(_bExt),
|
2007-09-27 11:15:57 +00:00
|
|
|
bIns(_bIns)
|
|
|
|
{}
|
2006-07-26 14:50:43 +00:00
|
|
|
} *pModeStack;
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// carry cursor along when PageUp / -Down
|
2006-07-26 14:50:43 +00:00
|
|
|
enum PageMove
|
|
|
|
{
|
|
|
|
MV_NO,
|
|
|
|
MV_PAGE_UP,
|
|
|
|
MV_PAGE_DOWN
|
|
|
|
} ePageMove;
|
|
|
|
|
|
|
|
struct CrsrStack
|
|
|
|
{
|
|
|
|
Point aDocPos;
|
|
|
|
CrsrStack *pNext;
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool bValidCurPos : 1;
|
|
|
|
sal_Bool bIsFrmSel : 1;
|
2006-07-26 14:50:43 +00:00
|
|
|
SwTwips lOffset;
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
CrsrStack( sal_Bool bValid, sal_Bool bFrmSel, const Point &rDocPos,
|
2006-07-26 14:50:43 +00:00
|
|
|
SwTwips lOff, CrsrStack *pN )
|
2007-09-27 11:15:57 +00:00
|
|
|
: aDocPos(rDocPos),
|
|
|
|
pNext(pN),
|
|
|
|
bValidCurPos( bValid ),
|
|
|
|
bIsFrmSel( bFrmSel ),
|
|
|
|
lOffset(lOff)
|
2006-07-26 14:50:43 +00:00
|
|
|
{
|
2007-09-27 11:15:57 +00:00
|
|
|
|
|
|
|
|
2006-07-26 14:50:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} *pCrsrStack;
|
|
|
|
|
|
|
|
SwView &rView;
|
2011-01-06 12:08:48 +01:00
|
|
|
SwNavigationMgr aNavigationMgr;
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
Point aDest;
|
2013-02-05 23:42:42 +09:00
|
|
|
bool bDestOnStack;
|
|
|
|
bool HasCrsrStack() const { return 0 != pCrsrStack; }
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE sal_Bool PushCrsr(SwTwips lOffset, sal_Bool bSelect);
|
|
|
|
SW_DLLPRIVATE sal_Bool PopCrsr(sal_Bool bUpdate, sal_Bool bSelect = sal_False);
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// take END cursor along when PageUp / -Down
|
2013-03-01 15:42:53 +09:00
|
|
|
SW_DLLPRIVATE bool _SttWrd();
|
|
|
|
SW_DLLPRIVATE bool _EndWrd();
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE sal_Bool _NxtWrd();
|
|
|
|
SW_DLLPRIVATE sal_Bool _PrvWrd();
|
2011-04-16 22:42:13 -03:00
|
|
|
// #i92468#
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE sal_Bool _NxtWrdForDelete();
|
|
|
|
SW_DLLPRIVATE sal_Bool _PrvWrdForDelete();
|
|
|
|
SW_DLLPRIVATE sal_Bool _FwdSentence();
|
|
|
|
SW_DLLPRIVATE sal_Bool _BwdSentence();
|
|
|
|
sal_Bool _FwdPara();
|
|
|
|
SW_DLLPRIVATE sal_Bool _BwdPara();
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// selections
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool bIns :1;
|
|
|
|
sal_Bool bInSelect :1;
|
|
|
|
sal_Bool bExtMode :1;
|
|
|
|
sal_Bool bAddMode :1;
|
|
|
|
sal_Bool bBlockMode :1;
|
|
|
|
sal_Bool bLayoutMode :1;
|
|
|
|
sal_Bool bCopy :1;
|
|
|
|
sal_Bool bSelWrd :1;
|
|
|
|
sal_Bool bSelLn :1;
|
2013-02-05 23:42:42 +09:00
|
|
|
bool bIsInClickToEdit:1;
|
2011-04-21 21:52:58 +02:00
|
|
|
sal_Bool bClearMark :1; // don't delete selection for ChartAutoPilot
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool mbRetainSelection :1; // Do not remove selections
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
Point aStart;
|
|
|
|
Link aSelTblLink;
|
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// resets the cursor stack after movement by PageUp/-Down
|
2006-07-26 14:50:43 +00:00
|
|
|
SW_DLLPRIVATE void _ResetCursorStack();
|
|
|
|
|
|
|
|
SW_DLLPRIVATE void SttDragDrop(Timer *);
|
2007-09-27 11:15:57 +00:00
|
|
|
|
|
|
|
using SwCrsrShell::SetCrsr;
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE long SetCrsr(const Point *, sal_Bool bProp=sal_False );
|
2007-09-27 11:15:57 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE long SetCrsrKillSel(const Point *, sal_Bool bProp=sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE long StdSelect(const Point *, sal_Bool bProp=sal_False );
|
|
|
|
SW_DLLPRIVATE long BeginDrag(const Point *, sal_Bool bProp=sal_False );
|
|
|
|
SW_DLLPRIVATE long Drag(const Point *, sal_Bool bProp=sal_False );
|
|
|
|
SW_DLLPRIVATE long EndDrag(const Point *, sal_Bool bProp=sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE long ExtSelWrd(const Point *, sal_Bool bProp=sal_False );
|
|
|
|
SW_DLLPRIVATE long ExtSelLn(const Point *, sal_Bool bProp=sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// move text from Drag and Drop; Point is destination for all selections.
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE long MoveText(const Point *, sal_Bool bProp=sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE long BeginFrmDrag(const Point *, sal_Bool bProp=sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-04-21 21:52:58 +02:00
|
|
|
// after SSize/Move of a frame update; Point is destination.
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE long UpdateLayoutFrm(const Point *, sal_Bool bProp=sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE long SttLeaveSelect(const Point *, sal_Bool bProp=sal_False );
|
|
|
|
SW_DLLPRIVATE long AddLeaveSelect(const Point *, sal_Bool bProp=sal_False );
|
|
|
|
SW_DLLPRIVATE long Ignore(const Point *, sal_Bool bProp=sal_False );
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE void LeaveExtSel() { bSelWrd = bSelLn = sal_False;}
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE sal_Bool GoStart(sal_Bool KeepArea = sal_False, sal_Bool * = 0,
|
|
|
|
sal_Bool bSelect = sal_False, sal_Bool bDontMoveRegion = sal_False);
|
|
|
|
SW_DLLPRIVATE sal_Bool GoEnd(sal_Bool KeepArea = sal_False, sal_Bool * = 0);
|
2006-07-26 14:50:43 +00:00
|
|
|
|
|
|
|
enum BookMarkMove
|
|
|
|
{
|
|
|
|
BOOKMARK_INDEX,
|
|
|
|
BOOKMARK_NEXT,
|
|
|
|
BOOKMARK_PREV,
|
|
|
|
BOOKMARK_LAST_LAST_ENTRY
|
|
|
|
};
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
SW_DLLPRIVATE sal_Bool MoveBookMark(BookMarkMove eFuncId, const ::sw::mark::IMark* const pMark=NULL);
|
2006-07-26 14:50:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
inline void SwWrtShell::ResetCursorStack()
|
|
|
|
{
|
|
|
|
if ( HasCrsrStack() )
|
|
|
|
_ResetCursorStack();
|
|
|
|
}
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
inline void SwWrtShell::SelTblCells(const Link &rLink, sal_Bool bMark )
|
2006-07-26 14:50:43 +00:00
|
|
|
{
|
2011-01-17 15:06:54 +01:00
|
|
|
SetSelTblCells( sal_True );
|
2006-07-26 14:50:43 +00:00
|
|
|
bClearMark = bMark;
|
|
|
|
aSelTblLink = rLink;
|
|
|
|
}
|
|
|
|
inline void SwWrtShell::EndSelTblCells()
|
|
|
|
{
|
2011-01-17 15:06:54 +01:00
|
|
|
SetSelTblCells( sal_False );
|
|
|
|
bClearMark = sal_True;
|
2006-07-26 14:50:43 +00:00
|
|
|
}
|
|
|
|
|
2013-02-05 23:42:42 +09:00
|
|
|
inline bool SwWrtShell::IsInClickToEdit() const { return bIsInClickToEdit; }
|
2006-07-26 14:50:43 +00:00
|
|
|
|
2013-02-05 23:42:42 +09:00
|
|
|
inline bool SwWrtShell::Is_FnDragEQBeginDrag() const
|
2006-07-26 14:50:43 +00:00
|
|
|
{
|
2012-12-27 14:03:18 +02:00
|
|
|
#ifdef __GNUC__
|
2006-07-26 14:50:43 +00:00
|
|
|
SELECTFUNC fnTmp = &SwWrtShell::BeginDrag;
|
|
|
|
return fnDrag == fnTmp;
|
|
|
|
#else
|
2013-02-05 23:42:42 +09:00
|
|
|
return fnDrag == &SwWrtShell::BeginDrag;
|
2006-07-26 14:50:43 +00:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|