sd: keep a non-owning pointer to the OverridingShell
[LibreOffice.git] / vbahelper / source / msforms / vbanewfont.hxx
blobfb928f9e0c50ccb05719369fb19b23992cf1c44a
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 .
20 #ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBANEWFONT_HXX
21 #define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBANEWFONT_HXX
23 #include <ooo/vba/msforms/XNewFont.hpp>
24 #include <vbahelper/vbahelper.hxx>
25 #include <cppuhelper/implbase.hxx>
27 class VbaNewFont : public cppu::WeakImplHelper<ov::msforms::XNewFont>
29 public:
30 /// @throws css::uno::RuntimeException
31 explicit VbaNewFont(const css::uno::Reference<css::beans::XPropertySet>& rxModelProps);
33 // XNewFont attributes
34 virtual OUString SAL_CALL getName() override;
35 virtual void SAL_CALL setName(const OUString& rName) override;
36 virtual double SAL_CALL getSize() override;
37 virtual void SAL_CALL setSize(double fSize) override;
38 virtual sal_Int16 SAL_CALL getCharset() override;
39 virtual void SAL_CALL setCharset(sal_Int16 nCharset) override;
40 virtual sal_Int16 SAL_CALL getWeight() override;
41 virtual void SAL_CALL setWeight(sal_Int16 nWeight) override;
42 virtual sal_Bool SAL_CALL getBold() override;
43 virtual void SAL_CALL setBold(sal_Bool bBold) override;
44 virtual sal_Bool SAL_CALL getItalic() override;
45 virtual void SAL_CALL setItalic(sal_Bool bItalic) override;
46 virtual sal_Bool SAL_CALL getUnderline() override;
47 virtual void SAL_CALL setUnderline(sal_Bool bUnderline) override;
48 virtual sal_Bool SAL_CALL getStrikethrough() override;
49 virtual void SAL_CALL setStrikethrough(sal_Bool bStrikethrough) override;
51 private:
52 css::uno::Reference<css::beans::XPropertySet> mxProps;
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */