LibreOffice Module sc (master) 1
|
#include <patattr.hxx>
Public Member Functions | |
ScPatternAttr (SfxItemSet &&pItemSet, const OUString &rStyleName) | |
ScPatternAttr (SfxItemSet &&pItemSet) | |
ScPatternAttr (SfxItemPool *pItemPool) | |
ScPatternAttr (const ScPatternAttr &rPatternAttr) | |
virtual ScPatternAttr * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual bool | operator== (const SfxPoolItem &rCmp) const override |
virtual bool | HasLookup () const override |
virtual lookup_iterator | Lookup (lookup_iterator begin, lookup_iterator end) const override |
const SfxPoolItem & | GetItem (sal_uInt16 nWhichP) const |
template<class T > | |
const T & | GetItem (TypedWhichId< T > nWhich) const |
const SfxPoolItem & | GetItem (sal_uInt16 nWhich, const SfxItemSet *pCondSet) const |
template<class T > | |
const T & | GetItem (TypedWhichId< T > nWhich, const SfxItemSet *pCondSet) const |
bool | HasItemsSet (const sal_uInt16 *pWhich) const |
void | ClearItems (const sal_uInt16 *pWhich) |
void | DeleteUnchanged (const ScPatternAttr *pOldAttrs) |
SvxCellOrientation | GetCellOrientation (const SfxItemSet *pCondSet=nullptr) const |
void | fillColor (model::ComplexColor &rComplexColor, ScAutoFontColorMode eAutoMode, const SfxItemSet *pCondSet=nullptr, const Color *pBackConfigColor=nullptr, const Color *pTextConfigColor=nullptr) const |
void | fillFontOnly (vcl::Font &rFont, const OutputDevice *pOutDev=nullptr, const Fraction *pScale=nullptr, const SfxItemSet *pCondSet=nullptr, SvtScriptType nScript=SvtScriptType::NONE) const |
void | fillFont (vcl::Font &rFont, ScAutoFontColorMode eAutoMode, const OutputDevice *pOutDev=nullptr, const Fraction *pScale=nullptr, const SfxItemSet *pCondSet=nullptr, SvtScriptType nScript=SvtScriptType::NONE, const Color *pBackConfigColor=nullptr, const Color *pTextConfigColor=nullptr) const |
Fills a font object from the own item set. More... | |
void | FillEditItemSet (SfxItemSet *pEditSet, const SfxItemSet *pCondSet=nullptr) const |
Converts all Calc items contained in the own item set to edit engine items and puts them into pEditSet. More... | |
void | GetFromEditItemSet (const SfxItemSet *pEditSet) |
Converts all edit engine items contained in pEditSet to Calc items and puts them into the own item set. More... | |
void | FillEditParaItems (SfxItemSet *pSet) const |
ScPatternAttr * | PutInPool (ScDocument *pDestDoc, ScDocument *pSrcDoc) const |
void | SetStyleSheet (ScStyleSheet *pNewStyle, bool bClearDirectFormat=true) |
const ScStyleSheet * | GetStyleSheet () const |
const OUString * | GetStyleName () const |
void | UpdateStyleSheet (const ScDocument &rDoc) |
void | StyleToName () |
bool | IsVisible () const |
bool | IsVisibleEqual (const ScPatternAttr &rOther) const |
bool | IsSymbolFont () const |
If font is an old symbol font StarBats/StarMath with text encoding RTL_TEXTENC_SYMBOL. More... | |
sal_uInt32 | GetNumberFormat (SvNumberFormatter *) const |
sal_uInt32 | GetNumberFormat (SvNumberFormatter *pFormatter, const SfxItemSet *pCondSet) const |
Degree100 | GetRotateVal (const SfxItemSet *pCondSet) const |
ScRotateDir | GetRotateDir (const SfxItemSet *pCondSet) const |
void | SetKey (sal_uInt64 nKey) |
sal_uInt64 | GetKey () const |
SfxItemSet & | GetItemSet () |
const SfxItemSet & | GetItemSet () const |
SfxItemSet & | GetItemSet () |
Public Member Functions inherited from SfxSetItem | |
SfxSetItem (sal_uInt16 nWhich, SfxItemSet &&pSet) | |
SfxSetItem (sal_uInt16 nWhich, const SfxItemSet &rSet) | |
SfxSetItem (const SfxSetItem &, SfxItemPool *pPool=nullptr) | |
virtual bool | operator== (const SfxPoolItem &) const override |
virtual bool | GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override |
virtual SfxSetItem * | Clone (SfxItemPool *pPool=nullptr) const override=0 |
const SfxItemSet & | GetItemSet () const |
SfxItemSet & | GetItemSet () |
Public Member Functions inherited from SfxPoolItem | |
void | AddRef (sal_uInt32 n=1) const |
virtual | ~SfxPoolItem () |
void | SetWhich (sal_uInt16 nId) |
sal_uInt16 | Which () const |
T & | StaticWhichCast (TypedWhichId< T > nId) |
const T & | StaticWhichCast (TypedWhichId< T > nId) const |
T * | DynamicWhichCast (TypedWhichId< T > nId) |
const T * | DynamicWhichCast (TypedWhichId< T > nId) const |
virtual bool | operator== (const SfxPoolItem &) const=0 |
bool | operator!= (const SfxPoolItem &rItem) const |
virtual bool | operator< (const SfxPoolItem &) const |
virtual bool | IsSortable () const |
virtual bool | HasLookup () const |
virtual lookup_iterator | Lookup (lookup_iterator, lookup_iterator end) const |
virtual bool | GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const |
virtual void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
virtual bool | HasMetrics () const |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) |
virtual SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (sal_uInt16 nNewWhich) const |
std::unique_ptr< T > | CloneSetWhich (TypedWhichId< T > nId) const |
sal_uInt32 | GetRefCount () const |
SfxItemKind | GetKind () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual boost::property_tree::ptree | dumpAsJSON () const |
virtual bool | IsVoidItem () const |
Static Public Member Functions | |
static const SfxPoolItem & | GetItem (sal_uInt16 nWhich, const SfxItemSet &rItemSet, const SfxItemSet *pCondSet) |
template<class T > | |
static const T & | GetItem (TypedWhichId< T > nWhich, const SfxItemSet &rItemSet, const SfxItemSet *pCondSet) |
static SvxCellOrientation | GetCellOrientation (const SfxItemSet &rItemSet, const SfxItemSet *pCondSet) |
static void | fillFontOnly (vcl::Font &rFont, const SfxItemSet &rItemSet, const OutputDevice *pOutDev=nullptr, const Fraction *pScale=nullptr, const SfxItemSet *pCondSet=nullptr, SvtScriptType nScript=SvtScriptType::NONE) |
Static helper function to fill a font object from the passed item set. More... | |
static void | fillFont (vcl::Font &rFont, const SfxItemSet &rItemSet, ScAutoFontColorMode eAutoMode, const OutputDevice *pOutDev=nullptr, const Fraction *pScale=nullptr, const SfxItemSet *pCondSet=nullptr, SvtScriptType nScript=SvtScriptType::NONE, const Color *pBackConfigColor=nullptr, const Color *pTextConfigColor=nullptr) |
static void | fillColor (model::ComplexColor &rComplexColor, const SfxItemSet &rItemSet, ScAutoFontColorMode eAutoMode, const SfxItemSet *pCondSet=nullptr, const Color *pBackConfigColor=nullptr, const Color *pTextConfigColor=nullptr) |
static ScDxfFont | GetDxfFont (const SfxItemSet &rSet, SvtScriptType nScript) |
static void | FillToEditItemSet (SfxItemSet &rEditSet, const SfxItemSet &rSrcSet, const SfxItemSet *pCondSet=nullptr) |
Converts all Calc items contained in rSrcSet to edit engine items and puts them into rEditSet. More... | |
static void | GetFromEditItemSet (SfxItemSet &rDestSet, const SfxItemSet &rEditSet) |
Converts all edit engine items contained in rEditSet to Calc items and puts them into rDestSet. More... | |
static std::optional< bool > | FastEqualPatternSets (const SfxItemSet &rSet1, const SfxItemSet &rSet2) |
Private Member Functions | |
void | CalcHashCode () const |
bool | CalcVisible () const |
Private Attributes | |
std::optional< OUString > | pName |
std::optional< sal_uInt32 > | mxHashCode |
std::optional< bool > | mxVisible |
ScStyleSheet * | pStyle |
sal_uInt64 | mnKey |
Additional Inherited Members | |
Public Types inherited from SfxPoolItem | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
Protected Member Functions inherited from SfxPoolItem | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
Definition at line 53 of file patattr.hxx.
ScPatternAttr::ScPatternAttr | ( | SfxItemSet && | pItemSet, |
const OUString & | rStyleName | ||
) |
ScPatternAttr::ScPatternAttr | ( | SfxItemSet && | pItemSet | ) |
Definition at line 79 of file patattr.cxx.
ScPatternAttr::ScPatternAttr | ( | SfxItemPool * | pItemPool | ) |
Definition at line 86 of file patattr.cxx.
ScPatternAttr::ScPatternAttr | ( | const ScPatternAttr & | rPatternAttr | ) |
Definition at line 93 of file patattr.cxx.
References pName.
|
private |
Definition at line 1507 of file patattr.cxx.
References compareSize, end, SfxItemSet::GetItems_Impl(), GetItemSet(), mxHashCode, and rSet.
Referenced by Lookup(), and operator==().
|
private |
Definition at line 1208 of file patattr.cxx.
References ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), ATTR_SHADOW(), COL_TRANSPARENT(), SfxItemSet::GetItemIfSet(), GetItemSet(), and rSet.
Referenced by IsVisible().
void ScPatternAttr::ClearItems | ( | const sal_uInt16 * | pWhich | ) |
Definition at line 1060 of file patattr.cxx.
References SfxItemSet::ClearItem(), GetItemSet(), i, mxHashCode, mxVisible, and rSet.
|
overridevirtual |
Implements SfxSetItem.
Definition at line 101 of file patattr.cxx.
References GetItemSet(), pName, pStyle, and ScPatternAttr().
void ScPatternAttr::DeleteUnchanged | ( | const ScPatternAttr * | pOldAttrs | ) |
Definition at line 1013 of file patattr.cxx.
References ATTR_PATTERN_END(), ATTR_PATTERN_START(), SfxItemSet::ClearItem(), SfxItemPool::GetDefaultItem(), GetItemSet(), SfxItemSet::GetItemState(), SfxItemSet::GetPool(), mxHashCode, and mxVisible.
Referenced by ScViewFunc::ApplyAttributes(), and ScDocFunc::PutData().
|
static |
Definition at line 124 of file patattr.cxx.
References compareSize, SfxItemSet::Count(), SfxItemSet::GetItems_Impl(), and SfxItemSet::TotalCount().
Referenced by ScGlobal::CheckWidthInvalidate(), and EqualPatternSets().
|
static |
Definition at line 435 of file patattr.cxx.
References ATTR_BACKGROUND(), ATTR_FONT_COLOR(), COL_AUTO(), COL_BLACK(), COL_TRANSPARENT(), COL_WHITE(), SfxViewShell::Current(), svtools::DOCCOLOR, svtools::FONTCOLOR, SfxItemSet::Get(), SvxBrushItem::GetColor(), SvxColorItem::getComplexColor(), ScViewOptions::GetDocColor(), SfxItemSet::GetItemIfSet(), ScViewData::GetOptions(), model::ComplexColor::getType(), SvxColorItem::GetValue(), ScTabView::GetViewData(), IgnoreAll, IgnoreBack, IgnoreFont, comphelper::LibreOfficeKit::isActive(), Color::IsBright(), Color::IsDark(), Print, Raw, SC_MOD, model::ComplexColor::setColor(), model::ComplexColor::setFinalColor(), and model::Unused.
Referenced by XclExpHFConverter::AppendPortion(), fillFont(), XclExpFontBuffer::Insert(), and XclExpCFImpl::XclExpCFImpl().
|
inline |
Definition at line 120 of file patattr.hxx.
References SfxSetItem::GetItemSet().
void ScPatternAttr::FillEditItemSet | ( | SfxItemSet * | pEditSet, |
const SfxItemSet * | pCondSet = nullptr |
||
) | const |
Converts all Calc items contained in the own item set to edit engine items and puts them into pEditSet.
Definition at line 868 of file patattr.cxx.
References FillToEditItemSet(), and GetItemSet().
Referenced by ScPreview::DoPrint(), ScViewFunc::DoThesaurus(), ScGridWindow::DrawPagePreview(), ScOutputData::DrawRotated(), ScConversionEngineBase::FindNextConversionCell(), ScColumn::GetNeededSize(), ScHeaderFooterTextData::GetTextForwarder(), ScAccessibleHeaderTextData::GetTextForwarder(), ScTabEditEngine::Init(), ScPrintFunc::MakeEditEngine(), ScEditWindow::SetFont(), ScInputHandler::StartTable(), and ScDocument::TransliterateText().
void ScPatternAttr::FillEditParaItems | ( | SfxItemSet * | pSet | ) | const |
Definition at line 993 of file patattr.cxx.
References ATTR_HOR_JUSTIFY(), EE_PARA_JUST(), SfxItemSet::Get(), GetItemSet(), and SfxItemSet::Put().
|
static |
Definition at line 250 of file patattr.cxx.
References fillColor(), fillFontOnly(), model::ComplexColor::getFinalColor(), and vcl::Font::SetColor().
Referenced by ScPrintFunc::PrintPage(), and ScDrawStringsVars::SetPattern().
|
inline |
Fills a font object from the own item set.
Definition at line 139 of file patattr.hxx.
References SfxSetItem::GetItemSet().
|
inline |
Definition at line 129 of file patattr.hxx.
References SfxSetItem::GetItemSet().
|
static |
Static helper function to fill a font object from the passed item set.
Definition at line 266 of file patattr.cxx.
References ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_EMPHASISMARK(), ATTR_FONT_OVERLINE(), ATTR_FONT_RELIEF(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WORDLINE(), SfxItemSet::Get(), SvxFontItem::GetCharSet(), OutputDevice::GetDPIX(), SvxEmphasisMarkItem::GetEmphasisMark(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), vcl::Font::GetFamilyName(), SvxFontHeightItem::GetHeight(), SfxItemSet::GetItemIfSet(), SvxLanguageItem::GetLanguage(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), SvxFontItem::GetPitch(), SvxFontItem::GetStyleName(), vcl::Font::GetStyleName(), OutputDevice::LogicToLogic(), OutputDevice::LogicToPixel(), vcl::Font::SetCharSet(), vcl::Font::SetEmphasisMark(), vcl::Font::SetFamily(), vcl::Font::SetFamilyName(), vcl::Font::SetFontSize(), vcl::Font::SetItalic(), vcl::Font::SetLanguage(), vcl::Font::SetOutline(), vcl::Font::SetOverline(), vcl::Font::SetPitch(), vcl::Font::SetRelief(), MapMode::SetScaleX(), MapMode::SetScaleY(), vcl::Font::SetShadow(), vcl::Font::SetStrikeout(), vcl::Font::SetStyleName(), vcl::Font::SetTransparent(), vcl::Font::SetUnderline(), vcl::Font::SetWeight(), and vcl::Font::SetWordLineMode().
Referenced by XclExpHFConverter::AppendPortion(), ScDocShell::CalcOutputFactor(), ScGridWindow::DrawPagePreview(), ScCellShell::ExecuteEdit(), fillFont(), getDefaultCharWidth(), ScEditUtil::GetEditArea(), XclExpFontHelper::GetFontFromItemSet(), ScColumn::GetNeededSize(), ScColumn::GetOptimalColWidth(), ScGlobal::InitTextHeight(), ScInterpreter::ScCell(), ScDrawStringsVars::SetShrinkScale(), and XclExpCFImpl::XclExpCFImpl().
|
static |
Converts all Calc items contained in rSrcSet to edit engine items and puts them into rEditSet.
Definition at line 642 of file patattr.cxx.
References ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_LANGUAGE(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_LANGUAGE(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_EMPHASISMARK(), ATTR_FONT_HEIGHT(), ATTR_FONT_LANGUAGE(), ATTR_FONT_OVERLINE(), ATTR_FONT_POSTURE(), ATTR_FONT_RELIEF(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_FONT_WORDLINE(), ATTR_FORBIDDEN_RULES(), ATTR_HYPHENATE(), ATTR_WRITINGDIR(), SfxItemSet::ClearItem(), SfxPoolItem::Clone(), COL_AUTO(), convertTwipToMm100(), EE_CHAR_COLOR(), EE_CHAR_EMPHASISMARK(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_RELIEF(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), EE_CHAR_WLM(), EE_PARA_ASIANCJKSPACING(), EE_PARA_FORBIDDENRULES(), EE_PARA_HYPHENATE(), EE_PARA_WRITINGDIR(), SfxItemSet::Get(), SvxEmphasisMarkItem::GetEmphasisMark(), SvxFontHeightItem::GetHeight(), SfxItemSet::GetItemIfSet(), SvxLanguageItem::GetLanguage(), SfxBoolItem::GetValue(), lcl_populate(), LINESTYLE_NONE, and SfxItemSet::Put().
Referenced by XclExpStringHelper::CreateCellString(), ScDrawLayer::CreateDefaultStyles(), FillEditItemSet(), XclRoot::GetHFEditEngine(), and ScDocument::GetNoteEngine().
|
static |
Definition at line 188 of file patattr.cxx.
References ATTR_ROTATE_VALUE(), ATTR_STACKED(), GetItem(), and GetValue.
Referenced by ScOutputData::DrawRotated(), GetCellOrientation(), ScGridWindow::GetEditUrl(), ScColumn::GetNeededSize(), ScColumn::GetOptimalHeight(), GetRotateVal(), ScAttrArray::HasAttrib_Impl(), and ScDrawStringsVars::SetPattern().
SvxCellOrientation ScPatternAttr::GetCellOrientation | ( | const SfxItemSet * | pCondSet = nullptr | ) | const |
Definition at line 208 of file patattr.cxx.
References GetCellOrientation(), and GetItemSet().
|
static |
Definition at line 546 of file patattr.cxx.
References ScDxfFont::aColor, ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_EMPHASISMARK(), ATTR_FONT_OVERLINE(), ATTR_FONT_RELIEF(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WORDLINE(), ScDxfFont::bOutline, ScDxfFont::bShadow, ScDxfFont::bWordLine, ScDxfFont::eEmphasis, ScDxfFont::eItalic, ScDxfFont::eLang, ScDxfFont::eOver, ScDxfFont::eRelief, ScDxfFont::eStrike, ScDxfFont::eUnder, ScDxfFont::eWeight, SfxItemSet::Get(), SfxItemSet::GetItemIfSet(), ScDxfFont::nFontHeight, and ScDxfFont::pFontAttr.
Referenced by XclExpFontHelper::GetDxfFontFromItemSet().
void ScPatternAttr::GetFromEditItemSet | ( | const SfxItemSet * | pEditSet | ) |
Converts all edit engine items contained in pEditSet to Calc items and puts them into the own item set.
Definition at line 984 of file patattr.cxx.
References GetFromEditItemSet(), GetItemSet(), mxHashCode, and mxVisible.
|
static |
Converts all edit engine items contained in rEditSet to Calc items and puts them into rDestSet.
Definition at line 874 of file patattr.cxx.
References ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_LANGUAGE(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_LANGUAGE(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_EMPHASISMARK(), ATTR_FONT_HEIGHT(), ATTR_FONT_LANGUAGE(), ATTR_FONT_OVERLINE(), ATTR_FONT_POSTURE(), ATTR_FONT_RELIEF(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ATTR_FONT_WORDLINE(), ATTR_HOR_JUSTIFY(), EE_CHAR_COLOR(), EE_CHAR_EMPHASISMARK(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_RELIEF(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), EE_CHAR_WLM(), EE_PARA_JUST(), SvxAdjustItem::GetAdjust(), SfxItemSet::GetItemIfSet(), o3tl::mm100, SfxItemSet::Put(), and o3tl::toTwips().
Referenced by XclExpHFConverter::AppendPortion(), GetFromEditItemSet(), and ScDocFunc::PutData().
|
static |
Definition at line 1439 of file patattr.cxx.
References SfxItemSet::Get(), and SfxItemSet::GetItemState().
const SfxPoolItem & ScPatternAttr::GetItem | ( | sal_uInt16 | nWhich, |
const SfxItemSet * | pCondSet | ||
) | const |
Definition at line 1447 of file patattr.cxx.
References GetItem(), and GetItemSet().
|
inline |
Definition at line 73 of file patattr.hxx.
References SfxItemSet::Get(), and SfxSetItem::GetItemSet().
Referenced by ScAttrArray::ApplyFlags(), ScAttrArray::ApplyFrame(), ScOutputData::Clip(), ScAttrArray::CopyArea(), ScColumn::CopyScenarioFrom(), ScColumn::CopyScenarioTo(), ScDocFunc::DeleteCells(), ScViewFunc::DoAutoAttributes(), ScOutputData::DrawBackground(), ScOutputData::DrawClipMarks(), ScGridWindow::DrawContent(), ScOutputData::DrawEditAsianVertical(), ScOutputData::DrawEditStacked(), ScOutputData::DrawEditStandard(), ScOutputData::DrawRotated(), ScOutputData::DrawRotatedFrame(), ScViewData::EditGrowX(), ScFormatShell::ExecuteAttr(), ScCellShell::ExecuteEdit(), ScFormatShell::ExecuteTextAttr(), ScAttrArray::ExtendMerge(), ScDocument::ExtendOverlapped(), ScTable::FillAnalyse(), ScTable::FillAuto(), ScDocument::FillInfo(), ScTable::FillSeries(), ScTable::GetCellBackgroundColor(), GetCellOrientation(), ScTable::GetCellTextColor(), ScDocument::GetCondResult(), ScEditUtil::GetEditArea(), ScGridWindow::GetEditUrl(), ScDocument::GetEffItem(), ScIconSetFormat::GetIconSetInfo(), ScEditUtil::GetIndent(), GetItem(), ScEditUtil::GetMargins(), ScColumn::GetNeededSize(), ScColumn::GetOptimalColWidth(), ScColumn::GetOptimalHeight(), ScOutputData::GetOutputArea(), ScGridWindow::GetRectsAnyFor(), GetRotateDir(), GetRotateVal(), ScDocument::GetScriptType(), ScViewFunc::GetSelectionFrame(), ScViewData::GetSimpleArea(), ScHeaderFooterTextData::GetTextForwarder(), ScAccessibleHeaderTextData::GetTextForwarder(), ScColumn::GetUnprotectedCells(), ScAttrArray::HasAttrib_Impl(), ScGlobal::InitTextHeight(), ScDocFunc::InsertCells(), ScOutputData::IsAvailable(), ScAttrArray::IsMerged(), ScOutputData::LayoutStrings(), lcl_EqualBack(), lcl_FindBackground(), lcl_GetAttribHeight(), lcl_GetHyperlinkCell(), lcl_GetRotateDir(), lcl_MergeToFrame(), lcl_sendLOKDocumentBackground(), ScPrintFunc::MakeEditEngine(), ScDetectiveFunc::MarkInvalid(), ScColumn::MarkScenarioIn(), ScTable::MaybeAddExtraColumn(), ScViewFunc::ModifyCellSize(), ScViewFunc::PasteFromClip(), ScAttrArray::RemoveAreaMerge(), ScAttrArray::RemoveFlags(), ScColumn::RemoveProtected(), ScInterpreter::ScText(), ScOutputData::SetCellRotations(), ScViewData::SetEditEngine(), ScEditWindow::SetFont(), ScDrawStringsVars::SetPattern(), ScAttrArray::SetPatternAreaSafe(), ScDrawStringsVars::SetPatternSimple(), ScInputHandler::StartTable(), StringDiffer(), ScColumn::TestCopyScenarioTo(), ScInputHandler::UpdateAdjust(), ScGridWindow::UpdateCursorOverlay(), ScColumn::UpdateScriptType(), ScInputHandler::UpdateSpellSettings(), ScHTMLExport::WriteCell(), ScRTFExport::WriteCell(), ScXMLExportDataPilot::WriteDataPilots(), and ScRTFExport::WriteRow().
|
inline |
Definition at line 75 of file patattr.hxx.
References GetItem().
|
inlinestatic |
Definition at line 79 of file patattr.hxx.
References GetItem().
|
inline |
Definition at line 83 of file patattr.hxx.
References GetItem().
|
inline |
Definition at line 192 of file patattr.hxx.
References SfxSetItem::GetItemSet().
Referenced by ScAttrArray::AddCondFormat(), ScTableSheetObj::addRanges(), XclImpValidationManager::Apply(), DifColumn::Apply(), ScViewFunc::ApplyAttr(), ScColumn::ApplyAttr(), ScViewFunc::ApplyAttributes(), ScAttrArray::ApplyCacheArea(), ScAttrArray::ApplyFrame(), ScAttrArray::ApplyLineStyleArea(), ScColumn::ApplyPattern(), ScColumnData::ApplyPatternArea(), ScColumn::ApplyPatternIfNumberformatIncompatible(), oox::xls::Xf::applyPatternToAttrList(), XclImpXF::ApplyPatternToAttrVector(), ScViewFunc::ApplySelectionPattern(), ScDocument::ApplySelectionPattern(), ScAttrArray::ApplyStyleArea(), ScViewFunc::ApplyUserItemSet(), CalcHashCode(), CalcVisible(), ScAttrArray::ChangeIndent(), ScViewFunc::ChangeNumFmtDecimals(), ClearItems(), Clone(), ScAttrArray::CopyArea(), ScTable::CopyFromClip(), XclExpStringHelper::CreateCellString(), oox::xls::CellStyle::createCellStyle(), XclImpStyle::CreateStyleSheet(), ScTable::DeleteArea(), ScColumn::DeleteBeforeCopyFromClip(), ScDocFunc::DeleteCells(), ScAttrArray::DeleteHardAttr(), DeleteUnchanged(), ScUndoDeleteCells::DoChange(), ScUndoCursorAttr::DoChange(), ScDBDocFunc::DoImport(), ScGridWindow::dumpCellProperties(), ScViewFunc::EnterBlock(), ScViewFunc::EnterData(), XclExpXF::Equals(), ScTabViewShell::ExecStyle(), ScFormatShell::ExecuteAttr(), ScTabViewShell::ExecuteCellFormatDlg(), ScFormatShell::ExecuteNumFormat(), ScFormatShell::ExecuteStyle(), ScFormatShell::ExecuteTextAttr(), ScFormatShell::ExecuteTextDirection(), ScViewFunc::ExtendScenario(), ScTable::FillAnalyse(), ScTable::FillAuto(), FillEditItemSet(), FillEditParaItems(), ScDocument::FillInfo(), oox::xls::SheetDataBuffer::finalizeImport(), ScTable::FindMaxRotCol(), XclExpXFBuffer::FindXF(), ScFormatShell::GetAlignState(), ScFormatShell::GetAttrState(), GetCellOrientation(), ScDocument::GetEffItem(), GetFromEditItemSet(), GetItem(), ScDocument::GetNoteEngine(), GetNumberFormat(), ScFormatShell::GetNumFormatState(), LotAttrCache::GetPattAttr(), ScViewData::GetSimpleArea(), ScFormatShell::GetTextAttrState(), ScFormatShell::GetTextDirectionState(), HasItemsSet(), ScCellObj::InputEnglishString(), IsSymbolFont(), IsVisibleEqual(), ScOutputData::LayoutStrings(), lcl_CopyData(), lcl_MergeToFrame(), lcl_PutString(), lcl_RemoveNumberFormat(), lcl_SetCellProperty(), Lookup(), ScDocShell::MakeScenario(), ScAttrArray::MergePatternArea(), OP_CreatePattern123(), operator==(), ScDocFunc::PutData(), PutInPool(), ScUndoRemoveMerge::Redo(), ScAreaLink::Refresh(), ScAttrArray::RemoveAreaMerge(), ScEditUtil::RemoveCharAttribs(), ScAttrArray::RemoveCondFormat(), ScAttrArray::Reset(), ScAttrArray::ScAttrArray(), ScOrcusSheet::set_column_format(), ScOrcusSheet::set_row_format(), ScXMLTableRowCellContext::SetContentValidation(), ScQProStyle::SetFormat(), ScDocFunc::SetNormalString(), ScViewFunc::SetNumberFormat(), ScViewFunc::SetNumFmtByStr(), ScAttrArray::SetPatternAreaImpl(), ScViewFunc::SetSelectionFrameLines(), SetStyleSheet(), ScDBFunc::ShowDataPilotSourceData(), ScInputHandler::StartTable(), StyleToName(), ScTable::TransposeColPatterns(), ScDocFunc::UnmergeCells(), ScViewFunc::UpdateSelectionArea(), UpdateStyleSheet(), XclExpCellTable::XclExpCellTable(), XclExpFormulaCell::XclExpFormulaCell(), and XclExpXF::XclExpXF().
SfxItemSet & SfxSetItem::GetItemSet | ( | ) |
const SfxItemSet & SfxSetItem::GetItemSet | ( | ) | const |
sal_uInt64 ScPatternAttr::GetKey | ( | ) | const |
Definition at line 1502 of file patattr.cxx.
References mnKey.
Referenced by ScAttrArray::MergePatternArea().
sal_uInt32 ScPatternAttr::GetNumberFormat | ( | SvNumberFormatter * | pFormatter | ) | const |
Definition at line 1398 of file patattr.cxx.
References SvNumberFormatter::GetFormatForLanguageIfBuiltIn(), GetItemSet(), LANGUAGE_SYSTEM, and SV_COUNTRY_LANGUAGE_OFFSET.
Referenced by ScChangeTrack::AppendContentsIfInRefDoc(), ScColumn::ApplyPatternIfNumberformatIncompatible(), ScTable::CopyStaticToDocument(), ScDdeLink::DataChanged(), ScOutputData::DrawRotated(), ScInputHandler::EnterHandler(), ScTabViewShell::ExecuteCellFormatDlg(), ScTransferObj::GetData(), ScColumn::GetNeededSize(), ScColumnData::GetNumberFormat(), GetNumberFormat(), ScColumn::GetOptimalColWidth(), ScDocument::GetScriptType(), ScValidationDataIsNumeric::init(), ScValidationData::IsDataValid(), ScValidationData::IsDataValidCustom(), ScDocumentImport::isLatinScript(), sc::NumFmtUtil::isLatinScript(), ScOutputData::LayoutStrings(), ScAttrArray_IterGetNumberFormat(), ScDrawStringsVars::SetPattern(), ScDrawStringsVars::SetPatternSimple(), ScViewFunc::Solve(), ScColumn::UpdateScriptType(), ScHTMLExport::WriteCell(), and ScRTFExport::WriteCell().
sal_uInt32 ScPatternAttr::GetNumberFormat | ( | SvNumberFormatter * | pFormatter, |
const SfxItemSet * | pCondSet | ||
) | const |
Definition at line 1411 of file patattr.cxx.
References ATTR_LANGUAGE_FORMAT(), ATTR_VALUE_FORMAT(), SvNumberFormatter::GetFormatForLanguageIfBuiltIn(), GetItemSet(), SfxItemSet::GetItemState(), and GetNumberFormat().
ScRotateDir ScPatternAttr::GetRotateDir | ( | const SfxItemSet * | pCondSet | ) | const |
Definition at line 1468 of file patattr.cxx.
References ATTR_ROTATE_MODE(), Center, GetItem(), GetRotateVal(), Left, NONE, Right, Standard, SVX_ROTATE_MODE_BOTTOM, SVX_ROTATE_MODE_CENTER, SVX_ROTATE_MODE_STANDARD, and SVX_ROTATE_MODE_TOP.
Referenced by ScTable::FillMaxRot(), ScColumn::GetNeededSize(), and ScOutputData::SetCellRotations().
Degree100 ScPatternAttr::GetRotateVal | ( | const SfxItemSet * | pCondSet | ) | const |
Definition at line 1454 of file patattr.cxx.
References ATTR_HOR_JUSTIFY(), ATTR_ROTATE_VALUE(), GetCellOrientation(), GetItem(), and GetValue.
Referenced by ScOutputData::DrawRotatedFrame(), GetRotateDir(), lcl_GetRotateDir(), and ScOutputData::SetCellRotations().
const OUString * ScPatternAttr::GetStyleName | ( | ) | const |
Definition at line 1301 of file patattr.cxx.
References SfxStyleSheetBase::GetName(), pName, and pStyle.
Referenced by oox::xls::Xf::applyPatternToAttrList(), XclImpXF::ApplyPatternToAttrVector(), ScDocumentPool::CellStyleCreated(), Lookup(), and operator==().
|
inline |
Definition at line 165 of file patattr.hxx.
Referenced by ScViewFunc::DoAutoAttributes(), ScDBDocFunc::DoImport(), ScTable::FillAuto(), ScColumn::GetAreaStyle(), ScColumn::GetSelectionStyle(), ScAttrArray::IsStyleSheetUsed(), ScDBDocFunc::Query(), ScAttrArray::SearchStyle(), ScDocumentPool::StyleDeleted(), ScEEImport::WriteToDocument(), and XclExpXF::XclExpXF().
bool ScPatternAttr::HasItemsSet | ( | const sal_uInt16 * | pWhich | ) | const |
pWhich | are no ranges, but single IDs, 0-terminated |
Definition at line 1051 of file patattr.cxx.
References GetItemSet(), SfxItemSet::GetItemState(), i, and rSet.
Referenced by ScAttrArray::ClearItems().
|
inlineoverridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 70 of file patattr.hxx.
bool ScPatternAttr::IsSymbolFont | ( | ) | const |
If font is an old symbol font StarBats/StarMath with text encoding RTL_TEXTENC_SYMBOL.
Definition at line 1376 of file patattr.cxx.
References ATTR_FONT(), and GetItemSet().
Referenced by ScInputHandler::StartTable(), and ScInputHandler::UpdateSpellSettings().
bool ScPatternAttr::IsVisible | ( | ) | const |
Definition at line 1201 of file patattr.cxx.
References CalcVisible(), and mxVisible.
Referenced by ScAttrArray::HasVisibleAttrIn().
bool ScPatternAttr::IsVisibleEqual | ( | const ScPatternAttr & | rOther | ) | const |
Definition at line 1238 of file patattr.cxx.
References ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), ATTR_SHADOW(), SfxWhichIter::FirstWhich(), GetItemSet(), SfxWhichIter::GetItemState(), n, and SfxWhichIter::NextWhich().
Referenced by ScAttrArray::IsVisibleEqual().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 169 of file patattr.cxx.
References begin, CalcHashCode(), end, EqualPatternSets(), GetItemSet(), GetStyleName(), mxHashCode, and StrCmp().
|
overridevirtual |
Reimplemented from SfxSetItem.
Definition at line 152 of file patattr.cxx.
References CalcHashCode(), EqualPatternSets(), GetItemSet(), GetStyleName(), mxHashCode, and StrCmp().
ScPatternAttr * ScPatternAttr::PutInPool | ( | ScDocument * | pDestDoc, |
ScDocument * | pSrcDoc | ||
) | const |
Definition at line 1128 of file patattr.cxx.
References ScDocument::AddValidationEntry(), ATTR_PATTERN_END(), ATTR_PATTERN_START(), ATTR_VALIDDATA(), ATTR_VALUE_FORMAT(), ScValidationDataList::GetData(), ScDocument::GetFormatExchangeList(), GetItemSet(), SfxItemSet::GetItemState(), ScDocument::GetPool(), ScDocument::GetStyleSheetPool(), ScDocument::GetValidationList(), GetValue, lcl_CopyStyleToPool(), pStyle, SfxItemSet::Put(), SfxItemPool::Put(), and SetStyleSheet().
Referenced by ScAttrArray::CopyArea(), ScAttrArray::CopyAreaSafe(), and ScColumn::CopyOneCellFromClip().
void ScPatternAttr::SetKey | ( | sal_uInt64 | nKey | ) |
Definition at line 1497 of file patattr.cxx.
References mnKey.
Referenced by ScDocumentPool::PutImpl().
void ScPatternAttr::SetStyleSheet | ( | ScStyleSheet * | pNewStyle, |
bool | bClearDirectFormat = true |
||
) |
Definition at line 1306 of file patattr.cxx.
References ATTR_PATTERN_END(), ATTR_PATTERN_START(), SfxItemSet::ClearItem(), GetItemSet(), ScStyleSheet::GetItemSet(), SfxItemSet::GetItemState(), i, mxHashCode, mxVisible, pName, pStyle, and SfxItemSet::SetParent().
Referenced by oox::xls::Xf::applyPatternToAttrList(), XclImpXF::ApplyPatternToAttrVector(), ScFormatShell::ExecuteStyle(), ScDocument::FillInfo(), ScAttrArray::FindStyleSheet(), ScColumn::GetNeededSize(), ScOutputData::LayoutStrings(), PutInPool(), and ScDocument::TransliterateText().
void ScPatternAttr::StyleToName | ( | ) |
Definition at line 1362 of file patattr.cxx.
References GetItemSet(), SfxStyleSheetBase::GetName(), mxHashCode, mxVisible, pName, pStyle, and SfxItemSet::SetParent().
Referenced by ScDocumentPool::StyleDeleted(), and ScDocument::StylesToNames().
void ScPatternAttr::UpdateStyleSheet | ( | const ScDocument & | rDoc | ) |
Definition at line 1335 of file patattr.cxx.
References SfxStyleSheetBasePool::CreateIterator(), SfxStyleSheetBasePool::Find(), GetItemSet(), ScStyleSheet::GetItemSet(), ScDocument::GetStyleSheetPool(), mxHashCode, mxVisible, pName, pStyle, and SfxItemSet::SetParent().
Referenced by ScDocument::UpdStlShtPtrsFrmNms().
|
private |
Definition at line 59 of file patattr.hxx.
|
mutableprivate |
Definition at line 56 of file patattr.hxx.
Referenced by CalcHashCode(), ClearItems(), DeleteUnchanged(), GetFromEditItemSet(), Lookup(), operator==(), SetStyleSheet(), StyleToName(), and UpdateStyleSheet().
|
mutableprivate |
Definition at line 57 of file patattr.hxx.
Referenced by ClearItems(), DeleteUnchanged(), GetFromEditItemSet(), IsVisible(), SetStyleSheet(), StyleToName(), and UpdateStyleSheet().
|
private |
Definition at line 55 of file patattr.hxx.
Referenced by Clone(), GetStyleName(), SetStyleSheet(), StyleToName(), and UpdateStyleSheet().
|
private |
Definition at line 58 of file patattr.hxx.
Referenced by Clone(), GetStyleName(), PutInPool(), SetStyleSheet(), StyleToName(), and UpdateStyleSheet().