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 
20 typedef std::shared_ptr<IWORKStylesheet> IWORKStylesheetPtr_t;
21 typedef std::unordered_map<ID_t, IWORKStylesheetPtr_t> IWORKStylesheetMap_t;
22 
34 {
36 
38 
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: */
std::unordered_map< ID_t, IWORKStylesheetPtr_t > IWORKStylesheetMap_t
Definition: IWORKStylesheet.h:21
IWORKStylePtr_t find(const std::string &name) const
try to return a style in a spreadsheet with a given name
Definition: IWORKStylesheet.cpp:25
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
IWORKStylesheet()
Definition: IWORKStylesheet.cpp:19
IWORKStyleMap_t m_styles
Definition: IWORKStylesheet.h:37
const char * name
Definition: IWORKToken.cpp:43
IWORKStylesheetPtr_t parent
Definition: IWORKStylesheet.h:35
Definition: IWORKToken.h:418
Representation of a stylesheet.
Definition: IWORKStylesheet.h:33
std::unordered_map< ID_t, IWORKStylePtr_t > IWORKStyleMap_t
Definition: IWORKStyle_fwd.h:24
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19

Generated for libetonyek by doxygen 1.8.6