2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-04 15:25:45 +01: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-10-22 21:30:16 +02:00
|
|
|
#ifndef INCLUDED_STARMATH_INC_VIEW_HXX
|
|
|
|
#define INCLUDED_STARMATH_INC_VIEW_HXX
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-10-14 09:02:12 +02:00
|
|
|
#include <sal/config.h>
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <sfx2/dockwin.hxx>
|
|
|
|
#include <sfx2/viewsh.hxx>
|
|
|
|
#include <svtools/scrwin.hxx>
|
|
|
|
#include <sfx2/ctrlitem.hxx>
|
|
|
|
#include <sfx2/shell.hxx>
|
|
|
|
#include <sfx2/viewfac.hxx>
|
|
|
|
#include <sfx2/viewfrm.hxx>
|
2010-11-14 21:56:24 +00:00
|
|
|
#include <vcl/timer.hxx>
|
2003-03-27 11:01:26 +00:00
|
|
|
#include <svtools/colorcfg.hxx>
|
2014-12-03 10:43:00 +02:00
|
|
|
#include "document.hxx"
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "edit.hxx"
|
|
|
|
#include "node.hxx"
|
|
|
|
|
|
|
|
class Menu;
|
|
|
|
class DataChangedEvent;
|
2005-06-14 15:38:17 +00:00
|
|
|
class SmClipboardChangeListener;
|
2000-09-18 16:07:07 +00:00
|
|
|
class SmDocShell;
|
|
|
|
class SmViewShell;
|
2009-04-27 05:45:59 +00:00
|
|
|
class SmPrintUIOptions;
|
2010-11-29 15:59:10 +00:00
|
|
|
class SmGraphicAccessible;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-05-15 12:47:45 +00:00
|
|
|
class SmGraphicWindow : public ScrollableWindow
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2015-05-14 13:51:36 +09:00
|
|
|
Point aFormulaDrawPos;
|
2010-10-23 17:52:33 +01:00
|
|
|
// old style editing pieces
|
|
|
|
Rectangle aCursorRect;
|
2015-05-14 13:51:36 +09:00
|
|
|
bool bIsCursorVisible;
|
|
|
|
bool bIsLineVisible;
|
2010-11-16 23:37:09 +00:00
|
|
|
AutoTimer aCaretBlinkTimer;
|
2010-10-23 17:52:33 +01:00
|
|
|
public:
|
2015-05-14 13:51:36 +09:00
|
|
|
bool IsCursorVisible() const
|
|
|
|
{
|
|
|
|
return bIsCursorVisible;
|
|
|
|
}
|
2010-11-06 01:33:05 +01:00
|
|
|
void ShowCursor(bool bShow);
|
2015-05-14 13:51:36 +09:00
|
|
|
bool IsLineVisible() const
|
|
|
|
{
|
|
|
|
return bIsLineVisible;
|
|
|
|
}
|
2010-11-16 23:37:09 +00:00
|
|
|
void ShowLine(bool bShow);
|
2011-03-14 16:51:14 +00:00
|
|
|
const SmNode * SetCursorPos(sal_uInt16 nRow, sal_uInt16 nCol);
|
2010-10-23 17:52:33 +01:00
|
|
|
protected:
|
2015-05-14 13:51:36 +09:00
|
|
|
void SetIsCursorVisible(bool bVis)
|
|
|
|
{
|
|
|
|
bIsCursorVisible = bVis;
|
|
|
|
}
|
|
|
|
using Window::SetCursor;
|
|
|
|
void SetCursor(const SmNode *pNode);
|
|
|
|
void SetCursor(const Rectangle &rRect);
|
|
|
|
bool IsInlineEditEnabled() const;
|
2010-10-23 17:52:33 +01:00
|
|
|
|
|
|
|
private:
|
2015-05-14 13:51:36 +09:00
|
|
|
css::uno::Reference<css::accessibility::XAccessible> xAccessible;
|
|
|
|
SmGraphicAccessible* pAccessible;
|
2002-05-15 12:47:45 +00:00
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
SmViewShell* pViewShell;
|
|
|
|
sal_uInt16 nZoom;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
protected:
|
2015-05-14 13:51:36 +09:00
|
|
|
void SetFormulaDrawPos(const Point &rPos)
|
|
|
|
{
|
|
|
|
aFormulaDrawPos = rPos;
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void DataChanged( const DataChangedEvent& ) SAL_OVERRIDE;
|
2015-04-28 11:00:54 +09:00
|
|
|
virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE;
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE;
|
|
|
|
virtual void Command(const CommandEvent& rCEvt) SAL_OVERRIDE;
|
|
|
|
virtual void StateChanged( StateChangedType eChanged ) SAL_OVERRIDE;
|
2015-09-06 12:05:08 +02:00
|
|
|
DECL_LINK_TYPED(MenuSelectHdl, Menu*, bool);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2010-11-01 21:57:49 +00:00
|
|
|
private:
|
|
|
|
void RepaintViewShellDoc();
|
2015-05-04 17:28:40 +02:00
|
|
|
DECL_LINK_TYPED(CaretBlinkTimerHdl, Timer *, void);
|
2010-11-14 21:56:24 +00:00
|
|
|
void CaretBlinkInit();
|
|
|
|
void CaretBlinkStart();
|
|
|
|
void CaretBlinkStop();
|
2000-09-18 16:07:07 +00:00
|
|
|
public:
|
|
|
|
SmGraphicWindow(SmViewShell* pShell);
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~SmGraphicWindow();
|
2015-01-26 13:20:24 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-05-15 12:47:45 +00:00
|
|
|
// Window
|
2015-05-14 13:51:36 +09:00
|
|
|
virtual void MouseButtonDown(const MouseEvent &rMEvt) SAL_OVERRIDE;
|
|
|
|
virtual void MouseMove(const MouseEvent &rMEvt) SAL_OVERRIDE;
|
|
|
|
virtual void GetFocus() SAL_OVERRIDE;
|
|
|
|
virtual void LoseFocus() SAL_OVERRIDE;
|
2002-05-15 12:47:45 +00:00
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
SmViewShell* GetView()
|
|
|
|
{
|
|
|
|
return pViewShell;
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
using Window::SetZoom;
|
|
|
|
void SetZoom(sal_uInt16 Factor);
|
|
|
|
using Window::GetZoom;
|
|
|
|
sal_uInt16 GetZoom() const
|
|
|
|
{
|
|
|
|
return nZoom;
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
const Point& GetFormulaDrawPos() const
|
|
|
|
{
|
|
|
|
return aFormulaDrawPos;
|
|
|
|
}
|
2002-05-31 13:23:22 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
void ZoomToFitInWindow();
|
2015-05-14 13:51:36 +09:00
|
|
|
using ScrollableWindow::SetTotalSize;
|
2000-09-18 16:07:07 +00:00
|
|
|
void SetTotalSize();
|
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
void ApplyColorConfigValues(const svtools::ColorConfig &rColorCfg);
|
2002-12-12 14:40:33 +00:00
|
|
|
|
2002-05-15 12:47:45 +00:00
|
|
|
// for Accessibility
|
2015-05-14 13:51:36 +09:00
|
|
|
virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() SAL_OVERRIDE;
|
2002-05-31 13:23:22 +00:00
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
using Window::GetAccessible;
|
|
|
|
SmGraphicAccessible* GetAccessible_Impl()
|
|
|
|
{
|
|
|
|
return pAccessible;
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class SmGraphicController: public SfxControllerItem
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
SmGraphicWindow &rGraphic;
|
|
|
|
public:
|
2011-01-14 17:19:25 +01:00
|
|
|
SmGraphicController(SmGraphicWindow &, sal_uInt16, SfxBindings & );
|
|
|
|
virtual void StateChanged(sal_uInt16 nSID,
|
2000-09-18 16:07:07 +00:00
|
|
|
SfxItemState eState,
|
2014-03-27 18:12:18 +01:00
|
|
|
const SfxPoolItem* pState) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class SmEditController: public SfxControllerItem
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
SmEditWindow &rEdit;
|
|
|
|
|
|
|
|
public:
|
2011-01-14 17:19:25 +01:00
|
|
|
SmEditController(SmEditWindow &, sal_uInt16, SfxBindings & );
|
2003-04-15 15:21:21 +00:00
|
|
|
#if OSL_DEBUG_LEVEL > 1
|
2001-06-01 09:33:41 +00:00
|
|
|
virtual ~SmEditController();
|
|
|
|
#endif
|
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class SmCmdBoxWindow : public SfxDockingWindow
|
|
|
|
{
|
2015-01-26 13:20:24 +02:00
|
|
|
VclPtr<SmEditWindow> aEdit;
|
2000-09-18 16:07:07 +00:00
|
|
|
SmEditController aController;
|
2010-11-06 01:33:05 +01:00
|
|
|
bool bExiting;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2008-04-24 12:58:27 +00:00
|
|
|
Timer aInitialFocusTimer;
|
|
|
|
|
2015-05-04 17:28:40 +02:00
|
|
|
DECL_LINK_TYPED(InitialFocusTimerHdl, Timer *, void);
|
2008-04-24 12:58:27 +00:00
|
|
|
|
2015-07-17 10:29:59 +02:00
|
|
|
protected:
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-05-15 12:47:45 +00:00
|
|
|
// Window
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void GetFocus() SAL_OVERRIDE;
|
|
|
|
virtual void Resize() SAL_OVERRIDE;
|
2015-04-28 11:00:54 +09:00
|
|
|
virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE;
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE;
|
2002-08-15 08:59:16 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual Size CalcDockingSize(SfxChildAlignment eAlign) SAL_OVERRIDE;
|
2002-08-15 08:59:16 +00:00
|
|
|
virtual SfxChildAlignment CheckAlignment(SfxChildAlignment eActual,
|
2014-03-27 18:12:18 +01:00
|
|
|
SfxChildAlignment eWish) SAL_OVERRIDE;
|
2002-08-15 08:59:16 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void ToggleFloatingMode() SAL_OVERRIDE;
|
2002-05-15 12:47:45 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
public:
|
|
|
|
SmCmdBoxWindow(SfxBindings *pBindings,
|
|
|
|
SfxChildWindow *pChildWindow,
|
|
|
|
Window *pParent);
|
|
|
|
|
|
|
|
virtual ~SmCmdBoxWindow ();
|
2015-01-26 13:20:24 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
void AdjustPosition();
|
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
SmEditWindow& GetEditWindow()
|
|
|
|
{
|
|
|
|
return *aEdit.get();
|
|
|
|
}
|
|
|
|
SmViewShell* GetView();
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class SmCmdBoxWrapper : public SfxChildWindow
|
|
|
|
{
|
2012-06-16 14:12:33 +01:00
|
|
|
SFX_DECL_CHILDWINDOW_WITHID(SmCmdBoxWrapper);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
protected:
|
2015-05-14 13:51:36 +09:00
|
|
|
SmCmdBoxWrapper(vcl::Window* pParentWindow, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2003-04-15 15:21:21 +00:00
|
|
|
#if OSL_DEBUG_LEVEL > 1
|
2001-06-01 09:33:41 +00:00
|
|
|
virtual ~SmCmdBoxWrapper();
|
|
|
|
#endif
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
public:
|
|
|
|
|
2014-06-18 12:14:29 +02:00
|
|
|
SmEditWindow& GetEditWindow()
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2015-08-24 13:39:29 +02:00
|
|
|
return static_cast<SmCmdBoxWindow *>(GetWindow())->GetEditWindow();
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2006-11-22 09:40:28 +00:00
|
|
|
namespace sfx2 { class FileDialogHelper; }
|
|
|
|
struct SmViewShell_Impl;
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
class SmViewShell: public SfxViewShell
|
|
|
|
{
|
2001-05-11 12:01:35 +00:00
|
|
|
// for handling the PasteClipboardState
|
|
|
|
friend class SmClipboardChangeListener;
|
|
|
|
|
2014-10-14 09:02:12 +02:00
|
|
|
std::unique_ptr<SmViewShell_Impl> pImpl;
|
2011-03-21 21:01:52 +00:00
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
VclPtr<SmGraphicWindow> aGraphic;
|
2000-09-18 16:07:07 +00:00
|
|
|
SmGraphicController aGraphicController;
|
2015-05-14 13:51:36 +09:00
|
|
|
OUString aStatusText;
|
2001-05-11 12:01:35 +00:00
|
|
|
|
2015-05-14 13:51:36 +09:00
|
|
|
bool bPasteState;
|
2001-05-11 12:01:35 +00:00
|
|
|
|
2015-07-18 17:23:17 +02:00
|
|
|
DECL_LINK_TYPED( DialogClosedHdl, sfx2::FileDialogHelper*, void );
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
|
2006-11-22 09:40:28 +00:00
|
|
|
|
2010-10-01 22:04:50 +02:00
|
|
|
/** Used to determine whether insertions using SID_INSERTSYMBOL and SID_INSERTCOMMAND
|
|
|
|
* should be inserted into SmEditWindow or directly into the SmDocShell as done if the
|
|
|
|
* visual editor was last to have focus.
|
|
|
|
*/
|
2010-11-06 01:33:05 +01:00
|
|
|
bool bInsertIntoEditWindow;
|
2000-09-18 16:07:07 +00:00
|
|
|
protected:
|
|
|
|
|
2015-05-05 13:11:02 +02:00
|
|
|
static Size GetTextLineSize(OutputDevice& rDevice,
|
2013-09-03 18:29:30 +02:00
|
|
|
const OUString& rLine);
|
2015-05-05 13:11:02 +02:00
|
|
|
static Size GetTextSize(OutputDevice& rDevice,
|
2013-09-03 18:29:30 +02:00
|
|
|
const OUString& rText,
|
2000-09-18 16:07:07 +00:00
|
|
|
long MaxWidth);
|
2015-05-05 13:11:02 +02:00
|
|
|
static void DrawTextLine(OutputDevice& rDevice,
|
2000-09-18 16:07:07 +00:00
|
|
|
const Point& rPosition,
|
2013-09-03 18:29:30 +02:00
|
|
|
const OUString& rLine);
|
2015-05-05 13:11:02 +02:00
|
|
|
static void DrawText(OutputDevice& rDevice,
|
2000-09-18 16:07:07 +00:00
|
|
|
const Point& rPosition,
|
2013-09-03 18:29:30 +02:00
|
|
|
const OUString& rText,
|
2011-01-14 17:19:25 +01:00
|
|
|
sal_uInt16 MaxWidth);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual SfxPrinter *GetPrinter(bool bCreate = false) SAL_OVERRIDE;
|
2011-01-24 14:07:08 +01:00
|
|
|
virtual sal_uInt16 SetPrinter(SfxPrinter *pNewPrinter,
|
2015-03-24 09:36:29 +02:00
|
|
|
SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2013-07-20 19:53:02 -03:00
|
|
|
void Insert( SfxMedium& rMedium );
|
|
|
|
void InsertFrom(SfxMedium &rMedium);
|
2006-05-05 06:59:05 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual bool HasPrintOptionsPage() const SAL_OVERRIDE;
|
2015-04-28 23:09:13 +03:00
|
|
|
virtual VclPtr<SfxTabPage> CreatePrintOptionsPage(vcl::Window *pParent,
|
2015-04-16 20:43:49 +01:00
|
|
|
const SfxItemSet &rOptions) SAL_OVERRIDE;
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Deactivate(bool IsMDIActivate) SAL_OVERRIDE;
|
|
|
|
virtual void Activate(bool IsMDIActivate) SAL_OVERRIDE;
|
|
|
|
virtual void AdjustPosSizePixel(const Point &rPos, const Size &rSize) SAL_OVERRIDE;
|
|
|
|
virtual void InnerResizePixel(const Point &rOfs, const Size &rSize) SAL_OVERRIDE;
|
|
|
|
virtual void OuterResizePixel(const Point &rOfs, const Size &rSize) SAL_OVERRIDE;
|
|
|
|
virtual void QueryObjAreaPixel( Rectangle& rRect ) const SAL_OVERRIDE;
|
2014-10-23 17:41:47 +02:00
|
|
|
virtual void SetZoomFactor( const Fraction &rX, const Fraction &rY ) SAL_OVERRIDE;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
public:
|
2014-03-26 11:54:10 +01:00
|
|
|
TYPEINFO_OVERRIDE();
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2002-08-29 07:42:32 +00:00
|
|
|
SmViewShell(SfxViewFrame *pFrame, SfxViewShell *pOldSh);
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~SmViewShell();
|
2002-08-29 07:42:32 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
SmDocShell * GetDoc()
|
|
|
|
{
|
2014-12-03 10:43:00 +02:00
|
|
|
return static_cast<SmDocShell *>( GetViewFrame()->GetObjectShell() );
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SmEditWindow * GetEditWindow();
|
2015-05-14 13:51:36 +09:00
|
|
|
|
|
|
|
SmGraphicWindow& GetGraphicWindow()
|
|
|
|
{
|
|
|
|
return *aGraphic.get();
|
|
|
|
}
|
|
|
|
const SmGraphicWindow& GetGraphicWindow() const
|
|
|
|
{
|
|
|
|
return *aGraphic.get();
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2012-10-22 15:08:50 +04:00
|
|
|
void SetStatusText(const OUString& rText);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
void ShowError( const SmErrorDesc *pErrorDesc );
|
|
|
|
void NextError();
|
|
|
|
void PrevError();
|
|
|
|
|
2007-05-25 11:10:41 +00:00
|
|
|
SFX_DECL_INTERFACE(SFX_INTERFACE_SMA_START+2)
|
2000-09-18 16:07:07 +00:00
|
|
|
SFX_DECL_VIEWFACTORY(SmViewShell);
|
|
|
|
|
2014-04-18 18:04:32 +02:00
|
|
|
private:
|
|
|
|
/// SfxInterface initializer.
|
|
|
|
static void InitInterface_Impl();
|
|
|
|
|
|
|
|
public:
|
2015-01-20 12:38:10 +02:00
|
|
|
void Execute( SfxRequest& rReq );
|
|
|
|
void GetState(SfxItemSet &);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2009-04-27 05:45:59 +00:00
|
|
|
void Impl_Print( OutputDevice &rOutDev, const SmPrintUIOptions &rPrintUIOptions,
|
|
|
|
Rectangle aOutRect, Point aZeroPoint );
|
2010-10-01 22:04:50 +02:00
|
|
|
|
|
|
|
/** Set bInsertIntoEditWindow so we know where to insert
|
|
|
|
*
|
|
|
|
* This method is called whenever SmGraphicWindow or SmEditWindow gets focus,
|
|
|
|
* so that when text is inserted from catalog or elsewhere we know whether to
|
|
|
|
* insert for the visual editor, or the text editor.
|
|
|
|
*/
|
2010-11-06 01:33:05 +01:00
|
|
|
void SetInsertIntoEditWindow(bool bEditWindowHadFocusLast = true){
|
2010-10-01 22:04:50 +02:00
|
|
|
bInsertIntoEditWindow = bEditWindowHadFocusLast;
|
|
|
|
}
|
2010-10-29 10:00:58 +01:00
|
|
|
bool IsInlineEditEnabled() const;
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|