/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) Yeico S. A. de C. V. * xlsLib -- A multiplatform, C++ library for dynamic generation of Excel (TM) * files. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Source: /cvsroot/xlslib/xlslib/src/oledoc/oleprop.h,v $ * $Revision: 1.1.1.1 $ * $Author: darioglz $ * $Date: 2004/08/27 16:31:43 $ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * File description: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef OLEPROP_H #define OLEPROP_H #include #include #include #include #include "datast.h" namespace xlslib_core { class COleProp; typedef std::list Tree_Level_List_t; typedef Tree_Level_List_t::iterator Tree_Level_Itor_t; typedef std::list NodeList_t; typedef NodeList_t::iterator NodeList_Itor_t; /* ****************************** COleProp class declaration ****************************** */ class COleProp { protected: std::string m_sName; unsigned16_t m_nNameSize; unsigned8_t m_nPropType; unsigned8_t m_nNodeColor; signed32_t m_nPrevPropIndex; signed32_t m_nNextPropIndex; signed32_t m_nChildPropIndex; signed32_t m_nTSCreatedSeconds; signed32_t m_nTSCreatedDays; signed32_t m_nTSModifiedSeconds; signed32_t m_nTSModifiedDays; signed32_t m_nStartBlock; signed32_t m_nSize; // The following set of attributes are not part of the definition of // an OleDoc's property: CDataStorage* m_pData; signed32_t m_nIndex; public: Tree_Level_List_t m_Child_List; COleProp(); COleProp(signed32_t node_index, std::string name, CDataStorage* data = NULL); ~COleProp(); int Init(signed32_t node_index, std::string name, CDataStorage* data = NULL); int SetName(std::string name); std::string GetName(void); int SetIndex(signed32_t newindex); signed32_t GetIndex(void); int SetSize(signed32_t size); signed32_t GetSize(void); int SetType(unsigned8_t newtype); unsigned8_t GetType(void); int SetColor(unsigned8_t newcolor); unsigned8_t GetColor(void); int SetPreviousIndex(signed32_t prev); signed32_t GetPreviousIndex(void); int SetNextIndex(signed32_t next); signed32_t GetNextIndex(void); int SetChildIndex(signed32_t child); signed32_t GetChildIndex(void); int SetStartBlock(signed32_t sb); signed32_t GetStartBlock(void); void SetDataPointer(CDataStorage* pdata); CDataStorage* GetDataPointer(void); void SetCreatedSecs(signed32_t sec1); signed32_t GetCreatedSecs(void); void SetCreatedDays(signed32_t day1); signed32_t GetCreatedDays(void); void SetModifiedSecs(signed32_t sec2); signed32_t GetModifiedSecs(void); void SetModifiedDays(signed32_t day2); signed32_t GetModifiedDays(void); }; } #endif //OLEPROP_H /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $Log: oleprop.h,v $ * Revision 1.1.1.1 2004/08/27 16:31:43 darioglz * Initial Import. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */