Kaydet (Commit) 3154665f authored tarafından Caolán McNamara's avatar Caolán McNamara

none of these classes or headers is actually used

üst 52560714
This diff is collapsed.
...@@ -66,7 +66,7 @@ class ViewOverlayManager; ...@@ -66,7 +66,7 @@ class ViewOverlayManager;
/** Base class of the stacked shells that provide graphical views to /** Base class of the stacked shells that provide graphical views to
Draw and Impress documents and editing functionality. In contrast Draw and Impress documents and editing functionality. In contrast
to this other stacked shells are responsible for showing an to this other stacked shells are responsible for showing an
overview over several slides (SlideViewShell) or a textual overview over several slides or a textual
overview over the text in an Impress document (OutlineViewShell). overview over the text in an Impress document (OutlineViewShell).
*/ */
class DrawViewShell class DrawViewShell
......
...@@ -40,12 +40,6 @@ class RulerCtrlItem; ...@@ -40,12 +40,6 @@ class RulerCtrlItem;
class View; class View;
class Window; class Window;
/*************************************************************************
|*
|* das Fenster der Diashow leitet Mouse- und Key-Events an die SlideViewShell
|*
\************************************************************************/
class Ruler class Ruler
: public SvxRuler : public SvxRuler
{ {
......
...@@ -46,7 +46,6 @@ class PageSelector; ...@@ -46,7 +46,6 @@ class PageSelector;
namespace sd { namespace sd {
class DrawController; class DrawController;
class SlideViewShell;
class View; class View;
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef SD_SLIDE_VIEW_HXX
#define SD_SLIDE_VIEW_HXX
#include "View.hxx"
class SdDrawDocument;
class BitmapCache;
class SdPage;
namespace sd {
class SlideViewShell;
class Window;
// ----------------------
// - SlideViewFocusMove -
// ----------------------
enum SlideViewFocusMove
{
SLIDEVIEWFOCUSMOVE_NONE = 0,
SLIDEVIEWFOCUSMOVE_TOGGLE = 1,
SLIDEVIEWFOCUSMOVE_SELECT = 2,
SLIDEVIEWFOCUSMOVE_LEFT = 3,
SLIDEVIEWFOCUSMOVE_TOP = 4,
SLIDEVIEWFOCUSMOVE_RIGHT = 5,
SLIDEVIEWFOCUSMOVE_BOTTOM = 6
};
// ---------------
// - SdSlideView -
// ---------------
class SlideView
: public ::sd::View
{
public:
TYPEINFO();
SlideView (
SdDrawDocument* pDoc,
::Window* pWindow,
SlideViewShell* pSlideVShell);
virtual ~SlideView (void);
void Select( sal_uInt16 nSdPageNum, sal_Bool bSelect );
void SelectAllSlides( sal_Bool bSelect );
void MoveFocus( SlideViewFocusMove eMove );
sal_uInt16 GetFocusPage() const;
sal_Bool HasFocus() const;
sal_uInt16 ChangePagesPerRow( sal_uInt16 nNum );
sal_uInt16 GetPagesPerRow() const { return nPagesPerRow; }
virtual void InvalidateOneWin( ::Window& rWin );
virtual void InvalidateOneWin( ::Window& rWin, const Rectangle& rRect );
void SetAllowInvalidate( sal_Bool bFlag );
sal_Bool IsInvalidateAllowed() const;
void Paint(const Rectangle& rRect, OutputDevice* pOut);
void DrawSelectionRect(sal_uInt16 nPage);
Point CalcPagePos( sal_uInt16 nPageNo ) const;
Rectangle GetPageArea( sal_uInt16 nPageNo ) const;
sal_uLong GetPageGap() const;
Rectangle GetFadeIconArea( sal_uInt16 nPageNo ) const;
SdPage* GetHitPage( const Point& rPos ) const;
SdPage* GetFadePage( const Point& rPos ) const;
SdPage* GetNearestPage( const Point& rPos ) const;
void DeleteMarked();
void MoveMarked( sal_uInt16 nTargetPage );
void AddToCache( SdPage* pPage, const Bitmap& rBitmap, long nZoom );
const GraphicObject* GetFromCache( SdPage* pPage, long& rZoom, long nZoomTolerance ) const;
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
virtual void DoCut( ::Window* pWindow = NULL );
virtual void DoCopy( ::Window* pWindow = NULL );
virtual void DoPaste( ::Window* pWindow = NULL );
virtual void StartDrag( const Point& rDragPt, ::Window* pWindow );
virtual void DragFinished( sal_Int8 nDropAction );
virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper,
::sd::Window* pTargetWindow = NULL,
sal_uInt16 nPage = SDRPAGE_NOTFOUND,
sal_uInt16 nLayer = SDRPAGE_NOTFOUND );
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTargetHelper,
::sd::Window* pTargetWindow = NULL,
sal_uInt16 nPage = SDRPAGE_NOTFOUND,
sal_uInt16 nLayer = SDRPAGE_NOTFOUND );
void UpdateAllPages();
private:
Timer aDelayedPaintTimer;
List aDelayedPaints;
SlideViewShell* pSlideViewShell;
BitmapCache* pCache;
VirtualDevice* mpVDev;
sal_uInt16 nAllowInvalidateSmph;
sal_uInt16 nPagesPerRow;
sal_uInt16 nFocusPage;
sal_Bool bInPaint;
sal_Bool bInDelayedPaint;
DECL_LINK( PaintDelayed, Timer * );
void CreateSlideTransferable (::Window* pWindow, sal_Bool bDrag);
};
} // end of namespace sd
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef SD_SLIDE_VIEW_SHELL_HXX
#define SD_SLIDE_VIEW_SHELL_HXX
#include "ViewShell.hxx"
#include "SlideView.hxx"
#include <sfx2/viewfac.hxx>
#include <sfx2/viewsh.hxx>
class SdPage;
namespace sd {
class SdUnoSlideView;
class Window;
/** Show an overview over the slides in an Impress document and allow
some high level editing i.e. editing of the order in a show, not
the contents of the slides.
*/
class SlideViewShell
: public ViewShell
{
public:
TYPEINFO();
SFX_DECL_VIEWFACTORY(SlideViewShell);
SFX_DECL_INTERFACE(SD_IF_SDSLIDEVIEWSHELL)
/** Create a new view shell for the slide view.
@param rViewShellBase
The new object will be stacked on this view shell base.
@param pFrameView
The frame view that makes it possible to pass information from
one view shell to the next.
*/
SlideViewShell(SfxViewFrame* pFrame,
ViewShellBase& rViewShellBase,
::Window* pParentWindow,
FrameView* pFrameView = NULL);
SlideViewShell(SfxViewFrame *pFrame,
::Window* pParentWindow,
const SlideViewShell& rShell);
virtual ~SlideViewShell (void);
virtual void Paint(const Rectangle& rRect, ::sd::Window* pWin);
/** Arrange and resize the GUI elements like rulers, sliders, and
buttons as well as the actual document view according to the size of
the enclosing window and current sizes of buttons, rulers, and
sliders.
*/
virtual void ArrangeGUIElements (void);
virtual void AddWindow(::sd::Window* pWin) { pSlideView->AddWindowToPaintView((OutputDevice*) pWin); }
virtual void RemoveWindow(::sd::Window* pWin) { pSlideView->DeleteWindowFromPaintView((OutputDevice*) pWin); }
virtual sal_Bool KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin);
virtual void MouseMove(const MouseEvent& rMEvt, ::sd::Window* pWin);
virtual void MouseButtonUp(const MouseEvent& rMEvt, ::sd::Window* pWin);
virtual void MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin);
virtual void Command(const CommandEvent& rCEvt, ::sd::Window* pWin);
virtual SdPage* GetActualPage();
/** @returns
current or selected page or 0.
*/
virtual SdPage* getCurrentPage() const;
void ExecCtrl(SfxRequest &rReq);
void GetCtrlState(SfxItemSet &rSet);
void GetMenuState(SfxItemSet &rSet);
void GetAttrState(SfxItemSet &rSet);
void SetPagesPerRow( sal_uInt16 nPagesPerRow );
void ExecStatusBar(SfxRequest& rReq);
void GetStatusBarState(SfxItemSet& rSet);
void FuTemporary(SfxRequest &rReq);
void FuPermanent(SfxRequest &rReq);
void FuSupport(SfxRequest &rReq);
virtual void ReadFrameViewData(FrameView* pView);
virtual void WriteFrameViewData();
virtual void SetZoom(long nZoom);
virtual void SetZoomRect(const Rectangle& rZoomRect);
virtual sal_Bool HasSelection( sal_Bool bText = sal_True ) const;
/** Draw the rectangle arround the specified slide that indicates whether
the slide is selected or not. When not selected the rectangle is
painted in the background color (WindowColor from the style settings)
and is therefore not visible. A selected slide is painted with the
WindowTextColor from the style settings. Painting takes place in
all associated windows. The line- and fill color of the windows are
restored to their original values after the rectangle is painted.
@param nPage
When the page number is invalid then the call is ignored.
*/
void DrawSelectionRect( sal_uInt16 nPage );
void DrawFocusRect( sal_uInt16 nPage );
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 VisAreaChanged(const Rectangle& rRect);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> CreateAccessibleDocumentView( ::sd::Window* pWindow );
void SelectionHasChanged();
void PageLayoutHasChanged();
void FocusHasChanged( sal_uInt16 nOldFocusPage, sal_uInt16 nNewFocusPage );
void PageVisibilityHasChanged( sal_uInt16 nPage, sal_Bool bVisible );
/** On activation the preview is turned off.
*/
virtual void Activate (sal_Bool IsMDIActivate);
protected:
virtual Size GetOptimalSizePixel() const;
virtual long VirtHScrollHdl(ScrollBar* pHScroll);
virtual long VirtVScrollHdl(ScrollBar* pVHScroll);
private:
SlideView* pSlideView;
Point aDisplayPos;
Size aDisplaySize;
sal_uInt16 nCurFocusPage;
bool bSetInitialZoomFactor;
bool bInitializeWinPos;
void Construct(SdDrawDocument* pDoc);
void ImplDrawFocusRect( sal_uInt16 nPage, sal_Bool bVisible );
};
} // end of namespace sd
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef SD_FU_SLIDE_HIDE_HXX
#define SD_FU_SLIDE_HIDE_HXX
#include "fuslid.hxx"
namespace sd {
/*************************************************************************
|*
|* selektierte Dias in der Show zeigen / nicht zeigen
|*
\************************************************************************/
class FuSlideHide
: public FuSlide
{
public:
TYPEINFO();
static FunctionReference Create( SlideViewShell* pViewSh, ::sd::Window* pWin, SlideView* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
virtual void DoExecute( SfxRequest& rReq );
protected:
FuSlideHide (
ViewShell* pViewSh,
::sd::Window* pWin,
::sd::View* pView,
SdDrawDocument* pDoc,
SfxRequest& rReq);
virtual ~FuSlideHide (void);
};
} // end of namespace sd
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef SD_FU_SLIDE_HXX
#define SD_FU_SLIDE_HXX
#include "fupoor.hxx"
class SdDrawDocument;
namespace sd {
class SlideView;
class SlideViewShell;
class Window;
/*************************************************************************
|*
|* Basisklasse der Funktionen des Diamodus
|*
\************************************************************************/
class FuSlide
: public FuPoor
{
public:
TYPEINFO();
static FunctionReference Create( SlideViewShell* pViewSh, ::sd::Window* pWin, SlideView* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
virtual void ScrollStart();
virtual void ScrollEnd();
protected:
FuSlide (
SlideViewShell* pViewSh,
::sd::Window* pWin,
SlideView* pView,
SdDrawDocument* pDoc,
SfxRequest& rReq);
SlideViewShell* pSlViewShell;
SlideView* pSlView;
};
} // end of namespace sd
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
#include "DrawViewShell.hxx" #include "DrawViewShell.hxx"
#include "Window.hxx" #include "Window.hxx"
#include "fupoor.hxx" #include "fupoor.hxx"
#include "fuslhide.hxx"
#include "fuzoom.hxx" #include "fuzoom.hxx"
#include "fucushow.hxx" #include "fucushow.hxx"
#include "fusldlg.hxx" #include "fusldlg.hxx"
......
...@@ -37,9 +37,7 @@ ...@@ -37,9 +37,7 @@
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
class SdSlideViewShell;
class SdWindow; class SdWindow;
class SdSlideView;
class SdDrawDocument; class SdDrawDocument;
class Sound; class Sound;
...@@ -205,4 +203,4 @@ private: ...@@ -205,4 +203,4 @@ private:
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
...@@ -273,8 +273,6 @@ Outliner::~Outliner (void) ...@@ -273,8 +273,6 @@ Outliner::~Outliner (void)
<li>When the current shell is a <type>SdOutlineViewShell</type> then <li>When the current shell is a <type>SdOutlineViewShell</type> then
directly operate on it. No switching into other views takes place.</li> directly operate on it. No switching into other views takes place.</li>
<li>For a <type>SlideViewShell</type> no action is performed.</li>
</ol> </ol>
*/ */
void Outliner::PrepareSpelling (void) void Outliner::PrepareSpelling (void)
......
...@@ -650,9 +650,8 @@ void DrawViewShell::VisAreaChanged(const Rectangle& rRect) ...@@ -650,9 +650,8 @@ void DrawViewShell::VisAreaChanged(const Rectangle& rRect)
/** If there is a valid controller then create a new instance of /** If there is a valid controller then create a new instance of
<type>AccessibleDrawDocumentView</type>. Otherwise delegate this call <type>AccessibleDrawDocumentView</type>. Otherwise return an empty
to the base class to return a default object (probably an empty reference.
reference).
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible> ::com::sun::star::accessibility::XAccessible>
......
...@@ -2077,9 +2077,8 @@ void OutlineViewShell::VisAreaChanged(const Rectangle& rRect) ...@@ -2077,9 +2077,8 @@ void OutlineViewShell::VisAreaChanged(const Rectangle& rRect)
} }
/** If there is a valid controller then create a new instance of /** If there is a valid controller then create a new instance of
<type>AccessibleDrawDocumentView</type>. Otherwise delegate this call <type>AccessibleDrawDocumentView</type>. Otherwise return an empty
to the base class to return a default object (probably an empty reference.
reference).
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible> ::com::sun::star::accessibility::XAccessible>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment