// Copyright (c) 2014-2018 Thomas Fussell // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, WRISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE // // @license: http://www.opensource.org/licenses/mit-license.php // @author: see AUTHORS file #pragma once #include #include #include #include #include namespace xlnt { struct XLNT_API constants { /// /// Returns the lowest allowable row index in a worksheet. /// static row_t min_row(); /// /// Returns the largest allowable row index in a worksheet. /// static row_t max_row(); /// /// Returns the lowest allowable column index in a worksheet. /// static const column_t min_column(); /// /// Returns the largest allowable column index in a worksheet. /// static const column_t max_column(); /// /// Returns the URI of the directory containing package properties. /// static const path package_properties(); /// /// Returns the URI of the directory containing SpreatsheetML package parts. /// static const path package_xl(); /// /// Returns the URI of the directory containing root relationships package part. /// static const path package_root_rels(); /// /// Returns the URI of the directory containing package themes. /// static const path package_theme(); /// /// Returns the URI of the directory containing package worksheets. /// static const path package_worksheets(); /// /// Returns the URI of the directory containing package worksheets. /// static const path package_drawings(); /// /// Returns the URI of the content types package part. /// static const path part_content_types(); /// /// Returns the URI of the core properties package part. /// static const path part_core(); /// /// Returns the URI of the app properties package part. /// static const path part_app(); /// /// Returns the URI of the workbook package part. /// static const path part_workbook(); /// /// Returns the URI of the root relationships package part. /// static const path part_root_relationships(); /// /// Returns the URI of the styles package part. /// static const path part_styles(); /// /// Returns the URI of the theme package part. /// static const path part_theme(); /// /// Returns the URI of the shared strings package part. /// static const path part_shared_strings(); /// /// Returns an unordered_map mapping namespace names to namespaces. /// static const std::unordered_map &namespaces(); /// /// Returns the namespace URI from a namespace name. /// static const std::string &ns(const std::string &id); }; } // namespace xlnt