diff options
Diffstat (limited to 'sfx2/source/control/templateview.cxx')
-rw-r--r-- | sfx2/source/control/templateview.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sfx2/source/control/templateview.cxx b/sfx2/source/control/templateview.cxx index 4a44ea0d6004..7073a6f90474 100644 --- a/sfx2/source/control/templateview.cxx +++ b/sfx2/source/control/templateview.cxx @@ -9,6 +9,7 @@ #include "templatedlg.hxx" #include <sfx2/templateview.hxx> +#include <sfx2/templateabstractview.hxx> #include <basegfx/matrix/b2dhommatrixtools.hxx> #include <basegfx/point/b2dpoint.hxx> @@ -34,6 +35,7 @@ using namespace drawinglayer::primitive2d; TemplateView::TemplateView (Window *pParent) : ThumbnailView(pParent,WB_VSCROLL), + mpMasterView(NULL), maButtons(this, SfxResId(CONTROL_BUTTONS)), maAllButton(&maButtons, SfxResId(BTN_ALL_TEMPLATES)), maFTName(&maButtons, SfxResId(FT_NAME)), @@ -61,6 +63,8 @@ void TemplateView::InsertItems (const std::vector<TemplateItemProperties> &rTemp const TemplateItemProperties *pCur = &rTemplates[i]; pItem->mnId = pCur->nId; + pItem->mnDocId = pCur->nDocId; + pItem->mnRegionId = pCur->nRegionId; pItem->maTitle = pCur->aName; pItem->setPath(pCur->aPath); pItem->maPreview1 = pCur->aThumbnail; @@ -96,6 +100,12 @@ void TemplateView::Resize() ThumbnailView::Resize(); } +void TemplateView::renameItem(ThumbnailViewItem* pItem, rtl::OUString sNewTitle) +{ + if (mpMasterView) + mpMasterView->renameItem(pItem, sNewTitle); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |