2010-10-27 07:11:31 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-05 14:18:35 -05: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 .
|
|
|
|
*/
|
2007-04-11 15:32:05 -05:00
|
|
|
#ifndef _SFXVIEWSH_HXX
|
|
|
|
#define _SFXVIEWSH_HXX
|
|
|
|
|
|
|
|
#include "sal/config.h"
|
|
|
|
#include "sfx2/dllapi.h"
|
|
|
|
#include "sal/types.h"
|
|
|
|
#include <com/sun/star/embed/XEmbeddedObject.hpp>
|
|
|
|
#include <com/sun/star/frame/XController.hpp>
|
2008-10-30 09:31:29 -05:00
|
|
|
#include <com/sun/star/view/XRenderable.hpp>
|
2007-04-11 15:32:05 -05:00
|
|
|
#include <com/sun/star/uno/Reference.h>
|
2009-10-15 17:05:16 -05:00
|
|
|
#include <svl/lstner.hxx>
|
2007-04-11 15:32:05 -05:00
|
|
|
#include <com/sun/star/ui/XContextMenuInterceptor.hpp>
|
2009-09-18 05:15:03 -05:00
|
|
|
#include <com/sun/star/datatransfer/clipboard/XClipboardListener.hpp>
|
2010-11-26 11:19:51 -06:00
|
|
|
#include <com/sun/star/datatransfer/clipboard/XClipboardNotifier.hpp>
|
2007-04-11 15:32:05 -05:00
|
|
|
#include <cppuhelper/interfacecontainer.hxx>
|
2007-07-17 07:38:59 -05:00
|
|
|
#include "shell.hxx"
|
2007-04-11 15:32:05 -05:00
|
|
|
#include <tools/gen.hxx>
|
|
|
|
#include <tools/errcode.hxx>
|
2009-07-03 06:35:10 -05:00
|
|
|
#include <vcl/jobset.hxx>
|
2011-01-02 17:16:17 -06:00
|
|
|
#include <vector>
|
|
|
|
|
2007-04-11 15:32:05 -05:00
|
|
|
class SfxBaseController;
|
|
|
|
class Size;
|
|
|
|
class Fraction;
|
|
|
|
class Window;
|
|
|
|
class KeyEvent;
|
|
|
|
class WorkWindow;
|
|
|
|
class SvBorder;
|
|
|
|
class SdrView;
|
|
|
|
class SfxFrame;
|
|
|
|
class SfxMedium;
|
|
|
|
class SfxModule;
|
|
|
|
class SfxViewFrame;
|
|
|
|
class SfxItemPool;
|
|
|
|
class SfxTabPage;
|
|
|
|
class SfxFrameSetDescriptor;
|
2010-02-16 04:18:37 -06:00
|
|
|
class Printer;
|
2007-04-11 15:32:05 -05:00
|
|
|
class SfxPrinter;
|
|
|
|
class SfxProgress;
|
|
|
|
class SfxFrameItem;
|
|
|
|
class Dialog;
|
|
|
|
class Menu;
|
|
|
|
class NotifyEvent;
|
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
#define SFX_PRINTER_PRINTER 1 // without JOB SETUP => Temporary
|
2007-04-11 15:32:05 -05:00
|
|
|
#define SFX_PRINTER_JOBSETUP 2
|
|
|
|
#define SFX_PRINTER_OPTIONS 4
|
|
|
|
#define SFX_PRINTER_CHG_ORIENTATION 8
|
|
|
|
#define SFX_PRINTER_CHG_SIZE 16
|
|
|
|
#define SFX_PRINTER_ALL 31
|
|
|
|
|
|
|
|
#define SFX_PRINTER_CHG_ORIENTATION_FLAG 3
|
|
|
|
#define SFX_PRINTER_CHG_SIZE_FLAG 4
|
|
|
|
|
2009-09-18 05:15:03 -05:00
|
|
|
#define SFX_PRINTERROR_NONE 0
|
|
|
|
#define SFX_PRINTERROR_BUSY 1
|
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
// "Verified" using www.apple.com and Netscape 3.01
|
2007-04-11 15:32:05 -05:00
|
|
|
#define DEFAULT_MARGIN_WIDTH 8
|
|
|
|
#define DEFAULT_MARGIN_HEIGHT 12
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
// @[SfxViewShell-Flags]
|
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
#define SFX_VIEW_HAS_PRINTOPTIONS 0x0010 /* Options-Button and Options-
|
|
|
|
Dialog in PrintDialog */
|
|
|
|
#define SFX_VIEW_CAN_PRINT 0x0020 /* Printing enabled without having
|
|
|
|
to create a Printer */
|
|
|
|
#define SFX_VIEW_NO_SHOW 0x0040 /* Window of the ViewShell shall
|
|
|
|
not be showed automatically */
|
|
|
|
#define SFX_VIEW_NO_NEWWINDOW 0x0100 /* Allow N View */
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
/* [Description]
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
The SfxViewShell flags control the behavior of SfxViewShell for the
|
|
|
|
duration of its lifetime. They are defined in the constructor of
|
|
|
|
<SfxViewShell>.
|
2007-04-11 15:32:05 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
|
|
|
|
#define SFX_DECL_VIEWFACTORY(Class) \
|
|
|
|
private: \
|
|
|
|
static SfxViewFactory *pFactory; \
|
|
|
|
public: \
|
|
|
|
static SfxViewShell *CreateInstance(SfxViewFrame *pFrame, SfxViewShell *pOldView); \
|
2011-01-07 10:35:15 -06:00
|
|
|
static void RegisterFactory( sal_uInt16 nPrio = USHRT_MAX ); \
|
2007-04-11 15:32:05 -05:00
|
|
|
static SfxViewFactory&Factory() { return *pFactory; } \
|
|
|
|
static void InitFactory()
|
|
|
|
|
dba33i: #i111146# completely put the responsibility for remembering/restoring view data, when switching to the
print preview and back, to SFX
In particular, the following changes have been applied
- the SfxViewFactory now supports a programmatic API name, as documented in XModel2.getAvailableViewControllerNames
- the new SFX_IMPL_NAMED_VIEWFACTORY, complementing the existing SFX_IMPL_VIEWFACTORY, allows to create view
factories for such named views
- SfxViewFrame::SwitchToViewShell_Impl has been extended to recognize the case where a non-PrintPreview view
is exchanged with another view. In this case, it preserves the view's view data at the model
- Calc's own mechanism for preserving the standard view's view data, and restoring it when coming back from
the print preview, has been removed completely.
What probably is left here is to migrate the other applications from SFX_IMPL_VIEWFACTORY to SFX_IMPL_NAMED_VIEWFACTORY.
This way, they could also benefit from the new mechanism. Also, the UNO API would then be more precise, as the
view names would be speaking then, instead of the current "view<number>" names.
2010-09-01 06:39:49 -05:00
|
|
|
#define SFX_IMPL_NAMED_VIEWFACTORY(Class, AsciiViewName) \
|
|
|
|
SfxViewFactory* Class::pFactory; \
|
2010-12-12 03:46:36 -06:00
|
|
|
SfxViewShell* Class::CreateInstance(SfxViewFrame *pFrame, SfxViewShell *pOldView) \
|
dba33i: #i111146# completely put the responsibility for remembering/restoring view data, when switching to the
print preview and back, to SFX
In particular, the following changes have been applied
- the SfxViewFactory now supports a programmatic API name, as documented in XModel2.getAvailableViewControllerNames
- the new SFX_IMPL_NAMED_VIEWFACTORY, complementing the existing SFX_IMPL_VIEWFACTORY, allows to create view
factories for such named views
- SfxViewFrame::SwitchToViewShell_Impl has been extended to recognize the case where a non-PrintPreview view
is exchanged with another view. In this case, it preserves the view's view data at the model
- Calc's own mechanism for preserving the standard view's view data, and restoring it when coming back from
the print preview, has been removed completely.
What probably is left here is to migrate the other applications from SFX_IMPL_VIEWFACTORY to SFX_IMPL_NAMED_VIEWFACTORY.
This way, they could also benefit from the new mechanism. Also, the UNO API would then be more precise, as the
view names would be speaking then, instead of the current "view<number>" names.
2010-09-01 06:39:49 -05:00
|
|
|
{ return new Class(pFrame, pOldView); } \
|
2011-01-07 10:35:15 -06:00
|
|
|
void Class::RegisterFactory( sal_uInt16 nPrio ) \
|
dba33i: #i111146# completely put the responsibility for remembering/restoring view data, when switching to the
print preview and back, to SFX
In particular, the following changes have been applied
- the SfxViewFactory now supports a programmatic API name, as documented in XModel2.getAvailableViewControllerNames
- the new SFX_IMPL_NAMED_VIEWFACTORY, complementing the existing SFX_IMPL_VIEWFACTORY, allows to create view
factories for such named views
- SfxViewFrame::SwitchToViewShell_Impl has been extended to recognize the case where a non-PrintPreview view
is exchanged with another view. In this case, it preserves the view's view data at the model
- Calc's own mechanism for preserving the standard view's view data, and restoring it when coming back from
the print preview, has been removed completely.
What probably is left here is to migrate the other applications from SFX_IMPL_VIEWFACTORY to SFX_IMPL_NAMED_VIEWFACTORY.
This way, they could also benefit from the new mechanism. Also, the UNO API would then be more precise, as the
view names would be speaking then, instead of the current "view<number>" names.
2010-09-01 06:39:49 -05:00
|
|
|
{ \
|
2012-08-16 01:33:33 -05:00
|
|
|
pFactory = new SfxViewFactory(&CreateInstance,nPrio,AsciiViewName);\
|
dba33i: #i111146# completely put the responsibility for remembering/restoring view data, when switching to the
print preview and back, to SFX
In particular, the following changes have been applied
- the SfxViewFactory now supports a programmatic API name, as documented in XModel2.getAvailableViewControllerNames
- the new SFX_IMPL_NAMED_VIEWFACTORY, complementing the existing SFX_IMPL_VIEWFACTORY, allows to create view
factories for such named views
- SfxViewFrame::SwitchToViewShell_Impl has been extended to recognize the case where a non-PrintPreview view
is exchanged with another view. In this case, it preserves the view's view data at the model
- Calc's own mechanism for preserving the standard view's view data, and restoring it when coming back from
the print preview, has been removed completely.
What probably is left here is to migrate the other applications from SFX_IMPL_VIEWFACTORY to SFX_IMPL_NAMED_VIEWFACTORY.
This way, they could also benefit from the new mechanism. Also, the UNO API would then be more precise, as the
view names would be speaking then, instead of the current "view<number>" names.
2010-09-01 06:39:49 -05:00
|
|
|
InitFactory(); \
|
|
|
|
} \
|
|
|
|
void Class::InitFactory()
|
|
|
|
|
2007-04-11 15:32:05 -05:00
|
|
|
#define SFX_VIEW_REGISTRATION(DocClass) \
|
|
|
|
DocClass::Factory().RegisterViewFactory( Factory() )
|
|
|
|
|
|
|
|
class SfxInPlaceClient;
|
2011-01-02 17:16:17 -06:00
|
|
|
typedef ::std::vector< SfxInPlaceClient* > SfxInPlaceClientList;
|
2007-04-11 15:32:05 -05:00
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
class SFX2_DLLPUBLIC SfxViewShell: public SfxShell, public SfxListener
|
|
|
|
{
|
|
|
|
#ifdef _SFXVIEWSH_HXX
|
|
|
|
friend class SfxViewFrame;
|
|
|
|
friend class SfxBaseController;
|
2010-02-16 04:18:37 -06:00
|
|
|
friend class SfxPrinterController;
|
2007-04-11 15:32:05 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
struct SfxViewShell_Impl* pImp;
|
|
|
|
SfxInPlaceClientList* pIPClientList;
|
|
|
|
SfxViewFrame* pFrame;
|
|
|
|
SfxShell* pSubShell;
|
|
|
|
Window* pWindow;
|
2011-01-07 10:35:15 -06:00
|
|
|
sal_Bool bNoNewWindow;
|
2007-04-11 15:32:05 -05:00
|
|
|
|
|
|
|
protected:
|
2011-01-07 10:35:15 -06:00
|
|
|
virtual void Activate(sal_Bool IsMDIActivate);
|
|
|
|
virtual void Deactivate(sal_Bool IsMDIActivate);
|
2007-04-11 15:32:05 -05:00
|
|
|
|
|
|
|
virtual void InnerResizePixel( const Point &rOfs, const Size &rSize );
|
|
|
|
virtual void OuterResizePixel( const Point &rOfs, const Size &rSize );
|
|
|
|
virtual void SetZoomFactor( const Fraction &rZoomX, const Fraction &rZoomY );
|
|
|
|
|
|
|
|
virtual void Move();
|
|
|
|
|
2008-09-30 01:36:06 -05:00
|
|
|
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
|
|
|
|
|
2007-04-11 15:32:05 -05:00
|
|
|
public:
|
|
|
|
// Iteration
|
2011-01-07 10:35:15 -06:00
|
|
|
static SfxViewShell* GetFirst( const TypeId* pType = 0, sal_Bool bOnlyVisible = sal_True );
|
2007-04-11 15:32:05 -05:00
|
|
|
static SfxViewShell* GetNext( const SfxViewShell& rPrev,
|
2011-01-07 10:35:15 -06:00
|
|
|
const TypeId* pType = 0, sal_Bool bOnlyVisible = sal_True );
|
2007-04-11 15:32:05 -05:00
|
|
|
static SfxViewShell* Current();
|
|
|
|
|
2009-12-03 02:29:45 -06:00
|
|
|
static SfxViewShell* Get( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController>& i_rController );
|
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
// Initialize Constructors/Destructors
|
2007-04-11 15:32:05 -05:00
|
|
|
TYPEINFO();
|
|
|
|
SFX_DECL_INTERFACE(SFX_INTERFACE_SFXVIEWSH)
|
|
|
|
|
2011-01-07 10:35:15 -06:00
|
|
|
SfxViewShell( SfxViewFrame *pFrame, sal_uInt16 nFlags = 0 );
|
2007-04-11 15:32:05 -05:00
|
|
|
virtual ~SfxViewShell();
|
|
|
|
|
|
|
|
SfxInPlaceClient* GetIPClient() const;
|
|
|
|
SfxInPlaceClient* GetUIActiveClient() const;
|
|
|
|
SfxInPlaceClient* FindIPClient( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& xObj, Window *pObjParentWin ) const;
|
|
|
|
|
|
|
|
virtual ErrCode DoVerb(long nVerb);
|
|
|
|
|
|
|
|
virtual void OutplaceActivated( sal_Bool bActive, SfxInPlaceClient* pClient );
|
|
|
|
virtual void InplaceActivating( SfxInPlaceClient* pClient );
|
|
|
|
virtual void InplaceDeactivated( SfxInPlaceClient* pClient );
|
|
|
|
virtual void UIActivating( SfxInPlaceClient* pClient );
|
|
|
|
virtual void UIDeactivated( SfxInPlaceClient* pClient );
|
|
|
|
|
|
|
|
virtual void JumpToMark( const String& rMark );
|
|
|
|
void VisAreaChanged(const Rectangle& rRect);
|
|
|
|
|
|
|
|
// Misc
|
2011-01-07 10:35:15 -06:00
|
|
|
virtual sal_uInt16 PrepareClose( sal_Bool bUI = sal_True, sal_Bool bForBrowsing = sal_False );
|
|
|
|
virtual String GetSelectionText( sal_Bool bCompleteWords = sal_False );
|
|
|
|
virtual sal_Bool HasSelection( sal_Bool bText = sal_True ) const;
|
2007-04-11 15:32:05 -05:00
|
|
|
virtual SdrView* GetDrawView() const;
|
2010-10-27 05:49:06 -05:00
|
|
|
|
2007-04-11 15:32:05 -05:00
|
|
|
SfxShell* GetSubShell() const { return pSubShell; }
|
|
|
|
void AddSubShell( SfxShell& rShell );
|
|
|
|
void RemoveSubShell( SfxShell *pShell=NULL );
|
2011-01-07 10:35:15 -06:00
|
|
|
SfxShell* GetSubShell( sal_uInt16 );
|
2007-04-11 15:32:05 -05:00
|
|
|
|
|
|
|
// Focus, KeyInput, Cursor
|
|
|
|
void GotFocus() const;
|
|
|
|
inline void LostFocus() const;
|
2010-10-05 07:57:54 -05:00
|
|
|
virtual void ShowCursor( bool bOn = true );
|
|
|
|
virtual bool KeyInput( const KeyEvent &rKeyEvent );
|
2011-01-07 10:35:15 -06:00
|
|
|
sal_Bool Escape();
|
2007-04-11 15:32:05 -05:00
|
|
|
|
|
|
|
// Viewing Interface
|
|
|
|
Window* GetWindow() const { return pWindow; }
|
|
|
|
void SetWindow( Window *pViewPort );
|
|
|
|
virtual void AdjustPosSizePixel( const Point &rOfs, const Size &rSize );
|
|
|
|
const SvBorder& GetBorderPixel() const;
|
|
|
|
void SetBorderPixel( const SvBorder &rBorder );
|
|
|
|
void InvalidateBorder();
|
|
|
|
inline SfxViewFrame* GetViewFrame() const;
|
|
|
|
|
|
|
|
// Printing Interface
|
2011-01-24 05:37:15 -06:00
|
|
|
virtual SfxPrinter* GetPrinter( sal_Bool bCreate = sal_False );
|
2012-12-06 15:05:57 -06:00
|
|
|
virtual sal_uInt16 SetPrinter( SfxPrinter *pNewPrinter, sal_uInt16 nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=sal_False );
|
|
|
|
virtual bool HasPrintOptionsPage() const;
|
2007-04-11 15:32:05 -05:00
|
|
|
virtual SfxTabPage* CreatePrintOptionsPage( Window *pParent, const SfxItemSet &rOptions );
|
2009-07-03 06:35:10 -05:00
|
|
|
virtual JobSetup GetJobSetup() const;
|
2010-02-16 04:18:37 -06:00
|
|
|
Printer* GetActivePrinter() const;
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
// Working set
|
2011-01-07 10:35:15 -06:00
|
|
|
virtual void WriteUserData( String&, sal_Bool bBrowse = sal_False );
|
|
|
|
virtual void ReadUserData( const String&, sal_Bool bBrowse = sal_False );
|
2007-04-11 15:32:05 -05:00
|
|
|
virtual void WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False );
|
|
|
|
virtual void ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False );
|
|
|
|
virtual void QueryObjAreaPixel( Rectangle& rRect ) const;
|
|
|
|
|
|
|
|
virtual SfxObjectShell* GetObjectShell();
|
2008-03-06 12:46:35 -06:00
|
|
|
/** retrieves the document which shall be considered the "current document" when the frame is active
|
|
|
|
|
|
|
|
The default implementation simply returns the XModel of the associated SfxObjectShell. You will rarely
|
|
|
|
need to overwrite this behavior.
|
|
|
|
*/
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >
|
|
|
|
GetCurrentDocument() const;
|
|
|
|
/** forwards the current document, as returned by ->GetCurrentDocument, to SfxObjectShell::SetWorkingDocument
|
|
|
|
*/
|
|
|
|
void SetCurrentDocument() const;
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2013-04-14 22:10:29 -05:00
|
|
|
/** get an XRenderable instance that can render this document
|
2008-10-30 09:31:29 -05:00
|
|
|
*/
|
|
|
|
virtual com::sun::star::uno::Reference< com::sun::star::view::XRenderable > GetRenderable();
|
|
|
|
|
|
|
|
|
2007-04-11 15:32:05 -05:00
|
|
|
virtual void MarginChanged();
|
|
|
|
const Size& GetMargin() const;
|
|
|
|
void SetMargin( const Size& );
|
|
|
|
void DisconnectAllClients();
|
|
|
|
virtual SfxFrame* GetSmartSelf( SfxFrame* pSelf, SfxMedium& rMedium );
|
2011-01-07 10:35:15 -06:00
|
|
|
sal_Bool NewWindowAllowed() const { return !bNoNewWindow; }
|
|
|
|
void SetNewWindowAllowed( sal_Bool bSet ) { bNoNewWindow = !bSet; }
|
2007-04-11 15:32:05 -05:00
|
|
|
|
|
|
|
void SetController( SfxBaseController* pController );
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XController >
|
|
|
|
GetController();
|
|
|
|
|
2013-04-07 05:06:47 -05:00
|
|
|
sal_Bool TryContextMenuInterception( Menu& rIn, const OUString& rMenuIdentifier, Menu*& rpOut, ::com::sun::star::ui::ContextMenuExecuteEvent aEvent );
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2009-07-01 09:01:46 -05:00
|
|
|
void ExecPrint( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >&, sal_Bool, sal_Bool );
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2011-01-07 10:35:15 -06:00
|
|
|
void AddRemoveClipboardListener( const com::sun::star::uno::Reference < com::sun::star::datatransfer::clipboard::XClipboardListener>&, sal_Bool );
|
2010-11-26 11:19:51 -06:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardNotifier > GetClipboardNotifier();
|
2009-09-18 05:15:03 -05:00
|
|
|
|
2007-04-11 15:32:05 -05:00
|
|
|
SAL_DLLPRIVATE SfxInPlaceClient* GetUIActiveIPClient_Impl() const;
|
|
|
|
SAL_DLLPRIVATE void AddContextMenuInterceptor_Impl( const ::com::sun::star::uno::Reference < ::com::sun::star::ui::XContextMenuInterceptor >& xInterceptor );
|
|
|
|
SAL_DLLPRIVATE void RemoveContextMenuInterceptor_Impl( const ::com::sun::star::uno::Reference < ::com::sun::star::ui::XContextMenuInterceptor >& xInterceptor );
|
2010-10-05 07:57:54 -05:00
|
|
|
SAL_DLLPRIVATE bool GlobalKeyInput_Impl( const KeyEvent &rKeyEvent );
|
2007-04-11 15:32:05 -05:00
|
|
|
|
|
|
|
SAL_DLLPRIVATE void NewIPClient_Impl( SfxInPlaceClient *pIPClient )
|
2011-03-12 18:57:32 -06:00
|
|
|
{ GetIPClientList_Impl(sal_True)->push_back(pIPClient); }
|
2011-01-02 17:16:17 -06:00
|
|
|
SAL_DLLPRIVATE void IPClientGone_Impl( SfxInPlaceClient *pIPClient );
|
2011-01-07 10:35:15 -06:00
|
|
|
SAL_DLLPRIVATE SfxInPlaceClientList* GetIPClientList_Impl( sal_Bool bCreate = sal_True ) const;
|
2007-04-11 15:32:05 -05:00
|
|
|
SAL_DLLPRIVATE void ResetAllClients_Impl( SfxInPlaceClient *pIP );
|
|
|
|
SAL_DLLPRIVATE void DiscardClients_Impl();
|
|
|
|
|
|
|
|
SAL_DLLPRIVATE SfxPrinter* SetPrinter_Impl( SfxPrinter *pNewPrinter );
|
2011-01-07 10:35:15 -06:00
|
|
|
SAL_DLLPRIVATE sal_Bool IsShowView_Impl() const;
|
2007-04-11 15:32:05 -05:00
|
|
|
|
|
|
|
SAL_DLLPRIVATE long HandleNotifyEvent_Impl( NotifyEvent& rEvent );
|
2011-01-07 10:35:15 -06:00
|
|
|
SAL_DLLPRIVATE sal_Bool HasKeyListeners_Impl();
|
|
|
|
SAL_DLLPRIVATE sal_Bool HasMouseClickListeners_Impl();
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2009-12-11 04:28:14 -06:00
|
|
|
SAL_DLLPRIVATE SfxBaseController* GetBaseController_Impl() const;
|
|
|
|
|
2007-04-11 15:32:05 -05:00
|
|
|
// Shell Interface
|
|
|
|
SAL_DLLPRIVATE void ExecPrint_Impl(SfxRequest &);
|
|
|
|
SAL_DLLPRIVATE void ExecMisc_Impl(SfxRequest &);
|
|
|
|
SAL_DLLPRIVATE void GetState_Impl(SfxItemSet&);
|
|
|
|
SAL_DLLPRIVATE SfxFrameSetDescriptor* GetFrameSet_Impl() const;
|
|
|
|
SAL_DLLPRIVATE void SetFrameSet_Impl(SfxFrameSetDescriptor*);
|
|
|
|
SAL_DLLPRIVATE void CheckIPClient_Impl( SfxInPlaceClient*, const Rectangle& );
|
2011-01-07 10:35:15 -06:00
|
|
|
SAL_DLLPRIVATE void PushSubShells_Impl( sal_Bool bPush=sal_True );
|
|
|
|
SAL_DLLPRIVATE void PopSubShells_Impl() { PushSubShells_Impl( sal_False ); }
|
2013-03-25 16:03:49 -05:00
|
|
|
SAL_DLLPRIVATE void TakeOwnership_Impl();
|
|
|
|
SAL_DLLPRIVATE void TakeFrameOwnership_Impl();
|
2011-01-07 10:35:15 -06:00
|
|
|
SAL_DLLPRIVATE sal_Bool ExecKey_Impl(const KeyEvent& aKey);
|
2007-04-11 15:32:05 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
inline void SfxViewShell::LostFocus() const
|
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
/* [Description]
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
This method has to be called by the application developer, if the edit
|
|
|
|
window has lost the focus. The SFx has for example the ability to turn off
|
|
|
|
the accelerator, so that the cursor keys, the Delete button, etc. work in
|
|
|
|
certain Floating-Windows, even though they are redefined by the
|
|
|
|
Accelerator.
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
[Note]
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
<StarView> unfortunatly does not provide the possibility to define
|
|
|
|
such events 'from the side'.
|
2007-04-11 15:32:05 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
inline SfxViewFrame* SfxViewShell::GetViewFrame() const
|
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
/* [Description]
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
This method returns a pointer to the <SfxViewFrame> Instance in which
|
|
|
|
this SfxViewShell is displayed. This is the instance that was passed
|
|
|
|
on in the constructor. It is guaranteed that the returned pointer
|
|
|
|
points on the valid SfxViewFrame instance.
|
2007-04-11 15:32:05 -05:00
|
|
|
|
2011-04-06 02:35:15 -05:00
|
|
|
[Cross-reference]
|
2007-04-11 15:32:05 -05:00
|
|
|
|
|
|
|
<SfxShell::GetFrame()const>
|
|
|
|
*/
|
|
|
|
|
|
|
|
{
|
|
|
|
return pFrame;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // #ifndef _SFXVIEWSH_HXX
|
|
|
|
|
|
|
|
|
2011-03-12 18:57:32 -06:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|