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 .
|
|
|
|
*/
|
2014-06-03 10:01:18 +02:00
|
|
|
#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_EDTWIN_HXX
|
|
|
|
#define INCLUDED_SW_SOURCE_UIBASE_INC_EDTWIN_HXX
|
2007-09-27 10:59:04 +00:00
|
|
|
|
2015-05-06 18:08:16 +02:00
|
|
|
#include <sot/exchange.hxx>
|
2007-09-27 10:59:04 +00:00
|
|
|
#include <svx/svdobj.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <tools/link.hxx>
|
|
|
|
#include <vcl/timer.hxx>
|
2015-01-14 10:21:20 +01:00
|
|
|
#include <vcl/idle.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <vcl/window.hxx>
|
2001-03-23 14:39:59 +00:00
|
|
|
#include <svtools/transfer.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <swevent.hxx>
|
2015-06-11 16:57:36 +01:00
|
|
|
#include <swtypes.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
class SwWrtShell;
|
|
|
|
class SwView;
|
|
|
|
class SwRect;
|
2013-10-26 19:50:13 +02:00
|
|
|
class SwViewShell;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwAnchorMarker;
|
|
|
|
class SdrObject;
|
|
|
|
class SwShadowCursor;
|
|
|
|
class DataChangedEvent;
|
2004-02-03 15:41:48 +00:00
|
|
|
class SvxAutoCorrCfg;
|
2002-11-06 11:50:23 +00:00
|
|
|
class SvxAutoCorrect;
|
2006-03-14 08:38:13 +00:00
|
|
|
class SwPaM;
|
2000-09-18 16:15:01 +00:00
|
|
|
struct SwApplyTemplate;
|
|
|
|
struct QuickHelpData;
|
2011-09-05 15:01:31 +02:00
|
|
|
class SdrDropMarkerOverlay;
|
2015-06-11 16:57:36 +01:00
|
|
|
class SwFrameControlsManager;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-05-25 21:26:51 -04:00
|
|
|
// input window
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-09-04 20:36:54 +02:00
|
|
|
/** Window class for the Writer edit area, this is the one handling mouse
|
|
|
|
and keyboard events and doing the final painting of the document from
|
|
|
|
the buffered layout.
|
|
|
|
|
|
|
|
To translate the pixel positions from the buffer OutputDevice to the real
|
|
|
|
pixel positions, use the PixelToLogic methods of this class.
|
|
|
|
*/
|
2014-09-23 11:20:40 +02:00
|
|
|
class SwEditWin: public vcl::Window,
|
2001-03-23 14:39:59 +00:00
|
|
|
public DropTargetHelper, public DragSourceHelper
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
2013-10-26 19:50:13 +02:00
|
|
|
friend void ScrollMDI(SwViewShell* pVwSh, const SwRect&,
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 nRangeX, sal_uInt16 nRangeY);
|
2014-04-25 14:00:35 +02:00
|
|
|
friend bool IsScrollMDI(SwViewShell* pVwSh, const SwRect&);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-10-26 19:50:13 +02:00
|
|
|
friend void SizeNotify(SwViewShell* pVwSh, const Size &);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-10-26 19:50:13 +02:00
|
|
|
friend void PageNumNotify( SwViewShell* pVwSh,
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 nPhyNum,
|
|
|
|
sal_uInt16 nVirtNum,
|
2013-10-09 11:33:58 +02:00
|
|
|
const OUString& rPg );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-03-09 16:25:14 +01:00
|
|
|
static QuickHelpData* m_pQuickHlpData;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-03-09 16:25:14 +01:00
|
|
|
static long m_nDDStartPosX, m_nDDStartPosY;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-05 11:43:48 +02:00
|
|
|
static Color m_aWaterCanTextColor; // text color; for the watering can
|
|
|
|
static Color m_aWaterCanTextBackColor; // text background; for the watering can
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
/*
|
2011-04-21 16:51:03 +02:00
|
|
|
* timer and handler for scrolling on when the mousepointer
|
2015-05-04 10:29:18 +02:00
|
|
|
* stops outside of EditWin during a drag-operation.
|
2011-04-21 16:51:03 +02:00
|
|
|
* The selection is increased towards the mouse position
|
|
|
|
* regularly.
|
2000-09-18 16:15:01 +00:00
|
|
|
*/
|
2013-03-09 16:25:14 +01:00
|
|
|
AutoTimer m_aTimer;
|
2011-04-21 16:51:03 +02:00
|
|
|
// timer for overlapping KeyInputs (e.g. for tables)
|
2013-03-09 16:25:14 +01:00
|
|
|
Timer m_aKeyInputTimer;
|
2014-11-17 09:18:52 +00:00
|
|
|
// timer for ANY-KeyInput question without a following KeyInputEvent
|
2013-03-09 16:25:14 +01:00
|
|
|
Timer m_aKeyInputFlushTimer;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-10-09 11:33:58 +02:00
|
|
|
OUString m_aInBuffer;
|
2013-03-09 16:25:14 +01:00
|
|
|
LanguageType m_eBufferLanguage;
|
|
|
|
Point m_aStartPos;
|
|
|
|
Point m_aMovePos;
|
|
|
|
Point m_aRszMvHdlPt;
|
2014-11-14 15:31:13 +00:00
|
|
|
Idle m_aTemplateIdle;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-21 16:51:03 +02:00
|
|
|
// type/object where the mouse pointer is
|
2013-03-09 16:25:14 +01:00
|
|
|
SwCallMouseEvent m_aSaveCallEvent;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-03-09 16:25:14 +01:00
|
|
|
SwApplyTemplate *m_pApplyTempl;
|
|
|
|
SwAnchorMarker *m_pAnchorMarker; // for relocating the anchor
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-03-09 16:25:14 +01:00
|
|
|
SdrDropMarkerOverlay *m_pUserMarker;
|
|
|
|
SdrObject *m_pUserMarkerObj;
|
|
|
|
SwShadowCursor *m_pShadCrsr;
|
|
|
|
Point *m_pRowColumnSelectionStart; // save position where table row/column selection has been started
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-03-09 16:25:14 +01:00
|
|
|
SwView &m_rView;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-03-09 16:25:14 +01:00
|
|
|
int m_aActHitType; // current mouse pointer
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-03-12 14:53:28 +02:00
|
|
|
SotClipboardFormatId m_nDropFormat; // format from the last QueryDrop
|
2014-02-19 09:39:01 +00:00
|
|
|
sal_uInt16 m_nDropAction; // action from the last QueryDrop
|
2015-02-24 15:13:23 +02:00
|
|
|
SotExchangeDest m_nDropDestination; // destination from the last QueryDrop
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-02-19 09:39:01 +00:00
|
|
|
sal_uInt16 m_eBezierMode;
|
|
|
|
sal_uInt16 m_nInsFrmColCount; // column number for interactive frame
|
2013-03-09 16:25:14 +01:00
|
|
|
SdrObjKind m_eDrawMode;
|
2014-04-25 14:00:35 +02:00
|
|
|
bool m_bMBPressed : 1,
|
2013-03-09 16:25:14 +01:00
|
|
|
m_bInsDraw : 1,
|
|
|
|
m_bInsFrm : 1,
|
|
|
|
m_bIsInMove : 1,
|
|
|
|
m_bIsInDrag : 1, // don't execute StartExecuteDrag twice
|
|
|
|
m_bOldIdle : 1, // to stop to idle
|
|
|
|
m_bOldIdleSet : 1, // during QeueryDrop
|
2015-05-20 13:05:49 +02:00
|
|
|
m_bTableInsDelMode : 1,
|
|
|
|
m_bTableIsInsMode : 1,
|
2013-03-09 16:25:14 +01:00
|
|
|
m_bChainMode : 1, // connect frames
|
|
|
|
m_bWasShdwCrsr : 1, // ShadowCrsr was on in MouseButtonDown
|
|
|
|
m_bLockInput : 1, // lock while calc panel is active
|
|
|
|
m_bIsRowDrag : 1, //selection of rows is used, in combination with m_pRowColumnSelectionStart
|
2006-07-26 11:17:36 +00:00
|
|
|
/** #i42732# display status of font size/name depending on either the input language or the
|
|
|
|
selection position depending on what has changed lately
|
|
|
|
*/
|
2013-03-09 16:25:14 +01:00
|
|
|
m_bUseInputLanguage: 1,
|
|
|
|
m_bObjectSelect : 1;
|
2006-07-26 11:17:36 +00:00
|
|
|
|
2013-03-09 16:25:14 +01:00
|
|
|
sal_uInt16 m_nKS_NUMDOWN_Count; // #i23725#
|
|
|
|
sal_uInt16 m_nKS_NUMINDENTINC_Count;
|
2004-04-07 11:45:36 +00:00
|
|
|
|
2015-06-11 16:57:36 +01:00
|
|
|
SwFrameControlsManager *m_pFrameControlsManager;
|
2011-09-04 20:31:18 +02:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
void LeaveArea(const Point &);
|
|
|
|
void JustifyAreaTimer();
|
|
|
|
inline void EnterArea();
|
|
|
|
|
|
|
|
void RstMBDownFlags();
|
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
void ChangeFly( sal_uInt8 nDir, bool bWeb = false );
|
2011-01-17 15:06:54 +01:00
|
|
|
void ChangeDrawing( sal_uInt8 nDir );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool EnterDrawMode(const MouseEvent& rMEvt, const Point& aDocPos);
|
|
|
|
bool RulerColumnDrag( const MouseEvent& rMEvt, bool bVerticalMode);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-21 16:51:03 +02:00
|
|
|
// helper function for D&D
|
2000-09-18 16:15:01 +00:00
|
|
|
void DropCleanup();
|
|
|
|
void CleanupDropUserMarker();
|
2015-02-24 15:13:23 +02:00
|
|
|
SotExchangeDest GetDropDestination( const Point& rPixPnt,
|
2001-09-11 14:16:10 +00:00
|
|
|
SdrObject ** ppObj = 0 );
|
2004-05-17 16:28:39 +00:00
|
|
|
//select the object/cursor at the mouse position of the context menu request
|
2014-04-25 14:00:35 +02:00
|
|
|
bool SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
/*
|
2011-04-21 16:51:03 +02:00
|
|
|
* handler for scrolling on when the mousepointer
|
|
|
|
* stopps outside of EditWin during a drag-operation.
|
|
|
|
* The selection is regularly increased towards the mouse
|
|
|
|
* position.
|
2000-09-18 16:15:01 +00:00
|
|
|
*/
|
2015-05-04 17:28:40 +02:00
|
|
|
DECL_LINK_TYPED( TimerHandler, Timer *, void );
|
2000-09-18 16:15:01 +00:00
|
|
|
void StartDDTimer();
|
|
|
|
void StopDDTimer(SwWrtShell *, const Point &);
|
2015-05-04 17:28:40 +02:00
|
|
|
DECL_LINK_TYPED( DDHandler, Timer *, void );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
// timer for ANY-KeyInut question without a following KeyInputEvent
|
2015-05-04 17:28:40 +02:00
|
|
|
DECL_LINK_TYPED( KeyInputFlushHandler, Timer *, void );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-21 16:51:03 +02:00
|
|
|
// timer for overlapping KeyInputs (e.g. for tables)
|
2015-05-04 17:28:40 +02:00
|
|
|
DECL_LINK_TYPED( KeyInputTimerHandler, Timer *, void );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-21 16:51:03 +02:00
|
|
|
// timer for ApplyTemplates via mouse (in disguise Drag&Drop)
|
2015-05-05 09:59:27 +02:00
|
|
|
DECL_LINK_TYPED( TemplateTimerHdl, Idle *, void );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-03-04 20:27:49 +00:00
|
|
|
void MoveCursor( SwWrtShell &rSh, const Point& rDocPos,
|
2014-08-07 17:35:14 +02:00
|
|
|
const bool bOnlyText, bool bLockView );
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
protected:
|
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void DataChanged( const DataChangedEvent& ) SAL_OVERRIDE;
|
2015-05-13 13:36:14 +09:00
|
|
|
virtual void PrePaint(vcl::RenderContext& rRenderContext) SAL_OVERRIDE;
|
|
|
|
virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void GetFocus() SAL_OVERRIDE;
|
|
|
|
virtual void LoseFocus() SAL_OVERRIDE;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE;
|
|
|
|
virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE;
|
|
|
|
virtual void MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE;
|
|
|
|
virtual void RequestHelp(const HelpEvent& rEvt) SAL_OVERRIDE;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2001-03-23 14:39:59 +00:00
|
|
|
// Drag & Drop Interface
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) SAL_OVERRIDE;
|
|
|
|
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) SAL_OVERRIDE;
|
|
|
|
virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ) SAL_OVERRIDE;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual OUString GetSurroundingText() const SAL_OVERRIDE;
|
|
|
|
virtual Selection GetSurroundingTextSelection() const SAL_OVERRIDE;
|
2009-01-06 16:42:28 +00:00
|
|
|
|
2013-10-09 11:33:58 +02:00
|
|
|
void ShowAutoTextCorrectQuickHelp( const OUString& rWord, SvxAutoCorrCfg* pACfg,
|
2012-10-16 18:29:11 +09:00
|
|
|
SvxAutoCorrect* pACorr, bool bFromIME = false );
|
2011-12-28 20:01:57 +01:00
|
|
|
|
|
|
|
/// Returns true if in header/footer area, or in the header/footer control.
|
2011-12-29 13:42:43 +01:00
|
|
|
bool IsInHeaderFooter( const Point &rDocPt, FrameControlType &rControl ) const;
|
2012-11-22 10:47:17 +01:00
|
|
|
|
2012-11-23 17:51:16 +01:00
|
|
|
bool IsOverHeaderFooterFly( const Point& rDocPos, FrameControlType& rControl, bool& bOverFly, bool& bPageAnchored ) const;
|
2000-09-18 16:15:01 +00:00
|
|
|
public:
|
|
|
|
|
2015-04-03 12:29:28 +02:00
|
|
|
virtual void KeyInput(const KeyEvent &rKEvt) SAL_OVERRIDE;
|
2011-01-17 15:06:54 +01:00
|
|
|
void UpdatePointer(const Point &, sal_uInt16 nButtons = 0);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
bool IsDrawSelMode();
|
2015-02-11 13:20:49 +02:00
|
|
|
bool IsDrawAction() { return m_bInsDraw; }
|
2014-04-25 14:00:35 +02:00
|
|
|
void SetDrawAction(bool bFlag) { m_bInsDraw = bFlag; }
|
2007-09-27 10:59:04 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
void SetObjectSelect( bool bVal ) { m_bObjectSelect = bVal; }
|
|
|
|
bool IsObjectSelect() const { return m_bObjectSelect; }
|
2007-09-27 10:59:04 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
inline SdrObjKind GetSdrDrawMode() const { return m_eDrawMode; }
|
|
|
|
inline void SetSdrDrawMode( SdrObjKind eSdrObjectKind ) { m_eDrawMode = eSdrObjectKind; SetObjectSelect( false ); }
|
|
|
|
void StdDrawMode( SdrObjKind eSdrObjectKind, bool bObjSelect );
|
2007-09-27 10:59:04 +00:00
|
|
|
|
2015-02-11 13:20:49 +02:00
|
|
|
bool IsFrmAction() const { return m_bInsFrm; }
|
2014-02-19 09:39:01 +00:00
|
|
|
sal_uInt16 GetBezierMode() const { return m_eBezierMode; }
|
2013-03-09 16:25:14 +01:00
|
|
|
void SetBezierMode(sal_uInt16 eBezMode) { m_eBezierMode = eBezMode; }
|
2011-04-21 16:51:03 +02:00
|
|
|
void EnterDrawTextMode(const Point& aDocPos); // turn on DrawTextEditMode
|
2011-01-17 15:06:54 +01:00
|
|
|
void InsFrm(sal_uInt16 nCols);
|
2000-09-18 16:15:01 +00:00
|
|
|
void StopInsFrm();
|
2014-02-19 09:39:01 +00:00
|
|
|
sal_uInt16 GetFrmColCount() const {return m_nInsFrmColCount;} // column number for interactive frame
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-04-25 14:00:35 +02:00
|
|
|
void SetChainMode( bool bOn );
|
|
|
|
bool IsChainMode() const { return m_bChainMode; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2004-06-17 15:05:39 +00:00
|
|
|
void FlushInBuffer();
|
2015-05-04 10:29:18 +02:00
|
|
|
static bool IsInputSequenceCheckingRequired( const OUString &rText, const SwPaM& rCrsr );
|
2006-03-14 08:38:13 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
void SetApplyTemplate(const SwApplyTemplate &);
|
2013-03-09 16:25:14 +01:00
|
|
|
SwApplyTemplate* GetApplyTemplate() const { return m_pApplyTempl; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
void StartExecuteDrag();
|
2001-03-23 14:39:59 +00:00
|
|
|
void DragFinished();
|
2015-03-12 14:53:28 +02:00
|
|
|
sal_uInt16 GetDropAction() const { return m_nDropAction; }
|
|
|
|
SotClipboardFormatId GetDropFormat() const { return m_nDropFormat; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-05 11:43:48 +02:00
|
|
|
static Color GetWaterCanTextColor() { return m_aWaterCanTextColor; }
|
2007-09-27 10:59:04 +00:00
|
|
|
|
2015-05-05 11:43:48 +02:00
|
|
|
static void SetWaterCanTextColor(const Color& rCol ) { m_aWaterCanTextColor = rCol; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-05-05 11:43:48 +02:00
|
|
|
static Color GetWaterCanTextBackColor()
|
|
|
|
{ return m_aWaterCanTextBackColor; }
|
|
|
|
static void SetWaterCanTextBackColor(const Color& rCol )
|
|
|
|
{ m_aWaterCanTextBackColor = rCol; }
|
2014-04-25 14:00:35 +02:00
|
|
|
void LockKeyInput(bool bSet){m_bLockInput = bSet;}
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-03-09 16:25:14 +01:00
|
|
|
const SwView &GetView() const { return m_rView; }
|
|
|
|
SwView &GetView() { return m_rView; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible() SAL_OVERRIDE;
|
2002-02-14 09:34:12 +00:00
|
|
|
|
2013-03-09 16:25:14 +01:00
|
|
|
static inline long GetDDStartPosX() { return m_nDDStartPosX; }
|
|
|
|
static inline long GetDDStartPosY() { return m_nDDStartPosY; }
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
static void _InitStaticData();
|
|
|
|
static void _FinitStaticData();
|
|
|
|
|
2003-03-27 14:45:43 +00:00
|
|
|
//#i3370# remove quick help to prevent saving of autocorrection suggestions
|
|
|
|
void StopQuickHelp();
|
|
|
|
|
2011-04-16 22:42:13 -03:00
|
|
|
// #i42921# - add parameter <bVerticalMode>
|
2014-04-25 14:00:35 +02:00
|
|
|
bool RulerMarginDrag( const MouseEvent& rMEvt,
|
2005-03-08 10:17:45 +00:00
|
|
|
const bool bVerticalMode );
|
2004-04-07 11:45:36 +00:00
|
|
|
|
2006-07-26 11:17:36 +00:00
|
|
|
/** #i42732# display status of font size/name depending on either the input
|
|
|
|
language or the selection position depending on what has changed lately
|
|
|
|
*/
|
2014-04-25 14:00:35 +02:00
|
|
|
void SetUseInputLanguage( bool bNew );
|
|
|
|
bool IsUseInputLanguage() const { return m_bUseInputLanguage; }
|
2006-07-26 11:17:36 +00:00
|
|
|
|
2014-10-09 10:38:34 +01:00
|
|
|
/** fdo#55546 cut very long tooltips to 2/3 of the width of the screen
|
|
|
|
via center ellipsis
|
|
|
|
*/
|
2015-05-20 13:05:49 +02:00
|
|
|
OUString ClipLongToolTip(const OUString& rText);
|
2014-10-09 10:38:34 +01:00
|
|
|
|
2015-06-11 16:57:36 +01:00
|
|
|
SwFrameControlsManager& GetFrameControlsManager();
|
2011-09-04 20:31:18 +02:00
|
|
|
|
2014-09-23 11:20:40 +02:00
|
|
|
SwEditWin(vcl::Window *pParent, SwView &);
|
2000-09-18 16:15:01 +00:00
|
|
|
virtual ~SwEditWin();
|
2015-01-26 13:23:37 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
|
|
|
|
2015-03-20 15:48:04 +01:00
|
|
|
/// @see OutputDevice::LogicInvalidate().
|
|
|
|
void LogicInvalidate(const Rectangle* pRectangle) SAL_OVERRIDE;
|
2015-01-21 12:52:30 +01:00
|
|
|
/// Same as MouseButtonDown(), but coordinates are in logic unit.
|
2015-01-21 12:42:08 +01:00
|
|
|
void LogicMouseButtonDown(const MouseEvent& rMouseEvent);
|
2015-01-21 12:52:30 +01:00
|
|
|
/// Same as MouseButtonUp(), but coordinates are in logic unit.
|
2015-01-21 12:42:08 +01:00
|
|
|
void LogicMouseButtonUp(const MouseEvent& rMouseEvent);
|
2015-05-19 12:14:48 +03:00
|
|
|
/// Same as MouseMove(), but coordinates are in logic unit.
|
|
|
|
void LogicMouseMove(const MouseEvent& rMouseEvent);
|
2015-02-10 17:43:18 +01:00
|
|
|
/// Allows adjusting the point or mark of the selection to a document coordinate.
|
2015-04-10 15:15:41 +02:00
|
|
|
void SetCursorTwipPosition(const Point& rPosition, bool bPoint, bool bClearMark);
|
2015-03-10 09:40:38 +01:00
|
|
|
/// Allows starting or ending a graphic move or resize action.
|
2015-03-31 11:58:23 +02:00
|
|
|
void SetGraphicTwipPosition(bool bStart, const Point& rPosition);
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|