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 -*- */
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
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  */
22 #include <cppuhelper/implbase.hxx>
24 #include <ooo/vba/excel/XFont.hpp>
27 namespace com::sun::star::beans
28 {
29 class XPropertySet;
30 }
32 class ScCellRangeObj;
33 class SfxItemSet;
36 typedef cppu::ImplInheritanceHelper<VbaFontBase, ov::excel::XFont> ScVbaFont_BASE;
38 class ScVbaFont : public ScVbaFont_BASE
39 {
43 public:
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;
75 };
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setOutlineFont(const css::uno::Any &_outlinefont) override
Definition: vbafont.cxx:297
ScCellRangeObj * mpRangeObj
Definition: vbafont.hxx:40
virtual css::uno::Any SAL_CALL getOutlineFont() override
Definition: vbafont.cxx:304
cppu::ImplInheritanceHelper< VbaFontBase, ov::excel::XFont > ScVbaFont_BASE
Definition: vbafont.hxx:34
virtual css::uno::Any SAL_CALL getStandardFont() override
Definition: vbafont.cxx:119
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:33
virtual void SAL_CALL setUnderline(const css::uno::Any &_underline) override
Definition: vbafont.cxx:185
virtual void SAL_CALL setColorIndex(const css::uno::Any &_colorindex) override
Definition: vbafont.cxx:64
virtual css::uno::Any SAL_CALL getFontStyle() override
Definition: vbafont.cxx:157
virtual css::uno::Any SAL_CALL getStrikethrough() override
Definition: vbafont.cxx:253
class SAL_NO_VTABLE XPropertySet
virtual css::uno::Any SAL_CALL getColorIndex() override
Definition: vbafont.cxx:84
virtual css::uno::Any SAL_CALL getName() override
Definition: vbafont.cxx:281
virtual OUString getServiceImplName() override
Definition: vbafont.cxx:313
virtual css::uno::Any SAL_CALL getShadow() override
Definition: vbafont.cxx:262
virtual css::uno::Any SAL_CALL getSize() override
Definition: vbafont.cxx:55
virtual void SAL_CALL setFontStyle(const css::uno::Any &_fontstyle) override
Definition: vbafont.cxx:127
virtual css::uno::Any SAL_CALL getItalic() override
Definition: vbafont.cxx:271
virtual ~ScVbaFont() override
Definition: vbafont.cxx:50
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbafont.cxx:319
virtual css::uno::Any SAL_CALL getBold() override
Definition: vbafont.cxx:176
virtual css::uno::Any SAL_CALL getUnderline() override
Definition: vbafont.cxx:222
virtual void SAL_CALL setStandardFontSize(const css::uno::Any &_standardfontsize) override
Definition: vbafont.cxx:95
virtual css::uno::Any SAL_CALL getStandardFontSize() override
Definition: vbafont.cxx:104
virtual css::uno::Any SAL_CALL getColor() override
Definition: vbafont.cxx:289
SfxItemSet * GetDataSet()
Definition: vbafont.cxx:45
virtual void SAL_CALL setStandardFont(const css::uno::Any &_standardfont) override
Definition: vbafont.cxx:112