123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 2015 Autodesk, Inc. All rights reserved.
- //
- // Use of this software is subject to the terms of the Autodesk license
- // agreement provided at the time of installation or download, or which
- // otherwise accompanies this software in either electronic or hard copy form.
- //
- //////////////////////////////////////////////////////////////////////////////
- //
- //
- // Name: DbLinkedTableData.h
- //
- // Description: Contains the following classes:
- // AcDbLinkedTableData
- //////////////////////////////////////////////////////////////////////////////
- #pragma once
- #include "DbLinkedData.h"
- #include "DbTableIterator.h"
- #include "AcCell.h"
- //*************************************************************************
- // AcDbLinkedTableData
- //*************************************************************************
- class AcDbLinkedTableData : public AcDbLinkedData
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbLinkedTableData);
- ACDB_PORT AcDbLinkedTableData(void);
- ACDB_PORT virtual ~AcDbLinkedTableData(void);
- ACDB_PORT virtual Acad::ErrorStatus clear(void);
- ACDB_PORT virtual Acad::ErrorStatus copyFrom(const AcDbLinkedTableData* pSrc,
- AcDb::TableCopyOption nOption);
- ACDB_PORT virtual Acad::ErrorStatus copyFrom(const AcDbLinkedTableData* pSrc,
- AcDb::TableCopyOption nOption,
- const AcCellRange& srcRange,
- const AcCellRange& targetRange,
- AcCellRange* pNewTargetRange);
- ACDB_PORT AcDbTableIterator* getIterator(void) const;
- ACDB_PORT AcDbTableIterator* getIterator(const AcCellRange* pRange,
- AcDb::TableIteratorOption nOption) const;
- ACDB_PORT virtual Acad::ErrorStatus setSize(int nRows, int nCols);
- ACDB_PORT virtual int numColumns (void) const;
- ACDB_PORT virtual const ACHAR* getColumnName(int nIndex) const;
- ACDB_PORT virtual Acad::ErrorStatus setColumnName(int nIndex,
- const ACHAR* pszName);
- ACDB_PORT virtual int appendColumn (int nNumCols);
- ACDB_PORT virtual int insertColumn (int nIndex,
- int nNumCols);
- ACDB_PORT virtual Acad::ErrorStatus deleteColumn(int nIndex,
- int nNumColsToDelete);
- ACDB_PORT virtual int numRows (void) const;
- ACDB_PORT virtual bool canInsert (int nIndex,
- bool bRow) const;
- ACDB_PORT virtual int appendRow (int nNumRows);
- ACDB_PORT virtual int insertRow (int nIndex,
- int nNumRows);
- ACDB_PORT virtual bool canDelete (int nIndex,
- int nCount,
- bool bRow) const;
- ACDB_PORT virtual Acad::ErrorStatus deleteRow(int nIndex,
- int nNumRowsToDelete);
- ACDB_PORT virtual bool isContentEditable(int nRow,
- int nCol) const;
- ACDB_PORT virtual AcDb::CellState cellState(int nRow,
- int nCol) const;
- ACDB_PORT virtual Acad::ErrorStatus setCellState(int nRow,
- int nCol,
- AcDb::CellState nCellState);
- ACDB_PORT virtual AcString getToolTip (int nRow,
- int nCol) const;
- ACDB_PORT virtual Acad::ErrorStatus setToolTip(int nRow,
- int nCol,
- const ACHAR* pszToolTip);
- ACDB_PORT virtual int getCustomData (int nRow,
- int nCol) const;
- ACDB_PORT virtual Acad::ErrorStatus setCustomData(int nRow,
- int nCol,
- int nData);
- ACDB_PORT virtual Acad::ErrorStatus getCustomData(int nRow,
- int nCol,
- const ACHAR* pszKey,
- AcValue* pData) const;
- ACDB_PORT virtual Acad::ErrorStatus setCustomData(int nRow,
- int nCol,
- const ACHAR* pszKey,
- const AcValue* pData);
- ACDB_PORT virtual bool isLinked (int nRow,
- int nCol) const;
- ACDB_PORT virtual AcDbObjectId getDataLink(int nRow,
- int nCol) const;
- ACDB_PORT virtual Acad::ErrorStatus getDataLink(int nRow,
- int nCol,
- AcDbDataLink*& pDataLink,
- AcDb::OpenMode mode) const;
- ACDB_PORT virtual int getDataLink (const AcCellRange* pRange,
- AcDbObjectIdArray& dataLinkIds) const;
- ACDB_PORT virtual Acad::ErrorStatus setDataLink(int nRow,
- int nCol,
- const AcDbObjectId& idDataLink,
- bool bUpdate);
- ACDB_PORT virtual Acad::ErrorStatus setDataLink(const AcCellRange& range,
- const AcDbObjectId& idDataLink,
- bool bUpdate);
- ACDB_PORT virtual AcCellRange getDataLinkRange(int nRow,
- int nCol) const;
- ACDB_PORT virtual Acad::ErrorStatus removeDataLink(int nRow,
- int nCol);
- ACDB_PORT virtual Acad::ErrorStatus removeDataLink(void);
- ACDB_PORT virtual Acad::ErrorStatus updateDataLink(int nRow,
- int nCol,
- AcDb::UpdateDirection nDir,
- AcDb::UpdateOption nOption);
- ACDB_PORT virtual Acad::ErrorStatus updateDataLink(AcDb::UpdateDirection nDir,
- AcDb::UpdateOption nOption);
- ACDB_PORT virtual int numContents (int nRow,
- int nCol) const;
- ACDB_PORT virtual int createContent (int nRow,
- int nCol,
- int nIndex);
- ACDB_PORT virtual Acad::ErrorStatus moveContent(int nRow,
- int nCol,
- int nFromIndex,
- int nToIndex);
- ACDB_PORT virtual Acad::ErrorStatus deleteContent(int nRow,
- int nCol,
- int nContent);
- ACDB_PORT virtual Acad::ErrorStatus deleteContent(int nRow,
- int nCol);
- ACDB_PORT virtual Acad::ErrorStatus deleteContent(const AcCellRange& range);
- ACDB_PORT virtual AcDb::CellContentType contentType(int nRow,
- int nCol) const;
- ACDB_PORT virtual AcDb::CellContentType contentType(int nRow,
- int nCol,
- int nContent) const;
- ACDB_PORT virtual Acad::ErrorStatus getDataType(int nRow,
- int nCol,
- AcValue::DataType& nDataType,
- AcValue::UnitType& nUnitType) const;
- ACDB_PORT virtual Acad::ErrorStatus getDataType(int nRow,
- int nCol,
- int nContent,
- AcValue::DataType& nDataType,
- AcValue::UnitType& nUnitType) const;
- ACDB_PORT virtual Acad::ErrorStatus setDataType(int nRow,
- int nCol,
- AcValue::DataType nDataType,
- AcValue::UnitType nUnitType);
- ACDB_PORT virtual Acad::ErrorStatus setDataType(int nRow,
- int nCol,
- int nContent,
- AcValue::DataType nDataType,
- AcValue::UnitType nUnitType);
- ACDB_PORT virtual AcString dataFormat (int nRow,
- int nCol) const;
- ACDB_PORT virtual AcString dataFormat (int nRow,
- int nCol,
- int nContent) const;
- ACDB_PORT virtual Acad::ErrorStatus setDataFormat(int nRow,
- int nCol,
- const ACHAR* pszFormat);
- ACDB_PORT virtual Acad::ErrorStatus setDataFormat(int nRow,
- int nCol,
- int nContent,
- const ACHAR* pszFormat);
- ACDB_PORT virtual Acad::ErrorStatus getValue(int nRow,
- int nCol,
- AcValue& value) const;
- ACDB_PORT virtual Acad::ErrorStatus getValue(int nRow,
- int nCol,
- int nContent,
- AcValue::FormatOption nOption,
- AcValue& value) const;
- ACDB_PORT virtual Acad::ErrorStatus setValue(int nRow,
- int nCol,
- const AcValue& value);
- ACDB_PORT virtual Acad::ErrorStatus setValue(int nRow,
- int nCol,
- int nContent,
- const AcValue& value);
- ACDB_PORT virtual Acad::ErrorStatus setValue(int nRow,
- int nCol,
- int nContent,
- const AcValue& value,
- AcValue::ParseOption nOption);
- ACDB_PORT virtual AcString getText (int nRow,
- int nCol) const;
- ACDB_PORT virtual AcString getText (int nRow,
- int nCol,
- int nContent) const;
- ACDB_PORT virtual AcString getText (int nRow,
- int nCol,
- int nContent,
- AcValue::FormatOption nOption) const;
- ACDB_PORT virtual Acad::ErrorStatus setText(int nRow,
- int nCol,
- const ACHAR* pszText);
- ACDB_PORT virtual Acad::ErrorStatus setText(int nRow,
- int nCol,
- int nContent,
- const ACHAR* pszText);
- ACDB_PORT virtual bool hasFormula (int nRow,
- int nCol,
- int nContent) const;
- ACDB_PORT virtual AcString getFormula (int nRow,
- int nCol,
- int nContent) const;
- ACDB_PORT virtual Acad::ErrorStatus setFormula(int nRow,
- int nCol,
- int nContent,
- const ACHAR* pszFormula);
- ACDB_PORT virtual AcDbObjectId getFieldId(int nRow,
- int nCol) const;
- ACDB_PORT virtual AcDbObjectId getFieldId(int nRow,
- int nCol,
- int nContent) const;
- ACDB_PORT virtual Acad::ErrorStatus setFieldId(int nRow,
- int nCol,
- const AcDbObjectId& idField);
- ACDB_PORT virtual Acad::ErrorStatus setFieldId(int nRow,
- int nCol,
- int nContent,
- const AcDbObjectId& idField);
- ACDB_PORT virtual Acad::ErrorStatus getField(int nRow,
- int nCol,
- int nContent,
- AcDbField*& pField,
- AcDb::OpenMode mode) const;
- ACDB_PORT virtual AcDbObjectId getBlockTableRecordId(int nRow,
- int nCol) const;
- ACDB_PORT virtual AcDbObjectId getBlockTableRecordId(int nRow,
- int nCol,
- int nContent) const;
- ACDB_PORT virtual Acad::ErrorStatus setBlockTableRecordId(int nRow,
- int nCol,
- const AcDbObjectId& idBTR);
- ACDB_PORT virtual Acad::ErrorStatus setBlockTableRecordId(int nRow,
- int nCol,
- int nContent,
- const AcDbObjectId& idBTR);
- ACDB_PORT virtual AcString getBlockAttributeValue(int nRow,
- int nCol,
- const AcDbObjectId& idAttDef) const;
- ACDB_PORT virtual AcString getBlockAttributeValue(int nRow,
- int nCol,
- int nContent,
- const AcDbObjectId& idAttDef) const;
- ACDB_PORT virtual Acad::ErrorStatus setBlockAttributeValue(int nRow,
- int nCol,
- const AcDbObjectId& idAttDef,
- const ACHAR* pszAttValue);
- ACDB_PORT virtual Acad::ErrorStatus setBlockAttributeValue(int nRow,
- int nCol,
- int nContent,
- const AcDbObjectId& idAttDef,
- const ACHAR* pszAttValue);
- ACDB_PORT virtual Acad::ErrorStatus evaluateFormula(void);
- ACDB_PORT virtual Acad::ErrorStatus dwgInFields(AcDbDwgFiler* pFiler);
- ACDB_PORT virtual Acad::ErrorStatus dwgOutFields(AcDbDwgFiler* pFiler) const;
- ACDB_PORT virtual Acad::ErrorStatus dxfInFields(AcDbDxfFiler* pFiler);
- ACDB_PORT virtual Acad::ErrorStatus dxfOutFields(AcDbDxfFiler* pFiler) const;
- };
|