LibreOffice Module vbahelper (master) 1
vbanewfont.hxx
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 http://mozilla.org/MPL/2.0/.
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 http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBANEWFONT_HXX
21#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBANEWFONT_HXX
22
23#include <ooo/vba/msforms/XNewFont.hpp>
26
27class VbaNewFont : public cppu::WeakImplHelper<ov::msforms::XNewFont>
28{
29public:
31 explicit VbaNewFont(const css::uno::Reference<css::beans::XPropertySet>& rxModelProps);
32
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;
50
51private:
52 css::uno::Reference<css::beans::XPropertySet> mxProps;
53};
54
55#endif
56
57/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setWeight(sal_Int16 nWeight) override
Definition: vbanewfont.cxx:83
css::uno::Reference< css::beans::XPropertySet > mxProps
Definition: vbanewfont.hxx:52
virtual void SAL_CALL setItalic(sal_Bool bItalic) override
Definition: vbanewfont.cxx:105
virtual sal_Bool SAL_CALL getUnderline() override
Definition: vbanewfont.cxx:110
virtual void SAL_CALL setSize(double fSize) override
Definition: vbanewfont.cxx:57
virtual void SAL_CALL setName(const OUString &rName) override
Definition: vbanewfont.cxx:46
virtual OUString SAL_CALL getName() override
Definition: vbanewfont.cxx:40
virtual void SAL_CALL setUnderline(sal_Bool bUnderline) override
Definition: vbanewfont.cxx:116
VbaNewFont(const css::uno::Reference< css::beans::XPropertySet > &rxModelProps)
Definition: vbanewfont.cxx:32
virtual void SAL_CALL setCharset(sal_Int16 nCharset) override
Definition: vbanewfont.cxx:68
virtual void SAL_CALL setStrikethrough(sal_Bool bStrikethrough) override
Definition: vbanewfont.cxx:127
virtual double SAL_CALL getSize() override
Definition: vbanewfont.cxx:51
virtual sal_Bool SAL_CALL getBold() override
Definition: vbanewfont.cxx:88
virtual sal_Int16 SAL_CALL getWeight() override
Definition: vbanewfont.cxx:78
virtual sal_Bool SAL_CALL getItalic() override
Definition: vbanewfont.cxx:99
virtual void SAL_CALL setBold(sal_Bool bBold) override
Definition: vbanewfont.cxx:94
virtual sal_Int16 SAL_CALL getCharset() override
Definition: vbanewfont.cxx:62
virtual sal_Bool SAL_CALL getStrikethrough() override
Definition: vbanewfont.cxx:121
unsigned char sal_Bool