LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScPatternAttr Class Referencefinal

#include <patattr.hxx>

Inheritance diagram for ScPatternAttr:
[legend]
Collaboration diagram for ScPatternAttr:
[legend]

Public Member Functions

 ScPatternAttr (SfxItemSet &&pItemSet, const OUString &rStyleName)
 
 ScPatternAttr (SfxItemSet &&pItemSet)
 
 ScPatternAttr (SfxItemPool *pItemPool)
 
 ScPatternAttr (const ScPatternAttr &rPatternAttr)
 
virtual ScPatternAttrClone (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 SfxPoolItemGetItem (sal_uInt16 nWhichP) const
 
template<class T >
const T & GetItem (TypedWhichId< T > nWhich) const
 
const SfxPoolItemGetItem (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 GetFont (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
 
ScPatternAttrPutInPool (ScDocument *pDestDoc, ScDocument *pSrcDoc) const
 
void SetStyleSheet (ScStyleSheet *pNewStyle, bool bClearDirectFormat=true)
 
const ScStyleSheetGetStyleSheet () 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
 
SfxItemSetGetItemSet ()
 
const SfxItemSetGetItemSet () const
 
SfxItemSetGetItemSet ()
 
- 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 SfxSetItemClone (SfxItemPool *pPool=nullptr) const override=0
 
const SfxItemSetGetItemSet () const
 
SfxItemSetGetItemSet ()
 
- 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 SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (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 SfxPoolItemGetItem (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 GetFont (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 helper function to fill a font object from the passed item set. More...
 
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
 

Private Attributes

std::optional< OUString > pName
 
std::optional< size_t > mxHashCode
 
ScStyleSheetpStyle
 
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)
 

Detailed Description

Definition at line 53 of file patattr.hxx.

Constructor & Destructor Documentation

◆ ScPatternAttr() [1/4]

ScPatternAttr::ScPatternAttr ( SfxItemSet &&  pItemSet,
const OUString &  rStyleName 
)

Definition at line 69 of file patattr.cxx.

References pName.

Referenced by Clone().

◆ ScPatternAttr() [2/4]

ScPatternAttr::ScPatternAttr ( SfxItemSet &&  pItemSet)

Definition at line 77 of file patattr.cxx.

◆ ScPatternAttr() [3/4]

ScPatternAttr::ScPatternAttr ( SfxItemPool pItemPool)

Definition at line 84 of file patattr.cxx.

◆ ScPatternAttr() [4/4]

ScPatternAttr::ScPatternAttr ( const ScPatternAttr rPatternAttr)

Definition at line 91 of file patattr.cxx.

References pName.

Member Function Documentation

◆ CalcHashCode()

void ScPatternAttr::CalcHashCode ( ) const
private

◆ ClearItems()

void ScPatternAttr::ClearItems ( const sal_uInt16 *  pWhich)

Definition at line 1016 of file patattr.cxx.

References SfxItemSet::ClearItem(), GetItemSet(), i, mxHashCode, and rSet.

◆ Clone()

ScPatternAttr * ScPatternAttr::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxSetItem.

Definition at line 99 of file patattr.cxx.

References GetItemSet(), pName, pStyle, and ScPatternAttr().

◆ DeleteUnchanged()

void ScPatternAttr::DeleteUnchanged ( const ScPatternAttr pOldAttrs)

◆ FastEqualPatternSets()

std::optional< bool > ScPatternAttr::FastEqualPatternSets ( const SfxItemSet rSet1,
const SfxItemSet rSet2 
)
static

◆ FillEditItemSet()

void ScPatternAttr::FillEditItemSet ( SfxItemSet pEditSet,
const SfxItemSet pCondSet = nullptr 
) const

◆ FillEditParaItems()

void ScPatternAttr::FillEditParaItems ( SfxItemSet pSet) const

◆ FillToEditItemSet()

void ScPatternAttr::FillToEditItemSet ( SfxItemSet rEditSet,
const SfxItemSet rSrcSet,
const SfxItemSet pCondSet = nullptr 
)
static

Converts all Calc items contained in rSrcSet to edit engine items and puts them into rEditSet.

Definition at line 601 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(), FillEditItemSet(), XclRoot::GetHFEditEngine(), and ScDocument::GetNoteEngine().

◆ GetCellOrientation() [1/2]

SvxCellOrientation ScPatternAttr::GetCellOrientation ( const SfxItemSet rItemSet,
const SfxItemSet pCondSet 
)
static

◆ GetCellOrientation() [2/2]

SvxCellOrientation ScPatternAttr::GetCellOrientation ( const SfxItemSet pCondSet = nullptr) const

Definition at line 209 of file patattr.cxx.

References GetCellOrientation(), and GetItemSet().

◆ GetDxfFont()

ScDxfFont ScPatternAttr::GetDxfFont ( const SfxItemSet rSet,
SvtScriptType  nScript 
)
static

◆ GetFont() [1/2]

void ScPatternAttr::GetFont ( 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

Static helper function to fill a font object from the passed item set.

Definition at line 251 of file patattr.cxx.

References ATTR_BACKGROUND(), 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(), COL_AUTO(), COL_BLACK(), COL_TRANSPARENT(), COL_WHITE(), svtools::DOCCOLOR, svtools::FONTCOLOR, SfxItemSet::Get(), SvxFontItem::GetCharSet(), SvxBrushItem::GetColor(), 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(), SvxColorItem::GetValue(), Color::IsBright(), Color::IsDark(), OutputDevice::LogicToLogic(), OutputDevice::LogicToPixel(), Point, SC_AUTOCOL_BLACK, SC_AUTOCOL_IGNOREALL, SC_AUTOCOL_IGNOREBACK, SC_AUTOCOL_IGNOREFONT, SC_AUTOCOL_PRINT, SC_AUTOCOL_RAW, SC_MOD, vcl::Font::SetCharSet(), vcl::Font::SetColor(), 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(), getDefaultCharWidth(), ScEditUtil::GetEditArea(), GetFont(), XclExpFontHelper::GetFontFromItemSet(), ScColumn::GetNeededSize(), ScColumn::GetOptimalColWidth(), ScGlobal::InitTextHeight(), ScPrintFunc::PrintPage(), ScInterpreter::ScCell(), ScDrawStringsVars::SetPattern(), ScDrawStringsVars::SetShrinkScale(), and XclExpCFImpl::XclExpCFImpl().

◆ GetFont() [2/2]

void ScPatternAttr::GetFont ( 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.

Definition at line 496 of file patattr.cxx.

References GetFont(), and GetItemSet().

◆ GetFromEditItemSet() [1/2]

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 943 of file patattr.cxx.

References GetFromEditItemSet(), GetItemSet(), and mxHashCode.

◆ GetFromEditItemSet() [2/2]

void ScPatternAttr::GetFromEditItemSet ( SfxItemSet rDestSet,
const SfxItemSet rEditSet 
)
static

◆ GetItem() [1/6]

const SfxPoolItem & ScPatternAttr::GetItem ( sal_uInt16  nWhich,
const SfxItemSet rItemSet,
const SfxItemSet pCondSet 
)
static

Definition at line 1342 of file patattr.cxx.

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

◆ GetItem() [2/6]

const SfxPoolItem & ScPatternAttr::GetItem ( sal_uInt16  nWhich,
const SfxItemSet pCondSet 
) const

Definition at line 1350 of file patattr.cxx.

References GetItem(), and GetItemSet().

◆ GetItem() [3/6]

const SfxPoolItem & ScPatternAttr::GetItem ( sal_uInt16  nWhichP) const
inline

Definition at line 72 of file patattr.hxx.

References SfxItemSet::Get(), and SfxSetItem::GetItemSet().

Referenced by ScAttrArray::ApplyFlags(), ScAttrArray::ApplyFrame(), ScOutputData::Clip(), ScQueryEvaluator::compareByBackgroundColor(), ScQueryEvaluator::compareByTextColor(), ScAttrArray::CopyArea(), ScColumn::CopyScenarioFrom(), ScColumn::CopyScenarioTo(), ScDocFunc::DeleteCells(), ScViewFunc::DoAutoAttributes(), ScOutputData::DrawBackground(), ScOutputData::DrawClipMarks(), 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(), GetCellOrientation(), ScDocument::GetCondResult(), ScEditUtil::GetEditArea(), ScGridWindow::GetEditUrl(), ScDocument::GetEffItem(), ScIconSetFormat::GetIconSetInfo(), ScEditUtil::GetIndent(), GetItem(), ScEditUtil::GetMargins(), ScColumn::GetNeededSize(), ScCellRangesBase::GetOnePropertyValue(), ScColumn::GetOptimalColWidth(), ScColumn::GetOptimalHeight(), ScOutputData::GetOutputArea(), ScCellRangesBase::getPropertyDefault(), 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().

◆ GetItem() [4/6]

template<class T >
const T & ScPatternAttr::GetItem ( TypedWhichId< T >  nWhich) const
inline

Definition at line 74 of file patattr.hxx.

References GetItem().

◆ GetItem() [5/6]

template<class T >
static const T & ScPatternAttr::GetItem ( TypedWhichId< T >  nWhich,
const SfxItemSet rItemSet,
const SfxItemSet pCondSet 
)
inlinestatic

Definition at line 78 of file patattr.hxx.

References GetItem().

◆ GetItem() [6/6]

template<class T >
const T & ScPatternAttr::GetItem ( TypedWhichId< T >  nWhich,
const SfxItemSet pCondSet 
) const
inline

Definition at line 82 of file patattr.hxx.

References GetItem().

◆ GetItemSet() [1/3]

SfxItemSet & ScPatternAttr::GetItemSet ( )
inline

Definition at line 155 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(), 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(), 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(), ScCellRangesBase::GetCurrentDataSet(), ScDocument::GetEffItem(), GetFont(), GetFromEditItemSet(), GetItem(), ScDocument::GetNoteEngine(), GetNumberFormat(), ScFormatShell::GetNumFormatState(), ScCellRangesBase::GetOnePropertyState(), LotAttrCache::GetPattAttr(), ScCellRangesBase::getPropertyDefault(), ScViewData::GetSimpleArea(), ScFormatShell::GetTextAttrState(), ScFormatShell::GetTextDirectionState(), HasItemsSet(), ScCellObj::InputEnglishString(), IsSymbolFont(), IsVisible(), 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(), ScXMLTableRowCellContext::SetContentValidation(), ScQProStyle::SetFormat(), ScDocFunc::SetNormalString(), ScViewFunc::SetNumberFormat(), ScViewFunc::SetNumFmtByStr(), ScCellRangesBase::SetOnePropertyValue(), ScAttrArray::SetPatternAreaImpl(), ScViewFunc::SetSelectionFrameLines(), SetStyleSheet(), ScDBFunc::ShowDataPilotSourceData(), ScInputHandler::StartTable(), StyleToName(), ScTable::TransposeColPatterns(), ScDocFunc::UnmergeCells(), ScViewFunc::UpdateSelectionArea(), UpdateStyleSheet(), XclExpCellTable::XclExpCellTable(), XclExpFormulaCell::XclExpFormulaCell(), and XclExpXF::XclExpXF().

◆ GetItemSet() [2/3]

SfxItemSet & SfxSetItem::GetItemSet ( )

◆ GetItemSet() [3/3]

const SfxItemSet & SfxSetItem::GetItemSet ( ) const

◆ GetKey()

sal_uInt64 ScPatternAttr::GetKey ( ) const

Definition at line 1405 of file patattr.cxx.

References mnKey.

Referenced by ScCellRangesBase::GetOnePropertyValue(), and ScAttrArray::MergePatternArea().

◆ GetNumberFormat() [1/2]

sal_uInt32 ScPatternAttr::GetNumberFormat ( SvNumberFormatter pFormatter) const

◆ GetNumberFormat() [2/2]

sal_uInt32 ScPatternAttr::GetNumberFormat ( SvNumberFormatter pFormatter,
const SfxItemSet pCondSet 
) const

◆ GetRotateDir()

ScRotateDir ScPatternAttr::GetRotateDir ( const SfxItemSet pCondSet) const

◆ GetRotateVal()

Degree100 ScPatternAttr::GetRotateVal ( const SfxItemSet pCondSet) const

◆ GetStyleName()

const OUString * ScPatternAttr::GetStyleName ( ) const

◆ GetStyleSheet()

const ScStyleSheet * ScPatternAttr::GetStyleSheet ( ) const
inline

◆ HasItemsSet()

bool ScPatternAttr::HasItemsSet ( const sal_uInt16 *  pWhich) const
Parameters
pWhichare no ranges, but single IDs, 0-terminated

Definition at line 1007 of file patattr.cxx.

References GetItemSet(), SfxItemSet::GetItemState(), i, and rSet.

Referenced by ScAttrArray::ClearItems().

◆ HasLookup()

virtual bool ScPatternAttr::HasLookup ( ) const
inlineoverridevirtual

Reimplemented from SfxPoolItem.

Definition at line 69 of file patattr.hxx.

◆ IsSymbolFont()

bool ScPatternAttr::IsSymbolFont ( ) const

If font is an old symbol font StarBats/StarMath with text encoding RTL_TEXTENC_SYMBOL.

Definition at line 1279 of file patattr.cxx.

References ATTR_FONT(), and GetItemSet().

Referenced by ScInputHandler::StartTable(), and ScInputHandler::UpdateSpellSettings().

◆ IsVisible()

bool ScPatternAttr::IsVisible ( ) const

◆ IsVisibleEqual()

bool ScPatternAttr::IsVisibleEqual ( const ScPatternAttr rOther) const

◆ Lookup()

SfxPoolItem::lookup_iterator ScPatternAttr::Lookup ( lookup_iterator  begin,
lookup_iterator  end 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 167 of file patattr.cxx.

References begin, CalcHashCode(), end, EqualPatternSets(), GetItemSet(), GetStyleName(), mxHashCode, and StrCmp().

◆ operator==()

bool ScPatternAttr::operator== ( const SfxPoolItem rCmp) const
overridevirtual

Reimplemented from SfxSetItem.

Definition at line 150 of file patattr.cxx.

References CalcHashCode(), EqualPatternSets(), GetItemSet(), GetStyleName(), mxHashCode, and StrCmp().

◆ PutInPool()

ScPatternAttr * ScPatternAttr::PutInPool ( ScDocument pDestDoc,
ScDocument pSrcDoc 
) const

◆ SetKey()

void ScPatternAttr::SetKey ( sal_uInt64  nKey)

Definition at line 1400 of file patattr.cxx.

References mnKey.

Referenced by ScDocumentPool::PutImpl().

◆ SetStyleSheet()

void ScPatternAttr::SetStyleSheet ( ScStyleSheet pNewStyle,
bool  bClearDirectFormat = true 
)

◆ StyleToName()

void ScPatternAttr::StyleToName ( )

◆ UpdateStyleSheet()

void ScPatternAttr::UpdateStyleSheet ( const ScDocument rDoc)

Member Data Documentation

◆ mnKey

sal_uInt64 ScPatternAttr::mnKey
private

Definition at line 58 of file patattr.hxx.

Referenced by GetKey(), and SetKey().

◆ mxHashCode

std::optional<size_t> ScPatternAttr::mxHashCode
mutableprivate

◆ pName

std::optional<OUString> ScPatternAttr::pName
private

Definition at line 55 of file patattr.hxx.

Referenced by Clone(), GetStyleName(), SetStyleSheet(), StyleToName(), and UpdateStyleSheet().

◆ pStyle

ScStyleSheet* ScPatternAttr::pStyle
private

Definition at line 57 of file patattr.hxx.

Referenced by Clone(), GetStyleName(), PutInPool(), SetStyleSheet(), StyleToName(), and UpdateStyleSheet().


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