tdf#104534: Retrieve list of patterns
using same way as gradients, bitmap, etc. Change-Id: I49788d5af163aa6f06a12c87ee08e6599fc940c8 Reviewed-on: https://gerrit.libreoffice.org/31833 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
parent
316f938d63
commit
1fce5b024e
@ -522,6 +522,7 @@ void SchAttribTabDlg::PageCreated(sal_uInt16 nId, SfxTabPage &rPage)
|
||||
aSet.Put(SvxGradientListItem(m_pViewElementListProvider->GetGradientList(),SID_GRADIENT_LIST));
|
||||
aSet.Put(SvxHatchListItem(m_pViewElementListProvider->GetHatchList(),SID_HATCH_LIST));
|
||||
aSet.Put(SvxBitmapListItem(m_pViewElementListProvider->GetBitmapList(),SID_BITMAP_LIST));
|
||||
aSet.Put(SvxPatternListItem(m_pViewElementListProvider->GetPatternList(),SID_PATTERN_LIST));
|
||||
aSet.Put(SfxUInt16Item(SID_PAGE_TYPE,0));
|
||||
aSet.Put(SfxUInt16Item(SID_DLG_TYPE,nDlgType));
|
||||
rPage.PageCreated(aSet);
|
||||
|
@ -98,6 +98,13 @@ XBitmapListRef ViewElementListProvider::GetBitmapList() const
|
||||
return XBitmapListRef();
|
||||
}
|
||||
|
||||
XPatternListRef ViewElementListProvider::GetPatternList() const
|
||||
{
|
||||
if(m_pDrawModelWrapper)
|
||||
return m_pDrawModelWrapper->GetPatternList();
|
||||
return XPatternListRef();
|
||||
}
|
||||
|
||||
//create chartspecific symbols for linecharts
|
||||
SdrObjList* ViewElementListProvider::GetSymbolList() const
|
||||
{
|
||||
|
@ -41,6 +41,7 @@ public:
|
||||
XGradientListRef GetGradientList() const;
|
||||
XHatchListRef GetHatchList() const;
|
||||
XBitmapListRef GetBitmapList() const;
|
||||
XPatternListRef GetPatternList() const;
|
||||
|
||||
//create chartspecific symbols for linecharts
|
||||
SdrObjList* GetSymbolList() const;
|
||||
|
@ -79,6 +79,7 @@ public:
|
||||
XGradientListRef GetGradientList() const;
|
||||
XHatchListRef GetHatchList() const;
|
||||
XBitmapListRef GetBitmapList() const;
|
||||
XPatternListRef GetPatternList() const;
|
||||
|
||||
SdrObject* getNamedSdrObject( const OUString& rName );
|
||||
static SdrObject* getNamedSdrObject( const OUString& rName, SdrObjList* pObjList );
|
||||
|
@ -285,6 +285,11 @@ XBitmapListRef DrawModelWrapper::GetBitmapList() const
|
||||
return this->SdrModel::GetBitmapList();
|
||||
}
|
||||
|
||||
XPatternListRef DrawModelWrapper::GetPatternList() const
|
||||
{
|
||||
return this->SdrModel::GetPatternList();
|
||||
}
|
||||
|
||||
SdrObject* DrawModelWrapper::getNamedSdrObject( const OUString& rName )
|
||||
{
|
||||
if( rName.isEmpty() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user