File: import_interface_strikethrough.hpp

package info (click to toggle)
liborcus 0.21.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,892 kB
  • sloc: xml: 78,842; cpp: 75,565; sh: 4,626; makefile: 2,840; python: 2,614
file content (61 lines) | stat: -rw-r--r-- 1,574 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#pragma once

#include "../env.hpp"
#include "types.hpp"

namespace orcus { namespace spreadsheet { namespace iface {

/**
 * Interface for importing strikethrough attributes of a text.
 */
class ORCUS_DLLPUBLIC import_strikethrough
{
public:
    virtual ~import_strikethrough();

    /**
     * Set the strikethrough style of a font.
     *
     * @param s strikethrough style of a font.
     */
    virtual void set_style(strikethrough_style_t s) = 0;

    /**
     * Set whether the strikethrough of a font consists of a single line or a
     * double line.
     *
     * @param s whether the strikethrough of a font consists of a single line or
     *          a double line.
     */
    virtual void set_type(strikethrough_type_t s) = 0;

    /**
     * Set the width of the strikethrough of a font.
     *
     * @param s the width of the strikethrough of a font.
     */
    virtual void set_width(strikethrough_width_t s) = 0;

    /**
     * Set the text to use as a strikethrough.
     *
     * @param s text to use as a strikethrough.
     */
    virtual void set_text(strikethrough_text_t s) = 0;

    /**
     * Commit the strikethrough attributes in the current buffer.
     */
    virtual void commit() = 0;
};

}}}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */