tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / vba / vbafont.hxx
blobd6a01b9a05e8d6b387a863a26eb4d56dd2018e94
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 #pragma once
21 #include <cppuhelper/implbase.hxx>
23 #include <ooo/vba/excel/XFont.hpp>
24 #include <vbahelper/vbafontbase.hxx>
26 namespace com::sun::star::beans
28 class XPropertySet;
31 class ScCellRangeObj;
32 class SfxItemSet;
33 class ScVbaPalette;
35 typedef cppu::ImplInheritanceHelper<VbaFontBase, ov::excel::XFont> ScVbaFont_BASE;
37 class ScVbaFont : public ScVbaFont_BASE
39 ScCellRangeObj* mpRangeObj;
40 SfxItemSet* GetDataSet();
42 public:
43 /// @throws css::uno::RuntimeException
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: */