LibreOffice Module sc (master) 1
|
Contains indexes for a range of sheets in the spreadsheet document. More...
#include <externallinkbuffer.hxx>
Public Member Functions | |
LinkSheetRange () | |
void | setDeleted () |
Sets this struct to deleted state. More... | |
void | setSameSheet () |
Sets this struct to "use current sheet" state. More... | |
void | setRange (sal_Int32 nFirst, sal_Int32 nLast) |
Sets the passed absolute sheet range to the members of this struct. More... | |
void | setExternalRange (sal_Int32 nDocLink, sal_Int32 nFirst, sal_Int32 nLast) |
Sets the passed external sheet cache range to the members of this struct. More... | |
bool | isDeleted () const |
Returns true, if the sheet indexes are valid and different. More... | |
bool | isExternal () const |
Returns true, if the sheet range points to an external document. More... | |
bool | isSameSheet () const |
Returns true, if the sheet indexes are valid and different. More... | |
bool | is3dRange () const |
Returns true, if the sheet indexes are valid and different. More... | |
sal_Int32 | getDocLinkIndex () const |
sal_Int32 | getFirstSheet () const |
sal_Int32 | getLastSheet () const |
Private Types | |
enum | LinkSheetRangeType { LINKSHEETRANGE_INTERNAL , LINKSHEETRANGE_EXTERNAL , LINKSHEETRANGE_SAMESHEET } |
Private Attributes | |
LinkSheetRangeType | meType |
sal_Int32 | mnDocLink |
Link sheet range type. More... | |
sal_Int32 | mnFirst |
Document link token index for external links. More... | |
sal_Int32 | mnLast |
Index of the first sheet or index of first external sheet cache. More... | |
Contains indexes for a range of sheets in the spreadsheet document.
Definition at line 118 of file externallinkbuffer.hxx.
|
private |
Enumerator | |
---|---|
LINKSHEETRANGE_INTERNAL | |
LINKSHEETRANGE_EXTERNAL | Sheet range in the own document. |
LINKSHEETRANGE_SAMESHEET | Sheet range in an external document. Current sheet depending on context. |
Definition at line 146 of file externallinkbuffer.hxx.
|
inlineexplicit |
Definition at line 121 of file externallinkbuffer.hxx.
References setDeleted().
|
inline |
Definition at line 141 of file externallinkbuffer.hxx.
References mnDocLink.
Referenced by oox::xls::FormulaParserImpl::pushReferenceOperand().
|
inline |
Definition at line 142 of file externallinkbuffer.hxx.
References mnFirst.
Referenced by oox::xls::FormulaParserImpl::convertReference3d(), and oox::xls::FormulaParserImpl::pushReferenceOperand().
|
inline |
Definition at line 143 of file externallinkbuffer.hxx.
References mnLast.
Referenced by oox::xls::FormulaParserImpl::convertReference3d().
|
inline |
Returns true, if the sheet indexes are valid and different.
Definition at line 139 of file externallinkbuffer.hxx.
References mnFirst, and mnLast.
Referenced by oox::xls::FormulaParserImpl::convertReference3d(), and oox::xls::FormulaParserImpl::pushReferenceOperand().
|
inline |
Returns true, if the sheet indexes are valid and different.
Definition at line 133 of file externallinkbuffer.hxx.
References mnFirst.
Referenced by isExternal().
|
inline |
Returns true, if the sheet range points to an external document.
Definition at line 135 of file externallinkbuffer.hxx.
References isDeleted(), LINKSHEETRANGE_EXTERNAL, and meType.
Referenced by oox::xls::FormulaParserImpl::pushReferenceOperand().
|
inline |
Returns true, if the sheet indexes are valid and different.
Definition at line 137 of file externallinkbuffer.hxx.
References LINKSHEETRANGE_SAMESHEET, and meType.
Referenced by oox::xls::FormulaParserImpl::convertReference3d(), and oox::xls::FormulaParserImpl::pushReferenceOperand().
void oox::xls::LinkSheetRange::setDeleted | ( | ) |
Sets this struct to deleted state.
Definition at line 247 of file externallinkbuffer.cxx.
References LINKSHEETRANGE_INTERNAL, meType, mnDocLink, mnFirst, and mnLast.
Referenced by oox::xls::ExternalLink::getSheetRange(), LinkSheetRange(), and setExternalRange().
void oox::xls::LinkSheetRange::setExternalRange | ( | sal_Int32 | nDocLink, |
sal_Int32 | nFirst, | ||
sal_Int32 | nLast | ||
) |
Sets the passed external sheet cache range to the members of this struct.
Definition at line 268 of file externallinkbuffer.cxx.
References LINKSHEETRANGE_EXTERNAL, meType, mnDocLink, mnFirst, mnLast, and setDeleted().
Referenced by oox::xls::ExternalLink::getSheetRange().
void oox::xls::LinkSheetRange::setRange | ( | sal_Int32 | nFirst, |
sal_Int32 | nLast | ||
) |
Sets the passed absolute sheet range to the members of this struct.
Definition at line 260 of file externallinkbuffer.cxx.
References LINKSHEETRANGE_INTERNAL, meType, mnDocLink, mnFirst, and mnLast.
Referenced by oox::xls::ExternalLink::getSheetRange().
void oox::xls::LinkSheetRange::setSameSheet | ( | ) |
Sets this struct to "use current sheet" state.
Definition at line 253 of file externallinkbuffer.cxx.
References LINKSHEETRANGE_SAMESHEET, meType, mnDocLink, mnFirst, and mnLast.
Referenced by oox::xls::ExternalLink::getSheetRange().
|
private |
Definition at line 153 of file externallinkbuffer.hxx.
Referenced by isExternal(), isSameSheet(), setDeleted(), setExternalRange(), setRange(), and setSameSheet().
|
private |
Link sheet range type.
Definition at line 154 of file externallinkbuffer.hxx.
Referenced by getDocLinkIndex(), setDeleted(), setExternalRange(), setRange(), and setSameSheet().
|
private |
Document link token index for external links.
Definition at line 155 of file externallinkbuffer.hxx.
Referenced by getFirstSheet(), is3dRange(), isDeleted(), setDeleted(), setExternalRange(), setRange(), and setSameSheet().
|
private |
Index of the first sheet or index of first external sheet cache.
Definition at line 156 of file externallinkbuffer.hxx.
Referenced by getLastSheet(), is3dRange(), setDeleted(), setExternalRange(), setRange(), and setSameSheet().