/* -*- 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/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_DBACCESS_SOURCE_EXT_MACROMIGRATION_RANGEPROGRESSBAR_HXX #define INCLUDED_DBACCESS_SOURCE_EXT_MACROMIGRATION_RANGEPROGRESSBAR_HXX #include namespace dbmm { // RangeProgressBar /** a slight extension of the usual progress bar, which is able to remember a range */ class RangeProgressBar { public: RangeProgressBar(ProgressBar *pBar = NULL) : m_pBar(pBar) , m_nRange(0) { } void Set(ProgressBar *pBar) { m_pBar = pBar; } void SetRange(sal_uInt32 _nRange) { m_nRange = _nRange; if ( !m_nRange ) m_nRange = 100; } sal_uInt32 GetRange() const { return m_nRange; } void SetValue(sal_uInt32 _nValue) { m_pBar->SetValue( (sal_uInt16)( 100.0 * _nValue / m_nRange ) ); } sal_uInt32 GetValue() const { return (sal_uInt32)(m_pBar->GetValue() / 100.0 * m_nRange); } private: ProgressBar *m_pBar; sal_uInt32 m_nRange; }; } // namespace dbmm #endif // INCLUDED_DBACCESS_SOURCE_EXT_MACROMIGRATION_RANGEPROGRESSBAR_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ > LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/framework/source/uielement/uicommanddescription.cxx
AgeCommit message (Expand)Author
2021-03-20use single-use attribute for UICommandDescriptionNoel
2021-02-21loplugin:refcounting in frameworkNoel
2021-01-09fix coverity parse errorsCaolán McNamara
2020-12-29loplugin:stringviewparam: operator +Stephan Bergmann
2020-12-26New loplugin:stringliteralvarStephan Bergmann
2020-09-18lok: make labels and tooltips translated for commandsSzymon Kłos
2020-08-14loplugin:simplifybool moreNoel Grandin
2020-07-01Upcoming improved loplugin:staticanonymous -> redundantstatic: frameworkStephan Bergmann
2020-05-21use for-range on Sequence in f*Noel Grandin
2020-04-08loplugin:flatten in frameworkNoel Grandin
2019-12-19sal_Char->char in forms..frameworkNoel Grandin
2019-11-24cppcheck: performing init in init list (filter/fpicker/framework)Julien Nabet
2019-11-22Extend loplugin:external to warn about classesStephan Bergmann
2019-11-20tdf#42949 Fix IWYU warnings in framework/*/*cxxGabor Kelemen
2019-02-11new loplugin writeonlyvarsNoel Grandin
2018-10-26loplugin:singlevalfields improvementNoel Grandin
2017-12-11loplugin:salcall fix functionsNoel Grandin
2017-12-05loplugin:salcall fix non-virtual methodsNoel Grandin
2017-10-26More loplugin:unnecessaryparenStephan Bergmann
2017-10-23loplugin:includeform: frameworkStephan Bergmann
2017-10-23overload std::hash for OUString and OStringNoel Grandin
2017-08-11convert std::map::insert to std::map::emplaceNoel Grandin
2017-07-25use more comphelper::InitAnyPropertySequenceNoel Grandin
2017-05-12remove unused uno::Reference varsNoel Grandin
2017-01-26Remove dynamic exception specificationsStephan Bergmann
2016-11-07loplugin:oncevar in frameworkNoel Grandin
2016-10-18Make 'IsExperimental' property booleanSamuel Mehrbrodt
2016-10-13-Werror=reorderMaxim Monastirsky
2016-10-13Add experimental flag for CommandsSamuel Mehrbrodt
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
2016-08-26tdf#100726 - Improve readability of OUString concatanationsGökhan Gurbetoğlu