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  */
19 #pragma once
21 #include <cppuhelper/implbase.hxx>
23 #include <ooo/vba/excel/XFont.hpp>
26 namespace com::sun::star::beans
27 {
28 class XPropertySet;
29 }
31 class ScCellRangeObj;
32 class SfxItemSet;
35 typedef cppu::ImplInheritanceHelper<VbaFontBase, ov::excel::XFont> ScVbaFont_BASE;
37 class ScVbaFont : public ScVbaFont_BASE
38 {
42 public:
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;
74 };
76 /* 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:39
virtual css::uno::Any SAL_CALL getOutlineFont() override
Definition: vbafont.cxx:304
cppu::ImplInheritanceHelper< VbaFontBase, ov::excel::XFont > ScVbaFont_BASE
Definition: vbafont.hxx:33
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