/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include #include class TemplateDlgLocalView final : public TemplateLocalView, public ListView { public: TemplateDlgLocalView(std::unique_ptr xWindow, std::unique_ptr xMenu, std::unique_ptr xTreeView); void setTemplateViewMode(TemplateViewMode eMode); virtual void showAllTemplates() override; void showRegion(TemplateContainerItem const* pItem); void showRegion(std::u16string_view rName); void reload(); virtual bool KeyInput(const KeyEvent& rKEvt) override; void createContextMenu(const bool bIsDefault, const bool bIsBuiltIn, const bool bIsSingleSel, const OUString& rDefaultImg); virtual void Show() override; virtual void Hide() override; bool IsVisible() const; void connect_focus_rect(const Link& rLink) { GetDrawingArea()->connect_focus_rect(rLink); } void MakeItemVisible(sal_uInt16 nId) { ThumbnailView::MakeItemVisible(nId); } void insertItems(const std::vector& rTemplates, bool isRegionSelected, bool bShowCategoryInTooltip); private: void ContextMenuSelectHdl(std::string_view rIdent); void insertFilteredItems(); void syncCursor(); void updateSelection(); DECL_LINK(RowActivatedHdl, weld::TreeView&, bool); DECL_LINK(ListViewChangedHdl, weld::TreeView&, void); DECL_LINK(PopupMenuHdl, const CommandEvent&, bool); DECL_LINK(KeyPressHdl, const KeyEvent&, bool); TemplateViewMode mViewMode; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ option> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2012-07-02targetted improvement of UNO API includes / usageMichael Meeks
2012-06-28Bug fix: now skip effect work correctly with repeated animationsMarco Cecchetti
2012-06-28Fixed a bug that prevented repeated animations to work properly when the repe...Marco Cecchetti
2012-06-28Added support for the repeatCount attribute for time containers.Marco Cecchetti
2012-06-28Now to animations and repeated to animations are handled by the C++ presentat...Marco Cecchetti
2012-06-27targetted re-work of cppunit pieces.Michael Meeks
2012-06-25callcatcher: update listCaolán McNamara
2012-06-23WaE on Mac SDK > 10.4Norbert Thiebaud
2012-06-22remove bunch of obsolete looking .dxp filesMichael Stahl
2012-06-22remove bunch of obsolete looking .flt filesMichael Stahl
2012-06-21replace all but one .hdl include with equivalent .hpp includes.Michael Meeks
2012-06-21re-base on ALv2 code.Michael Meeks
2012-06-21re-base on ALv2 code.Michael Meeks
2012-06-02targeted string re-workNorbert Thiebaud
2012-05-29group external headers togetherMatúš Kukan
2012-05-16remove unneeded include of boost/bind.hppCaolán McNamara
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen
2012-04-24Bin commented-out codeTor Lillqvist
2012-04-24WaE: assigning to 'AquaOpenGLView *' from incompatible type 'NSOpenGLView *'Tor Lillqvist
2012-04-24Add hopefully helpful commentTor Lillqvist
2012-04-24WaE: 'SceneObject' has virtual functions but non-virtual destructorTor Lillqvist
2012-04-24WaE: incompatible pointer types: 'long *' vs. 'const GLint *'Tor Lillqvist
2012-04-16animations is not api, it should be animations_inc packageMatúš Kukan
2012-04-12callcatcher: update unused code listCaolán McNamara
2012-04-11callcatcher: update listCaolán McNamara
2012-04-10fix buildCaolán McNamara
2012-04-10Remove VERBOSE part 3Rob Snelders
2012-04-08Replaced a few equal calls with ==Szabolcs Dezsi
2012-04-08LinkTarget.mk: remove gb_LinkTarget_add_package_headersMichael Stahl
2012-04-08gbuild: "use" vs. "add":Michael Stahl
2012-04-08Fix Prefer prefix ++/-- operatorsJulien Nabet
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-03-21chmod -xTor Lillqvist
2012-03-16Add COMPHELPER_SERVICEDECL_EXPORTS* back in, after libmerge changesThorsten Behrens
2012-03-16Clear whole layer in slideshow sprites fdo#45219Thorsten Behrens
2012-03-16Clear sprites to white fdo#45219.Thorsten Behrens
2012-03-16Clear full sprite area for fdo#45219Thorsten Behrens
2012-03-14Enable -Wnon-virtual-dtor for GCC 4.6Stephan Bergmann
2012-03-10gbuild: get rid of realpath in gb_Foo_set_includeMatúš Kukan
2012-03-08remove duplicate statementDavid Tardon
2012-03-01New IMPL_LINK_NOARG to work around SAL_UNUSED_PARAMETER problemStephan Bergmann
2012-02-21Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))Takeshi Abe
2012-02-17remove duplicated assignmentDavid Tardon
2012-02-13EasyHack: Removed gcc conditionalsAlexander Bergmann
2012-02-10fdo#39491 -I$(OUTDIR)/inc is set in SOLARINCMatúš Kukan
2012-02-05switch to include-based build rather than sourced-based buildNorbert Thiebaud
2012-02-04add missing README to animation, sc, sd, slideshow, starmath, swJosh Heidenreich
2012-01-24String->rtl::OUStringCaolán McNamara