nss: upgrade to release 3.73
[LibreOffice.git] / sc / source / ui / vba / vbafont.hxx
blob9aa5936dbee0411cf241d84b783af206135eee64
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_VBAFONT_HXX
20 #define INCLUDED_SC_SOURCE_UI_VBA_VBAFONT_HXX
22 #include <cppuhelper/implbase.hxx>
24 #include <ooo/vba/excel/XFont.hpp>
25 #include <vbahelper/vbafontbase.hxx>
27 namespace com::sun::star::beans
29 class XPropertySet;
32 class ScCellRangeObj;
33 class SfxItemSet;
34 class ScVbaPalette;
36 typedef cppu::ImplInheritanceHelper<VbaFontBase, ov::excel::XFont> ScVbaFont_BASE;
38 class ScVbaFont : public ScVbaFont_BASE
40 ScCellRangeObj* mpRangeObj;
41 SfxItemSet* GetDataSet();
43 public:
44 /// @throws css::uno::RuntimeException
45 ScVbaFont(const css::uno::Reference<ov::XHelperInterface>& xParent,
46 const css::uno::Reference<css::uno::XComponentContext>& xContext,
47 const ScVbaPalette& dPalette,
48 const css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
49 ScCellRangeObj* pRangeObj = nullptr, bool bFormControl = false);
50 virtual ~ScVbaFont() override; // {}
52 // Attributes
53 virtual css::uno::Any SAL_CALL getSize() override;
54 virtual css::uno::Any SAL_CALL getStandardFontSize() override;
55 virtual void SAL_CALL setStandardFontSize(const css::uno::Any& _standardfontsize) override;
56 virtual css::uno::Any SAL_CALL getStandardFont() override;
57 virtual void SAL_CALL setStandardFont(const css::uno::Any& _standardfont) override;
58 virtual css::uno::Any SAL_CALL getFontStyle() override;
59 virtual void SAL_CALL setFontStyle(const css::uno::Any& _fontstyle) override;
60 virtual css::uno::Any SAL_CALL getColorIndex() override;
61 virtual void SAL_CALL setColorIndex(const css::uno::Any& _colorindex) override;
62 virtual css::uno::Any SAL_CALL getBold() override;
63 virtual css::uno::Any SAL_CALL getUnderline() override;
64 virtual void SAL_CALL setUnderline(const css::uno::Any& _underline) override;
65 virtual css::uno::Any SAL_CALL getStrikethrough() override;
66 virtual css::uno::Any SAL_CALL getShadow() override;
67 virtual css::uno::Any SAL_CALL getItalic() override;
68 virtual css::uno::Any SAL_CALL getName() override;
69 virtual css::uno::Any SAL_CALL getColor() override;
70 virtual css::uno::Any SAL_CALL getOutlineFont() override;
71 virtual void SAL_CALL setOutlineFont(const css::uno::Any& _outlinefont) override;
72 // XHelperInterface
73 virtual OUString getServiceImplName() override;
74 virtual css::uno::Sequence<OUString> getServiceNames() override;
77 #endif // INCLUDED_SC_SOURCE_UI_VBA_VBAFONT_HXX
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */