From 85b59ba5c6e2b2ad0cce127d414afef187eddb0b Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期四, 14 十一月 2024 15:31:20 +0800 Subject: [PATCH] update --- jrj/xframe/kobject/kcell.hpp | 172 +++++++++++++++++++++++++++++--------------------------- 1 files changed, 89 insertions(+), 83 deletions(-) diff --git a/jrj/xframe/kobject/kcell.hpp b/jrj/xframe/kobject/kcell.hpp index 4288ee4..e9a8dc9 100644 --- a/jrj/xframe/kobject/kcell.hpp +++ b/jrj/xframe/kobject/kcell.hpp @@ -3,96 +3,102 @@ #include "kcontrol.hpp" namespace Hxsoft { namespace XFrame { namespace XOffice { namespace XCell{ -class IXCell : public IXFControl -{ -public: - int GetRow(); - int GetColumn(); + class IXCell : public IXFControl + { + public: + int GetRow(); + int GetColumn(); - int GetAnchorRow(); - int GetAnchorCol(); + int GetAnchorRow(); + int GetAnchorCol(); - int SetRowColumn(int ARow, int ACol); - int SetAnchorRowColumn(int ARow, int ACol); + int SetRowColumn(int ARow, int ACol); + int SetAnchorRowColumn(int ARow, int ACol); - int GetRowCount(); - int SetRowCount(int columnCount); + int GetRowCount(); + int SetRowCount(int columnCount); - int GetColumnCount(); - int SetColumnCount(int columnCount); + int GetColumnCount(); + int SetColumnCount(int columnCount); - LPCTSTR GetItemString(int ARow, int ACol); - int SetItemString(int ARow, int ACol, LPTSTR pText); - LPCTSTR GetItemDisplayString(int ARow, int ACol); - int SetItemDisplayString(int ARow, int ACol, LPTSTR pText); + LPCTSTR GetItemString(int ARow, int ACol); + int SetItemString(int ARow, int ACol, LPTSTR pText); + LPCTSTR GetItemDisplayString(int ARow, int ACol); + int SetItemDisplayString(int ARow, int ACol, LPTSTR pText); - int SetBorder(int nBorder); + int SetBorder(int nBorder); - int Copy(); - int Cut(); - int Paste(); + int Copy(); + int Cut(); + int Paste(); - int GetColumnWidth(int nCol); - bool SetColumnWidth(int nCol, int nWidth); - int GetRowHeight(int nRow); - bool SetRowHeight(int nRow, int nHeight); -public: - int SetRowSelectorWidth(int nWidth); - int ResetRowSelector(); - int GetRowSelectorWidth(); - int GetRowSelectorDefaultWidth(); + int GetColumnWidth(int nCol); + bool SetColumnWidth(int nCol, int nWidth); + int GetRowHeight(int nRow); + bool SetRowHeight(int nRow, int nHeight); + public: + int SetRowSelectorWidth(int nWidth); + int ResetRowSelector(); + int GetRowSelectorWidth(); + int GetRowSelectorDefaultWidth(); - int SetColHeaderHeight(int nHeight); - int GetColHeaderDefaultHeight(); - int ResetColHeaderHeight(); - int GetColHeaderHeight(); -public: - LPTSTR GetCellProps(int nRow, int nCol); //得到单元整体XML属性 - int SetCellProps(int nRow, int nCol, LPCTSTR pXmlProp); //得到单元整体XML属性 - LPTSTR GetCellProp(int nRow, int nCol, LPCTSTR pItem); //得到单元属性 - int SetCellProp(int nRow, int nCol, LPCTSTR pItem, LPCTSTR pProp);//得到单元属性 -public: - LPTSTR GetHtml(); - LPTSTR GetData(); -public: - void* GetSheetSvr(); -public: - void SetSchmaSource(LPCTSTR pSchema); - LPCTSTR GetSchemaSource(); - void SetSchmaString(LPCTSTR pSchemaStr); - LPCTSTR GetSchemaString(); -public: - int GetSpanRight(int ARow, int ACol); - int GetSpanBottom(int ARow, int ACol); - int GetSpanLeft(int ARow, int ACol); - int GetSpanTop(int ARow, int ACol); - bool IsSpanCell(int ARow, int ACol); -public: - int GetValidRow(); - int GetValidCol(int ARow); - int GetValidRowCol(int& ARow, int& ACol); - int GetValidCol(); -public: - int LoadTemplate(KXMLDOMDocument pDoc, LPTSTR strState); - int LoadTemplate(KXMLDOMElement pElement, LPTSTR strState); -public: - int SaveFileAs(); - int SaveFile(); - int SaveFile(wchar_t* fileName); -public: - int OpenFile(wchar_t* fileName); - int OpenFile(); -public: - wchar_t* m_pFileName; -public: - int SetReadOnly(bool bReadOnly); - int SetRunState(); - int SetRunState(int runstate); -public: - void SetEditUpperMode(bool upper); - bool GetEditUpperMode(); -public: - LPCTSTR GetSortColumns(); - void SortData(LPCTSTR sortColumn, LPTSTR strType, bool bAsc); -}; + int SetColHeaderHeight(int nHeight); + int GetColHeaderDefaultHeight(); + int ResetColHeaderHeight(); + int GetColHeaderHeight(); + public: + LPTSTR GetCellProps(int nRow, int nCol); //得到单元整体XML属性 + int SetCellProps(int nRow, int nCol, LPCTSTR pXmlProp); //得到单元整体XML属性 + LPTSTR GetCellProp(int nRow, int nCol, LPCTSTR pItem); //得到单元属性 + int SetCellProp(int nRow, int nCol, LPCTSTR pItem, LPCTSTR pProp);//得到单元属性 + public: + LPTSTR GetHtml(); + LPTSTR GetData(); + public: + void* GetSheetSvr(); + public: + void SetSchmaSource(LPCTSTR pSchema); + LPCTSTR GetSchemaSource(); + void SetSchmaString(LPCTSTR pSchemaStr); + LPCTSTR GetSchemaString(); + public: + int GetSpanRight(int ARow, int ACol); + int GetSpanBottom(int ARow, int ACol); + int GetSpanLeft(int ARow, int ACol); + int GetSpanTop(int ARow, int ACol); + bool IsSpanCell(int ARow, int ACol); + public: + int GetValidRow(); + int GetValidCol(int ARow); + int GetValidRowCol(int& ARow, int& ACol); + int GetValidCol(); + public: + int LoadTemplate(KXMLDOMDocument pDoc, LPTSTR strState); + int LoadTemplate(KXMLDOMElement pElement, LPTSTR strState); + public: + int SaveFileAs(); + int SaveFile(); + int SaveFile(wchar_t* fileName); + public: + int OpenFile(wchar_t* fileName); + int OpenFile(); + public: + wchar_t* m_pFileName; + public: + int SetReadOnly(bool bReadOnly); + int SetRunState(); + int SetRunState(int runstate); + public: + void SetEditUpperMode(bool upper); + bool GetEditUpperMode(); + public: + LPCTSTR GetSortColumns(); + void SortData(LPCTSTR sortColumn, LPTSTR strType, bool bAsc); + public: + int GetFixedRows(); + void SetFixedRows(int value); + public: + int GetFixedCols(); + void SetFixedCols(int value); + }; }}}} -- Gitblit v1.9.3