LibreOffice Module sc (master) 1
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
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 .
18 */
19#pragma once
23#include <ooo/vba/excel/XFont.hpp>
28class XPropertySet;
31class ScCellRangeObj;
32class SfxItemSet;
33class ScVbaPalette;
35typedef cppu::ImplInheritanceHelper<VbaFontBase, ov::excel::XFont> ScVbaFont_BASE;
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; // {}
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;
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