LibreOffice Module sc (master) 1
vbafont.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
22
23#include <ooo/vba/excel/XFont.hpp>
25
27{
28class XPropertySet;
29}
30
31class ScCellRangeObj;
32class SfxItemSet;
33class ScVbaPalette;
34
35typedef cppu::ImplInheritanceHelper<VbaFontBase, ov::excel::XFont> ScVbaFont_BASE;
36
38{
41
42public:
44 ScVbaFont(const css::uno::Reference<ov::XHelperInterface>& xParent,
45 const css::uno::Reference<css::uno::XComponentContext>& xContext,
46 const ScVbaPalette& dPalette,
47 const css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
48 ScCellRangeObj* pRangeObj = nullptr, bool bFormControl = false);
49 virtual ~ScVbaFont() override; // {}
50
51 // Attributes
52 virtual css::uno::Any SAL_CALL getSize() override;
53 virtual css::uno::Any SAL_CALL getStandardFontSize() override;
54 virtual void SAL_CALL setStandardFontSize(const css::uno::Any& _standardfontsize) override;
55 virtual css::uno::Any SAL_CALL getStandardFont() override;
56 virtual void SAL_CALL setStandardFont(const css::uno::Any& _standardfont) override;
57 virtual css::uno::Any SAL_CALL getFontStyle() override;
58 virtual void SAL_CALL setFontStyle(const css::uno::Any& _fontstyle) override;
59 virtual css::uno::Any SAL_CALL getColorIndex() override;
60 virtual void SAL_CALL setColorIndex(const css::uno::Any& _colorindex) override;
61 virtual css::uno::Any SAL_CALL getBold() override;
62 virtual css::uno::Any SAL_CALL getUnderline() override;
63 virtual void SAL_CALL setUnderline(const css::uno::Any& _underline) override;
64 virtual css::uno::Any SAL_CALL getStrikethrough() override;
65 virtual css::uno::Any SAL_CALL getShadow() override;
66 virtual css::uno::Any SAL_CALL getItalic() override;
67 virtual css::uno::Any SAL_CALL getName() override;
68 virtual css::uno::Any SAL_CALL getColor() override;
69 virtual css::uno::Any SAL_CALL getOutlineFont() override;
70 virtual void SAL_CALL setOutlineFont(const css::uno::Any& _outlinefont) override;
71 // XHelperInterface
72 virtual OUString getServiceImplName() override;
73 virtual css::uno::Sequence<OUString> getServiceNames() override;
74};
75
76/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Any SAL_CALL getColorIndex() override
Definition: vbafont.cxx:85
virtual void SAL_CALL setUnderline(const css::uno::Any &_underline) override
Definition: vbafont.cxx:186
virtual css::uno::Any SAL_CALL getStrikethrough() override
Definition: vbafont.cxx:254
virtual css::uno::Any SAL_CALL getFontStyle() override
Definition: vbafont.cxx:158
virtual css::uno::Any SAL_CALL getShadow() override
Definition: vbafont.cxx:263
virtual OUString getServiceImplName() override
Definition: vbafont.cxx:314
SfxItemSet * GetDataSet()
Definition: vbafont.cxx:46
virtual css::uno::Any SAL_CALL getStandardFont() override
Definition: vbafont.cxx:120
virtual css::uno::Any SAL_CALL getUnderline() override
Definition: vbafont.cxx:223
virtual css::uno::Any SAL_CALL getOutlineFont() override
Definition: vbafont.cxx:305
virtual css::uno::Any SAL_CALL getColor() override
Definition: vbafont.cxx:290
virtual css::uno::Any SAL_CALL getStandardFontSize() override
Definition: vbafont.cxx:105
virtual void SAL_CALL setStandardFontSize(const css::uno::Any &_standardfontsize) override
Definition: vbafont.cxx:96
virtual void SAL_CALL setFontStyle(const css::uno::Any &_fontstyle) override
Definition: vbafont.cxx:128
virtual ~ScVbaFont() override
Definition: vbafont.cxx:51
virtual void SAL_CALL setColorIndex(const css::uno::Any &_colorindex) override
Definition: vbafont.cxx:65
ScCellRangeObj * mpRangeObj
Definition: vbafont.hxx:39
virtual css::uno::Any SAL_CALL getBold() override
Definition: vbafont.cxx:177
virtual css::uno::Any SAL_CALL getItalic() override
Definition: vbafont.cxx:272
virtual css::uno::Any SAL_CALL getSize() override
Definition: vbafont.cxx:56
virtual void SAL_CALL setOutlineFont(const css::uno::Any &_outlinefont) override
Definition: vbafont.cxx:298
virtual css::uno::Any SAL_CALL getName() override
Definition: vbafont.cxx:282
ScVbaFont(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const ScVbaPalette &dPalette, const css::uno::Reference< css::beans::XPropertySet > &xPropertySet, ScCellRangeObj *pRangeObj=nullptr, bool bFormControl=false)
Definition: vbafont.cxx:34
virtual void SAL_CALL setStandardFont(const css::uno::Any &_standardfont) override
Definition: vbafont.cxx:113
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbafont.cxx:320
class SAL_NO_VTABLE XPropertySet
cppu::ImplInheritanceHelper< VbaFontBase, ov::excel::XFont > ScVbaFont_BASE
Definition: vbafont.hxx:33