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, 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
 
long GetOriginalWidth () const
 
sal_uLong GetResultValueFormat () const
 
bool GetLineBreak () const
 
bool IsRepeat () const
 
bool IsShrink () const
 
void RepeatToFill (long nColWidth)
 
long GetAscent () const
 
bool IsRotated () const
 
void SetShrinkScale (long nScale, SvtScriptType nScript)
 
bool HasCondHeight () const
 
bool HasEditCharacters () const
 

Private Member Functions

long GetMaxDigitWidth ()
 
long GetSignWidth ()
 
long GetDotWidth ()
 
long GetExpWidth ()
 
void TextChanged ()
 

Private Attributes

ScOutputDatapOutput
 
const ScPatternAttrpPattern
 
const SfxItemSetpCondSet
 
vcl::Font aFont
 
FontMetric aMetric
 
long nAscentPixel
 
SvxCellOrientation eAttrOrient
 
SvxCellHorJustify eAttrHorJust
 
SvxCellVerJustify eAttrVerJust
 
SvxCellJustifyMethod eAttrHorJustMethod
 
const SvxMarginItempMargin
 
sal_uInt16 nIndent
 
bool bRotated
 
OUString aString
 
Size aTextSize
 
long nOriginalWidth
 
long nMaxDigitWidth
 
long nSignWidth
 
long nDotWidth
 
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 89 of file output2.cxx.

Constructor & Destructor Documentation

ScDrawStringsVars::ScDrawStringsVars ( ScOutputData pData,
bool  bPTL 
)

Member Function Documentation

long ScDrawStringsVars::GetAscent ( ) const
inline

Definition at line 168 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

long ScDrawStringsVars::GetDotWidth ( )
private
long ScDrawStringsVars::GetExpWidth ( )
private

Definition at line 753 of file output2.cxx.

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

Referenced by SetTextToWidthOrHash().

SvxCellHorJustify ScDrawStringsVars::GetHorJust ( ) const
inline

Definition at line 147 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

SvxCellJustifyMethod ScDrawStringsVars::GetHorJustMethod ( ) const
inline

Definition at line 149 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

sal_uInt16 ScDrawStringsVars::GetLeftTotal ( ) const
inline

Definition at line 152 of file output2.cxx.

References SvxMarginItem::GetLeftMargin().

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::GetLineBreak ( ) const
inline

Definition at line 163 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

const SvxMarginItem* ScDrawStringsVars::GetMargin ( ) const
inline

Definition at line 150 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

long ScDrawStringsVars::GetMaxDigitWidth ( )
private

Definition at line 720 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 146 of file output2.cxx.

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

long ScDrawStringsVars::GetOriginalWidth ( ) const
inline

Definition at line 157 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

sal_uLong ScDrawStringsVars::GetResultValueFormat ( ) const
inline

Definition at line 161 of file output2.cxx.

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

sal_uInt16 ScDrawStringsVars::GetRightTotal ( ) const
inline

Definition at line 153 of file output2.cxx.

References SvxMarginItem::GetRightMargin().

Referenced by ScOutputData::LayoutStrings().

long ScDrawStringsVars::GetSignWidth ( )
private

Definition at line 734 of file output2.cxx.

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

Referenced by SetTextToWidthOrHash().

const OUString& ScDrawStringsVars::GetString ( ) const
inline

Definition at line 155 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

const Size& ScDrawStringsVars::GetTextSize ( ) const
inline

Definition at line 156 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

SvxCellVerJustify ScDrawStringsVars::GetVerJust ( ) const
inline

Definition at line 148 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::HasCondHeight ( ) const
inline

Definition at line 173 of file output2.cxx.

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

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::HasEditCharacters ( ) const

Definition at line 788 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 164 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::IsRotated ( ) const
inline

Definition at line 169 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

bool ScDrawStringsVars::IsShrink ( ) const
inline

Definition at line 165 of file output2.cxx.

Referenced by ScOutputData::LayoutStrings().

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

Definition at line 551 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 286 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(), 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, 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 ( long  nScale,
SvtScriptType  nScript 
)
bool ScDrawStringsVars::SetText ( const ScRefCellValue rCell)
void ScDrawStringsVars::SetTextToWidthOrHash ( ScRefCellValue rCell,
long  nWidth 
)
void ScDrawStringsVars::TextChanged ( )
private

Member Data Documentation

Color ScDrawStringsVars::aBackConfigColor
private

Definition at line 124 of file output2.cxx.

Referenced by ScDrawStringsVars(), and SetPattern().

vcl::Font ScDrawStringsVars::aFont
private

Definition at line 96 of file output2.cxx.

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

FontMetric ScDrawStringsVars::aMetric
private

Definition at line 97 of file output2.cxx.

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

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

Definition at line 125 of file output2.cxx.

Referenced by ScDrawStringsVars(), and SetPattern().

Size ScDrawStringsVars::aTextSize
private

Definition at line 108 of file output2.cxx.

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

bool ScDrawStringsVars::bCellContrast
private

Definition at line 122 of file output2.cxx.

Referenced by ScDrawStringsVars(), and SetPattern().

bool ScDrawStringsVars::bLineBreak
private

Definition at line 117 of file output2.cxx.

Referenced by SetPattern().

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

Definition at line 118 of file output2.cxx.

Referenced by SetPattern().

bool ScDrawStringsVars::bRotated
private

Definition at line 105 of file output2.cxx.

Referenced by SetPattern().

bool ScDrawStringsVars::bShrink
private

Definition at line 119 of file output2.cxx.

Referenced by SetPattern(), and SetPatternSimple().

SvxCellHorJustify ScDrawStringsVars::eAttrHorJust
private

Definition at line 100 of file output2.cxx.

Referenced by SetPattern(), and SetPatternSimple().

SvxCellJustifyMethod ScDrawStringsVars::eAttrHorJustMethod
private

Definition at line 102 of file output2.cxx.

Referenced by SetPattern().

SvxCellOrientation ScDrawStringsVars::eAttrOrient
private

Definition at line 99 of file output2.cxx.

Referenced by SetPattern().

SvxCellVerJustify ScDrawStringsVars::eAttrVerJust
private

Definition at line 101 of file output2.cxx.

Referenced by SetPattern().

ScRefCellValue ScDrawStringsVars::maLastCell
private

Definition at line 115 of file output2.cxx.

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

long ScDrawStringsVars::nAscentPixel
private

Definition at line 98 of file output2.cxx.

Referenced by SetPattern(), and SetShrinkScale().

long ScDrawStringsVars::nDotWidth
private

Definition at line 112 of file output2.cxx.

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

long ScDrawStringsVars::nExpWidth
private

Definition at line 113 of file output2.cxx.

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

sal_uInt16 ScDrawStringsVars::nIndent
private

Definition at line 104 of file output2.cxx.

Referenced by SetPattern(), and SetPatternSimple().

long ScDrawStringsVars::nMaxDigitWidth
private

Definition at line 110 of file output2.cxx.

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

long ScDrawStringsVars::nOriginalWidth
private

Definition at line 109 of file output2.cxx.

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

sal_Unicode ScDrawStringsVars::nRepeatChar
private

Definition at line 127 of file output2.cxx.

Referenced by RepeatToFill(), and SetText().

sal_Int32 ScDrawStringsVars::nRepeatPos
private

Definition at line 126 of file output2.cxx.

Referenced by RepeatToFill(), and SetText().

long ScDrawStringsVars::nSignWidth
private

Definition at line 111 of file output2.cxx.

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

sal_uLong ScDrawStringsVars::nValueFormat
private

Definition at line 116 of file output2.cxx.

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

const SfxItemSet* ScDrawStringsVars::pCondSet
private

Definition at line 94 of file output2.cxx.

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

const SvxMarginItem* ScDrawStringsVars::pMargin
private

Definition at line 103 of file output2.cxx.

Referenced by SetPattern(), and SetPatternSimple().

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

Definition at line 93 of file output2.cxx.

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


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