LibreOffice Module sc (master)  1
global.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #pragma once
21 
22 #include "address.hxx"
23 #include <i18nlangtag/lang.h>
24 #include <svx/svdtypes.hxx>
25 #include <tools/ref.hxx>
26 #include <sal/types.h>
27 #include <com/sun/star/i18n/CollatorOptions.hpp>
28 #include "scdllapi.h"
29 #include <rtl/ustring.hxx>
30 #include <tools/long.hxx>
31 
32 #include <atomic>
33 // HACK: <atomic> includes <stdbool.h>, which in some Clang versions does '#define bool bool',
34 // which confuses clang plugins.
35 #undef bool
36 
37 #include <memory>
38 #include <optional>
39 #include <string_view>
40 
41 namespace com::sun::star::uno { template <typename > class Reference; }
42 
43 class SfxItemSet;
44 class SfxViewShell;
45 struct ScCalcConfig;
46 enum class SvtScriptType;
47 enum class FormulaError : sal_uInt16;
48 enum class SvNumFormatType : sal_Int16;
49 
50 #define SC_COLLATOR_IGNORES css::i18n::CollatorOptions::CollatorOptions_IGNORE_CASE
51 
52 // Calc has lots of names...
53 // Clipboard names are in so3/soapp.hxx now
54 // STRING_SCAPP was "scalc3", "scalc4", now just "scalc"
55 
56 #define STRING_SCAPP "scalc"
57 
58 #define STRING_STANDARD "Standard"
59 
60 // Have the dreaded programmatic filter name defined in one place.
61 #define SC_TEXT_CSV_FILTER_NAME "Text - txt - csv (StarCalc)"
62 
63 // characters
64 
65 const sal_Unicode CHAR_NBSP = 0x00A0;
66 const sal_Unicode CHAR_SHY = 0x00AD;
67 const sal_Unicode CHAR_ZWSP = 0x200B;
68 const sal_Unicode CHAR_LRM = 0x200E;
69 const sal_Unicode CHAR_RLM = 0x200F;
70 const sal_Unicode CHAR_NBHY = 0x2011;
71 const sal_Unicode CHAR_WJ = 0x2060;
72 const sal_Unicode CHAR_NNBSP = 0x202F; //NARROW NO-BREAK SPACE
73 
74 #define MINDOUBLE 1.7e-307
75 #define MAXDOUBLE 1.7e307
76 
77 #define MINZOOM 20
78 #define MAXZOOM 400
79 
80 const SCSIZE MAXSUBTOTAL = 3;
81 
82 #define PIXEL_PER_INCH 96.0
83 #define CM_PER_INCH 2.54
84 #define POINTS_PER_INCH 72.0
85 #define PIXEL_PER_POINT (PIXEL_PER_INCH / POINTS_PER_INCH)
86 #define TWIPS_PER_POINT 20.0
87 #define TWIPS_PER_INCH (TWIPS_PER_POINT * POINTS_PER_INCH)
88 #define TWIPS_PER_CM (TWIPS_PER_INCH / CM_PER_INCH)
89 #define CM_PER_TWIPS (CM_PER_INCH / TWIPS_PER_INCH)
90 #define TWIPS_PER_PIXEL (TWIPS_PER_INCH / PIXEL_PER_INCH)
91 #define TWIPS_PER_CHAR (TWIPS_PER_INCH / 13.6)
92 #define PIXEL_PER_TWIPS (PIXEL_PER_INCH / TWIPS_PER_INCH)
93 #define HMM_PER_TWIPS (CM_PER_TWIPS * 1000.0)
94 
95 #define STD_COL_WIDTH 1280 /* 2.2577cm, 64.00pt PS */
96 #define STD_EXTRA_WIDTH 113 /* 2mm extra for optimal width,
97  * 0.1986cm with TeX points,
98  * 0.1993cm with PS points. */
99 
100 #define MAX_EXTRA_WIDTH 23811 /* 42cm in TWIPS, 41.8430cm TeX, 41.9999cm PS */
101 #define MAX_EXTRA_HEIGHT 23811
102 #define MAX_COL_WIDTH 56693 /* 1m in TWIPS, 99.6266cm TeX, 100.0001cm PS */
103 #define MAX_ROW_HEIGHT 56693
104 
105  /* standard row height: text + margin - STD_ROWHEIGHT_DIFF */
106 #define STD_ROWHEIGHT_DIFF 23
107 
108 namespace sc
109 {
110  inline ::tools::Long TwipsToEvenHMM( ::tools::Long nTwips ) { return ( (nTwips * 127 + 72) / 144 ) * 2; }
111 }
112 
113  // standard size as OLE server (cells)
114 #define OLE_STD_CELLS_X 4
115 #define OLE_STD_CELLS_Y 5
116 
117 
118  // repaint flags (for messages)
119 enum class PaintPartFlags {
120  NONE = 0x00,
121  Grid = 0x01,
122  Top = 0x02,
123  Left = 0x04,
124  Extras = 0x08,
125  Marks = 0x10,
126  Objects = 0x20,
127  Size = 0x40,
128  All = Grid | Top | Left | Extras | Objects | Size,
129 };
130 namespace o3tl {
131  template<> struct typed_flags<PaintPartFlags> : is_typed_flags<PaintPartFlags, 0x07f> {};
132 }
133 
134  // flags for columns / rows
135 enum class CRFlags : sal_uInt8 {
136  // Filtered always together with Hidden
137  // Filtered and ManualSize only valid for rows
138  NONE = 0x00,
139  Hidden = 0x01,
140  ManualBreak = 0x02,
141  Filtered = 0x04,
142  ManualSize = 0x08,
144 };
145 namespace o3tl {
146  template<> struct typed_flags<CRFlags> : is_typed_flags<CRFlags, 0x0f> {};
147 }
148 
149 enum class ScBreakType {
150  NONE = 0x00,
151  Page = 0x01,
152  Manual = 0x02
153 };
154 namespace o3tl {
155  template<> struct typed_flags<ScBreakType> : is_typed_flags<ScBreakType, 0x03> {};
156 }
157 
158 enum class InsertDeleteFlags : sal_uInt16
159 {
160  NONE = 0x0000,
161  VALUE = 0x0001,
162  DATETIME = 0x0002,
163  STRING = 0x0004,
164  NOTE = 0x0008,
165  FORMULA = 0x0010,
166  HARDATTR = 0x0020,
167  STYLES = 0x0040,
168  OBJECTS = 0x0080,
169  EDITATTR = 0x0100,
170  OUTLINE = 0x0800,
171  NOCAPTIONS = 0x0200,
172  ADDNOTES = 0x0400,
173  SPECIAL_BOOLEAN = 0x1000,
174  FORGETCAPTIONS = 0x2000,
175  ATTRIB = HARDATTR | STYLES,
177  ALL = CONTENTS | ATTRIB | OBJECTS,
179  AUTOFILL = ALL & ~(NOTE | OBJECTS)
180 };
181 namespace o3tl
182 {
183  template<> struct typed_flags<InsertDeleteFlags> : is_typed_flags<InsertDeleteFlags, 0x3fff> {};
184 }
185 // This doesn't work at the moment, perhaps when we have constexpr we can modify InsertDeleteFlags to make it work.
186 //static_assert((InsertDeleteFlags::ATTRIB & InsertDeleteFlags::CONTENTS) == InsertDeleteFlags::NONE, "these must match");
187 
188 
189 enum class ScPasteFunc {
190  NONE, ADD, SUB, MUL, DIV
191 };
192  // bits for HasAttr
193 enum class HasAttrFlags {
194  NONE = 0x0000,
195  Lines = 0x0001,
196  Merged = 0x0002,
197  Overlapped = 0x0004,
198  Protected = 0x0008,
199  Shadow = 0x0010,
200  NeedHeight = 0x0020,
201  ShadowRight = 0x0040,
202  ShadowDown = 0x0080,
203  AutoFilter = 0x0100,
204  Conditional = 0x0200,
205  Rotate = 0x0400,
206  NotOverlapped = 0x0800,
207  RightOrCenter = 0x1000, // right or centered logical alignment
208 };
209 namespace o3tl {
210  template<> struct typed_flags<HasAttrFlags> : is_typed_flags<HasAttrFlags, 0x1fff> {};
211 }
212 
213 
214 #define EMPTY_OUSTRING ScGlobal::GetEmptyOUString()
215 
216 // Layer id's for drawing.
217 // These are both id's and positions.
218 constexpr SdrLayerID SC_LAYER_FRONT (0);
219 constexpr SdrLayerID SC_LAYER_BACK (1);
220 constexpr SdrLayerID SC_LAYER_INTERN (2);
221 constexpr SdrLayerID SC_LAYER_CONTROLS(3);
222 constexpr SdrLayerID SC_LAYER_HIDDEN (4);
223 
224 // link tables
225 enum class ScLinkMode {
226  NONE, NORMAL, VALUE
227 };
228  // input
229 enum class ScEnterMode {
231 };
232 
233  // step = 10pt, max. indention = 100 steps
234 #define SC_INDENT_STEP 200
235 
236 enum class ScScenarioFlags{ // scenario flags
237  NONE = 0,
238  CopyAll = 1,
239  ShowFrame = 2,
240  PrintFrame = 4,
241  TwoWay = 8,
242  Attrib = 16,
243  Value = 32,
244  Protected = 64
245 };
246 namespace o3tl {
247  template<> struct typed_flags<ScScenarioFlags> : is_typed_flags<ScScenarioFlags, 127> {};
248 }
249 
250 enum class SubtotalFlags {
251  NONE = 0x00,
252  IgnoreNestedStAg = 0x08,
253  IgnoreErrVal = 0x04,
254  IgnoreHidden = 0x02,
255  IgnoreFiltered = 0x01
256 };
257 namespace o3tl {
258  template<> struct typed_flags<SubtotalFlags> : is_typed_flags<SubtotalFlags, 0x0f> {};
259 }
260 
261 enum class ScCloneFlags{
264  Default = 0x0000,
265 
267  StartListening = 0x0001,
268 
270  NoMakeAbsExternal = 0x0002,
271 
274  NamesToLocal = 0x0004
275 };
276 namespace o3tl
277 {
278  template<> struct typed_flags<ScCloneFlags> : is_typed_flags<ScCloneFlags, 0x0007> {};
279 }
280 
282  {
288  };
289 
290 enum class DelCellCmd
291  {
292  CellsUp,
293  CellsLeft,
294  Rows,
295  Cols,
296  NONE
297  };
298 
300  {
308  };
309 
311  {
316  };
317 
319  {
324  };
325 
327  {
333  };
334 
336 {
341 };
342 
344  {
350  };
351 
353  {
358  };
359 
361  {
362  SC_SIZE_DIRECT, // set size or hide if value is 0
363  SC_SIZE_OPTIMAL, // set optimal size for everything
364  SC_SIZE_SHOW, // show with original size
365  SC_SIZE_VISOPT, // set optimal size only if visible
366  SC_SIZE_ORIGINAL // only set size, don't change visible flag
367  };
368 
370  {
372  SC_INPUT_TYPE, // input, while not in inplace mode
373  SC_INPUT_TABLE, // text cursor in the table
374  SC_INPUT_TOP // text cursor in the input line
375  };
376 
377 enum ScVObjMode // output modes of objects on a page
378 {
381 };
382 
383 enum ScAnchorType // anchor of a character object
384 {
385  SCA_CELL, // anchor to cell, move with cell
386  SCA_CELL_RESIZE, // anchor to cell, move and resize with cell
387  SCA_PAGE, // anchor to page, independent of any cells
388  SCA_DONTKNOW // for multi selection
389 };
390 
392 {
397 };
398 
401 {
403  Keep,
404 
407 
412  RowDown,
413 
416  ForceMark
417 };
418 
419 enum ScLkUpdMode // modes for updating links
420 {
425 };
426 
427 // enum with values equal to old DBObject enum from sdb
429 {
432 };
433 
434 namespace sc {
435 
437 {
438  Unknown,
444  DeleteRows
445 };
446 
447 }
448 
450 {
455  bool bImport;
456  OUString aDBName; // alias of data base
457  OUString aStatement;
458  bool bNative;
459  bool bSql; // statement or name?
460  sal_uInt8 nType; // enum DBObject
461 
462  ScImportParam();
463  ScImportParam( const ScImportParam& r );
464  ~ScImportParam();
465 
466  ScImportParam& operator= ( const ScImportParam& r );
467  bool operator== ( const ScImportParam& r ) const;
468 };
469 
470 class ScDocShell;
471 class SvxSearchItem;
472 class ScAutoFormat;
475 class ScUserList;
476 class SvxBrushItem;
477 class ScFunctionList;
478 class ScFunctionMgr;
479 class SfxItemPool;
480 class EditTextObject;
481 class SfxObjectShell;
482 class SvNumberFormatter;
483 class ScUnitConverter;
484 class CharClass;
485 class LocaleDataWrapper;
486 class SvtSysLocale;
487 class CalendarWrapper;
488 class CollatorWrapper;
489 class IntlWrapper;
490 class ScFieldEditEngine;
491 
492 namespace com::sun::star {
493  namespace lang {
494  struct Locale;
495  }
496  namespace i18n {
497  class XOrdinalSuffix;
498  }
499 }
500 namespace utl {
501  class TransliterationWrapper;
502 }
503 
504 class ScGlobal
505 {
506  static std::unique_ptr<SvxSearchItem> xSearchItem;
507  static std::unique_ptr<ScAutoFormat> xAutoFormat;
508  static std::atomic<LegacyFuncCollection*> pLegacyFuncCollection;
509  static std::atomic<ScUnoAddInCollection*> pAddInCollection;
510  static std::unique_ptr<ScUserList> xUserList;
511  static SC_DLLPUBLIC const OUString aEmptyOUString;
512  static OUString aStrClipDocName;
513  static OUString aStrErrorStringNoRef;
514  static std::unique_ptr<SvxBrushItem> xEmptyBrushItem;
515  static std::unique_ptr<SvxBrushItem> xButtonBrushItem;
516 
517  static std::unique_ptr<ScFunctionList> xStarCalcFunctionList;
518  static std::unique_ptr<ScFunctionMgr> xStarCalcFunctionMgr;
519 
520  static std::atomic<ScUnitConverter*> pUnitConverter;
521 
522  static std::unique_ptr<SvNumberFormatter> xEnglishFormatter; // for UNO / XML export
523 
524  static css::uno::Reference< css::i18n::XOrdinalSuffix> xOrdinalSuffix;
525  static std::optional<CalendarWrapper> oCalendar;
526  static std::atomic<CollatorWrapper*> pCaseCollator;
527  static std::atomic<CollatorWrapper*> pCollator;
528  static std::atomic<::utl::TransliterationWrapper*> pTransliteration;
529  static std::atomic<::utl::TransliterationWrapper*> pCaseTransliteration;
530  static std::atomic<css::lang::Locale*> pLocale;
531 
532  static std::unique_ptr<ScFieldEditEngine> xFieldEditEngine;
533 
534  static void InitPPT();
535 
536 public:
537  static std::optional<SvtSysLocale> oSysLocale;
538  SC_DLLPUBLIC static const LocaleDataWrapper& getLocaleData();
539  SC_DLLPUBLIC static const CharClass& getCharClass();
540 
541  static CalendarWrapper& GetCalendar();
543  SC_DLLPUBLIC static CollatorWrapper& GetCollator();
545  static CollatorWrapper& GetCaseCollator();
546  static CollatorWrapper& GetCollator(bool bCaseSensitive);
547  static css::lang::Locale& GetLocale();
548 
549  SC_DLLPUBLIC static ::utl::TransliterationWrapper& GetTransliteration();
550  static ::utl::TransliterationWrapper& GetCaseTransliteration();
551  static ::utl::TransliterationWrapper& GetTransliteration(bool bCaseSensitive);
552 
554  static constexpr sal_Unicode cListDelimiter = ',';
555 
556  static const OUString& GetClipDocName();
557  static void SetClipDocName( const OUString& rNew );
558  SC_DLLPUBLIC static const SvxSearchItem& GetSearchItem();
559  SC_DLLPUBLIC static void SetSearchItem( const SvxSearchItem& rNew );
560  SC_DLLPUBLIC static ScAutoFormat* GetAutoFormat();
561  SC_DLLPUBLIC static ScAutoFormat* GetOrCreateAutoFormat();
562  static void ClearAutoFormat(); //BugId 54209
563  static LegacyFuncCollection* GetLegacyFuncCollection();
564  SC_DLLPUBLIC static ScUnoAddInCollection* GetAddInCollection();
565  SC_DLLPUBLIC static ScUserList* GetUserList();
566  static void SetUserList( const ScUserList* pNewList );
571  static void OpenURL(const OUString& rURL, const OUString& rTarget, bool bIgnoreSettings = false);
573  static bool ShouldOpenURL();
574  SC_DLLPUBLIC static OUString GetAbsDocName( const OUString& rFileName,
575  const SfxObjectShell* pShell );
576  SC_DLLPUBLIC static OUString GetDocTabName( std::u16string_view rFileName,
577  std::u16string_view rTabName );
578  SC_DLLPUBLIC static sal_uInt32 GetStandardFormat( SvNumberFormatter&, sal_uInt32 nFormat, SvNumFormatType nType );
579 
580  SC_DLLPUBLIC static sal_uInt16 GetStandardRowHeight();
582  SC_DLLPUBLIC static double nScreenPPTX;
584  SC_DLLPUBLIC static double nScreenPPTY;
585 
587 
588  static sal_uInt16 nDefFontHeight;
589  SC_DLLPUBLIC static sal_uInt16 nStdRowHeight;
590 
591  SC_DLLPUBLIC static ::tools::Long nLastRowHeightExtra;
592  static ::tools::Long nLastColWidthExtra;
593 
594  SC_DLLPUBLIC static void Init(); // during start up
595  static void InitAddIns();
596  SC_DLLPUBLIC static void Clear(); // at the end of the program
597 
598  static void InitTextHeight(const SfxItemPool* pPool);
599  static SvxBrushItem* GetEmptyBrushItem() { return xEmptyBrushItem.get(); }
600  static SvxBrushItem* GetButtonBrushItem();
601  static const OUString& GetEmptyOUString() { return aEmptyOUString; }
602 
603  static bool HasStarCalcFunctionList();
604  static ScFunctionList* GetStarCalcFunctionList();
605  static ScFunctionMgr* GetStarCalcFunctionMgr();
606  static void ResetFunctionList();
607 
608  static OUString GetErrorString(FormulaError nErrNumber);
609  static OUString GetLongErrorString(FormulaError nErrNumber);
610  static bool EETextObjEqual( const EditTextObject* pObj1,
611  const EditTextObject* pObj2 );
612  static bool CheckWidthInvalidate( bool& bNumFormatChanged,
613  const SfxItemSet& rNewAttrs,
614  const SfxItemSet& rOldAttrs );
615  static bool HasAttrChanged( const SfxItemSet& rNewAttrs,
616  const SfxItemSet& rOldAttrs,
617  const sal_uInt16 nWhich );
618 
619  static ScUnitConverter* GetUnitConverter();
620 
622  static const sal_Unicode* UnicodeStrChr( const sal_Unicode* pStr, sal_Unicode c );
623 
625  { return ( c >= 'a' && c <= 'z' ) ? ( c-'a'+'A' ) : c; }
626 
633  SC_DLLPUBLIC static OUString addToken(
634  std::u16string_view rTokenList, std::u16string_view rToken,
635  sal_Unicode cSep, sal_Int32 nSepCount = 1,
636  bool bForceSep = false );
637 
639  SC_DLLPUBLIC static bool IsQuoted( const OUString& rString, sal_Unicode cQuote );
640 
645  SC_DLLPUBLIC static void AddQuotes( OUString& rString, sal_Unicode cQuote, bool bEscapeEmbedded = true );
646 
652  SC_DLLPUBLIC static void EraseQuotes( OUString& rString, sal_Unicode cQuote, bool bUnescapeEmbedded = true );
653 
662  SC_DLLPUBLIC static sal_Int32 FindUnquoted( const OUString& rString, sal_Unicode cChar, sal_Int32 nStart = 0 );
663 
668  SC_DLLPUBLIC static const sal_Unicode* FindUnquoted( const sal_Unicode* pString, sal_Unicode cChar );
669 
670  static rtl_TextEncoding GetCharsetValue( const OUString& rCharSet );
671  static OUString GetCharsetString( rtl_TextEncoding eVal );
672 
674  static SvNumberFormatter* GetEnglishFormatter();
675 
676  static bool IsSystemRTL(); // depending on system language
677  static LanguageType GetEditDefaultLanguage(); // for EditEngine::SetDefaultLanguage
678  SC_DLLPUBLIC static SvtScriptType GetDefaultScriptType(); // for all WEAK characters
682  SC_DLLPUBLIC static sal_uInt16 GetScriptedWhichID( SvtScriptType nScriptType, sal_uInt16 nWhich );
683 
686  SC_DLLPUBLIC static void AddLanguage( SfxItemSet& rSet, const SvNumberFormatter& rFormatter );
687 
689  static OUString GetOrdinalSuffix( sal_Int32 nNumber);
690 
693  static ScFieldEditEngine& GetStaticFieldEditEngine();
694 
704  SC_DLLPUBLIC static OUString ReplaceOrAppend( const OUString& rString,
705  std::u16string_view rPlaceholder,
706  const OUString& rReplacement );
707 
708 
814  static double ConvertStringToValue( const OUString& rStr, const ScCalcConfig& rConfig,
815  FormulaError & rError, FormulaError nStringNoValueError,
816  SvNumberFormatter* pFormatter, SvNumFormatType & rCurFmtType );
817 
820 };
821 
822 // maybe move to dbdata.hxx (?):
823 
825  {
842  };
843 
845  {
848  };
849 
851  {
866  };
867 
869  {
889  };
890 
891 class ScArea;
892 
894 {
895  SCCOL nCol; // cursor position /
896  SCROW nRow; // or start of destination area respectively
899  sal_uInt16 nDataAreaCount; // number of data areas
900  std::unique_ptr<ScArea[]> pDataAreas; // array of pointers into data areas
901  bool bByCol;
902  bool bByRow;
903  bool bReferenceData; // reference source data
904 
908 
909  ScConsolidateParam& operator= ( const ScConsolidateParam& r );
910  bool operator== ( const ScConsolidateParam& r ) const;
911  void Clear (); // = ClearDataAreas()+Members
912  void ClearDataAreas ();
913  void SetAreas ( std::unique_ptr<ScArea[]> pAreas, sal_uInt16 nCount );
914 };
915 
917 extern sal_uInt16 nScClickMouseModifier;
918 extern sal_uInt16 nScFillModeMouseModifier;
919 
920 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
If set, cloned formula cells will start to listen to the document.
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)
Definition: xlstyle.cxx:519
List of spreadsheet functions.
Definition: funcdesc.hxx:241
If set, global named expressions will be converted to sheet-local named expressions.
static std::atomic< CollatorWrapper * > pCaseCollator
Definition: global.hxx:526
static SC_DLLPUBLIC bool bThreadedGroupCalcInProgress
Calc's threaded group calculation is in progress.
Definition: global.hxx:819
Collection of user-defined sort lists.
Definition: userlist.hxx:66
STRING
ScAggregateFunc
Definition: global.hxx:868
void Init()
HasAttrFlags
Definition: global.hxx:193
Sheet / outlining (grouping) information.
const sal_Unicode CHAR_ZWSP
Definition: global.hxx:67
ScCloneFlags
Definition: global.hxx:261
OUString aDBName
Definition: global.hxx:456
FillDir
Definition: global.hxx:318
Hard cell attributes.
const sal_Unicode CHAR_NNBSP
Definition: global.hxx:72
static std::unique_ptr< ScFunctionMgr > xStarCalcFunctionMgr
Definition: global.hxx:518
static std::unique_ptr< ScUserList > xUserList
Definition: global.hxx:510
static std::atomic< css::lang::Locale * > pLocale
Definition: global.hxx:530
ScScenarioFlags
Definition: global.hxx:236
long Long
const sal_Unicode CHAR_WJ
Definition: global.hxx:71
static std::unique_ptr< ScFieldEditEngine > xFieldEditEngine
Definition: global.hxx:532
don't create
Definition: global.hxx:396
static OUString aStrErrorStringNoRef
Definition: global.hxx:513
Reference
static std::atomic<::utl::TransliterationWrapper * > pCaseTransliteration
Definition: global.hxx:529
If set, absolute refs will not transformed to external references.
static std::unique_ptr< SvNumberFormatter > xEnglishFormatter
Definition: global.hxx:522
sal_uInt16 nDataAreaCount
Definition: global.hxx:899
constexpr SdrLayerID SC_LAYER_BACK(1)
static std::optional< SvtSysLocale > oSysLocale
Definition: global.hxx:537
create "Importx" (if necessary)
Definition: global.hxx:395
std::unique_ptr< ScArea[]> pDataAreas
Definition: global.hxx:900
SCROW nRow2
Definition: global.hxx:454
Stores spreadsheet functions in categories, including a cumulative ('All') category and makes them ac...
Definition: funcdesc.hxx:305
Unknown
ScGetDBMode
Definition: global.hxx:391
Internal use only (d&d undo): do not delete caption objects of cell notes.
DelCellCmd
Definition: global.hxx:290
Value
Shrink selection to actually used data area within the selection.
SubtotalFlags
Definition: global.hxx:250
Keep selection as is, expand to used data area if no selection.
sal_uInt16 sal_Unicode
static std::atomic< ScUnitConverter * > pUnitConverter
Definition: global.hxx:520
size_t SCSIZE
size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to ...
Definition: address.hxx:44
static std::atomic< LegacyFuncCollection * > pLegacyFuncCollection
Definition: global.hxx:508
static std::unique_ptr< ScFunctionList > xStarCalcFunctionList
Definition: global.hxx:517
static std::atomic< CollatorWrapper * > pCollator
Definition: global.hxx:527
ScLkUpdMode
Definition: global.hxx:419
FillDateCmd
Definition: global.hxx:343
ScDBObject
Definition: global.hxx:428
SCCOL nCol2
Definition: global.hxx:453
ScLinkMode
Definition: global.hxx:225
Copy flags for auto/series fill functions: do not touch notes and drawing objects.
If only one row or portion thereof is selected, shrink row to used data columns and select further ro...
SCROW nRow1
Definition: global.hxx:452
sal_uInt16 nScClickMouseModifier
Definition: global.cxx:114
Internal use only (copy from clip): do not delete existing cell contents when pasting notes...
const sal_Unicode CHAR_SHY
Definition: global.hxx:66
create "untitled" (if necessary)
Definition: global.hxx:393
Point Rotate(const Point &rPoint, Degree10 nOrientation, const Point &rOrigin)
static SC_DLLPUBLIC sal_uInt16 nStdRowHeight
Definition: global.hxx:589
ScPasteFunc
Definition: global.hxx:189
ScAnchorType
Definition: global.hxx:383
OUString aStatement
Definition: global.hxx:457
SvtScriptType
FillCmd
Definition: global.hxx:326
const sal_Unicode CHAR_RLM
Definition: global.hxx:69
static std::optional< CalendarWrapper > oCalendar
Definition: global.hxx:525
ScMoveDirection
Definition: global.hxx:335
sal_Int16 SCCOL
Definition: types.hxx:21
InsertDeleteFlags
Definition: global.hxx:158
static tools::SvRef< ScDocShell > xDrawClipDocShellRef
Definition: global.hxx:586
static SC_DLLPUBLIC double nScreenPPTY
Vertical pixel per twips factor.
Definition: global.hxx:584
sal_uInt16 nScFillModeMouseModifier
Definition: global.cxx:115
::tools::Long nLastColWidthExtra
Definition: global.hxx:592
const sal_Unicode CHAR_NBSP
Definition: global.hxx:65
bool bNative
Definition: global.hxx:458
exports com.sun.star. i18n
static const OUString & GetEmptyOUString()
Definition: global.hxx:601
SvNumFormatType
static SC_DLLPUBLIC LanguageType eLnge
Definition: global.hxx:553
const sal_Unicode CHAR_NBHY
Definition: global.hxx:70
void Clear(EHistoryType eHistory)
ScSizeMode
Definition: global.hxx:360
FormulaError
NORMAL
static std::unique_ptr< ScAutoFormat > xAutoFormat
Definition: global.hxx:507
Internal use only (undo etc.): do not copy/delete caption objects of cell notes.
Configuration options for formula interpreter.
Definition: calcconfig.hxx:43
ScBreakType
Definition: global.hxx:149
static SvxBrushItem * GetEmptyBrushItem()
Definition: global.hxx:599
UpdateRefMode
Definition: global.hxx:310
CRFlags
Definition: global.hxx:135
const sal_Unicode CHAR_LRM
Definition: global.hxx:68
Behave as if the range corresponding to a ScDBData area was selected, for API use.
sal_Int32 SCROW
Definition: types.hxx:17
PyRef getCharClass(const Runtime &)
ColRowEditAction
Definition: global.hxx:436
ScGetDBSelection
For ScDBFunc::GetDBData()
Definition: global.hxx:400
SfxViewShell * pScActiveViewShell
Definition: global.cxx:113
SUB
constexpr SdrLayerID SC_LAYER_HIDDEN(4)
static sal_uInt16 nDefFontHeight
Definition: global.hxx:588
sal_uInt8 nType
Definition: global.hxx:460
static sal_Unicode ToUpperAlpha(sal_Unicode c)
Definition: global.hxx:624
unsigned char sal_uInt8
static std::unique_ptr< SvxSearchItem > xSearchItem
Definition: global.hxx:506
CellType
Definition: global.hxx:281
constexpr SdrLayerID SC_LAYER_FRONT(0)
ScSubTotalFunc eFunction
Definition: global.hxx:898
InsCellCmd
Definition: global.hxx:299
constexpr SdrLayerID SC_LAYER_INTERN(2)
QPRO_FUNC_TYPE nType
Definition: qproform.cxx:398
static SC_DLLPUBLIC double nScreenPPTX
Horizontal pixel per twips factor.
Definition: global.hxx:582
force use of sheet-local instead of document global anonymous range
Definition: global.hxx:394
bool bImport
Definition: global.hxx:455
ScQueryOp
Definition: global.hxx:824
inline::tools::Long TwipsToEvenHMM(::tools::Long nTwips)
Definition: global.hxx:110
SCCOL nCol1
Definition: global.hxx:451
ScEnterMode
Definition: global.hxx:229
static std::unique_ptr< SvxBrushItem > xEmptyBrushItem
Definition: global.hxx:514
static SC_DLLPUBLIC const OUString aEmptyOUString
Definition: global.hxx:511
ScVObjMode
Definition: global.hxx:377
ScDirection
Definition: global.hxx:352
static std::atomic<::utl::TransliterationWrapper * > pTransliteration
Definition: global.hxx:528
static std::atomic< ScUnoAddInCollection * > pAddInCollection
Definition: global.hxx:509
ScSubTotalFunc
Definition: global.hxx:850
static std::unique_ptr< SvxBrushItem > xButtonBrushItem
Definition: global.hxx:515
static SC_DLLPUBLIC::tools::Long nLastRowHeightExtra
Definition: global.hxx:591
PaintPartFlags
Definition: global.hxx:119
ScInputMode
Definition: global.hxx:369
constexpr SdrLayerID SC_LAYER_CONTROLS(3)
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
sal_Int16 SCTAB
Definition: types.hxx:22
static css::uno::Reference< css::i18n::XOrdinalSuffix > xOrdinalSuffix
Definition: global.hxx:524
const SCSIZE MAXSUBTOTAL
Definition: global.hxx:80
ScQueryConnect
Definition: global.hxx:844
static OUString aStrClipDocName
Definition: global.hxx:512