LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScDrawStringsVars Class Reference
Collaboration diagram for ScDrawStringsVars:
[legend]

Public Member Functions

 ScDrawStringsVars (ScOutputData *pData, bool bPTL)
 
void SetPattern (const ScPatternAttr *pNew, const SfxItemSet *pSet, const ScRefCellValue &rCell, SvtScriptType nScript)
 
void SetPatternSimple (const ScPatternAttr *pNew, const SfxItemSet *pSet)
 
bool SetText (const ScRefCellValue &rCell)
 
void SetHashText ()
 
void SetTextToWidthOrHash (ScRefCellValue &rCell, tools::Long nWidth)
 
void SetAutoText (const OUString &rAutoText)
 
SvxCellOrientation GetOrient () const
 
SvxCellHorJustify GetHorJust () const
 
SvxCellVerJustify GetVerJust () const
 
SvxCellJustifyMethod GetHorJustMethod () const
 
const SvxMarginItemGetMargin () const
 
sal_uInt16 GetLeftTotal () const
 
sal_uInt16 GetRightTotal () const
 
const OUString & GetString () const
 
const SizeGetTextSize () const
 
tools::Long GetOriginalWidth () const
 
tools::Long GetFmtTextWidth (const OUString &rString)
 
sal_uLong GetResultValueFormat () const
 
bool GetLineBreak () const
 
bool IsRepeat () const
 
bool IsShrink () const
 
void RepeatToFill (tools::Long nColWidth)
 
tools::Long GetAscent () const
 
bool IsRotated () const
 
void SetShrinkScale (tools::Long nScale, SvtScriptType nScript)
 
bool HasCondHeight () const
 
bool HasEditCharacters () const
 
const SalLayoutGlyphsGetLayoutGlyphs (const OUString &rString) const
 

Private Member Functions

tools::Long GetMaxDigitWidth ()
 
tools::Long GetSignWidth ()
 
tools::Long GetDotWidth ()
 
tools::Long GetExpWidth ()
 
void TextChanged ()
 

Private Attributes

ScOutputDatapOutput
 
const ScPatternAttrpPattern
 
const SfxItemSetpCondSet
 
vcl::Font aFont
 
FontMetric aMetric
 
tools::Long nAscentPixel
 
SvxCellOrientation eAttrOrient
 
SvxCellHorJustify eAttrHorJust
 
SvxCellVerJustify eAttrVerJust
 
SvxCellJustifyMethod eAttrHorJustMethod
 
const SvxMarginItempMargin
 
sal_uInt16 nIndent
 
bool bRotated
 
OUString aString
 
Size aTextSize
 
tools::Long nOriginalWidth
 
tools::Long nMaxDigitWidth
 
tools::Long nSignWidth
 
tools::Long nDotWidth
 
tools::Long nExpWidth
 
ScRefCellValue maLastCell
 
o3tl::lru_map< OUString, SalLayoutGlyphsmCachedGlyphs
 
sal_uLong nValueFormat
 
bool bLineBreak
 
bool bRepeat
 
bool bShrink
 
bool bPixelToLogic
 
bool bCellContrast
 
Color aBackConfigColor
 
Color aTextConfigColor
 
sal_Int32 nRepeatPos
 
sal_Unicode nRepeatChar
 

Detailed Description

Definition at line 92 of file output2.cxx.

Constructor & Destructor Documentation

ScDrawStringsVars::ScDrawStringsVars ( ScOutputData pData,
bool  bPTL 
)

Member Function Documentation

tools::Long ScDrawStringsVars::GetAscent ( ) const
inline

Definition at line 173 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

tools::Long ScDrawStringsVars::GetDotWidth ( )
private
tools::Long ScDrawStringsVars::GetExpWidth ( )
private

Definition at line 766 of file output2.cxx.

References OutputDevice::GetTextWidth(), nExpWidth, ScOutputData::pFmtDevice, and pOutput.

Referenced by SetTextToWidthOrHash().

tools::Long ScDrawStringsVars::GetFmtTextWidth ( const OUString &  rString)
SvxCellHorJustify ScDrawStringsVars::GetHorJust ( ) const
inline

Definition at line 151 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

SvxCellJustifyMethod ScDrawStringsVars::GetHorJustMethod ( ) const
inline

Definition at line 153 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

const SalLayoutGlyphs * ScDrawStringsVars::GetLayoutGlyphs ( const OUString &  rString) const
sal_uInt16 ScDrawStringsVars::GetLeftTotal ( ) const
inline

Definition at line 156 of file output2.cxx.

References SvxMarginItem::GetLeftMargin().

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::GetLineBreak ( ) const
inline

Definition at line 168 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

const SvxMarginItem* ScDrawStringsVars::GetMargin ( ) const
inline

Definition at line 154 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

tools::Long ScDrawStringsVars::GetMaxDigitWidth ( )
private

Definition at line 732 of file output2.cxx.

References OutputDevice::GetTextWidth(), i, n, nMaxDigitWidth, ScOutputData::pFmtDevice, and pOutput.

Referenced by SetTextToWidthOrHash().

SvxCellOrientation ScDrawStringsVars::GetOrient ( ) const
inline

Definition at line 150 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings(), SetAutoText(), and TextChanged().

tools::Long ScDrawStringsVars::GetOriginalWidth ( ) const
inline

Definition at line 161 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

sal_uLong ScDrawStringsVars::GetResultValueFormat ( ) const
inline

Definition at line 166 of file output2.cxx.

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

sal_uInt16 ScDrawStringsVars::GetRightTotal ( ) const
inline

Definition at line 157 of file output2.cxx.

References SvxMarginItem::GetRightMargin().

Referenced by ScOutputData::LayoutStrings().

tools::Long ScDrawStringsVars::GetSignWidth ( )
private

Definition at line 747 of file output2.cxx.

References OutputDevice::GetTextWidth(), nSignWidth, ScOutputData::pFmtDevice, and pOutput.

Referenced by SetTextToWidthOrHash().

const OUString& ScDrawStringsVars::GetString ( ) const
inline

Definition at line 159 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

const Size& ScDrawStringsVars::GetTextSize ( ) const
inline

Definition at line 160 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

SvxCellVerJustify ScDrawStringsVars::GetVerJust ( ) const
inline

Definition at line 152 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::HasCondHeight ( ) const
inline

Definition at line 178 of file output2.cxx.

References ATTR_FONT_HEIGHT(), and SfxItemSet::GetItemState().

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::HasEditCharacters ( ) const

Definition at line 822 of file output2.cxx.

References aString, CHAR_LRM, CHAR_NBHY, CHAR_NBSP, CHAR_RLM, CHAR_SHY, CHAR_ZWNBSP, and CHAR_ZWSP.

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::IsRepeat ( ) const
inline

Definition at line 169 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::IsRotated ( ) const
inline

Definition at line 174 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::IsShrink ( ) const
inline

Definition at line 170 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

void ScDrawStringsVars::RepeatToFill ( tools::Long  nColWidth)
void ScDrawStringsVars::SetAutoText ( const OUString &  rAutoText)
void ScDrawStringsVars::SetHashText ( )

Definition at line 563 of file output2.cxx.

References SetAutoText().

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

void ScDrawStringsVars::SetPattern ( const ScPatternAttr pNew,
const SfxItemSet pSet,
const ScRefCellValue rCell,
SvtScriptType  nScript 
)

differentiate and do not get the text again from the number format?

Definition at line 296 of file output2.cxx.

References aBackConfigColor, aFont, ALIGN_BASELINE, aMetric, aTextConfigColor, ATTR_FONT_OVERLINE(), ATTR_FONT_UNDERLINE(), ATTR_HOR_JUSTIFY(), ATTR_HOR_JUSTIFY_METHOD(), ATTR_INDENT(), ATTR_LINEBREAK(), ATTR_MARGIN(), ATTR_ROTATE_VALUE(), ATTR_SHRINKTOFIT(), ATTR_VER_JUSTIFY(), ScOutputData::aZoomY, bCellContrast, bLineBreak, bPixelToLogic, bRepeat, bRotated, bShrink, o3tl::lru_map< class, class, class, class >::clear(), ScRefCellValue::clear(), eAttrHorJust, eAttrHorJustMethod, eAttrOrient, eAttrVerJust, FontMetric::GetAscent(), ScPatternAttr::GetCellOrientation(), Application::GetDefaultDevice(), ScPatternAttr::GetFont(), OutputDevice::GetFontMetric(), ScDocument::GetFormatTable(), FontMetric::GetInternalLeading(), ScPatternAttr::GetItem(), OutputDevice::GetMapMode(), OutputDevice::GetOutDevType(), OutputDevice::LogicToPixel(), maLastCell, ScOutputData::mbForceAutoColor, ScOutputData::mbSyntaxMode, ScOutputData::mbUseStyleColor, mCachedGlyphs, ScOutputData::mpDev, ScOutputData::mpDoc, ScOutputData::mpRefDevice, nAscentPixel, nDotWidth, nExpWidth, nIndent, nMaxDigitWidth, nSignWidth, nValueFormat, OUTDEV_PRINTER, pCondSet, ScOutputData::pFmtDevice, pMargin, pOutput, pPattern, SC_AUTOCOL_DISPLAY, SC_AUTOCOL_IGNOREALL, SC_AUTOCOL_IGNOREBACK, SC_AUTOCOL_IGNOREFONT, SC_AUTOCOL_PRINT, vcl::Font::SetAlignment(), OutputDevice::SetFont(), vcl::Font::SetKerning(), OutputDevice::SetMapMode(), vcl::Font::SetOrientation(), OutputDevice::SetOverlineColor(), ScOutputData::SetSyntaxColor(), and OutputDevice::SetTextLineColor().

Referenced by ScOutputData::LayoutStrings().

void ScDrawStringsVars::SetPatternSimple ( const ScPatternAttr pNew,
const SfxItemSet pSet 
)
void ScDrawStringsVars::SetShrinkScale ( tools::Long  nScale,
SvtScriptType  nScript 
)
bool ScDrawStringsVars::SetText ( const ScRefCellValue rCell)
void ScDrawStringsVars::SetTextToWidthOrHash ( ScRefCellValue rCell,
tools::Long  nWidth 
)
void ScDrawStringsVars::TextChanged ( )
private

Member Data Documentation

Color ScDrawStringsVars::aBackConfigColor
private

Definition at line 128 of file output2.cxx.

Referenced by ScDrawStringsVars(), and SetPattern().

vcl::Font ScDrawStringsVars::aFont
private

Definition at line 99 of file output2.cxx.

Referenced by SetPattern(), SetShrinkScale(), and SetText().

FontMetric ScDrawStringsVars::aMetric
private

Definition at line 100 of file output2.cxx.

Referenced by SetAutoText(), SetPattern(), SetShrinkScale(), and TextChanged().

OUString ScDrawStringsVars::aString
private
Color ScDrawStringsVars::aTextConfigColor
private

Definition at line 129 of file output2.cxx.

Referenced by ScDrawStringsVars(), and SetPattern().

Size ScDrawStringsVars::aTextSize
private

Definition at line 111 of file output2.cxx.

Referenced by RepeatToFill(), SetAutoText(), SetText(), and TextChanged().

bool ScDrawStringsVars::bCellContrast
private

Definition at line 126 of file output2.cxx.

Referenced by ScDrawStringsVars(), and SetPattern().

bool ScDrawStringsVars::bLineBreak
private

Definition at line 121 of file output2.cxx.

Referenced by SetPattern().

bool ScDrawStringsVars::bPixelToLogic
private
bool ScDrawStringsVars::bRepeat
private

Definition at line 122 of file output2.cxx.

Referenced by SetPattern().

bool ScDrawStringsVars::bRotated
private

Definition at line 108 of file output2.cxx.

Referenced by SetPattern().

bool ScDrawStringsVars::bShrink
private

Definition at line 123 of file output2.cxx.

Referenced by SetPattern(), and SetPatternSimple().

SvxCellHorJustify ScDrawStringsVars::eAttrHorJust
private

Definition at line 103 of file output2.cxx.

Referenced by SetPattern(), and SetPatternSimple().

SvxCellJustifyMethod ScDrawStringsVars::eAttrHorJustMethod
private

Definition at line 105 of file output2.cxx.

Referenced by SetPattern().

SvxCellOrientation ScDrawStringsVars::eAttrOrient
private

Definition at line 102 of file output2.cxx.

Referenced by SetPattern().

SvxCellVerJustify ScDrawStringsVars::eAttrVerJust
private

Definition at line 104 of file output2.cxx.

Referenced by SetPattern().

ScRefCellValue ScDrawStringsVars::maLastCell
private

Definition at line 118 of file output2.cxx.

Referenced by SetAutoText(), SetPattern(), SetPatternSimple(), SetText(), and SetTextToWidthOrHash().

o3tl::lru_map<OUString, SalLayoutGlyphs> ScDrawStringsVars::mCachedGlyphs
mutableprivate

Definition at line 119 of file output2.cxx.

Referenced by GetLayoutGlyphs(), SetPattern(), and SetPatternSimple().

tools::Long ScDrawStringsVars::nAscentPixel
private

Definition at line 101 of file output2.cxx.

Referenced by SetPattern(), and SetShrinkScale().

tools::Long ScDrawStringsVars::nDotWidth
private

Definition at line 115 of file output2.cxx.

Referenced by GetDotWidth(), SetPattern(), and SetPatternSimple().

tools::Long ScDrawStringsVars::nExpWidth
private

Definition at line 116 of file output2.cxx.

Referenced by GetExpWidth(), SetPattern(), and SetPatternSimple().

sal_uInt16 ScDrawStringsVars::nIndent
private

Definition at line 107 of file output2.cxx.

Referenced by SetPattern(), and SetPatternSimple().

tools::Long ScDrawStringsVars::nMaxDigitWidth
private

Definition at line 113 of file output2.cxx.

Referenced by GetMaxDigitWidth(), SetPattern(), and SetPatternSimple().

tools::Long ScDrawStringsVars::nOriginalWidth
private

Definition at line 112 of file output2.cxx.

Referenced by SetAutoText(), SetText(), and TextChanged().

sal_Unicode ScDrawStringsVars::nRepeatChar
private

Definition at line 131 of file output2.cxx.

Referenced by RepeatToFill(), and SetText().

sal_Int32 ScDrawStringsVars::nRepeatPos
private

Definition at line 130 of file output2.cxx.

Referenced by RepeatToFill(), and SetText().

tools::Long ScDrawStringsVars::nSignWidth
private

Definition at line 114 of file output2.cxx.

Referenced by GetSignWidth(), SetPattern(), and SetPatternSimple().

sal_uLong ScDrawStringsVars::nValueFormat
private

Definition at line 120 of file output2.cxx.

Referenced by SetPattern(), SetPatternSimple(), and SetText().

const SfxItemSet* ScDrawStringsVars::pCondSet
private

Definition at line 97 of file output2.cxx.

Referenced by SetPattern(), SetPatternSimple(), and SetShrinkScale().

const SvxMarginItem* ScDrawStringsVars::pMargin
private

Definition at line 106 of file output2.cxx.

Referenced by SetPattern(), and SetPatternSimple().

ScOutputData* ScDrawStringsVars::pOutput
private
const ScPatternAttr* ScDrawStringsVars::pPattern
private

Definition at line 96 of file output2.cxx.

Referenced by SetPattern(), SetPatternSimple(), and SetShrinkScale().


The documentation for this class was generated from the following file: