| 32 | int Table::CLASS_ID = -1; |
| 33 | |
| 34 | Table::Table(bool limitTextWidth) |
| 35 | { |
| 36 | DBG_OBJ_CREATE ("dw::Table"); |
| 37 | registerName ("dw::Table", &CLASS_ID); |
| 38 | setButtonSensitive(false); |
| 39 | |
| 40 | this->limitTextWidth = limitTextWidth; |
| 41 | |
| 42 | rowClosed = false; |
| 43 | |
| 44 | numRows = 0; |
| 45 | numCols = 0; |
| 46 | curRow = -1; |
| 47 | curCol = 0; |
| 48 | |
| 49 | DBG_OBJ_SET_NUM ("numCols", numCols); |
| 50 | DBG_OBJ_SET_NUM ("numRows", numCols); |
| 51 | |
| 52 | children = new misc::SimpleVector <Child*> (16); |
| 53 | colExtremes = new misc::SimpleVector<core::Extremes> (8); |
| 54 | colWidthSpecified = new misc::SimpleVector<bool> (8); |
| 55 | colWidthPercentage = new misc::SimpleVector<bool> (8); |
| 56 | colWidths = new misc::SimpleVector <int> (8); |
| 57 | cumHeight = new misc::SimpleVector <int> (8); |
| 58 | rowSpanCells = new misc::SimpleVector <int> (8); |
| 59 | baseline = new misc::SimpleVector <int> (8); |
| 60 | rowStyle = new misc::SimpleVector <core::style::Style*> (8); |
| 61 | |
| 62 | colWidthsUpToDateWidthColExtremes = true; |
| 63 | DBG_OBJ_SET_BOOL ("colWidthsUpToDateWidthColExtremes", |
| 64 | colWidthsUpToDateWidthColExtremes); |
| 65 | |
| 66 | numColWidthSpecified = 0; |
| 67 | numColWidthPercentage = 0; |
| 68 | |
| 69 | redrawX = 0; |
| 70 | redrawY = 0; |
| 71 | } |
| 72 | |
| 73 | Table::~Table() |
| 74 | { |
nothing calls this directly
no outgoing calls
no test coverage detected