diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-10-12 16:35:27 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-28 13:28:24 -0500 |
commit | cbc00f54a062d7ab94c6a751f170274f673fa461 (patch) | |
tree | 1d1820992232f3275e586b83c70af83b79998a82 /sc/inc/orcusxml.hxx | |
parent | Get it to build. (diff) | |
download | core-cbc00f54a062d7ab94c6a751f170274f673fa461.tar.gz core-cbc00f54a062d7ab94c6a751f170274f673fa461.zip |
Use param structure to consolidate parameters for loadXMLStructure() call.
Change-Id: I3e5895cd6b2bae4fd18aa13ebf88321f32a95f8d
Diffstat (limited to 'sc/inc/orcusxml.hxx')
-rw-r--r-- | sc/inc/orcusxml.hxx | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sc/inc/orcusxml.hxx b/sc/inc/orcusxml.hxx new file mode 100644 index 000000000000..dfb2867ed9b3 --- /dev/null +++ b/sc/inc/orcusxml.hxx @@ -0,0 +1,45 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * 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/. + */ + +#ifndef __SC_ORCUSXML_HXX__ +#define __SC_ORCUSXML_HXX__ + +#include "vcl/image.hxx" + +#include <boost/ptr_container/ptr_vector.hpp> + +/** + * Parameter used during call to ScOrcusFilters::loadXMLStructure(). + */ +struct ScOrcusXMLTreeParam +{ + enum EntryType { ElementDefault, ElementRepeat, Attribute }; + + /** Custom data stored with each tree item. */ + struct TreeEntryUserData + { + EntryType meType; + }; + + typedef boost::ptr_vector<TreeEntryUserData> UserDataStoreType; + + Image maImgElementDefault; + Image maImgElementRepeat; + Image maImgAttribute; + + /** + * Store all custom data instances since the tree control doesn't manage + * the life cycle of user datas. + */ + UserDataStoreType maUserDataStore; +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |