Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef SC_VBA_STYLE_HXX
29 : : #define SC_VBA_STYLE_HXX
30 : : #include <ooo/vba/excel/XStyle.hpp>
31 : : #include <com/sun/star/style/XStyle.hpp>
32 : : #include <com/sun/star/frame/XModel.hpp>
33 : : #include <com/sun/star/container/XNameContainer.hpp>
34 : : #include "vbaformat.hxx"
35 : :
36 : :
37 : : typedef ScVbaFormat< ov::excel::XStyle > ScVbaStyle_BASE;
38 : :
39 : : class ScVbaStyle : public ScVbaStyle_BASE
40 : : {
41 : : protected:
42 : : css::uno::Reference< css::style::XStyle > mxStyle;
43 : : css::uno::Reference< css::frame::XModel > mxModel;
44 : : css::uno::Reference< css::container::XNameContainer > mxStyleFamilyNameContainer;
45 : : void initialise() throw ( css::uno::RuntimeException );
46 : : public:
47 : : ScVbaStyle( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const rtl::OUString& sStyleName, const css::uno::Reference< css::frame::XModel >& _xModel ) throw ( css::script::BasicErrorException, css::uno::RuntimeException );
48 : : ScVbaStyle( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::beans::XPropertySet >& _xPropertySet, const css::uno::Reference< css::frame::XModel >& _xModel ) throw ( css::script::BasicErrorException, css::uno::RuntimeException );
49 [ # # ]: 0 : virtual ~ScVbaStyle(){}
50 : : static css::uno::Reference< css::container::XNameAccess > getStylesNameContainer( const css::uno::Reference< css::frame::XModel >& xModel ) throw( css::uno::RuntimeException );
51 : 0 : virtual css::uno::Reference< ov::XHelperInterface > thisHelperIface() { return this; };
52 : : // XStyle Methods
53 : : virtual ::sal_Bool SAL_CALL BuiltIn() throw (css::script::BasicErrorException, css::uno::RuntimeException);
54 : : virtual void SAL_CALL setName( const ::rtl::OUString& Name ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
55 : : virtual ::rtl::OUString SAL_CALL getName() throw (css::script::BasicErrorException, css::uno::RuntimeException);
56 : : virtual void SAL_CALL setNameLocal( const ::rtl::OUString& NameLocal ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
57 : : virtual ::rtl::OUString SAL_CALL getNameLocal() throw (css::script::BasicErrorException, css::uno::RuntimeException);
58 : : virtual void SAL_CALL Delete() throw (css::script::BasicErrorException, css::uno::RuntimeException);
59 : : // XFormat
60 : : virtual void SAL_CALL setMergeCells( const css::uno::Any& MergeCells ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
61 : : virtual css::uno::Any SAL_CALL getMergeCells( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
62 : : // XHelperInterface
63 : : virtual rtl::OUString getServiceImplName();
64 : : virtual css::uno::Sequence<rtl::OUString> getServiceNames();
65 : : };
66 : :
67 : : #endif //SC_VBA_AXIS_HXX
68 : :
69 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|