IWORKStylesheet.h Source File documentation

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: */
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
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKStylesheet::m_styles
IWORKStyleMap_t m_styles
Definition: IWORKStylesheet.h:37
libetonyek::IWORKStyleMap_t
std::unordered_map< ID_t, IWORKStylePtr_t > IWORKStyleMap_t
Definition: IWORKStyle_fwd.h:24
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
IWORKTypes_fwd.h
libetonyek::IWORKStylesheetPtr_t
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19
IWORKStylesheet.h
libetonyek::IWORKToken::string
@ string
Definition: IWORKToken.h:411
libetonyek_utils.h
libetonyek::IWORKStylesheetMap_t
std::unordered_map< ID_t, IWORKStylesheetPtr_t > IWORKStylesheetMap_t
Definition: IWORKStylesheet.h:21
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
IWORKStyle_fwd.h
libetonyek::IWORKStylesheet::IWORKStylesheet
IWORKStylesheet()
Definition: IWORKStylesheet.cpp:19
libetonyek::IWORKStylesheet::parent
IWORKStylesheetPtr_t parent
Definition: IWORKStylesheet.h:35
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKStylesheet
Representation of a stylesheet.
Definition: IWORKStylesheet.h:33