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 ()
 
bool 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
 
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 99 of file output2.cxx.

Constructor & Destructor Documentation

◆ ScDrawStringsVars()

ScDrawStringsVars::ScDrawStringsVars ( ScOutputData pData,
bool  bPTL 
)

Member Function Documentation

◆ GetAscent()

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

Definition at line 179 of file output2.cxx.

References nAscentPixel.

Referenced by ScOutputData::LayoutStrings().

◆ GetDotWidth()

tools::Long ScDrawStringsVars::GetDotWidth ( )
private

◆ GetExpWidth()

tools::Long ScDrawStringsVars::GetExpWidth ( )
private

Definition at line 772 of file output2.cxx.

References nExpWidth, ScOutputData::pFmtDevice, and pOutput.

Referenced by SetTextToWidthOrHash().

◆ GetFmtTextWidth()

tools::Long ScDrawStringsVars::GetFmtTextWidth ( const OUString &  rString)

◆ GetHorJust()

SvxCellHorJustify ScDrawStringsVars::GetHorJust ( ) const
inline

Definition at line 157 of file output2.cxx.

References eAttrHorJust.

Referenced by ScOutputData::LayoutStrings().

◆ GetHorJustMethod()

SvxCellJustifyMethod ScDrawStringsVars::GetHorJustMethod ( ) const
inline

Definition at line 159 of file output2.cxx.

References eAttrHorJustMethod.

Referenced by ScOutputData::LayoutStrings().

◆ GetLayoutGlyphs()

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

◆ GetLeftTotal()

sal_uInt16 ScDrawStringsVars::GetLeftTotal ( ) const
inline

Definition at line 162 of file output2.cxx.

References SvxMarginItem::GetLeftMargin(), nIndent, and pMargin.

Referenced by ScOutputData::LayoutStrings().

◆ GetLineBreak()

bool ScDrawStringsVars::GetLineBreak ( ) const
inline

Definition at line 174 of file output2.cxx.

References bLineBreak.

Referenced by ScOutputData::LayoutStrings().

◆ GetMargin()

const SvxMarginItem * ScDrawStringsVars::GetMargin ( ) const
inline

Definition at line 160 of file output2.cxx.

References pMargin.

Referenced by ScOutputData::LayoutStrings().

◆ GetMaxDigitWidth()

tools::Long ScDrawStringsVars::GetMaxDigitWidth ( )
private

Definition at line 738 of file output2.cxx.

References i, n, nMaxDigitWidth, ScOutputData::pFmtDevice, and pOutput.

Referenced by SetTextToWidthOrHash().

◆ GetOrient()

SvxCellOrientation ScDrawStringsVars::GetOrient ( ) const
inline

Definition at line 156 of file output2.cxx.

References eAttrOrient.

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

◆ GetOriginalWidth()

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

Definition at line 167 of file output2.cxx.

References nOriginalWidth.

Referenced by ScOutputData::LayoutStrings().

◆ GetResultValueFormat()

sal_uLong ScDrawStringsVars::GetResultValueFormat ( ) const
inline

Definition at line 172 of file output2.cxx.

References nValueFormat.

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

◆ GetRightTotal()

sal_uInt16 ScDrawStringsVars::GetRightTotal ( ) const
inline

Definition at line 163 of file output2.cxx.

References SvxMarginItem::GetRightMargin(), nIndent, and pMargin.

Referenced by ScOutputData::LayoutStrings().

◆ GetSignWidth()

tools::Long ScDrawStringsVars::GetSignWidth ( )
private

Definition at line 753 of file output2.cxx.

References nSignWidth, ScOutputData::pFmtDevice, and pOutput.

Referenced by SetTextToWidthOrHash().

◆ GetString()

const OUString & ScDrawStringsVars::GetString ( ) const
inline

Definition at line 165 of file output2.cxx.

References aString.

Referenced by ScOutputData::LayoutStrings().

◆ GetTextSize()

const Size & ScDrawStringsVars::GetTextSize ( ) const
inline

Definition at line 166 of file output2.cxx.

References aTextSize.

Referenced by ScOutputData::LayoutStrings().

◆ GetVerJust()

SvxCellVerJustify ScDrawStringsVars::GetVerJust ( ) const
inline

Definition at line 158 of file output2.cxx.

References eAttrVerJust.

Referenced by ScOutputData::LayoutStrings().

◆ HasCondHeight()

bool ScDrawStringsVars::HasCondHeight ( ) const
inline

Definition at line 184 of file output2.cxx.

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

Referenced by ScOutputData::LayoutStrings().

◆ HasEditCharacters()

bool ScDrawStringsVars::HasEditCharacters ( ) const

Definition at line 812 of file output2.cxx.

References aString, CHAR_LRM, CHAR_NBHY, CHAR_NBSP, CHAR_RLM, CHAR_SHY, CHAR_WJ, CHAR_ZWSP, and nRepeatPos.

Referenced by ScOutputData::LayoutStrings().

◆ IsRepeat()

bool ScDrawStringsVars::IsRepeat ( ) const
inline

Definition at line 175 of file output2.cxx.

References bRepeat.

Referenced by ScOutputData::LayoutStrings().

◆ IsRotated()

bool ScDrawStringsVars::IsRotated ( ) const
inline

Definition at line 180 of file output2.cxx.

References bRotated.

Referenced by ScOutputData::LayoutStrings().

◆ IsShrink()

bool ScDrawStringsVars::IsShrink ( ) const
inline

Definition at line 176 of file output2.cxx.

References bShrink.

Referenced by ScOutputData::LayoutStrings().

◆ RepeatToFill()

void ScDrawStringsVars::RepeatToFill ( tools::Long  nColWidth)

◆ SetAutoText()

void ScDrawStringsVars::SetAutoText ( const OUString &  rAutoText)

◆ SetHashText()

void ScDrawStringsVars::SetHashText ( )

Definition at line 568 of file output2.cxx.

References SetAutoText().

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

◆ SetPattern()

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 304 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, ScRefCellValue::clear(), Display, eAttrHorJust, eAttrHorJustMethod, eAttrOrient, eAttrVerJust, ScPatternAttr::fillFont(), FontMetric::GetAscent(), ScPatternAttr::GetCellOrientation(), Application::GetDefaultDevice(), OutputDevice::GetFontMetric(), ScDocument::GetFormatTable(), FontMetric::GetInternalLeading(), ScPatternAttr::GetItem(), OutputDevice::GetMapMode(), ScPatternAttr::GetNumberFormat(), OutputDevice::GetOutDevType(), IgnoreAll, IgnoreBack, IgnoreFont, OutputDevice::LogicToPixel(), maLastCell, ScOutputData::mbForceAutoColor, ScOutputData::mbSyntaxMode, ScOutputData::mbUseStyleColor, ScOutputData::mpDev, ScOutputData::mpDoc, ScOutputData::mpRefDevice, nAscentPixel, nDotWidth, nExpWidth, nIndent, nMaxDigitWidth, nSignWidth, nValueFormat, OUTDEV_PRINTER, pCondSet, ScOutputData::pFmtDevice, pMargin, pOutput, pPattern, 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().

◆ SetPatternSimple()

void ScDrawStringsVars::SetPatternSimple ( const ScPatternAttr pNew,
const SfxItemSet pSet 
)

◆ SetShrinkScale()

void ScDrawStringsVars::SetShrinkScale ( tools::Long  nScale,
SvtScriptType  nScript 
)

◆ SetText()

bool ScDrawStringsVars::SetText ( const ScRefCellValue rCell)

◆ SetTextToWidthOrHash()

bool ScDrawStringsVars::SetTextToWidthOrHash ( ScRefCellValue rCell,
tools::Long  nWidth 
)

◆ TextChanged()

void ScDrawStringsVars::TextChanged ( )
private

Member Data Documentation

◆ aBackConfigColor

Color ScDrawStringsVars::aBackConfigColor
private

Definition at line 134 of file output2.cxx.

Referenced by ScDrawStringsVars(), and SetPattern().

◆ aFont

vcl::Font ScDrawStringsVars::aFont
private

Definition at line 106 of file output2.cxx.

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

◆ aMetric

FontMetric ScDrawStringsVars::aMetric
private

Definition at line 107 of file output2.cxx.

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

◆ aString

OUString ScDrawStringsVars::aString
private

◆ aTextConfigColor

Color ScDrawStringsVars::aTextConfigColor
private

Definition at line 135 of file output2.cxx.

Referenced by ScDrawStringsVars(), and SetPattern().

◆ aTextSize

Size ScDrawStringsVars::aTextSize
private

Definition at line 118 of file output2.cxx.

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

◆ bCellContrast

bool ScDrawStringsVars::bCellContrast
private

Definition at line 132 of file output2.cxx.

Referenced by ScDrawStringsVars(), and SetPattern().

◆ bLineBreak

bool ScDrawStringsVars::bLineBreak
private

Definition at line 127 of file output2.cxx.

Referenced by GetLineBreak(), and SetPattern().

◆ bPixelToLogic

bool ScDrawStringsVars::bPixelToLogic
private

◆ bRepeat

bool ScDrawStringsVars::bRepeat
private

Definition at line 128 of file output2.cxx.

Referenced by IsRepeat(), and SetPattern().

◆ bRotated

bool ScDrawStringsVars::bRotated
private

Definition at line 115 of file output2.cxx.

Referenced by IsRotated(), and SetPattern().

◆ bShrink

bool ScDrawStringsVars::bShrink
private

Definition at line 129 of file output2.cxx.

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

◆ eAttrHorJust

SvxCellHorJustify ScDrawStringsVars::eAttrHorJust
private

Definition at line 110 of file output2.cxx.

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

◆ eAttrHorJustMethod

SvxCellJustifyMethod ScDrawStringsVars::eAttrHorJustMethod
private

Definition at line 112 of file output2.cxx.

Referenced by GetHorJustMethod(), and SetPattern().

◆ eAttrOrient

SvxCellOrientation ScDrawStringsVars::eAttrOrient
private

Definition at line 109 of file output2.cxx.

Referenced by GetOrient(), and SetPattern().

◆ eAttrVerJust

SvxCellVerJustify ScDrawStringsVars::eAttrVerJust
private

Definition at line 111 of file output2.cxx.

Referenced by GetVerJust(), and SetPattern().

◆ maLastCell

ScRefCellValue ScDrawStringsVars::maLastCell
private

Definition at line 125 of file output2.cxx.

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

◆ nAscentPixel

tools::Long ScDrawStringsVars::nAscentPixel
private

Definition at line 108 of file output2.cxx.

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

◆ nDotWidth

tools::Long ScDrawStringsVars::nDotWidth
private

Definition at line 122 of file output2.cxx.

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

◆ nExpWidth

tools::Long ScDrawStringsVars::nExpWidth
private

Definition at line 123 of file output2.cxx.

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

◆ nIndent

sal_uInt16 ScDrawStringsVars::nIndent
private

Definition at line 114 of file output2.cxx.

Referenced by GetLeftTotal(), GetRightTotal(), SetPattern(), and SetPatternSimple().

◆ nMaxDigitWidth

tools::Long ScDrawStringsVars::nMaxDigitWidth
private

Definition at line 120 of file output2.cxx.

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

◆ nOriginalWidth

tools::Long ScDrawStringsVars::nOriginalWidth
private

Definition at line 119 of file output2.cxx.

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

◆ nRepeatChar

sal_Unicode ScDrawStringsVars::nRepeatChar
private

Definition at line 137 of file output2.cxx.

Referenced by RepeatToFill(), and SetText().

◆ nRepeatPos

sal_Int32 ScDrawStringsVars::nRepeatPos
private

Definition at line 136 of file output2.cxx.

Referenced by HasEditCharacters(), RepeatToFill(), and SetText().

◆ nSignWidth

tools::Long ScDrawStringsVars::nSignWidth
private

Definition at line 121 of file output2.cxx.

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

◆ nValueFormat

sal_uLong ScDrawStringsVars::nValueFormat
private

Definition at line 126 of file output2.cxx.

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

◆ pCondSet

const SfxItemSet* ScDrawStringsVars::pCondSet
private

Definition at line 104 of file output2.cxx.

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

◆ pMargin

const SvxMarginItem* ScDrawStringsVars::pMargin
private

Definition at line 113 of file output2.cxx.

Referenced by GetLeftTotal(), GetMargin(), GetRightTotal(), SetPattern(), and SetPatternSimple().

◆ pOutput

ScOutputData* ScDrawStringsVars::pOutput
private

◆ pPattern

const ScPatternAttr* ScDrawStringsVars::pPattern
private

Definition at line 103 of file output2.cxx.

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


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