LibreOffice Module sc (master) 1
|
Implementation of a single DataPilot field. More...
#include <dapiuno.hxx>
Public Member Functions | |
ScDataPilotFieldObj (ScDataPilotDescriptorBase &rParent, const ScFieldIdentifier &rIdent) | |
ScDataPilotFieldObj (ScDataPilotDescriptorBase &rParent, const ScFieldIdentifier &rIdent, css::uno::Any aOrient) | |
virtual | ~ScDataPilotFieldObj () override |
virtual OUString SAL_CALL | getName () override |
virtual void SAL_CALL | setName (const OUString &aName) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL | getItems () override |
css::sheet::DataPilotFieldOrientation | getOrientation () const |
void | setOrientation (css::sheet::DataPilotFieldOrientation Orientation) |
sal_Int16 | getFunction () const |
void | setFunction (ScGeneralFunction Function) |
css::uno::Sequence< sal_Int16 > | getSubtotals () const |
void | setSubtotals (const std::vector< ScGeneralFunction > &rFunctions) |
void | setCurrentPage (const OUString &sPage) |
void | setUseCurrentPage (bool bUse) |
const css::sheet::DataPilotFieldAutoShowInfo * | getAutoShowInfo () const |
void | setAutoShowInfo (const css::sheet::DataPilotFieldAutoShowInfo *pInfo) |
const css::sheet::DataPilotFieldLayoutInfo * | getLayoutInfo () const |
void | setLayoutInfo (const css::sheet::DataPilotFieldLayoutInfo *pInfo) |
const css::sheet::DataPilotFieldReference * | getReference () const |
void | setReference (const css::sheet::DataPilotFieldReference *pInfo) |
const css::sheet::DataPilotFieldSortInfo * | getSortInfo () const |
void | setSortInfo (const css::sheet::DataPilotFieldSortInfo *pInfo) |
bool | getShowEmpty () const |
void | setShowEmpty (bool bShow) |
bool | getRepeatItemLabels () const |
void | setRepeatItemLabels (bool bShow) |
bool | hasGroupInfo () const |
css::sheet::DataPilotFieldGroupInfo | getGroupInfo () |
void | setGroupInfo (const css::sheet::DataPilotFieldGroupInfo *pInfo) |
virtual css::uno::Reference< css::sheet::XDataPilotField > SAL_CALL | createNameGroup (const css::uno::Sequence< OUString > &aItems) override |
virtual css::uno::Reference< css::sheet::XDataPilotField > SAL_CALL | createDateGroup (const css::sheet::DataPilotFieldGroupInfo &rInfo) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Private Attributes | |
css::uno::Reference< css::container::XIndexAccess > | mxItems |
SfxItemPropertySet | maPropSet |
css::uno::Any | maOrient |
Additional Inherited Members | |
Protected Member Functions inherited from ScDataPilotChildObjBase | |
ScDataPilotChildObjBase (ScDataPilotDescriptorBase &rParent) | |
ScDataPilotChildObjBase (ScDataPilotDescriptorBase &rParent, ScFieldIdentifier aFieldId) | |
virtual | ~ScDataPilotChildObjBase () |
ScDPObject * | GetDPObject () const |
Returns the wrapped DataPilot object (calls GetDPObject() at parent). More... | |
void | SetDPObject (ScDPObject *pDPObject) |
Sets the passed DataPilot object (calls SetDPObject() at parent). More... | |
ScDPSaveDimension * | GetDPDimension (ScDPObject **ppDPObject=nullptr) const |
Returns the DataPilot dimension object related to the field described by maFieldId. More... | |
sal_Int32 | GetMemberCount () const |
Returns the number of members for the field described by maFieldId. More... | |
css::uno::Reference< css::sheet::XMembersAccess > | GetMembers () const |
Returns the collection of members for the field described by maFieldId. More... | |
ScDocShell * | GetDocShell () const |
Protected Attributes inherited from ScDataPilotChildObjBase | |
rtl::Reference< ScDataPilotDescriptorBase > | mxParent |
ScFieldIdentifier | maFieldId |
Implementation of a single DataPilot field.
Definition at line 386 of file dapiuno.hxx.
ScDataPilotFieldObj::ScDataPilotFieldObj | ( | ScDataPilotDescriptorBase & | rParent, |
const ScFieldIdentifier & | rIdent | ||
) |
Definition at line 1616 of file dapiuno.cxx.
ScDataPilotFieldObj::ScDataPilotFieldObj | ( | ScDataPilotDescriptorBase & | rParent, |
const ScFieldIdentifier & | rIdent, | ||
css::uno::Any | aOrient | ||
) |
|
overridevirtual |
Definition at line 1631 of file dapiuno.cxx.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
before (immediate) base
Definition at line 2549 of file dapiuno.cxx.
References ScDPDimensionSaveData::AddGroupDimension(), ScDPDimensionSaveData::CollectDateParts(), ScDPDimensionSaveData::CreateDateGroupDimName(), Exception, ScDPSaveGroupDimension::GetDateInfo(), ScDPSaveNumGroupDimension::GetDateInfo(), ScDPSaveData::GetDimensionByName(), ScDPSaveData::GetDimensionData(), ScDataPilotChildObjBase::GetDocShell(), ScDataPilotChildObjBase::GetDPDimension(), ScDPDimensionSaveData::GetFirstNamedGroupDim(), ScDPSaveGroupDimension::GetGroupDimName(), ScDPSaveNumGroupDimension::GetInfo(), ScDPDimensionSaveData::GetNamedGroupDim(), ScDPDimensionSaveData::GetNextNamedGroupDim(), ScDPDimensionSaveData::GetNumGroupDim(), ScDPSaveDimension::GetOrientation(), ScDPObject::GetSaveData(), ScDPSaveGroupDimension::GetSourceDimName(), ScDPNumGroupInfo::mbAutoEnd, ScDPNumGroupInfo::mbAutoStart, ScDPNumGroupInfo::mbDateValues, ScDPNumGroupInfo::mbEnable, ScDPNumGroupInfo::mfEnd, ScDPNumGroupInfo::mfStart, ScDPNumGroupInfo::mfStep, ScDataPilotChildObjBase::mxParent, ScDBDocFunc::RefreshPivotTableGroups(), ScDPSaveData::RemoveDimensionByName(), ScDPDimensionSaveData::RemoveGroupDimension(), ScDPDimensionSaveData::ReplaceNumGroupDimension(), ScDPSaveDimension::SetOrientation(), ScDPSaveData::SetPosition(), and ScDPObject::SetSaveData().
|
overridevirtual |
Also do this when removing groups? Handle this case dynamically with automatic groups?
ignore case?
before (immediate) base
Definition at line 2381 of file dapiuno.cxx.
References ScDPSaveGroupItem::AddElement(), ScDPSaveGroupItem::AddElementsFromGroup(), ScDPDimensionSaveData::AddGroupDimension(), ScDPSaveGroupDimension::AddGroupItem(), aEntryName, ScDPDimensionSaveData::CreateGroupDimName(), ScDPSaveGroupDimension::CreateGroupName(), comphelper::findValue(), cppu::getCaughtException(), ScDPSaveData::GetDimensionByName(), ScDPSaveData::GetDimensionData(), ScDataPilotChildObjBase::GetDocShell(), ScDataPilotChildObjBase::GetDPDimension(), ScDPSaveGroupDimension::GetGroupByIndex(), ScDPSaveGroupDimension::GetGroupCount(), ScDPDimensionSaveData::GetGroupDimAccForBase(), ScDPSaveGroupDimension::GetGroupDimName(), ScDPSaveGroupItem::GetGroupName(), ScDataPilotChildObjBase::GetMembers(), ScDPObject::GetName(), ScDPSaveGroupDimension::GetNamedGroup(), ScDPDimensionSaveData::GetNamedGroupDim(), ScDPSaveDimension::GetOrientation(), ScDPObject::GetSaveData(), ScDPSaveGroupDimension::GetSourceDimName(), ScDataPilotChildObjBase::mxParent, ScDBDocFunc::RefreshPivotTableGroups(), ScDPSaveGroupItem::RemoveElementsFromGroups(), ScDPSaveGroupDimension::RemoveFromGroups(), SAL_WARN, SAL_WARN_IF, ScResId(), ScDPSaveDimension::SetOrientation(), ScDPSaveData::SetPosition(), and ScDPObject::SetSaveData().
const DataPilotFieldAutoShowInfo * ScDataPilotFieldObj::getAutoShowInfo | ( | ) | const |
Definition at line 2111 of file dapiuno.cxx.
References ScDPSaveDimension::GetAutoShowInfo(), and ScDataPilotChildObjBase::GetDPDimension().
Referenced by getPropertyValue().
sal_Int16 ScDataPilotFieldObj::getFunction | ( | ) | const |
Definition at line 1973 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and condformat::dialog::NONE.
Referenced by getPropertyValue().
DataPilotFieldGroupInfo ScDataPilotFieldObj::getGroupInfo | ( | ) |
Definition at line 2229 of file dapiuno.cxx.
References Exception, ScDataPilotConversion::FillGroupInfo(), ScDataPilotChildObjBase::GetDPDimension(), ScDPSaveGroupItem::GetElementByIndex(), ScDPSaveGroupItem::GetElementCount(), ScDPSaveData::GetExistingDimensionData(), ScDPSaveGroupItem::GetGroupName(), ScDPObject::GetSaveData(), ScFieldGroup::maMembers, ScFieldGroup::maName, ScDataPilotChildObjBase::mxParent, and nCount.
Referenced by getPropertyValue().
|
overridevirtual |
|
overridevirtual |
Definition at line 1898 of file dapiuno.cxx.
References ScDataPilotChildObjBase::maFieldId, mxItems, and ScDataPilotChildObjBase::mxParent.
const DataPilotFieldLayoutInfo * ScDataPilotFieldObj::getLayoutInfo | ( | ) | const |
Definition at line 2129 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDPSaveDimension::GetLayoutInfo().
Referenced by getPropertyValue().
|
overridevirtual |
Definition at line 1637 of file dapiuno.cxx.
References aName, ScDataPilotChildObjBase::GetDPDimension(), and SC_DATALAYOUT_NAME.
Referenced by getPropertyValue(), and setGroupInfo().
DataPilotFieldOrientation ScDataPilotFieldObj::getOrientation | ( | ) | const |
Definition at line 1908 of file dapiuno.cxx.
References ScDPSaveDimension::GetOrientation().
Referenced by getPropertyValue().
|
overridevirtual |
Definition at line 1671 of file dapiuno.cxx.
References SfxItemPropertySet::getPropertyMap(), and maPropSet.
|
overridevirtual |
Definition at line 1805 of file dapiuno.cxx.
References Any, aSeq, getAutoShowInfo(), getFunction(), getGroupInfo(), getLayoutInfo(), getName(), getOrientation(), getReference(), getRepeatItemLabels(), getShowEmpty(), getSortInfo(), getSubtotals(), hasGroupInfo(), SC_UNONAME_AUTOSHOW, SC_UNONAME_FUNCTION, SC_UNONAME_FUNCTION2, SC_UNONAME_GROUPINFO, SC_UNONAME_HASAUTOSHOW, SC_UNONAME_HASLAYOUTINFO, SC_UNONAME_HASREFERENCE, SC_UNONAME_HASSORTINFO, SC_UNONAME_ISGROUP, SC_UNONAME_LAYOUTINFO, SC_UNONAME_NAME, SC_UNONAME_ORIENT, SC_UNONAME_REFERENCE, SC_UNONAME_REPEATITEMLABELS, SC_UNONAME_SELPAGE, SC_UNONAME_SHOWEMPTY, SC_UNONAME_SORTINFO, SC_UNONAME_SUBTOTALS, SC_UNONAME_SUBTOTALS2, and SC_UNONAME_USESELPAGE.
const DataPilotFieldReference * ScDataPilotFieldObj::getReference | ( | ) | const |
Definition at line 2147 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDPSaveDimension::GetReferenceValue().
Referenced by getPropertyValue().
bool ScDataPilotFieldObj::getRepeatItemLabels | ( | ) | const |
Definition at line 2201 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDPSaveDimension::GetRepeatItemLabels().
Referenced by getPropertyValue().
bool ScDataPilotFieldObj::getShowEmpty | ( | ) | const |
Definition at line 2183 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDPSaveDimension::GetShowEmpty().
Referenced by getPropertyValue().
const DataPilotFieldSortInfo * ScDataPilotFieldObj::getSortInfo | ( | ) | const |
Definition at line 2165 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDPSaveDimension::GetSortInfo().
Referenced by getPropertyValue().
Sequence< sal_Int16 > ScDataPilotFieldObj::getSubtotals | ( | ) | const |
Definition at line 2016 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and nCount.
Referenced by getPropertyValue().
|
overridevirtual |
bool ScDataPilotFieldObj::hasGroupInfo | ( | ) | const |
Definition at line 2219 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), ScDPSaveData::GetExistingDimensionData(), and ScDPObject::GetSaveData().
Referenced by getPropertyValue().
|
overridevirtual |
|
overridevirtual |
References getOrientation().
void ScDataPilotFieldObj::setAutoShowInfo | ( | const css::sheet::DataPilotFieldAutoShowInfo * | pInfo | ) |
Definition at line 2118 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDataPilotChildObjBase::SetDPObject().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setCurrentPage | ( | const OUString & | sPage | ) |
Definition at line 2080 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDataPilotChildObjBase::SetDPObject().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setFunction | ( | ScGeneralFunction | Function | ) |
Definition at line 1993 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), ScDPSaveDimension::GetOrientation(), NONE, ScDataPilotChildObjBase::SetDPObject(), ScDPSaveDimension::SetFunction(), and ScDPSaveDimension::SetSubTotals().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setGroupInfo | ( | const css::sheet::DataPilotFieldGroupInfo * | pInfo | ) |
Definition at line 2288 of file dapiuno.cxx.
References ScDPSaveGroupItem::AddElement(), ScDPSaveGroupDimension::AddGroupItem(), ScDPDimensionSaveData::AddNumGroupDimension(), ScDPSaveData::GetDimensionData(), ScDataPilotChildObjBase::GetDPDimension(), getName(), ScDPDimensionSaveData::GetNumGroupDimAcc(), ScDPObject::GetSaveData(), i, ScDPNumGroupInfo::mbAutoEnd, ScDPNumGroupInfo::mbAutoStart, ScDPNumGroupInfo::mbDateValues, ScDPNumGroupInfo::mbEnable, ScDPNumGroupInfo::mfEnd, ScDPNumGroupInfo::mfStart, ScDPNumGroupInfo::mfStep, nCount, ScDPDimensionSaveData::ReplaceGroupDimension(), ScDPSaveGroupDimension::SetDateInfo(), ScDPSaveNumGroupDimension::SetDateInfo(), ScDPSaveData::SetDimensionData(), ScDataPilotChildObjBase::SetDPObject(), ScDPSaveNumGroupDimension::SetGroupInfo(), and ScDPObject::SetSaveData().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setLayoutInfo | ( | const css::sheet::DataPilotFieldLayoutInfo * | pInfo | ) |
Definition at line 2136 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDataPilotChildObjBase::SetDPObject().
Referenced by setPropertyValue().
|
overridevirtual |
Definition at line 1657 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), ScDPSaveDimension::IsDataLayout(), ScDataPilotChildObjBase::SetDPObject(), and ScDPSaveDimension::SetLayoutName().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setOrientation | ( | css::sheet::DataPilotFieldOrientation | Orientation | ) |
Definition at line 1915 of file dapiuno.cxx.
References ScDPSaveData::DuplicateDimension(), ScDPSaveData::GetDimensions(), ScDataPilotChildObjBase::GetDPDimension(), ScDPSaveDimension::GetOrientation(), ScDPObject::GetSaveData(), ScDataPilotChildObjBase::maFieldId, ScFieldIdentifier::maFieldName, maOrient, ScFieldIdentifier::mbDataLayout, ScFieldIdentifier::mnFieldIdx, ScDataPilotChildObjBase::SetDPObject(), ScDPSaveDimension::SetOrientation(), and ScDPSaveData::SetPosition().
Referenced by setPropertyValue().
|
overridevirtual |
test for correct enum type?
Definition at line 1679 of file dapiuno.cxx.
References cppu::any2bool(), aSeq, ScUnoHelpFunctions::GetEnumFromAny(), ScUnoHelpFunctions::GetInt16FromAny(), nValue, SC_UNONAME_AUTOSHOW, SC_UNONAME_FUNCTION, SC_UNONAME_FUNCTION2, SC_UNONAME_GROUPINFO, SC_UNONAME_HASAUTOSHOW, SC_UNONAME_HASLAYOUTINFO, SC_UNONAME_HASREFERENCE, SC_UNONAME_HASSORTINFO, SC_UNONAME_ISGROUP, SC_UNONAME_LAYOUTINFO, SC_UNONAME_NAME, SC_UNONAME_ORIENT, SC_UNONAME_REFERENCE, SC_UNONAME_REPEATITEMLABELS, SC_UNONAME_SELPAGE, SC_UNONAME_SHOWEMPTY, SC_UNONAME_SORTINFO, SC_UNONAME_SUBTOTALS, SC_UNONAME_SUBTOTALS2, SC_UNONAME_USESELPAGE, setAutoShowInfo(), setCurrentPage(), setFunction(), setGroupInfo(), setLayoutInfo(), setName(), setOrientation(), setReference(), setRepeatItemLabels(), setShowEmpty(), setSortInfo(), setSubtotals(), setUseCurrentPage(), and sName.
void ScDataPilotFieldObj::setReference | ( | const css::sheet::DataPilotFieldReference * | pInfo | ) |
Definition at line 2154 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDataPilotChildObjBase::SetDPObject().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setRepeatItemLabels | ( | bool | bShow | ) |
Definition at line 2208 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDataPilotChildObjBase::SetDPObject().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setShowEmpty | ( | bool | bShow | ) |
Definition at line 2190 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDataPilotChildObjBase::SetDPObject().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setSortInfo | ( | const css::sheet::DataPilotFieldSortInfo * | pInfo | ) |
Definition at line 2172 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), and ScDataPilotChildObjBase::SetDPObject().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setSubtotals | ( | const std::vector< ScGeneralFunction > & | rFunctions | ) |
Definition at line 2038 of file dapiuno.cxx.
References AUTO, ScDataPilotChildObjBase::GetDPDimension(), ScDPSaveDimension::GetOrientation(), nCount, NONE, ScDataPilotChildObjBase::SetDPObject(), and ScDPSaveDimension::SetSubTotals().
Referenced by setPropertyValue().
void ScDataPilotFieldObj::setUseCurrentPage | ( | bool | bUse | ) |
Definition at line 2091 of file dapiuno.cxx.
References ScDataPilotChildObjBase::GetDPDimension(), ScDPSaveDimension::SetCurrentPage(), and ScDataPilotChildObjBase::SetDPObject().
Referenced by setPropertyValue().
|
overridevirtual |
|
private |
Definition at line 464 of file dapiuno.hxx.
Referenced by setOrientation().
|
private |
Definition at line 463 of file dapiuno.hxx.
Referenced by getPropertySetInfo().
|
private |
Definition at line 462 of file dapiuno.hxx.
Referenced by getItems().