LibreOffice Module sc (master) 1
|
Public Member Functions | |
DrawEditParam (const ScPatternAttr *pPattern, const SfxItemSet *pCondSet, bool bCellIsValue) | |
bool | readCellContent (const ScDocument *pDoc, bool bShowNullValues, bool bShowFormulas, bool bSyntaxMode, bool bUseStyleColor, bool bForceAutoColor, bool &rWrapFields) |
void | setPatternToEngine (bool bUseStyleColor) |
void | calcMargins (tools::Long &rTop, tools::Long &rLeft, tools::Long &rBottom, tools::Long &rRight, double nPPTX, double nPPTY) const |
void | calcPaperSize (Size &rPaperSize, const tools::Rectangle &rAlignRect, double nPPTX, double nPPTY) const |
void | getEngineSize (ScFieldEditEngine *pEngine, tools::Long &rWidth, tools::Long &rHeight) const |
bool | hasLineBreak () const |
bool | isHyperlinkCell () const |
bool | isVerticallyOriented () const |
When the text is vertically oriented, the text is either rotated 90 degrees to the right or 90 degrees to the left. More... | |
void | calcStartPosForVertical (Point &rLogicStart, tools::Long nCellWidth, tools::Long nEngineWidth, tools::Long nTopM, const OutputDevice *pRefDevice) |
Calculate offset position for vertically oriented (either top-bottom or bottom-top orientation) text. More... | |
void | setAlignmentToEngine () |
bool | adjustHorAlignment (ScFieldEditEngine *pEngine) |
void | adjustForHyperlinkInPDF (Point aURLStart, const OutputDevice *pDev) |
Public Attributes | |
SvxCellHorJustify | meHorJustAttr |
alignment attribute More... | |
SvxCellHorJustify | meHorJustContext |
context depending on attribute, content and direction More... | |
SvxCellHorJustify | meHorJustResult |
result for EditEngine More... | |
SvxCellVerJustify | meVerJust |
SvxCellJustifyMethod | meHorJustMethod |
SvxCellJustifyMethod | meVerJustMethod |
SvxCellOrientation | meOrient |
SCSIZE | mnArrY |
SCCOL | mnX |
SCCOL | mnCellX |
SCROW | mnCellY |
tools::Long | mnPosX |
tools::Long | mnPosY |
tools::Long | mnInitPosX |
bool | mbBreak:1 |
bool | mbCellIsValue:1 |
bool | mbAsianVertical:1 |
bool | mbPixelToLogic:1 |
bool | mbHyphenatorSet:1 |
ScFieldEditEngine * | mpEngine |
ScRefCellValue | maCell |
const ScPatternAttr * | mpPattern |
const SfxItemSet * | mpCondSet |
const SfxItemSet * | mpPreviewFontSet |
const ScPatternAttr * | mpOldPattern |
const SfxItemSet * | mpOldCondSet |
const SfxItemSet * | mpOldPreviewFontSet |
RowInfo * | mpThisRowInfo |
const std::vector< editeng::MisspellRanges > * | mpMisspellRanges |
Definition at line 113 of file output.hxx.
|
explicit |
Definition at line 2376 of file output2.cxx.
void ScOutputData::DrawEditParam::adjustForHyperlinkInPDF | ( | Point | aURLStart, |
const OutputDevice * | pDev | ||
) |
Definition at line 2744 of file output2.cxx.
References Point::AdjustX(), OutputDevice::GetExtOutDevData(), Size::Height(), lcl_DoHyperlinkResult(), and Size::Width().
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
bool ScOutputData::DrawEditParam::adjustHorAlignment | ( | ScFieldEditEngine * | pEngine | ) |
Definition at line 2729 of file output2.cxx.
References EE_PARA_JUST(), ScEditEngineDefaulter::SetDefaultItem(), and EditEngine::SetUpdateLayout().
Referenced by ScOutputData::DrawEditStandard().
void ScOutputData::DrawEditParam::calcMargins | ( | tools::Long & | rTop, |
tools::Long & | rLeft, | ||
tools::Long & | rBottom, | ||
tools::Long & | rRight, | ||
double | nPPTX, | ||
double | nPPTY | ||
) | const |
Definition at line 2509 of file output2.cxx.
References ATTR_INDENT(), ATTR_MARGIN(), SvxMarginItem::GetBottomMargin(), SvxMarginItem::GetLeftMargin(), SvxMarginItem::GetRightMargin(), SvxMarginItem::GetTopMargin(), mpPattern, nPPTX, and nPPTY.
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
void ScOutputData::DrawEditParam::calcPaperSize | ( | Size & | rPaperSize, |
const tools::Rectangle & | rAlignRect, | ||
double | nPPTX, | ||
double | nPPTY | ||
) | const |
Definition at line 2528 of file output2.cxx.
References Size::AdjustHeight(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), nPPTX, nPPTY, Size::setHeight(), and Size::setWidth().
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
void ScOutputData::DrawEditParam::calcStartPosForVertical | ( | Point & | rLogicStart, |
tools::Long | nCellWidth, | ||
tools::Long | nEngineWidth, | ||
tools::Long | nTopM, | ||
const OutputDevice * | pRefDevice | ||
) |
Calculate offset position for vertically oriented (either top-bottom or bottom-top orientation) text.
rLogicStart | initial position in pixels. When the call is finished, this parameter will store the new position. |
Definition at line 2591 of file output2.cxx.
References Point::AdjustX(), Point::AdjustY(), Height, nCellWidth, and OutputDevice::PixelToLogic().
Referenced by ScOutputData::DrawEditBottomTop(), and ScOutputData::DrawEditTopBottom().
void ScOutputData::DrawEditParam::getEngineSize | ( | ScFieldEditEngine * | pEngine, |
tools::Long & | rWidth, | ||
tools::Long & | rHeight | ||
) | const |
Definition at line 2555 of file output2.cxx.
References EditEngine::CalcTextWidth(), and EditEngine::GetTextHeight().
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
bool ScOutputData::DrawEditParam::hasLineBreak | ( | ) | const |
Definition at line 2573 of file output2.cxx.
Referenced by ScOutputData::DrawEditTopBottom().
bool ScOutputData::DrawEditParam::isHyperlinkCell | ( | ) | const |
Definition at line 2578 of file output2.cxx.
References CELLTYPE_FORMULA.
bool ScOutputData::DrawEditParam::isVerticallyOriented | ( | ) | const |
When the text is vertically oriented, the text is either rotated 90 degrees to the right or 90 degrees to the left.
Note that this is different from being vertically stacked.
Definition at line 2586 of file output2.cxx.
bool ScOutputData::DrawEditParam::readCellContent | ( | const ScDocument * | pDoc, |
bool | bShowNullValues, | ||
bool | bShowFormulas, | ||
bool | bSyntaxMode, | ||
bool | bUseStyleColor, | ||
bool | bForceAutoColor, | ||
bool & | rWrapFields | ||
) |
Definition at line 2403 of file output2.cxx.
References CELLTYPE_EDIT, ScDocument::GetFormatTable(), ScCellFormat::GetString(), lcl_SetEditColor(), mpPattern, and pData.
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
void ScOutputData::DrawEditParam::setAlignmentToEngine | ( | ) |
Definition at line 2621 of file output2.cxx.
References CELLTYPE_EDIT, EE_PARA_JUST(), EE_PARA_JUST_METHOD(), EE_PARA_VER_JUST(), pData, and SAL_WARN.
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
void ScOutputData::DrawEditParam::setPatternToEngine | ( | bool | bUseStyleColor | ) |
Definition at line 2450 of file output2.cxx.
References ATTR_BACKGROUND(), ATTR_CJK_FONT(), ATTR_CTL_FONT(), ATTR_FONT(), svtools::DOCCOLOR, EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_PARA_HYPHENATE(), StyleSettings::GetHighContrastMode(), LinguMgr::GetHyphenator(), Application::GetSettings(), AllSettings::GetStyleSettings(), Color::IsTransparent(), mpPattern, and SC_MOD.
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
ScRefCellValue ScOutputData::DrawEditParam::maCell |
Definition at line 136 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
bool ScOutputData::DrawEditParam::mbAsianVertical |
Definition at line 132 of file output.hxx.
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditStacked(), and ScOutputData::DrawEditStandard().
bool ScOutputData::DrawEditParam::mbBreak |
Definition at line 130 of file output.hxx.
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), ScOutputData::DrawEditTopBottom(), and ScOutputData::ShowClipMarks().
bool ScOutputData::DrawEditParam::mbCellIsValue |
Definition at line 131 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
bool ScOutputData::DrawEditParam::mbHyphenatorSet |
Definition at line 134 of file output.hxx.
Referenced by ScOutputData::DrawEdit().
bool ScOutputData::DrawEditParam::mbPixelToLogic |
Definition at line 133 of file output.hxx.
Referenced by ScOutputData::Clip(), ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), ScOutputData::DrawEditTopBottom(), and ScOutputData::SetEngineTextAndGetWidth().
SvxCellHorJustify ScOutputData::DrawEditParam::meHorJustAttr |
alignment attribute
Definition at line 116 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
SvxCellHorJustify ScOutputData::DrawEditParam::meHorJustContext |
context depending on attribute, content and direction
Definition at line 117 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
SvxCellJustifyMethod ScOutputData::DrawEditParam::meHorJustMethod |
Definition at line 120 of file output.hxx.
SvxCellHorJustify ScOutputData::DrawEditParam::meHorJustResult |
result for EditEngine
Definition at line 118 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
SvxCellOrientation ScOutputData::DrawEditParam::meOrient |
Definition at line 122 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
SvxCellVerJustify ScOutputData::DrawEditParam::meVerJust |
Definition at line 119 of file output.hxx.
Referenced by ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
SvxCellJustifyMethod ScOutputData::DrawEditParam::meVerJustMethod |
Definition at line 121 of file output.hxx.
SCSIZE ScOutputData::DrawEditParam::mnArrY |
Definition at line 123 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), ScOutputData::DrawEditTopBottom(), and ScOutputData::ShowClipMarks().
SCCOL ScOutputData::DrawEditParam::mnCellX |
Definition at line 125 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
SCROW ScOutputData::DrawEditParam::mnCellY |
Definition at line 126 of file output.hxx.
Referenced by ScOutputData::Clip(), ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
tools::Long ScOutputData::DrawEditParam::mnInitPosX |
Definition at line 129 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
tools::Long ScOutputData::DrawEditParam::mnPosX |
Definition at line 127 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
tools::Long ScOutputData::DrawEditParam::mnPosY |
Definition at line 128 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
SCCOL ScOutputData::DrawEditParam::mnX |
Definition at line 124 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), ScOutputData::DrawEditTopBottom(), and ScOutputData::ShowClipMarks().
const SfxItemSet* ScOutputData::DrawEditParam::mpCondSet |
Definition at line 138 of file output.hxx.
Referenced by ScOutputData::Clip(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
ScFieldEditEngine* ScOutputData::DrawEditParam::mpEngine |
Definition at line 135 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), ScOutputData::DrawEditTopBottom(), ScOutputData::SetEngineTextAndGetWidth(), and ScOutputData::ShowClipMarks().
const std::vector<editeng::MisspellRanges>* ScOutputData::DrawEditParam::mpMisspellRanges |
Definition at line 144 of file output.hxx.
Referenced by ScOutputData::DrawEdit().
const SfxItemSet* ScOutputData::DrawEditParam::mpOldCondSet |
Definition at line 141 of file output.hxx.
Referenced by ScOutputData::DrawEdit().
const ScPatternAttr* ScOutputData::DrawEditParam::mpOldPattern |
Definition at line 140 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), and ScOutputData::DrawEditStandard().
const SfxItemSet* ScOutputData::DrawEditParam::mpOldPreviewFontSet |
Definition at line 142 of file output.hxx.
Referenced by ScOutputData::DrawEdit().
const ScPatternAttr* ScOutputData::DrawEditParam::mpPattern |
Definition at line 137 of file output.hxx.
Referenced by ScOutputData::Clip(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditBottomTop(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::DrawEditTopBottom().
const SfxItemSet* ScOutputData::DrawEditParam::mpPreviewFontSet |
Definition at line 139 of file output.hxx.
Referenced by ScOutputData::DrawEdit().
RowInfo* ScOutputData::DrawEditParam::mpThisRowInfo |
Definition at line 143 of file output.hxx.
Referenced by ScOutputData::DrawEdit(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), and ScOutputData::ShowClipMarks().