Lines 1912-1928
public:
Link Here
|
1912 |
@param pTableMap Pointer to the table map (is allowed to be NULL). */ |
1912 |
@param pTableMap Pointer to the table map (is allowed to be NULL). */ |
1913 |
explicit ScHTMLTableIterator( const ScHTMLTableMap* pTableMap ); |
1913 |
explicit ScHTMLTableIterator( const ScHTMLTableMap* pTableMap ); |
1914 |
|
1914 |
|
1915 |
inline bool is() const { return maIter != maEnd; } |
1915 |
inline bool is() const { return bValid && maIter != maEnd; } |
1916 |
inline ScHTMLTable* operator->() { return maIter->second.get(); } |
1916 |
inline ScHTMLTable* operator->() { return maIter->second.get(); } |
1917 |
inline ScHTMLTable& operator*() { return *maIter->second; } |
1917 |
inline ScHTMLTable& operator*() { return *maIter->second; } |
1918 |
inline ScHTMLTableIterator& operator++() { ++maIter; return *this; } |
1918 |
inline ScHTMLTableIterator& operator++() { ++maIter; return *this; } |
1919 |
|
1919 |
|
1920 |
private: |
1920 |
private: |
|
|
1921 |
bool bValid; |
1921 |
ScHTMLTableMap::const_iterator maIter; |
1922 |
ScHTMLTableMap::const_iterator maIter; |
1922 |
ScHTMLTableMap::const_iterator maEnd; |
1923 |
ScHTMLTableMap::const_iterator maEnd; |
1923 |
}; |
1924 |
}; |
1924 |
|
1925 |
|
1925 |
ScHTMLTableIterator::ScHTMLTableIterator( const ScHTMLTableMap* pTableMap ) |
1926 |
ScHTMLTableIterator::ScHTMLTableIterator( const ScHTMLTableMap* pTableMap ) |
|
|
1927 |
: bValid( pTableMap != 0 ) |
1926 |
{ |
1928 |
{ |
1927 |
if( pTableMap ) |
1929 |
if( pTableMap ) |
1928 |
{ |
1930 |
{ |