LibreOffice Module sc (master)
1
|
#include "address.hxx"
#include <i18nlangtag/lang.h>
#include <svx/svdtypes.hxx>
#include <tools/ref.hxx>
#include <sal/types.h>
#include <com/sun/star/i18n/CollatorOptions.hpp>
#include "scdllapi.h"
#include <rtl/ustring.hxx>
#include <tools/long.hxx>
#include <o3tl/unit_conversion.hxx>
#include <atomic>
#include <memory>
#include <optional>
#include <string_view>
Go to the source code of this file.
Classes | |
class | com::sun::star::uno::Reference< class > |
struct | o3tl::typed_flags< PaintPartFlags > |
struct | o3tl::typed_flags< CRFlags > |
struct | o3tl::typed_flags< ScBreakType > |
struct | o3tl::typed_flags< InsertDeleteFlags > |
struct | o3tl::typed_flags< HasAttrFlags > |
struct | o3tl::typed_flags< ScScenarioFlags > |
struct | o3tl::typed_flags< SubtotalFlags > |
struct | o3tl::typed_flags< ScCloneFlags > |
struct | ScImportParam |
class | ScGlobal |
struct | ScConsolidateParam |
Namespaces | |
com::sun::star::uno | |
sc | |
CAUTION! The following defines must be in the same namespace as the respective type. | |
o3tl | |
com::sun::star | |
com::sun::star::lang | |
com::sun::star::i18n | |
utl | |
Macros | |
#define | SC_COLLATOR_IGNORES css::i18n::CollatorOptions::CollatorOptions_IGNORE_CASE |
#define | MINDOUBLE 1.7e-307 |
#define | MAXDOUBLE 1.7e307 |
#define | MINZOOM 20 |
#define | MAXZOOM 400 |
#define | STD_ROWHEIGHT_DIFF 23 |
#define | OLE_STD_CELLS_X 4 |
#define | OLE_STD_CELLS_Y 5 |
#define | SC_INDENT_STEP 200 |
Functions | |
constexpr::tools::Long | sc::TwipsToEvenHMM (::tools::Long nTwips) |
constexpr SdrLayerID | SC_LAYER_FRONT (0) |
constexpr SdrLayerID | SC_LAYER_BACK (1) |
constexpr SdrLayerID | SC_LAYER_INTERN (2) |
constexpr SdrLayerID | SC_LAYER_CONTROLS (3) |
constexpr SdrLayerID | SC_LAYER_HIDDEN (4) |
#define MAXDOUBLE 1.7e307 |
Definition at line 76 of file global.hxx.
Referenced by ScVbaRange::AutoFill(), ScFillSeriesDlg::CheckValues(), ScInterpreter::DBIterator(), ScCellShell::ExecuteEdit(), ScDocFunc::FillAuto(), ScTable::FillAuto(), ScDocFunc::FillSeries(), ScCellRangeObj::fillSeries(), ScDocFunc::FillSimple(), ScFillSeriesDlg::Init(), and ScUndoAutoFill::Redo().
#define MAXZOOM 400 |
Definition at line 79 of file global.hxx.
Referenced by ScTabView::CalcZoom(), ScTabViewShell::Execute(), ScPreviewShell::GetState(), ScTabViewShell::GetState(), ScPreviewShell::ScrollCommand(), ScTabView::ScrollCommand(), ScSpreadsheetSettings::setPropertyValue(), and ScTabViewObj::SetZoomType().
#define MINDOUBLE 1.7e-307 |
Definition at line 75 of file global.hxx.
#define MINZOOM 20 |
Definition at line 78 of file global.hxx.
Referenced by ScTabView::CalcZoom(), ScTabViewShell::Execute(), ScPreviewShell::GetState(), ScTabViewShell::GetState(), ScPreviewShell::ScrollCommand(), ScTabView::ScrollCommand(), ScSpreadsheetSettings::setPropertyValue(), and ScTabViewObj::SetZoomType().
#define OLE_STD_CELLS_X 4 |
Definition at line 103 of file global.hxx.
Referenced by ScPrintFunc::DrawToDev(), ScDocShell::InitNew(), and ScViewData::ScViewData().
#define OLE_STD_CELLS_Y 5 |
Definition at line 104 of file global.hxx.
Referenced by ScPrintFunc::DrawToDev(), ScDocShell::InitNew(), and ScViewData::ScViewData().
#define SC_COLLATOR_IGNORES css::i18n::CollatorOptions::CollatorOptions_IGNORE_CASE |
Definition at line 51 of file global.hxx.
Referenced by ScGlobal::GetCollator(), and ScTable::InitSortCollator().
#define SC_INDENT_STEP 200 |
Definition at line 222 of file global.hxx.
Referenced by ScAttrArray::ChangeIndent().
#define STD_ROWHEIGHT_DIFF 23 |
Definition at line 95 of file global.hxx.
Referenced by ScGlobal::InitTextHeight(), and lcl_GetAttribHeight().
enum CellType |
Enumerator | |
---|---|
CELLTYPE_NONE | |
CELLTYPE_VALUE | |
CELLTYPE_STRING | |
CELLTYPE_FORMULA | |
CELLTYPE_EDIT |
Definition at line 269 of file global.hxx.
Enumerator | |
---|---|
NONE | |
Hidden | |
ManualBreak | |
Filtered | |
ManualSize | |
All |
Definition at line 124 of file global.hxx.
|
strong |
Enumerator | |
---|---|
CellsUp | |
CellsLeft | |
Rows | |
Cols | |
NONE |
Definition at line 278 of file global.hxx.
enum FillCmd |
Enumerator | |
---|---|
FILL_SIMPLE | |
FILL_LINEAR | |
FILL_GROWTH | |
FILL_DATE | |
FILL_AUTO |
Definition at line 314 of file global.hxx.
enum FillDateCmd |
Enumerator | |
---|---|
FILL_DAY | |
FILL_WEEKDAY | |
FILL_MONTH | |
FILL_END_OF_MONTH | |
FILL_YEAR |
Definition at line 331 of file global.hxx.
enum FillDir |
Enumerator | |
---|---|
FILL_TO_BOTTOM | |
FILL_TO_RIGHT | |
FILL_TO_TOP | |
FILL_TO_LEFT |
Definition at line 306 of file global.hxx.
|
strong |
Enumerator | |
---|---|
NONE | |
Lines | |
Merged | |
Overlapped | |
Protected | |
Shadow | |
NeedHeight | |
ShadowRight | |
ShadowDown | |
AutoFilter | |
Conditional | |
Rotate | |
NotOverlapped | |
RightOrCenter |
Definition at line 183 of file global.hxx.
enum InsCellCmd |
Enumerator | |
---|---|
INS_CELLSDOWN | |
INS_CELLSRIGHT | |
INS_INSROWS_BEFORE | |
INS_INSCOLS_BEFORE | |
INS_NONE | |
INS_INSROWS_AFTER | |
INS_INSCOLS_AFTER |
Definition at line 287 of file global.hxx.
|
strong |
Enumerator | |
---|---|
NONE | |
VALUE | |
DATETIME |
Numeric values (and numeric results if InsertDeleteFlags::FORMULA is not set). |
STRING |
Dates, times, datetime values. |
NOTE |
Strings (and string results if InsertDeleteFlags::FORMULA is not set). |
FORMULA |
Cell notes. |
HARDATTR |
Formula cells. |
STYLES |
Hard cell attributes. |
OBJECTS |
Cell styles. |
EDITATTR |
Drawing objects. |
OUTLINE |
Rich-text attributes. |
SPARKLINES |
Sheet / outlining (grouping) information. |
NOCAPTIONS |
Sparklines in a cell. |
ADDNOTES |
Internal use only (undo etc.): do not copy/delete caption objects of cell notes. |
SPECIAL_BOOLEAN |
Internal use only (copy from clip): do not delete existing cell contents when pasting notes. |
FORGETCAPTIONS | |
ATTRIB |
Internal use only (d&d undo): do not delete caption objects of cell notes. |
CONTENTS | |
ALL | |
AUTOFILL |
Copy flags for auto/series fill functions: do not touch notes and drawing objects. |
Definition at line 147 of file global.hxx.
|
strong |
Enumerator | |
---|---|
NONE | |
Grid | |
Top | |
Left | |
Extras | |
Marks | |
Objects | |
Size | |
All |
Definition at line 108 of file global.hxx.
enum ScAggregateFunc |
Definition at line 861 of file global.hxx.
enum ScAnchorType |
Enumerator | |
---|---|
SCA_CELL | |
SCA_CELL_RESIZE | |
SCA_PAGE | |
SCA_DONTKNOW |
Definition at line 371 of file global.hxx.
|
strong |
Enumerator | |
---|---|
NONE | |
Page | |
Manual |
Definition at line 138 of file global.hxx.
|
strong |
Definition at line 249 of file global.hxx.
enum ScDBObject |
Enumerator | |
---|---|
ScDbTable | |
ScDbQuery |
Definition at line 416 of file global.hxx.
enum ScDirection |
Enumerator | |
---|---|
DIR_BOTTOM | |
DIR_RIGHT | |
DIR_TOP | |
DIR_LEFT |
Definition at line 340 of file global.hxx.
|
strong |
Enumerator | |
---|---|
NORMAL | |
BLOCK | |
MATRIX |
Definition at line 217 of file global.hxx.
enum ScGetDBMode |
Definition at line 379 of file global.hxx.
|
strong |
Enumerator | |
---|---|
Keep |
Keep selection as is, expand to used data area if no selection. |
ShrinkToUsedData |
Shrink selection to actually used data area within the selection. |
RowDown |
If only one row or portion thereof is selected, shrink row to used data columns and select further rows down until end of data. If an area is selected, shrink rows to actually used columns. Else, no selection, expand to used data area. |
ForceMark |
Behave as if the range corresponding to a ScDBData area was selected, for API use. |
Definition at line 388 of file global.hxx.
enum ScInputMode |
Enumerator | |
---|---|
SC_INPUT_NONE | |
SC_INPUT_TYPE | |
SC_INPUT_TABLE | |
SC_INPUT_TOP |
Definition at line 357 of file global.hxx.
|
strong |
Enumerator | |
---|---|
NONE | |
NORMAL | |
VALUE |
Definition at line 213 of file global.hxx.
enum ScLkUpdMode |
Enumerator | |
---|---|
LM_ALWAYS | |
LM_NEVER | |
LM_ON_DEMAND | |
LM_UNKNOWN |
Definition at line 407 of file global.hxx.
enum ScMoveDirection |
Enumerator | |
---|---|
SC_MOVE_RIGHT | |
SC_MOVE_LEFT | |
SC_MOVE_UP | |
SC_MOVE_DOWN |
Definition at line 323 of file global.hxx.
|
strong |
Enumerator | |
---|---|
NONE | |
ADD | |
SUB | |
MUL | |
DIV |
Definition at line 179 of file global.hxx.
enum ScQueryConnect |
Enumerator | |
---|---|
SC_AND | |
SC_OR |
Definition at line 837 of file global.hxx.
enum ScQueryOp |
Definition at line 817 of file global.hxx.
|
strong |
Enumerator | |
---|---|
NONE | |
CopyAll | |
ShowFrame | |
PrintFrame | |
TwoWay | |
Attrib | |
Value | |
Protected |
Definition at line 224 of file global.hxx.
enum ScSizeMode |
Enumerator | |
---|---|
SC_SIZE_DIRECT | |
SC_SIZE_OPTIMAL | |
SC_SIZE_SHOW | |
SC_SIZE_VISOPT | |
SC_SIZE_ORIGINAL |
Definition at line 348 of file global.hxx.
enum ScSubTotalFunc |
Definition at line 843 of file global.hxx.
enum ScVObjMode |
Enumerator | |
---|---|
VOBJ_MODE_SHOW | |
VOBJ_MODE_HIDE |
Definition at line 365 of file global.hxx.
|
strong |
Enumerator | |
---|---|
NONE | |
IgnoreNestedStAg | |
IgnoreErrVal | |
IgnoreHidden | |
IgnoreFiltered |
Definition at line 238 of file global.hxx.
enum UpdateRefMode |
Enumerator | |
---|---|
URM_INSDEL | |
URM_COPY | |
URM_MOVE | |
URM_REORDER |
Definition at line 298 of file global.hxx.
constexpr SdrLayerID SC_LAYER_BACK | ( | 1 | ) |
Referenced by ScDrawView::Construct(), ScGridWindow::DrawContent(), ScPrintFunc::DrawToDev(), ScDrawShell::ExecDrawFunc(), ScXMLImportWrapper::Export(), ScShapeChildren::FillShapes(), XMLTableShapeImportHelper::finishShape(), ScDrawShell::GetDrawFuncState(), ScDocument::GetObjectAtPoint(), ScDocument::HasBackgroundDraw(), ScDrawView::LockBackgroundLayer(), ScPrintFunc::PrintArea(), ScDrawLayer::ScDrawLayer(), ScTabViewObj::select(), ScDrawView::SelectCurrentViewObject(), ScDrawView::SelectObject(), and ScTabView::UpdateLayerLocks().
constexpr SdrLayerID SC_LAYER_CONTROLS | ( | 3 | ) |
Referenced by FuConstUnoControl::Activate(), ScDrawView::Construct(), FuConstUnoControl::CreateDefaultObject(), XclImpControlHelper::CreateSdrObjectFromShape(), ScTabViewShell::ExecDrawIns(), ScXMLImportWrapper::Export(), ScShapeChildren::FillShapes(), ScDrawTransferObj::InitDocShell(), ScViewFunc::PasteDataFormat(), ScViewFunc::PasteDraw(), ScDrawLayer::ScDrawLayer(), XMLTableShapeImportHelper::SetLayer(), and ScTabView::UpdateLayerLocks().
constexpr SdrLayerID SC_LAYER_FRONT | ( | 0 | ) |
Referenced by ScDrawView::Construct(), FuConstUnoControl::Deactivate(), ScGridWindow::DrawContent(), ScPrintFunc::DrawToDev(), ScDrawShell::ExecDrawFunc(), ScTabViewShell::ExecDrawIns(), ScXMLImportWrapper::Export(), ScShapeChildren::FillShapes(), ScDrawShell::GetDrawFuncState(), ScDrawTransferObj::InitDocShell(), ScViewFunc::PasteDataFormat(), XclImpDrawObjBase::PreProcessSdrObject(), ScPrintFunc::PrintArea(), ScDrawLayer::ScDrawLayer(), and ScTabView::UpdateLayerLocks().
constexpr SdrLayerID SC_LAYER_HIDDEN | ( | 4 | ) |
constexpr SdrLayerID SC_LAYER_INTERN | ( | 2 | ) |
Referenced by ScChildrenShapes::AddShape(), ScXMLExport::CollectInternalShape(), ScXMLExport::CollectSharedData(), ScDrawView::Construct(), ScDrawLayer::CopyFromClip(), ScDrawLayer::CopyToClip(), ScDetectiveFunc::DeleteAll(), ScDetectiveFunc::DeleteArrowsAt(), ScDetectiveFunc::DeleteBox(), ScDetectiveFunc::DeleteCirclesAt(), ScDetectiveFunc::DrawCircle(), ScGridWindow::DrawContent(), ScPrintFunc::DrawToDev(), ScDrawShell::ExecDrawFunc(), ScXMLImportWrapper::Export(), ScShapeChildren::FillShapes(), ScDetectiveFunc::FindFrameForObject(), ScDetectiveFunc::GetDetectiveObjectType(), ScDrawShell::GetDrawFuncState(), ScDocument::GetObjectAtPoint(), ScDetectiveFunc::HasArrow(), ScDocument::HasDetectiveObjects(), ScDrawView::HasMarkedInternal(), ScDetectiveFunc::InsertArrow(), ScDetectiveFunc::InsertToOtherTab(), ScDetectiveFunc::IsNonAlienArrow(), ScDrawView::LockInternalLayer(), ScPrintFunc::PrintArea(), ScDrawLayer::ScDrawLayer(), FuText::SetInEditMode(), ScDrawView::SetMarkedToLayer(), FuText::StopEditMode(), ScDetectiveFunc::UpdateAllArrowColors(), and ScTabView::UpdateLayerLocks().
const sal_Unicode CHAR_LRM = 0x200E |
Definition at line 69 of file global.hxx.
Referenced by ScEditShell::Execute(), and ScDrawStringsVars::HasEditCharacters().
const sal_Unicode CHAR_NBHY = 0x2011 |
Definition at line 71 of file global.hxx.
Referenced by ScEditShell::Execute(), and ScDrawStringsVars::HasEditCharacters().
const sal_Unicode CHAR_NBSP = 0x00A0 |
Definition at line 66 of file global.hxx.
Referenced by ScEditShell::Execute(), and ScDrawStringsVars::HasEditCharacters().
const sal_Unicode CHAR_NNBSP = 0x202F |
Definition at line 73 of file global.hxx.
Referenced by ScEditShell::Execute().
const sal_Unicode CHAR_RLM = 0x200F |
Definition at line 70 of file global.hxx.
Referenced by ScEditShell::Execute(), and ScDrawStringsVars::HasEditCharacters().
const sal_Unicode CHAR_SHY = 0x00AD |
Definition at line 67 of file global.hxx.
Referenced by ScEditShell::Execute(), and ScDrawStringsVars::HasEditCharacters().
const sal_Unicode CHAR_WJ = 0x2060 |
Definition at line 72 of file global.hxx.
Referenced by ScEditShell::Execute(), and ScDrawStringsVars::HasEditCharacters().
const sal_Unicode CHAR_ZWSP = 0x200B |
Definition at line 68 of file global.hxx.
Referenced by ScEditShell::Execute(), and ScDrawStringsVars::HasEditCharacters().
constexpr sal_Int32 MAX_COL_WIDTH = o3tl::convert(1, o3tl::Length::m, o3tl::Length::twip) |
Definition at line 91 of file global.hxx.
Referenced by ScCellShell::Execute(), and ScViewFunc::ModifyCellSize().
constexpr sal_Int32 MAX_EXTRA_HEIGHT = o3tl::convert(42, o3tl::Length::cm, o3tl::Length::twip) |
Definition at line 90 of file global.hxx.
Referenced by ScCellShell::Execute().
constexpr sal_Int32 MAX_EXTRA_WIDTH = o3tl::convert(42, o3tl::Length::cm, o3tl::Length::twip) |
Definition at line 89 of file global.hxx.
Referenced by ScCellShell::Execute().
constexpr sal_Int32 MAX_ROW_HEIGHT = o3tl::convert(1, o3tl::Length::m, o3tl::Length::twip) |
Definition at line 92 of file global.hxx.
Referenced by ScCellShell::Execute(), and ScViewFunc::ModifyCellSize().
const SCSIZE MAXSUBTOTAL = 3 |
Definition at line 81 of file global.hxx.
Referenced by ScSubTotalDescriptorBase::addNew(), ScCellRangeObj::applySubTotals(), ScSubTotalParam::Clear(), ScXMLDatabaseRangeContext::ConvertToDBData(), ScCellRangeObj::createSubTotalDescriptor(), ScTable::DoSubTotals(), ScSubTotalDescriptorBase::getCount(), ScSubTotalDescriptorBase::getPropertyValue(), ScDatabaseRangeObj::GetSubTotalParam(), ScDBData::MoveTo(), ScSubTotalParam::operator=(), ScSubTotalParam::operator==(), ScSortParam::ScSortParam(), ScSubTotalParam::ScSubTotalParam(), ScSubTotalDescriptorBase::setPropertyValue(), ScDatabaseRangeObj::SetSubTotalParam(), and ScSubTotalParam::SetSubTotals().
sal_uInt16 nScClickMouseModifier |
Definition at line 116 of file global.cxx.
Referenced by ScGridWindow::HandleMouseButtonDown(), ScGlobal::OpenURL(), and ScGlobal::ShouldOpenURL().
sal_uInt16 nScFillModeMouseModifier |
Definition at line 117 of file global.cxx.
Referenced by ScTable::FillAnalyse(), ScTable::FillAutoSimple(), ScTable::GetAutoFillPreview(), ScGridWindow::MouseButtonUp(), ScGridWindow::MouseMove(), ScViewFunctionSet::SetCursorAtCell(), and ScTabView::UpdateRef().
SfxViewShell* pScActiveViewShell |
Definition at line 115 of file global.cxx.
Referenced by ScTabViewShell::Activate(), ScTabViewShell::Deactivate(), and ScGridWindow::HandleMouseButtonDown().
|
inline |
Definition at line 62 of file global.hxx.
Referenced by ScDocShell::ConvertFrom(), ScDocShell::ConvertTo(), ScDocShell::GetAsciiFilterName(), ScVbaWorkbook::getFileFormat(), ScDocShell::HasAutomaticTableName(), ScVbaWorkbooks::Open(), ScAreaLink::Refresh(), ScVbaWorkbook::setFilterPropsFromFormat(), and ScLinkedAreaDlg::UpdateSourceRanges().
constexpr sal_Int32 STD_COL_WIDTH = o3tl::convert(64, o3tl::Length::pt, o3tl::Length::twip) |
Definition at line 86 of file global.hxx.
Referenced by ScTable::DeleteCol(), ScTable::dumpColumnRowSizes(), ScCellShell::Execute(), ScDocument::FillInfo(), ScTable::GetColWidth(), ScTable::GetLastChangedColFlagsWidth(), ScTable::GetOptimalColWidth(), ScTable::GetOriginalWidth(), ScDocShell::InitNew(), ScTable::InsertCol(), ScViewFunc::ModifyCellSize(), ScTable::ScTable(), ScViewData::ScViewData(), ScTable::SetColWidth(), ScTable::SetColWidthOnly(), and ScGridWindow::ShowFilterMenu().
constexpr sal_Int32 STD_EXTRA_WIDTH = o3tl::convert(2, o3tl::Length::mm, o3tl::Length::twip) |
Definition at line 87 of file global.hxx.
Referenced by ScDocFunc::AutoFormat(), ScCellShell::Execute(), ScTable::GetOptimalColWidth(), ScViewFunc::ModifyCellSize(), ScUndoAutoFormat::Redo(), ScColBar::SetEntrySize(), ScTableColumnObj::SetOnePropertyValue(), and ScTableColumnsObj::setPropertyValue().
|
inline |
Definition at line 57 of file global.hxx.
Referenced by ScViewFunc::MoveTable(), and ScDocumentLoader::RemoveAppPrefix().
|
inline |
Definition at line 59 of file global.hxx.
Referenced by ScStyleSheetPool::Make(), ScDocumentPool::ScDocumentPool(), and ScStyleSheet::SetName().
constexpr auto TWIPS_PER_CHAR = o3tl::toTwips(1 / 13.6, o3tl::Length::in) |
Definition at line 84 of file global.hxx.
Referenced by ImportLotus::Columnwidth(), OP_ColumnWidth(), and OP_Window1().