fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / vba / vbacharacters.hxx
blob7548a96a0afc46e4b0549cef7e92dd08808c6656
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SC_SOURCE_UI_VBA_VBACHARACTERS_HXX
20 #define INCLUDED_SC_SOURCE_UI_VBA_VBACHARACTERS_HXX
22 #include <cppuhelper/implbase1.hxx>
24 #include <ooo/vba/excel/XCharacters.hpp>
25 #include <com/sun/star/uno/XComponentContext.hpp>
26 #include <com/sun/star/text/XSimpleText.hpp>
28 #include <vbahelper/vbahelperinterface.hxx>
29 #include "vbapalette.hxx"
30 typedef InheritedHelperInterfaceImpl1< ov::excel::XCharacters > ScVbaCharacters_BASE;
32 class ScVbaCharacters : public ScVbaCharacters_BASE
34 private:
35 css::uno::Reference< css::text::XTextRange > m_xTextRange;
36 css::uno::Reference< css::text::XSimpleText > m_xSimpleText;
37 ScVbaPalette m_aPalette;
38 sal_Int16 nLength;
39 sal_Int16 nStart;
40 // Add because of MSO has different behavior.
41 bool bReplace;
42 public:
43 ScVbaCharacters( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const ScVbaPalette& dPalette, const css::uno::Reference< css::text::XSimpleText >& xRange, const css::uno::Any& Start, const css::uno::Any& Length, bool bReplace = false ) throw ( css::lang::IllegalArgumentException, css::uno::RuntimeException );
45 virtual ~ScVbaCharacters() {}
46 // Attributes
47 virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
48 virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
49 virtual ::sal_Int32 SAL_CALL getCount() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
50 virtual OUString SAL_CALL getText() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
51 virtual void SAL_CALL setText( const OUString& _text ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
52 virtual css::uno::Reference< ov::excel::XFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
53 virtual void SAL_CALL setFont( const css::uno::Reference< ov::excel::XFont >& _font ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
55 // Methods
56 virtual void SAL_CALL Insert( const OUString& String ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 virtual void SAL_CALL Delete( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
59 // XHelperInterface
60 virtual OUString getServiceImplName() SAL_OVERRIDE;
61 virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
65 #endif /* SC_VBA_CHARACTER_HXX */
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */