update dev300-m58
[ooovba.git] / sc / source / ui / vba / vbapane.hxx
blob3e98c8b01c46ea82e1a04b4573c5d325fe8ebdd1
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: vbapane.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef SC_VBA_PANE_HXX
31 #define SC_VBA_PANE_HXX
33 #include<cppuhelper/implbase1.hxx>
34 #include<com/sun/star/sheet/XViewPane.hpp>
35 #include<ooo/vba/excel/XPane.hpp>
37 #include"excelvbahelper.hxx"
39 typedef cppu::WeakImplHelper1< ov::excel::XPane > PaneImpl_Base;
41 class ScVbaPane : public PaneImpl_Base
43 protected:
44 css::uno::Reference< css::uno::XComponentContext > m_xContext;
45 css::uno::Reference< css::sheet::XViewPane > m_xViewPane;
46 public:
47 ScVbaPane( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::sheet::XViewPane > xViewPane ) : m_xContext( xContext ), m_xViewPane( xViewPane ) {}
49 css::uno::Reference< css::sheet::XViewPane > getViewPane() { return m_xViewPane; }
51 //Attribute
52 virtual sal_Int32 SAL_CALL getScrollColumn() throw (css::uno::RuntimeException);
53 virtual void SAL_CALL setScrollColumn( sal_Int32 _scrollcolumn ) throw (css::uno::RuntimeException);
54 virtual sal_Int32 SAL_CALL getScrollRow() throw (css::uno::RuntimeException);
55 virtual void SAL_CALL setScrollRow( sal_Int32 _scrollrow ) throw (css::uno::RuntimeException);
57 //Method
58 virtual void SAL_CALL SmallScroll( const css::uno::Any& Down, const css::uno::Any& Up, const css::uno::Any& ToRight, const css::uno::Any& ToLeft ) throw (css::uno::RuntimeException);
59 virtual void SAL_CALL LargeScroll( const css::uno::Any& Down, const css::uno::Any& Up, const css::uno::Any& ToRight, const css::uno::Any& ToLeft ) throw (css::uno::RuntimeException);
63 #endif//SC_VBA_PANE_HXX