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 <string_view>
39 
40 namespace com::sun::star::uno { template <typename > class Reference; }
41 
42 class SfxItemSet;
43 class SfxViewShell;
44 struct ScCalcConfig;
45 enum class SvtScriptType;
46 enum class FormulaError : sal_uInt16;
47 enum class SvNumFormatType : sal_Int16;
48 
49 #define SC_COLLATOR_IGNORES css::i18n::CollatorOptions::CollatorOptions_IGNORE_CASE
50 
51 // Calc has lots of names...
52 // Clipboard names are in so3/soapp.hxx now
53 // STRING_SCAPP was "scalc3", "scalc4", now just "scalc"
54 
55 #define STRING_SCAPP "scalc"
56 
57 #define STRING_STANDARD "Standard"
58 
59 // Have the dreaded programmatic filter name defined in one place.
60 #define SC_TEXT_CSV_FILTER_NAME "Text - txt - csv (StarCalc)"
61 
62 // characters
63 
64 const sal_Unicode CHAR_NBSP = 0x00A0;
65 const sal_Unicode CHAR_SHY = 0x00AD;
66 const sal_Unicode CHAR_ZWSP = 0x200B;
67 const sal_Unicode CHAR_LRM = 0x200E;
68 const sal_Unicode CHAR_RLM = 0x200F;
69 const sal_Unicode CHAR_NBHY = 0x2011;
70 const sal_Unicode CHAR_WJ = 0x2060;
71 const sal_Unicode CHAR_NNBSP = 0x202F; //NARROW NO-BREAK SPACE
72 
73 #define MINDOUBLE 1.7e-307
74 #define MAXDOUBLE 1.7e307
75 
76 #define MINZOOM 20
77 #define MAXZOOM 400
78 
79 const SCSIZE MAXSUBTOTAL = 3;
80 
81 #define PIXEL_PER_INCH 96.0
82 #define CM_PER_INCH 2.54
83 #define POINTS_PER_INCH 72.0
84 #define PIXEL_PER_POINT (PIXEL_PER_INCH / POINTS_PER_INCH)
85 #define TWIPS_PER_POINT 20.0
86 #define TWIPS_PER_INCH (TWIPS_PER_POINT * POINTS_PER_INCH)
87 #define TWIPS_PER_CM (TWIPS_PER_INCH / CM_PER_INCH)
88 #define CM_PER_TWIPS (CM_PER_INCH / TWIPS_PER_INCH)
89 #define TWIPS_PER_PIXEL (TWIPS_PER_INCH / PIXEL_PER_INCH)
90 #define TWIPS_PER_CHAR (TWIPS_PER_INCH / 13.6)
91 #define PIXEL_PER_TWIPS (PIXEL_PER_INCH / TWIPS_PER_INCH)
92 #define HMM_PER_TWIPS (CM_PER_TWIPS * 1000.0)
93 
94 #define STD_COL_WIDTH 1280 /* 2.2577cm, 64.00pt PS */
95 #define STD_EXTRA_WIDTH 113 /* 2mm extra for optimal width,
96  * 0.1986cm with TeX points,
97  * 0.1993cm with PS points. */
98 
99 #define MAX_EXTRA_WIDTH 23811 /* 42cm in TWIPS, 41.8430cm TeX, 41.9999cm PS */
100 #define MAX_EXTRA_HEIGHT 23811
101 #define MAX_COL_WIDTH 56693 /* 1m in TWIPS, 99.6266cm TeX, 100.0001cm PS */
102 #define MAX_ROW_HEIGHT 56693
103 
104  /* standard row height: text + margin - STD_ROWHEIGHT_DIFF */
105 #define STD_ROWHEIGHT_DIFF 23
106 
107 namespace sc
108 {
109  inline ::tools::Long TwipsToEvenHMM( ::tools::Long nTwips ) { return ( (nTwips * 127 + 72) / 144 ) * 2; }
110 }
111 
112  // standard size as OLE server (cells)
113 #define OLE_STD_CELLS_X 4
114 #define OLE_STD_CELLS_Y 5
115 
116 
117  // repaint flags (for messages)
118 enum class PaintPartFlags {
119  NONE = 0x00,
120  Grid = 0x01,
121  Top = 0x02,
122  Left = 0x04,
123  Extras = 0x08,
124  Marks = 0x10,
125  Objects = 0x20,
126  Size = 0x40,
127  All = Grid | Top | Left | Extras | Objects | Size,
128 };
129 namespace o3tl {
130  template<> struct typed_flags<PaintPartFlags> : is_typed_flags<PaintPartFlags, 0x07f> {};
131 }
132 
133  // flags for columns / rows
134 enum class CRFlags : sal_uInt8 {
135  // Filtered always together with Hidden
136  // Filtered and ManualSize only valid for rows
137  NONE = 0x00,
138  Hidden = 0x01,
139  ManualBreak = 0x02,
140  Filtered = 0x04,
141  ManualSize = 0x08,
143 };
144 namespace o3tl {
145  template<> struct typed_flags<CRFlags> : is_typed_flags<CRFlags, 0x0f> {};
146 }
147 
148 enum class ScBreakType {
149  NONE = 0x00,
150  Page = 0x01,
151  Manual = 0x02
152 };
153 namespace o3tl {
154  template<> struct typed_flags<ScBreakType> : is_typed_flags<ScBreakType, 0x03> {};
155 }
156 
157 enum class InsertDeleteFlags : sal_uInt16
158 {
159  NONE = 0x0000,
160  VALUE = 0x0001,
161  DATETIME = 0x0002,
162  STRING = 0x0004,
163  NOTE = 0x0008,
164  FORMULA = 0x0010,
165  HARDATTR = 0x0020,
166  STYLES = 0x0040,
167  OBJECTS = 0x0080,
168  EDITATTR = 0x0100,
169  OUTLINE = 0x0800,
170  NOCAPTIONS = 0x0200,
171  ADDNOTES = 0x0400,
172  SPECIAL_BOOLEAN = 0x1000,
173  FORGETCAPTIONS = 0x2000,
174  ATTRIB = HARDATTR | STYLES,
176  ALL = CONTENTS | ATTRIB | OBJECTS,
178  AUTOFILL = ALL & ~(NOTE | OBJECTS)
179 };
180 namespace o3tl
181 {
182  template<> struct typed_flags<InsertDeleteFlags> : is_typed_flags<InsertDeleteFlags, 0x3fff> {};
183 }
184 // This doesn't work at the moment, perhaps when we have constexpr we can modify InsertDeleteFlags to make it work.
185 //static_assert((InsertDeleteFlags::ATTRIB & InsertDeleteFlags::CONTENTS) == InsertDeleteFlags::NONE, "these must match");
186 
187 
188 enum class ScPasteFunc {
189  NONE, ADD, SUB, MUL, DIV
190 };
191  // bits for HasAttr
192 enum class HasAttrFlags {
193  NONE = 0x0000,
194  Lines = 0x0001,
195  Merged = 0x0002,
196  Overlapped = 0x0004,
197  Protected = 0x0008,
198  Shadow = 0x0010,
199  NeedHeight = 0x0020,
200  ShadowRight = 0x0040,
201  ShadowDown = 0x0080,
202  AutoFilter = 0x0100,
203  Conditional = 0x0200,
204  Rotate = 0x0400,
205  NotOverlapped = 0x0800,
206  RightOrCenter = 0x1000, // right or centered logical alignment
207 };
208 namespace o3tl {
209  template<> struct typed_flags<HasAttrFlags> : is_typed_flags<HasAttrFlags, 0x1fff> {};
210 }
211 
212 
213 #define EMPTY_OUSTRING ScGlobal::GetEmptyOUString()
214 
215 // Layer id's for drawing.
216 // These are both id's and positions.
217 constexpr SdrLayerID SC_LAYER_FRONT (0);
218 constexpr SdrLayerID SC_LAYER_BACK (1);
219 constexpr SdrLayerID SC_LAYER_INTERN (2);
220 constexpr SdrLayerID SC_LAYER_CONTROLS(3);
221 constexpr SdrLayerID SC_LAYER_HIDDEN (4);
222 
223 // link tables
224 enum class ScLinkMode {
225  NONE, NORMAL, VALUE
226 };
227  // input
228 enum class ScEnterMode {
230 };
231 
232  // step = 10pt, max. indention = 100 steps
233 #define SC_INDENT_STEP 200
234 
235 enum class ScScenarioFlags{ // scenario flags
236  NONE = 0,
237  CopyAll = 1,
238  ShowFrame = 2,
239  PrintFrame = 4,
240  TwoWay = 8,
241  Attrib = 16,
242  Value = 32,
243  Protected = 64
244 };
245 namespace o3tl {
246  template<> struct typed_flags<ScScenarioFlags> : is_typed_flags<ScScenarioFlags, 127> {};
247 }
248 
249 enum class SubtotalFlags {
250  NONE = 0x00,
251  IgnoreNestedStAg = 0x08,
252  IgnoreErrVal = 0x04,
253  IgnoreHidden = 0x02,
254  IgnoreFiltered = 0x01
255 };
256 namespace o3tl {
257  template<> struct typed_flags<SubtotalFlags> : is_typed_flags<SubtotalFlags, 0x0f> {};
258 }
259 
260 enum class ScCloneFlags{
263  Default = 0x0000,
264 
266  StartListening = 0x0001,
267 
269  NoMakeAbsExternal = 0x0002,
270 
273  NamesToLocal = 0x0004
274 };
275 namespace o3tl
276 {
277  template<> struct typed_flags<ScCloneFlags> : is_typed_flags<ScCloneFlags, 0x0007> {};
278 }
279 
281  {
287  };
288 
289 enum class DelCellCmd
290  {
291  CellsUp,
292  CellsLeft,
293  Rows,
294  Cols,
295  NONE
296  };
297 
299  {
307  };
308 
310  {
315  };
316 
318  {
323  };
324 
326  {
332  };
333 
335 {
340 };
341 
343  {
349  };
350 
352  {
357  };
358 
360  {
361  SC_SIZE_DIRECT, // set size or hide if value is 0
362  SC_SIZE_OPTIMAL, // set optimal size for everything
363  SC_SIZE_SHOW, // show with original size
364  SC_SIZE_VISOPT, // set optimal size only if visible
365  SC_SIZE_ORIGINAL // only set size, don't change visible flag
366  };
367 
369  {
371  SC_INPUT_TYPE, // input, while not in inplace mode
372  SC_INPUT_TABLE, // text cursor in the table
373  SC_INPUT_TOP // text cursor in the input line
374  };
375 
376 enum ScVObjMode // output modes of objects on a page
377 {
380 };
381 
382 enum ScAnchorType // anchor of a character object
383 {
384  SCA_CELL, // anchor to cell, move with cell
385  SCA_CELL_RESIZE, // anchor to cell, move and resize with cell
386  SCA_PAGE, // anchor to page, independent of any cells
387  SCA_DONTKNOW // for multi selection
388 };
389 
391 {
396 };
397 
400 {
402  Keep,
403 
406 
411  RowDown,
412 
415  ForceMark
416 };
417 
418 enum ScLkUpdMode // modes for updating links
419 {
424 };
425 
426 // enum with values equal to old DBObject enum from sdb
428 {
431 };
432 
433 namespace sc {
434 
436 {
437  Unknown,
443  DeleteRows
444 };
445 
446 }
447 
449 {
454  bool bImport;
455  OUString aDBName; // alias of data base
456  OUString aStatement;
457  bool bNative;
458  bool bSql; // statement or name?
459  sal_uInt8 nType; // enum DBObject
460 
461  ScImportParam();
462  ScImportParam( const ScImportParam& r );
463  ~ScImportParam();
464 
465  ScImportParam& operator= ( const ScImportParam& r );
466  bool operator== ( const ScImportParam& r ) const;
467 };
468 
469 class ScDocShell;
470 class SvxSearchItem;
471 class ScAutoFormat;
474 class ScUserList;
475 class SvxBrushItem;
476 class ScFunctionList;
477 class ScFunctionMgr;
478 class SfxItemPool;
479 class EditTextObject;
480 class SfxObjectShell;
481 class SvNumberFormatter;
482 class ScUnitConverter;
483 class CharClass;
484 class LocaleDataWrapper;
485 class SvtSysLocale;
486 class CalendarWrapper;
487 class CollatorWrapper;
488 class IntlWrapper;
489 class ScFieldEditEngine;
490 
491 namespace com::sun::star {
492  namespace lang {
493  struct Locale;
494  }
495  namespace i18n {
496  class XOrdinalSuffix;
497  }
498 }
499 namespace utl {
500  class TransliterationWrapper;
501 }
502 
503 class ScGlobal
504 {
505  static std::unique_ptr<SvxSearchItem> xSearchItem;
506  static std::unique_ptr<ScAutoFormat> xAutoFormat;
507  static std::atomic<LegacyFuncCollection*> pLegacyFuncCollection;
508  static std::atomic<ScUnoAddInCollection*> pAddInCollection;
509  static std::unique_ptr<ScUserList> xUserList;
510  static SC_DLLPUBLIC const OUString aEmptyOUString;
511  static OUString aStrClipDocName;
512  static std::unique_ptr<SvxBrushItem> xEmptyBrushItem;
513  static std::unique_ptr<SvxBrushItem> xButtonBrushItem;
514 
515  static std::unique_ptr<ScFunctionList> xStarCalcFunctionList;
516  static std::unique_ptr<ScFunctionMgr> xStarCalcFunctionMgr;
517 
518  static std::atomic<ScUnitConverter*> pUnitConverter;
519 
520  static std::unique_ptr<SvNumberFormatter> xEnglishFormatter; // for UNO / XML export
521 
522  static css::uno::Reference< css::i18n::XOrdinalSuffix> xOrdinalSuffix;
523  static std::unique_ptr<CalendarWrapper> xCalendar;
524  static std::atomic<CollatorWrapper*> pCaseCollator;
525  static std::atomic<CollatorWrapper*> pCollator;
526  static std::atomic<::utl::TransliterationWrapper*> pTransliteration;
527  static std::atomic<::utl::TransliterationWrapper*> pCaseTransliteration;
528  static std::atomic<css::lang::Locale*> pLocale;
529 
530  static std::unique_ptr<ScFieldEditEngine> xFieldEditEngine;
531 
532  static void InitPPT();
533 
534 public:
535  static std::unique_ptr<SvtSysLocale> xSysLocale;
536  SC_DLLPUBLIC static const LocaleDataWrapper* getLocaleDataPtr();
537  SC_DLLPUBLIC static const CharClass* getCharClassPtr();
538 
539  static CalendarWrapper* GetCalendar();
540  SC_DLLPUBLIC static CollatorWrapper* GetCollator();
541  static CollatorWrapper* GetCaseCollator();
542  static css::lang::Locale* GetLocale();
543 
544  SC_DLLPUBLIC static ::utl::TransliterationWrapper* GetpTransliteration();
545  static ::utl::TransliterationWrapper* GetCaseTransliteration();
546 
548  static constexpr sal_Unicode cListDelimiter = ',';
549 
550  static const OUString& GetClipDocName();
551  static void SetClipDocName( const OUString& rNew );
552  SC_DLLPUBLIC static const SvxSearchItem& GetSearchItem();
553  SC_DLLPUBLIC static void SetSearchItem( const SvxSearchItem& rNew );
554  SC_DLLPUBLIC static ScAutoFormat* GetAutoFormat();
555  SC_DLLPUBLIC static ScAutoFormat* GetOrCreateAutoFormat();
556  static void ClearAutoFormat(); //BugId 54209
557  static LegacyFuncCollection* GetLegacyFuncCollection();
558  SC_DLLPUBLIC static ScUnoAddInCollection* GetAddInCollection();
559  SC_DLLPUBLIC static ScUserList* GetUserList();
560  static void SetUserList( const ScUserList* pNewList );
565  static void OpenURL(const OUString& rURL, const OUString& rTarget, bool bIgnoreSettings = false);
567  static bool ShouldOpenURL();
568  SC_DLLPUBLIC static OUString GetAbsDocName( const OUString& rFileName,
569  const SfxObjectShell* pShell );
570  SC_DLLPUBLIC static OUString GetDocTabName( std::u16string_view rFileName,
571  std::u16string_view rTabName );
572  SC_DLLPUBLIC static sal_uInt32 GetStandardFormat( SvNumberFormatter&, sal_uInt32 nFormat, SvNumFormatType nType );
573 
574  SC_DLLPUBLIC static sal_uInt16 GetStandardRowHeight();
576  SC_DLLPUBLIC static double nScreenPPTX;
578  SC_DLLPUBLIC static double nScreenPPTY;
579 
581 
582  static sal_uInt16 nDefFontHeight;
583  SC_DLLPUBLIC static sal_uInt16 nStdRowHeight;
584 
585  SC_DLLPUBLIC static ::tools::Long nLastRowHeightExtra;
586  static ::tools::Long nLastColWidthExtra;
587 
588  SC_DLLPUBLIC static void Init(); // during start up
589  static void InitAddIns();
590  SC_DLLPUBLIC static void Clear(); // at the end of the program
591 
592  static void InitTextHeight(const SfxItemPool* pPool);
593  static SvxBrushItem* GetEmptyBrushItem() { return xEmptyBrushItem.get(); }
594  static SvxBrushItem* GetButtonBrushItem();
595  static const OUString& GetEmptyOUString() { return aEmptyOUString; }
596 
597  static bool HasStarCalcFunctionList();
598  static ScFunctionList* GetStarCalcFunctionList();
599  static ScFunctionMgr* GetStarCalcFunctionMgr();
600  static void ResetFunctionList();
601 
602  static OUString GetErrorString(FormulaError nErrNumber);
603  static OUString GetLongErrorString(FormulaError nErrNumber);
604  static bool EETextObjEqual( const EditTextObject* pObj1,
605  const EditTextObject* pObj2 );
606  static bool CheckWidthInvalidate( bool& bNumFormatChanged,
607  const SfxItemSet& rNewAttrs,
608  const SfxItemSet& rOldAttrs );
609  static bool HasAttrChanged( const SfxItemSet& rNewAttrs,
610  const SfxItemSet& rOldAttrs,
611  const sal_uInt16 nWhich );
612 
613  static ScUnitConverter* GetUnitConverter();
614 
616  static const sal_Unicode* UnicodeStrChr( const sal_Unicode* pStr, sal_Unicode c );
617 
619  { return ( c >= 'a' && c <= 'z' ) ? ( c-'a'+'A' ) : c; }
620 
627  SC_DLLPUBLIC static OUString addToken(
628  const OUString& rTokenList, std::u16string_view rToken,
629  sal_Unicode cSep, sal_Int32 nSepCount = 1,
630  bool bForceSep = false );
631 
633  SC_DLLPUBLIC static bool IsQuoted( const OUString& rString, sal_Unicode cQuote );
634 
639  SC_DLLPUBLIC static void AddQuotes( OUString& rString, sal_Unicode cQuote, bool bEscapeEmbedded = true );
640 
646  SC_DLLPUBLIC static void EraseQuotes( OUString& rString, sal_Unicode cQuote, bool bUnescapeEmbedded = true );
647 
656  SC_DLLPUBLIC static sal_Int32 FindUnquoted( const OUString& rString, sal_Unicode cChar, sal_Int32 nStart = 0 );
657 
662  SC_DLLPUBLIC static const sal_Unicode* FindUnquoted( const sal_Unicode* pString, sal_Unicode cChar );
663 
664  static rtl_TextEncoding GetCharsetValue( const OUString& rCharSet );
665  static OUString GetCharsetString( rtl_TextEncoding eVal );
666 
668  static SvNumberFormatter* GetEnglishFormatter();
669 
670  static bool IsSystemRTL(); // depending on system language
671  static LanguageType GetEditDefaultLanguage(); // for EditEngine::SetDefaultLanguage
672  SC_DLLPUBLIC static SvtScriptType GetDefaultScriptType(); // for all WEAK characters
676  SC_DLLPUBLIC static sal_uInt16 GetScriptedWhichID( SvtScriptType nScriptType, sal_uInt16 nWhich );
677 
680  SC_DLLPUBLIC static void AddLanguage( SfxItemSet& rSet, const SvNumberFormatter& rFormatter );
681 
683  static OUString GetOrdinalSuffix( sal_Int32 nNumber);
684 
687  static ScFieldEditEngine& GetStaticFieldEditEngine();
688 
698  SC_DLLPUBLIC static OUString ReplaceOrAppend( const OUString& rString,
699  std::u16string_view rPlaceholder,
700  const OUString& rReplacement );
701 
702 
808  static double ConvertStringToValue( const OUString& rStr, const ScCalcConfig& rConfig,
809  FormulaError & rError, FormulaError nStringNoValueError,
810  SvNumberFormatter* pFormatter, SvNumFormatType & rCurFmtType );
811 
814 };
815 
816 // maybe move to dbdata.hxx (?):
817 
819  {
836  };
837 
839  {
842  };
843 
845  {
860  };
861 
863  {
883  };
884 
885 class ScArea;
886 
888 {
889  SCCOL nCol; // cursor position /
890  SCROW nRow; // or start of destination area respectively
893  sal_uInt16 nDataAreaCount; // number of data areas
894  std::unique_ptr<ScArea[]> pDataAreas; // array of pointers into data areas
895  bool bByCol;
896  bool bByRow;
897  bool bReferenceData; // reference source data
898 
902 
903  ScConsolidateParam& operator= ( const ScConsolidateParam& r );
904  bool operator== ( const ScConsolidateParam& r ) const;
905  void Clear (); // = ClearDataAreas()+Members
906  void ClearDataAreas ();
907  void SetAreas ( std::unique_ptr<ScArea[]> pAreas, sal_uInt16 nCount );
908 };
909 
911 extern sal_uInt16 nScClickMouseModifier;
912 extern sal_uInt16 nScFillModeMouseModifier;
913 
914 /* 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:518
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:524
static SC_DLLPUBLIC bool bThreadedGroupCalcInProgress
Calc's threaded group calculation is in progress.
Definition: global.hxx:813
Collection of user-defined sort lists.
Definition: userlist.hxx:66
STRING
ScAggregateFunc
Definition: global.hxx:862
void Init()
HasAttrFlags
Definition: global.hxx:192
Sheet / outlining (grouping) information.
const sal_Unicode CHAR_ZWSP
Definition: global.hxx:66
ScCloneFlags
Definition: global.hxx:260
OUString aDBName
Definition: global.hxx:455
FillDir
Definition: global.hxx:317
Hard cell attributes.
const sal_Unicode CHAR_NNBSP
Definition: global.hxx:71
static std::unique_ptr< ScFunctionMgr > xStarCalcFunctionMgr
Definition: global.hxx:516
static std::unique_ptr< ScUserList > xUserList
Definition: global.hxx:509
static std::atomic< css::lang::Locale * > pLocale
Definition: global.hxx:528
ScScenarioFlags
Definition: global.hxx:235
long Long
const sal_Unicode CHAR_WJ
Definition: global.hxx:70
static std::unique_ptr< ScFieldEditEngine > xFieldEditEngine
Definition: global.hxx:530
don't create
Definition: global.hxx:395
Reference
static std::atomic<::utl::TransliterationWrapper * > pCaseTransliteration
Definition: global.hxx:527
If set, absolute refs will not transformed to external references.
static std::unique_ptr< SvNumberFormatter > xEnglishFormatter
Definition: global.hxx:520
sal_uInt16 nDataAreaCount
Definition: global.hxx:893
constexpr SdrLayerID SC_LAYER_BACK(1)
create "Importx" (if necessary)
Definition: global.hxx:394
std::unique_ptr< ScArea[]> pDataAreas
Definition: global.hxx:894
SCROW nRow2
Definition: global.hxx:453
Stores spreadsheet functions in categories, including a cumulative ('All') category and makes them ac...
Definition: funcdesc.hxx:305
Unknown
ScGetDBMode
Definition: global.hxx:390
Internal use only (d&d undo): do not delete caption objects of cell notes.
DelCellCmd
Definition: global.hxx:289
Value
Shrink selection to actually used data area within the selection.
SubtotalFlags
Definition: global.hxx:249
Keep selection as is, expand to used data area if no selection.
sal_uInt16 sal_Unicode
static std::atomic< ScUnitConverter * > pUnitConverter
Definition: global.hxx:518
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:507
static std::unique_ptr< ScFunctionList > xStarCalcFunctionList
Definition: global.hxx:515
static std::atomic< CollatorWrapper * > pCollator
Definition: global.hxx:525
ScLkUpdMode
Definition: global.hxx:418
FillDateCmd
Definition: global.hxx:342
ScDBObject
Definition: global.hxx:427
SCCOL nCol2
Definition: global.hxx:452
ScLinkMode
Definition: global.hxx:224
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:451
sal_uInt16 nScClickMouseModifier
Definition: global.cxx:112
Internal use only (copy from clip): do not delete existing cell contents when pasting notes...
const sal_Unicode CHAR_SHY
Definition: global.hxx:65
create "untitled" (if necessary)
Definition: global.hxx:392
Point Rotate(const Point &rPoint, Degree10 nOrientation, const Point &rOrigin)
static SC_DLLPUBLIC sal_uInt16 nStdRowHeight
Definition: global.hxx:583
ScPasteFunc
Definition: global.hxx:188
ScAnchorType
Definition: global.hxx:382
OUString aStatement
Definition: global.hxx:456
SvtScriptType
FillCmd
Definition: global.hxx:325
const sal_Unicode CHAR_RLM
Definition: global.hxx:68
ScMoveDirection
Definition: global.hxx:334
sal_Int16 SCCOL
Definition: types.hxx:21
InsertDeleteFlags
Definition: global.hxx:157
static tools::SvRef< ScDocShell > xDrawClipDocShellRef
Definition: global.hxx:580
static SC_DLLPUBLIC double nScreenPPTY
Vertical pixel per twips factor.
Definition: global.hxx:578
sal_uInt16 nScFillModeMouseModifier
Definition: global.cxx:113
::tools::Long nLastColWidthExtra
Definition: global.hxx:586
static std::unique_ptr< CalendarWrapper > xCalendar
Definition: global.hxx:523
const sal_Unicode CHAR_NBSP
Definition: global.hxx:64
bool bNative
Definition: global.hxx:457
exports com.sun.star. i18n
static const OUString & GetEmptyOUString()
Definition: global.hxx:595
SvNumFormatType
static SC_DLLPUBLIC LanguageType eLnge
Definition: global.hxx:547
const sal_Unicode CHAR_NBHY
Definition: global.hxx:69
ScSizeMode
Definition: global.hxx:359
FormulaError
NORMAL
static std::unique_ptr< ScAutoFormat > xAutoFormat
Definition: global.hxx:506
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:148
static SvxBrushItem * GetEmptyBrushItem()
Definition: global.hxx:593
static std::unique_ptr< SvtSysLocale > xSysLocale
Definition: global.hxx:535
UpdateRefMode
Definition: global.hxx:309
CRFlags
Definition: global.hxx:134
const sal_Unicode CHAR_LRM
Definition: global.hxx:67
Behave as if the range corresponding to a ScDBData area was selected, for API use.
sal_Int32 SCROW
Definition: types.hxx:17
ColRowEditAction
Definition: global.hxx:435
ScGetDBSelection
For ScDBFunc::GetDBData()
Definition: global.hxx:399
SfxViewShell * pScActiveViewShell
Definition: global.cxx:111
SUB
constexpr SdrLayerID SC_LAYER_HIDDEN(4)
static sal_uInt16 nDefFontHeight
Definition: global.hxx:582
sal_uInt8 nType
Definition: global.hxx:459
static sal_Unicode ToUpperAlpha(sal_Unicode c)
Definition: global.hxx:618
unsigned char sal_uInt8
static std::unique_ptr< SvxSearchItem > xSearchItem
Definition: global.hxx:505
CellType
Definition: global.hxx:280
constexpr SdrLayerID SC_LAYER_FRONT(0)
ScSubTotalFunc eFunction
Definition: global.hxx:892
InsCellCmd
Definition: global.hxx:298
constexpr SdrLayerID SC_LAYER_INTERN(2)
QPRO_FUNC_TYPE nType
Definition: qproform.cxx:400
static SC_DLLPUBLIC double nScreenPPTX
Horizontal pixel per twips factor.
Definition: global.hxx:576
force use of sheet-local instead of document global anonymous range
Definition: global.hxx:393
bool bImport
Definition: global.hxx:454
ScQueryOp
Definition: global.hxx:818
inline::tools::Long TwipsToEvenHMM(::tools::Long nTwips)
Definition: global.hxx:109
SCCOL nCol1
Definition: global.hxx:450
ScEnterMode
Definition: global.hxx:228
static std::unique_ptr< SvxBrushItem > xEmptyBrushItem
Definition: global.hxx:512
static SC_DLLPUBLIC const OUString aEmptyOUString
Definition: global.hxx:510
ScVObjMode
Definition: global.hxx:376
ScDirection
Definition: global.hxx:351
static std::atomic<::utl::TransliterationWrapper * > pTransliteration
Definition: global.hxx:526
static std::atomic< ScUnoAddInCollection * > pAddInCollection
Definition: global.hxx:508
ScSubTotalFunc
Definition: global.hxx:844
static std::unique_ptr< SvxBrushItem > xButtonBrushItem
Definition: global.hxx:513
static SC_DLLPUBLIC::tools::Long nLastRowHeightExtra
Definition: global.hxx:585
PaintPartFlags
Definition: global.hxx:118
ScInputMode
Definition: global.hxx:368
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:522
const SCSIZE MAXSUBTOTAL
Definition: global.hxx:79
ScQueryConnect
Definition: global.hxx:838
static OUString aStrClipDocName
Definition: global.hxx:511