LibreOffice Module sfx2 (master) 1
|
#include <sfx2/templatedlg.hxx>
#include <sfx2/inputdlg.hxx>
#include <sfx2/module.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/string.hxx>
#include <comphelper/storagehelper.hxx>
#include <sfx2/app.hxx>
#include <sfx2/docfac.hxx>
#include <sfx2/docfilt.hxx>
#include <sfx2/fcontnr.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/sfxresid.hxx>
#include <sfx2/templatedlglocalview.hxx>
#include <templatecontaineritem.hxx>
#include <templateviewitem.hxx>
#include <sfx2/thumbnailviewitem.hxx>
#include <sot/storage.hxx>
#include <tools/urlobj.hxx>
#include <unotools/moduleoptions.hxx>
#include <unotools/pathoptions.hxx>
#include <unotools/viewoptions.hxx>
#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/document/MacroExecMode.hpp>
#include <com/sun/star/document/UpdateDocMode.hpp>
#include <com/sun/star/embed/XStorage.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
#include <comphelper/dispatchcommand.hxx>
#include <sfx2/strings.hrc>
#include <bitmaps.hlst>
Go to the source code of this file.
Macros | |
#define | MNI_ALL_APPLICATIONS 0 |
#define | MNI_WRITER 1 |
#define | MNI_CALC 2 |
#define | MNI_IMPRESS 3 |
#define | MNI_DRAW 4 |
Variables | |
constexpr OUStringLiteral | TM_SETTING_MANAGER = u"TemplateManager" |
constexpr OUStringLiteral | TM_SETTING_LASTFOLDER = u"LastFolder" |
constexpr OUStringLiteral | TM_SETTING_LASTAPPLICATION = u"LastApplication" |
constexpr OUStringLiteral | TM_SETTING_VIEWMODE = u"ViewMode" |
constexpr OUStringLiteral | MNI_ACTION_NEW_FOLDER = u"new" |
constexpr OUStringLiteral | MNI_ACTION_RENAME_FOLDER = u"rename" |
constexpr OUStringLiteral | MNI_ACTION_DELETE_FOLDER = u"delete" |
constexpr OUStringLiteral | MNI_ACTION_DEFAULT = u"default" |
constexpr OUStringLiteral | MNI_ACTION_DEFAULT_WRITER = u"default_writer" |
constexpr OUStringLiteral | MNI_ACTION_DEFAULT_CALC = u"default_calc" |
constexpr OUStringLiteral | MNI_ACTION_DEFAULT_IMPRESS = u"default_impress" |
constexpr OUStringLiteral | MNI_ACTION_DEFAULT_DRAW = u"default_draw" |
constexpr OUStringLiteral | MNI_ACTION_IMPORT = u"import_template" |
constexpr OUStringLiteral | MNI_ACTION_EXTENSIONS = u"extensions" |
#define MNI_ALL_APPLICATIONS 0 |
Definition at line 71 of file templatedlg.cxx.
#define MNI_CALC 2 |
Definition at line 73 of file templatedlg.cxx.
#define MNI_DRAW 4 |
Definition at line 75 of file templatedlg.cxx.
#define MNI_IMPRESS 3 |
Definition at line 74 of file templatedlg.cxx.
#define MNI_WRITER 1 |
Definition at line 72 of file templatedlg.cxx.
|
static |
Definition at line 149 of file templatedlg.cxx.
References ThumbnailViewItem::mnId.
IMPL_LINK | ( | SfxTemplateManagerDlg | , |
CreateContextMenuHdl | , | ||
ThumbnailViewItem * | , | ||
pItem | , | ||
void | |||
) |
Definition at line 662 of file templatedlg.cxx.
References CALC, DRAW, INetURLObject::getExtension(), TemplateViewItem::getPath(), IMPRESS, ViewFilter_Application::isFilteredExtension(), TemplateLocalView::IsInternalTemplate(), and WRITER.
IMPL_LINK | ( | SfxTemplateManagerDlg | , |
DefaultTemplateHdl | , | ||
ThumbnailViewItem * | , | ||
pItem | , | ||
void | |||
) |
Definition at line 775 of file templatedlg.cxx.
References TemplateViewItem::getPath(), SfxObjectFactory::GetStandardTemplate(), TemplateViewItem::IsDefaultTemplate(), lcl_getServiceName(), SfxObjectFactory::SetStandardTemplate(), and TemplateViewItem::showDefaultIcon().
IMPL_LINK | ( | SfxTemplateManagerDlg | , |
EditTemplateHdl | , | ||
ThumbnailViewItem * | , | ||
pItem | , | ||
void | |||
) |
Definition at line 726 of file templatedlg.cxx.
References TemplateViewItem::getPath(), m_xDialog, comphelper::makePropertyValue(), and RET_OK.
IMPL_LINK | ( | SfxTemplateManagerDlg | , |
KeyInputHdl | , | ||
const KeyEvent & | , | ||
rKeyEvent | , | ||
bool | |||
) |
Definition at line 269 of file templatedlg.cxx.
References vcl::KeyCode::GetCode(), and KEY_ESCAPE.
IMPL_LINK | ( | SfxTemplateManagerDlg | , |
MenuSelectHdl | , | ||
const OUString & | , | ||
rIdent | , | ||
void | |||
) |
Definition at line 511 of file templatedlg.cxx.
References MNI_ACTION_DEFAULT, MNI_ACTION_DEFAULT_CALC, MNI_ACTION_DEFAULT_DRAW, MNI_ACTION_DEFAULT_IMPRESS, MNI_ACTION_DEFAULT_WRITER, MNI_ACTION_DELETE_FOLDER, MNI_ACTION_EXTENSIONS, MNI_ACTION_IMPORT, MNI_ACTION_NEW_FOLDER, and MNI_ACTION_RENAME_FOLDER.
IMPL_LINK | ( | SfxTemplateManagerDlg | , |
OpenTemplateHdl | , | ||
ThumbnailViewItem * | , | ||
pItem | , | ||
void | |||
) |
Definition at line 703 of file templatedlg.cxx.
References TemplateViewItem::getPath(), m_xDialog, comphelper::makePropertyValue(), and RET_OK.
IMPL_LINK | ( | SfxTemplateManagerDlg | , |
TVItemStateHdl | , | ||
const ThumbnailViewItem * | , | ||
pItem | , | ||
void | |||
) |
Definition at line 503 of file templatedlg.cxx.
IMPL_LINK | ( | SfxTemplateSelectionDlg | , |
OpenTemplateHdl | , | ||
ThumbnailViewItem * | , | ||
pItem | , | ||
void | |||
) |
Definition at line 1378 of file templatedlg.cxx.
References TemplateViewItem::getPath(), m_xDialog, and RET_OK.
IMPL_LINK_NOARG | ( | SfxTemplateCategoryDialog | , |
NewCategoryEditHdl | , | ||
weld::Entry & | , | ||
void | |||
) |
Definition at line 1283 of file templatedlg.cxx.
References comphelper::string::strip().
IMPL_LINK_NOARG | ( | SfxTemplateCategoryDialog | , |
SelectCategoryHdl | , | ||
weld::TreeView & | , | ||
void | |||
) |
Definition at line 1300 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
DeleteTemplateHdl | , | ||
void * | , | ||
void | |||
) |
Definition at line 749 of file templatedlg.cxx.
References Application::CreateMessageDialog(), m_xDialog, ThumbnailViewItem::maTitle, TemplateViewItem::mnDocId, TemplateViewItem::mnRegionId, and SfxResId().
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
ExportTemplateHdl | , | ||
void * | , | ||
void | |||
) |
Definition at line 601 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
FocusRectLocalHdl | , | ||
weld::Widget & | , | ||
tools::Rectangle | |||
) |
Definition at line 835 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
GetFocusHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 860 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
ImplUpdateDataHdl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 810 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
ListViewHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 824 of file templatedlg.cxx.
References eListView.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
LoseFocusHdl | , | ||
weld::Widget & | , | ||
void | |||
) |
Definition at line 815 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
MoveTemplateHdl | , | ||
void * | , | ||
void | |||
) |
Definition at line 568 of file templatedlg.cxx.
References SfxTemplateCategoryDialog::GetSelectedCategory(), SfxTemplateCategoryDialog::IsNewCategoryCreated(), m_xDialog, RET_OK, weld::DialogController::run(), and SfxTemplateCategoryDialog::SetCategoryLBEntries().
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
OkClickHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 562 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
OpenRegionHdl | , | ||
void * | , | ||
void | |||
) |
Definition at line 655 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
SearchUpdateHdl | , | ||
weld::Entry & | , | ||
void | |||
) |
Definition at line 805 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
SelectApplicationHdl | , | ||
weld::ComboBox & | , | ||
void | |||
) |
Definition at line 478 of file templatedlg.cxx.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
SelectRegionHdl | , | ||
weld::ComboBox & | , | ||
void | |||
) |
Definition at line 485 of file templatedlg.cxx.
References MNI_ACTION_DELETE_FOLDER, and MNI_ACTION_RENAME_FOLDER.
IMPL_LINK_NOARG | ( | SfxTemplateManagerDlg | , |
ThumbnailViewHdl | , | ||
weld::Toggleable & | , | ||
void | |||
) |
Definition at line 829 of file templatedlg.cxx.
References eThumbnailView.
IMPL_LINK_NOARG | ( | SfxTemplateSelectionDlg | , |
OkClickHdl | , | ||
weld::Button & | , | ||
void | |||
) |
Definition at line 1386 of file templatedlg.cxx.
References TemplateViewItem::getPath(), m_xDialog, and RET_OK.
IMPL_LINK_NOARG | ( | SfxTemplateSelectionDlg | , |
TimeOut | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 1373 of file templatedlg.cxx.
References m_xDialog.
|
static |
Definition at line 1242 of file templatedlg.cxx.
References aServiceNames, SvtModuleOptions::ClassifyFactoryByName(), SvtModuleOptions::GetAllServiceNames(), SvtModuleOptions::GetFactoryEmptyDocumentURL(), SfxObjectFactory::GetStandardTemplate(), and SvtModuleOptions::WRITER.
Referenced by SfxTemplateManagerDlg::updateMenuItems().
|
static |
Definition at line 1214 of file templatedlg.cxx.
References SfxFilterMatcher::GetFilter4ClipBoardId(), SfxApplication::GetFilterMatcher(), SotStorage::GetFormatID(), comphelper::OStorageHelper::GetStorageFromURL(), and SfxGetpApp().
Referenced by IMPL_LINK().
|
constexpr |
Definition at line 64 of file templatedlg.cxx.
Referenced by IMPL_LINK(), SfxTemplateManagerDlg::SfxTemplateManagerDlg(), and SfxTemplateManagerDlg::updateMenuItems().
|
constexpr |
Definition at line 66 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::DefaultTemplateMenuSelectHdl(), IMPL_LINK(), SfxTemplateManagerDlg::SfxTemplateManagerDlg(), and SfxTemplateManagerDlg::updateMenuItems().
|
constexpr |
Definition at line 68 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::DefaultTemplateMenuSelectHdl(), IMPL_LINK(), SfxTemplateManagerDlg::SfxTemplateManagerDlg(), and SfxTemplateManagerDlg::updateMenuItems().
|
constexpr |
Definition at line 67 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::DefaultTemplateMenuSelectHdl(), IMPL_LINK(), SfxTemplateManagerDlg::SfxTemplateManagerDlg(), and SfxTemplateManagerDlg::updateMenuItems().
|
constexpr |
Definition at line 65 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::DefaultTemplateMenuSelectHdl(), IMPL_LINK(), SfxTemplateManagerDlg::SfxTemplateManagerDlg(), and SfxTemplateManagerDlg::updateMenuItems().
|
constexpr |
Definition at line 63 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::fillFolderComboBox(), SfxTemplateManagerDlg::getApplicationSpecificSettings(), IMPL_LINK(), IMPL_LINK_NOARG(), SfxTemplateManagerDlg::OnCategoryDelete(), SfxTemplateManagerDlg::readSettings(), and SfxTemplateManagerDlg::SfxTemplateManagerDlg().
|
constexpr |
Definition at line 70 of file templatedlg.cxx.
Referenced by IMPL_LINK(), and SfxTemplateManagerDlg::SfxTemplateManagerDlg().
|
constexpr |
Definition at line 69 of file templatedlg.cxx.
Referenced by IMPL_LINK(), and SfxTemplateManagerDlg::SfxTemplateManagerDlg().
|
constexpr |
Definition at line 61 of file templatedlg.cxx.
Referenced by IMPL_LINK(), and SfxTemplateManagerDlg::SfxTemplateManagerDlg().
|
constexpr |
Definition at line 62 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::fillFolderComboBox(), SfxTemplateManagerDlg::getApplicationSpecificSettings(), IMPL_LINK(), IMPL_LINK_NOARG(), SfxTemplateManagerDlg::OnCategoryDelete(), SfxTemplateManagerDlg::readSettings(), and SfxTemplateManagerDlg::SfxTemplateManagerDlg().
|
constexpr |
Definition at line 58 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::readSettings(), and SfxTemplateManagerDlg::writeSettings().
|
constexpr |
Definition at line 57 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::readSettings(), and SfxTemplateManagerDlg::writeSettings().
|
constexpr |
Definition at line 56 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::readSettings(), and SfxTemplateManagerDlg::writeSettings().
|
constexpr |
Definition at line 59 of file templatedlg.cxx.
Referenced by SfxTemplateManagerDlg::readSettings(), and SfxTemplateManagerDlg::writeSettings().