LibreOffice Module sc (master) 1
Classes | Macros | Functions | Variables
output2.cxx File Reference
#include <scitems.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/adjustitem.hxx>
#include <svx/algitem.hxx>
#include <editeng/brushitem.hxx>
#include <svtools/colorcfg.hxx>
#include <editeng/colritem.hxx>
#include <editeng/charreliefitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/contouritem.hxx>
#include <editeng/editobj.hxx>
#include <editeng/editstat.hxx>
#include <editeng/emphasismarkitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/forbiddenruleitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <editeng/justifyitem.hxx>
#include <svx/rotmodit.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/unolingu.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/wrlmitem.hxx>
#include <formula/errorcodes.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
#include <svl/zformat.hxx>
#include <vcl/kernarray.hxx>
#include <vcl/svapp.hxx>
#include <vcl/metric.hxx>
#include <vcl/outdev.hxx>
#include <vcl/pdfextoutdevdata.hxx>
#include <vcl/settings.hxx>
#include <vcl/glyphitem.hxx>
#include <vcl/vcllayout.hxx>
#include <vcl/glyphitemcache.hxx>
#include <sal/log.hxx>
#include <unotools/charclass.hxx>
#include <osl/diagnose.h>
#include <tools/stream.hxx>
#include <output.hxx>
#include <document.hxx>
#include <formulacell.hxx>
#include <attrib.hxx>
#include <patattr.hxx>
#include <cellform.hxx>
#include <editutil.hxx>
#include <progress.hxx>
#include <scmod.hxx>
#include <fillinfo.hxx>
#include <stlsheet.hxx>
#include <spellcheckcontext.hxx>
#include <scopetools.hxx>
#include <com/sun/star/i18n/DirectionProperty.hpp>
#include <comphelper/scopeguard.hxx>
#include <comphelper/string.hxx>
#include <memory>
#include <vector>
#include <o3tl/lru_map.hxx>
#include <o3tl/hash_combine.hxx>
#include <math.h>
Include dependency graph for output2.cxx:

Go to the source code of this file.

Classes

class  ScDrawStringsVars
 
class  ClearableClipRegion
 

Macros

#define DROPDOWN_BITMAP_SIZE   18
 Merge Autofilter width with column.cxx. More...
 
#define DRAWTEXT_MAX   32767
 

Functions

static bool lcl_isNumberFormatText (const ScDocument *pDoc, SCCOL nCellX, SCROW nCellY, SCTAB nTab)
 
static bool SameValue (const ScRefCellValue &rCell, const ScRefCellValue &rOldCell)
 
static void lcl_DoHyperlinkResult (const OutputDevice *pDev, const tools::Rectangle &rRect, ScRefCellValue &rCell)
 
static void lcl_SetEditColor (EditEngine &rEngine, const Color &rColor)
 
static bool StringDiffer (const ScPatternAttr *&rpOldPattern, const ScPatternAttr *pNewPattern)
 
static void lcl_CreateInterpretProgress (bool &bProgress, ScDocument *pDoc, const ScFormulaCell *pFCell)
 
static bool IsAmbiguousScript (SvtScriptType nScript)
 
static SvxCellHorJustify getAlignmentFromContext (SvxCellHorJustify eInHorJust, bool bCellIsValue, const OUString &rText, const ScPatternAttr &rPattern, const SfxItemSet *pCondSet, const ScDocument *pDoc, SCTAB nTab, const bool bNumberFormatIsText)
 Get left, right or centered alignment from RTL context. More...
 
static void lcl_ClearEdit (EditEngine &rEngine)
 
static bool lcl_SafeIsValue (ScRefCellValue &rCell)
 
static void lcl_ScaleFonts (EditEngine &rEngine, tools::Long nPercent)
 
static tools::Long lcl_GetEditSize (EditEngine &rEngine, bool bWidth, bool bSwap, Degree100 nAttrRotate)
 

Variables

const sal_uInt16 SC_SHRINKAGAIN_MAX = 7
 
constexpr auto HMM_PER_TWIPS = o3tl::convert(1.0, o3tl::Length::twip, o3tl::Length::mm100)
 

Macro Definition Documentation

◆ DRAWTEXT_MAX

#define DRAWTEXT_MAX   32767

Definition at line 94 of file output2.cxx.

◆ DROPDOWN_BITMAP_SIZE

#define DROPDOWN_BITMAP_SIZE   18

Merge Autofilter width with column.cxx.

Definition at line 92 of file output2.cxx.

Function Documentation

◆ getAlignmentFromContext()

static SvxCellHorJustify getAlignmentFromContext ( SvxCellHorJustify  eInHorJust,
bool  bCellIsValue,
const OUString &  rText,
const ScPatternAttr rPattern,
const SfxItemSet pCondSet,
const ScDocument pDoc,
SCTAB  nTab,
const bool  bNumberFormatIsText 
)
static

Get left, right or centered alignment from RTL context.

Does not return standard, block or repeat, for these the contextual left or right alignment is returned.

Definition at line 1432 of file output2.cxx.

References ATTR_WRITINGDIR(), ScDocument::IsLayoutRTL(), and SAL_WARN_IF.

Referenced by ScOutputData::DrawEdit(), and ScOutputData::LayoutStrings().

◆ IsAmbiguousScript()

static bool IsAmbiguousScript ( SvtScriptType  nScript)
static

Definition at line 1111 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

◆ lcl_ClearEdit()

static void lcl_ClearEdit ( EditEngine rEngine)
static

◆ lcl_CreateInterpretProgress()

static void lcl_CreateInterpretProgress ( bool &  bProgress,
ScDocument pDoc,
const ScFormulaCell pFCell 
)
static

◆ lcl_DoHyperlinkResult()

static void lcl_DoHyperlinkResult ( const OutputDevice pDev,
const tools::Rectangle rRect,
ScRefCellValue rCell 
)
static

◆ lcl_GetEditSize()

static tools::Long lcl_GetEditSize ( EditEngine rEngine,
bool  bWidth,
bool  bSwap,
Degree100  nAttrRotate 
)
static

◆ lcl_isNumberFormatText()

static bool lcl_isNumberFormatText ( const ScDocument pDoc,
SCCOL  nCellX,
SCROW  nCellY,
SCTAB  nTab 
)
static

◆ lcl_SafeIsValue()

static bool lcl_SafeIsValue ( ScRefCellValue rCell)
static

◆ lcl_ScaleFonts()

static void lcl_ScaleFonts ( EditEngine rEngine,
tools::Long  nPercent 
)
static

◆ lcl_SetEditColor()

static void lcl_SetEditColor ( EditEngine rEngine,
const Color rColor 
)
static

◆ SameValue()

static bool SameValue ( const ScRefCellValue rCell,
const ScRefCellValue rOldCell 
)
static

◆ StringDiffer()

static bool StringDiffer ( const ScPatternAttr *&  rpOldPattern,
const ScPatternAttr pNewPattern 
)
static

Variable Documentation

◆ HMM_PER_TWIPS

constexpr auto HMM_PER_TWIPS = o3tl::convert(1.0, o3tl::Length::twip, o3tl::Length::mm100)
constexpr

◆ SC_SHRINKAGAIN_MAX

const sal_uInt16 SC_SHRINKAGAIN_MAX = 7

Definition at line 96 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings(), and ScOutputData::ShrinkEditEngine().