diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-03 09:42:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-03 13:08:55 +0100 |
commit | 7563216425c1a43166db083d809073b268f7884f (patch) | |
tree | 928275cad10ccd7a762f6959ec6b98fae47578f1 /include/svx | |
parent | 7485e13b6a99eedc8730d1a3eb72599213208f26 (diff) |
sal_Int32 is sufficient for svx::frame::Array
Change-Id: Icc1ebf769796d23e226b72a3decf74ab15e09e0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126274
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/framelinkarray.hxx | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/include/svx/framelinkarray.hxx b/include/svx/framelinkarray.hxx index 7cdfd90d794b..46b17c025641 100644 --- a/include/svx/framelinkarray.hxx +++ b/include/svx/framelinkarray.hxx @@ -71,57 +71,57 @@ public: // array size and column/row indexes /** Reinitializes the array with the specified size. Clears all styles. */ - void Initialize( size_t nWidth, size_t nHeight ); + void Initialize( sal_Int32 nWidth, sal_Int32 nHeight ); /** Returns the number of columns in the array. */ - size_t GetColCount() const; + sal_Int32 GetColCount() const; /** Returns the number of rows in the array. */ - size_t GetRowCount() const; + sal_Int32 GetRowCount() const; /** Returns the number of cells in the array. */ - size_t GetCellCount() const; + sal_Int32 GetCellCount() const; /** Returns the cell index from the cell address (nCol,nRow). */ - size_t GetCellIndex( size_t nCol, size_t nRow, bool bRTL) const; + sal_Int32 GetCellIndex( sal_Int32 nCol, sal_Int32 nRow, bool bRTL) const; // cell border styles /** Sets the left frame style of the cell (nCol,nRow). Ignores merged ranges. */ - void SetCellStyleLeft( size_t nCol, size_t nRow, const Style& rStyle ); + void SetCellStyleLeft( sal_Int32 nCol, sal_Int32 nRow, const Style& rStyle ); /** Sets the right frame style of the cell (nCol,nRow). Ignores merged ranges. */ - void SetCellStyleRight( size_t nCol, size_t nRow, const Style& rStyle ); + void SetCellStyleRight( sal_Int32 nCol, sal_Int32 nRow, const Style& rStyle ); /** Sets the top frame style of the cell (nCol,nRow). Ignores merged ranges. */ - void SetCellStyleTop( size_t nCol, size_t nRow, const Style& rStyle ); + void SetCellStyleTop( sal_Int32 nCol, sal_Int32 nRow, const Style& rStyle ); /** Sets the bottom frame style of the specified cell (nCol,nRow). Ignores merged ranges. */ - void SetCellStyleBottom( size_t nCol, size_t nRow, const Style& rStyle ); + void SetCellStyleBottom( sal_Int32 nCol, sal_Int32 nRow, const Style& rStyle ); /** Sets the top-left to bottom-right frame style of the cell (nCol,nRow). Ignores merged ranges. */ - void SetCellStyleTLBR( size_t nCol, size_t nRow, const Style& rStyle ); + void SetCellStyleTLBR( sal_Int32 nCol, sal_Int32 nRow, const Style& rStyle ); /** Sets the bottom-left to top-right frame style of the cell (nCol,nRow). Ignores merged ranges. */ - void SetCellStyleBLTR( size_t nCol, size_t nRow, const Style& rStyle ); + void SetCellStyleBLTR( sal_Int32 nCol, sal_Int32 nRow, const Style& rStyle ); /** Sets both diagonal frame styles of the specified cell (nCol,nRow). Ignores merged ranges. */ - void SetCellStyleDiag( size_t nCol, size_t nRow, const Style& rTLBR, const Style& rBLTR ); + void SetCellStyleDiag( sal_Int32 nCol, sal_Int32 nRow, const Style& rTLBR, const Style& rBLTR ); /** Sets the left frame style of the specified column. Ignores merged ranges. */ - void SetColumnStyleLeft( size_t nCol, const Style& rStyle ); + void SetColumnStyleLeft( sal_Int32 nCol, const Style& rStyle ); /** Sets the right frame style of the specified column. Ignores merged ranges. */ - void SetColumnStyleRight( size_t nCol, const Style& rStyle ); + void SetColumnStyleRight( sal_Int32 nCol, const Style& rStyle ); /** Sets the top frame style of the specified row. Ignores merged ranges. */ - void SetRowStyleTop( size_t nRow, const Style& rStyle ); + void SetRowStyleTop( sal_Int32 nRow, const Style& rStyle ); /** Sets the bottom frame style of the specified row. Ignores merged ranges. */ - void SetRowStyleBottom( size_t nRow, const Style& rStyle ); + void SetRowStyleBottom( sal_Int32 nRow, const Style& rStyle ); /** Sets the rotation parameters of the cell (nCol,nRow). Ignores merged ranges. */ - void SetCellRotation(size_t nCol, size_t nRow, SvxRotateMode eRotMode, double fOrientation); + void SetCellRotation(sal_Int32 nCol, sal_Int32 nRow, SvxRotateMode eRotMode, double fOrientation); /** Check if at least one cell is rotated */ bool HasCellRotation() const; @@ -131,40 +131,40 @@ public: Returns the style only if visible (i.e. at left border of a merged range). @return The left frame style or an invisible style for invalid cell addresses. */ - const Style& GetCellStyleLeft( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleLeft( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the right frame style of the cell (nCol,nRow). Returns thicker of own right style or left style of the cell to the right. Returns the style only if visible (i.e. at right border of a merged range). @return The left frame style or an invisible style for invalid cell addresses. */ - const Style& GetCellStyleRight( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleRight( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the top frame style of the cell (nCol,nRow). Returns thicker of own top style or bottom style of the cell above. Returns the style only if visible (i.e. at top border of a merged range). @return The top frame style or an invisible style for invalid cell addresses. */ - const Style& GetCellStyleTop( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleTop( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the top frame style of the cell (nCol,nRow). Returns thicker of own top style or bottom style of the cell above. Returns the style only if visible (i.e. at top border of a merged range). @return The top frame style or an invisible style for invalid cell addresses. */ - const Style& GetCellStyleBottom( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleBottom( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the top-left to bottom-right frame style of the cell (nCol,nRow). Ignores merged ranges; @return The top-left to bottom-right frame style or an invisible style for invalid cell addresses. */ - const Style& GetCellStyleTLBR( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleTLBR( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the bottom-left to top-right frame style of the cell (nCol,nRow). Ignores merged ranges; @return The bottom-left to top-right frame style or an invisible style for invalid cell addresses. */ - const Style& GetCellStyleBLTR( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleBLTR( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the top-left to bottom-right frame style of the cell (nCol,nRow). @return @@ -172,7 +172,7 @@ public: a merged range, or if (nCol,nRow) is the top-left corner of a merged range (useful to find connected frame styles). An invisible style for invalid cell addresses. */ - const Style& GetCellStyleTL( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleTL( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the top-left to bottom-right frame style of the cell (nCol,nRow). @return @@ -180,7 +180,7 @@ public: a merged range, or if (nCol,nRow) is the bottom-right corner of a merged range (useful to find connected frame styles). An invisible style for invalid cell addresses. */ - const Style& GetCellStyleBR( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleBR( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the bottom-left to top-right frame style of the cell (nCol,nRow). @return @@ -188,7 +188,7 @@ public: a merged range, or if (nCol,nRow) is the bottom-left corner of a merged range (useful to find connected frame styles). An invisible style for invalid cell addresses. */ - const Style& GetCellStyleBL( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleBL( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the bottom-left to top-right frame style of the cell (nCol,nRow). @return @@ -196,43 +196,43 @@ public: a merged range, or if (nCol,nRow) is the top-right corner of a merged range (useful to find connected frame styles). An invisible style for invalid cell addresses. */ - const Style& GetCellStyleTR( size_t nCol, size_t nRow ) const; + const Style& GetCellStyleTR( sal_Int32 nCol, sal_Int32 nRow ) const; // cell merging /** Inserts a new merged cell range. @precond The range must not intersect other merged ranges. */ - void SetMergedRange( size_t nFirstCol, size_t nFirstRow, size_t nLastCol, size_t nLastRow ); + void SetMergedRange( sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow ); /** Sets an additional left width for the merged range that contains (nCol,nRow). @descr Useful to handle merged ranges that are not completely part of the array. @precond The merged range must be at the left border of the array. */ - void SetAddMergedLeftSize( size_t nCol, size_t nRow, tools::Long nAddSize ); + void SetAddMergedLeftSize( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nAddSize ); /** Sets an additional right width for the merged range that contains (nCol,nRow). @descr Useful to handle merged ranges that are not completely part of the array. @precond The merged range must be at the right border of the array. */ - void SetAddMergedRightSize( size_t nCol, size_t nRow, tools::Long nAddSize ); + void SetAddMergedRightSize( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nAddSize ); /** Sets an additional top height for the merged range that contains (nCol,nRow). @descr Useful to handle merged ranges that are not completely part of the array. @precond The merged range must be at the top border of the array. */ - void SetAddMergedTopSize( size_t nCol, size_t nRow, tools::Long nAddSize ); + void SetAddMergedTopSize( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nAddSize ); /** Sets an additional bottom height for the merged range that contains (nCol,nRow). @descr Useful to handle merged ranges that are not completely part of the array. @precond The merged range must be at the bottom border of the array. */ - void SetAddMergedBottomSize( size_t nCol, size_t nRow, tools::Long nAddSize ); + void SetAddMergedBottomSize( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nAddSize ); /** Returns true, if the cell (nCol,nRow) is part of a merged range. */ - bool IsMerged( size_t nCol, size_t nRow ) const; + bool IsMerged( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the address of the top-left cell of the merged range that contains (nCol,nRow). */ - void GetMergedOrigin( size_t& rnFirstCol, size_t& rnFirstRow, size_t nCol, size_t nRow ) const; + void GetMergedOrigin( sal_Int32& rnFirstCol, sal_Int32& rnFirstRow, sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the top-left and bottom-right address of the merged range that contains (nCol,nRow). */ - void GetMergedRange( size_t& rnFirstCol, size_t& rnFirstRow, - size_t& rnLastCol, size_t& rnLastRow, size_t nCol, size_t nRow ) const; + void GetMergedRange( sal_Int32& rnFirstCol, sal_Int32& rnFirstRow, + sal_Int32& rnLastCol, sal_Int32& rnLastRow, sal_Int32 nCol, sal_Int32 nRow ) const; // clipping @@ -245,53 +245,53 @@ public: in Calc to print single pages and to draw the print preview. Partly visible diagonal frame borders in merged ranges are correctly clipped too. This array can handle only one clip range at a time. */ - void SetClipRange( size_t nFirstCol, size_t nFirstRow, size_t nLastCol, size_t nLastRow ); + void SetClipRange( sal_Int32 nFirstCol, sal_Int32 nFirstRow, sal_Int32 nLastCol, sal_Int32 nLastRow ); // cell coordinates /** Sets the X output coordinate of the left column. */ - void SetXOffset( tools::Long nXOffset ); + void SetXOffset( sal_Int32 nXOffset ); /** Sets the Y output coordinate of the top row. */ - void SetYOffset( tools::Long nYOffset ); + void SetYOffset( sal_Int32 nYOffset ); /** Sets the output width of the specified column. */ - void SetColWidth( size_t nCol, tools::Long nWidth ); + void SetColWidth( sal_Int32 nCol, sal_Int32 nWidth ); /** Sets the output height of the specified row. */ - void SetRowHeight( size_t nRow, tools::Long nHeight ); + void SetRowHeight( sal_Int32 nRow, sal_Int32 nHeight ); /** Sets the same output width for all columns. */ - void SetAllColWidths( tools::Long nWidth ); + void SetAllColWidths( sal_Int32 nWidth ); /** Sets the same output height for all rows. */ - void SetAllRowHeights( tools::Long nHeight ); + void SetAllRowHeights( sal_Int32 nHeight ); /** Returns the X output coordinate of the left border of the specified column. @descr The column index <array-width> returns the X output coordinate of the right array border. */ - tools::Long GetColPosition( size_t nCol ) const; + sal_Int32 GetColPosition( sal_Int32 nCol ) const; /** Returns the Y output coordinate of the top border of the specified row. @descr The row index <array-height> returns the Y output coordinate of the bottom array border. */ - tools::Long GetRowPosition( size_t nRow ) const; + sal_Int32 GetRowPosition( sal_Int32 nRow ) const; /** Returns the output width of the specified range of columns. */ - tools::Long GetColWidth( size_t nFirstCol, size_t nLastCol ) const; + sal_Int32 GetColWidth( sal_Int32 nFirstCol, sal_Int32 nLastCol ) const; /** Returns the output height of the specified range of rows. */ - tools::Long GetRowHeight( size_t nFirstRow, size_t nLastRow ) const; + sal_Int32 GetRowHeight( sal_Int32 nFirstRow, sal_Int32 nLastRow ) const; /** Returns the output width of the entire array. */ - tools::Long GetWidth() const; + sal_Int32 GetWidth() const; /** Returns the output height of the entire array. */ - tools::Long GetHeight() const; + sal_Int32 GetHeight() const; /** Returns the output range of the cell (nCol,nRow). Returns total output range of merged ranges, if bExpandMerged is true. */ - basegfx::B2DRange GetCellRange( size_t nCol, size_t nRow, bool bExpandMerged ) const; + basegfx::B2DRange GetCellRange( sal_Int32 nCol, sal_Int32 nRow, bool bExpandMerged ) const; // mirroring @@ -304,8 +304,8 @@ public: @param pForceColor If not NULL, only this color will be used to draw all frame borders. */ drawinglayer::primitive2d::Primitive2DContainer CreateB2DPrimitiveRange( - size_t nFirstCol, size_t nFirstRow, - size_t nLastCol, size_t nLastRow, + sal_Int32 nFirstCol, sal_Int32 nFirstRow, + sal_Int32 nLastCol, sal_Int32 nLastRow, const Color* pForceColor ) const; /** Draws the part of the array, that is inside the clipping range. */ |