/* -*- 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 class TemplateViewItem : public ThumbnailViewItem { public: TemplateViewItem (ThumbnailViewBase &rView, sal_uInt16 nId); virtual ~TemplateViewItem () override; void setPath (const OUString &rPath) { maPath = rPath; } const OUString& getPath () const { return maPath; } void showDefaultIcon(bool bVal) { mbIsDefaultTemplate = bVal; } bool IsDefaultTemplate() const { return mbIsDefaultTemplate; } tools::Rectangle getDefaultIconArea() const; virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor, const ThumbnailItemAttributes *pAttrs) override; sal_uInt16 mnRegionId; sal_uInt16 mnDocId; private: OUString maPath; BitmapEx maDefaultBitmap; bool mbIsDefaultTemplate; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ mini/cg-4.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sysui/desktop/freedesktop
AgeCommit message (Expand)Author
2019-07-31sysui: fix rpm errors in freedesktop-menus (4.14.1)Michael Stahl
2018-10-24don't try to verify .desktop files when building the menus.rpmChristian Lohmaier
2018-06-17fix packaging break after bindir handling & new iconsChristian Lohmaier
2018-06-02Removed executable permission on data filesAndrea Gelmini
2018-01-18Resolves: rhbz#1535541 fdo#88004 mimetypes are .macroEnabled not .macroenabledCaolán McNamara
2018-01-05Include new .svg icons in freedesktop-menus.specStephan Bergmann
2017-08-15deb#872001: stop shipping mimelnk desktop filesRene Engelhard
2017-03-25Fix typosAndrea Gelmini