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:
Julien Nabet 2016-12-10 14:40:47 +01:00
parent 316f938d63
commit 1fce5b024e
5 changed files with 15 additions and 0 deletions

View File

@ -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);

View File

@ -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
{

View File

@ -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;

View File

@ -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 );

View File

@ -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() )