IWORKStylesheet.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libetonyek 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
10 #ifndef IWORKSTYLESHEET_H_INCLUDED
11 #define IWORKSTYLESHEET_H_INCLUDED
12
13 #include "IWORKStyle_fwd.h"
14 #include "IWORKTypes_fwd.h"
15
16 namespace libetonyek
17 {
18
19 struct IWORKStylesheet;
20 typedef std::shared_ptr<IWORKStylesheet> IWORKStylesheetPtr_t;
21 typedef std::unordered_map<ID_t, IWORKStylesheetPtr_t> IWORKStylesheetMap_t;
22
33 struct IWORKStylesheet
34 {
35 IWORKStylesheetPtr_t parent;
36
37 IWORKStyleMap_t m_styles;
38
39 IWORKStylesheet();
40
42 IWORKStylePtr_t find(const std::string &name) const;
43 };
44
45 }
46
47 #endif // IWORKSTYLESHEET_H_INCLUDED
48
49 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKStyle_fwd.h
libetonyek::IWORKStylesheetMap_t
std::unordered_map< ID_t, IWORKStylesheetPtr_t > IWORKStylesheetMap_t
Definition: IWORKStylesheet.h:21
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKStylesheet::find
IWORKStylePtr_t find(const std::string &name) const
try to return a style in a spreadsheet with a given name
Definition: IWORKStylesheet.cpp:25
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
libetonyek::IWORKStylesheet::IWORKStylesheet
IWORKStylesheet()
Definition: IWORKStylesheet.cpp:19
IWORKTypes_fwd.h
libetonyek::IWORKStylesheet::m_styles
IWORKStyleMap_t m_styles
Definition: IWORKStylesheet.h:37
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKStylesheet::parent
IWORKStylesheetPtr_t parent
Definition: IWORKStylesheet.h:35
libetonyek::IWORKToken::string
Definition: IWORKToken.h:411
libetonyek::IWORKStylesheet
Representation of a stylesheet.
Definition: IWORKStylesheet.h:33
libetonyek::IWORKStyleMap_t
std::unordered_map< ID_t, IWORKStylePtr_t > IWORKStyleMap_t
Definition: IWORKStyle_fwd.h:24
libetonyek::IWORKStylesheetPtr_t
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19