/* -*- 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_CPPU_ENTERABLE_HXX #define INCLUDED_CPPU_ENTERABLE_HXX #include #include namespace cppu { /** C++ wrapper for binary C Enterable (http://wiki.openoffice.org/wiki/Uno/Cpp/Spec/Environment_Stack) @see uno_Enterable @since UDK 3.2.7 */ class Enterable : public uno_Enterable { public: /* These methods need to be implemented in a derived class. */ virtual void v_enter (void) = 0; virtual void v_leave (void) = 0; virtual void v_callInto_v(uno_EnvCallee * pCallee, va_list * pParam) = 0; virtual void v_callOut_v (uno_EnvCallee * pCallee, va_list * pParam) = 0; virtual bool v_isValid (rtl::OUString * pReason) = 0; virtual ~Enterable() {} public: inline explicit Enterable(void); inline void enter(void) {m_enter(this);} inline void leave(void) {m_leave(this);} inline void callInto_v(uno_EnvCallee * pCallee, va_list * pParam) {m_callInto_v(this, pCallee, pParam);} inline void callOut_v (uno_EnvCallee * pCallee, va_list * pParam) {m_callOut_v (this, pCallee, pParam);} inline void callInto(uno_EnvCallee * pCallee, ...); inline void callOut (uno_EnvCallee * pCallee, ...); inline int isValid (rtl::OUString * pReason) {return m_isValid(this, &pReason->pData);} private: Enterable(Enterable const &) SAL_DELETED_FUNCTION; Enterable & operator = (Enterable const &) SAL_DELETED_FUNCTION; }; extern "C" inline void Enterable_call_enter (void * context) { static_cast(context)->v_enter(); } extern "C" inline void Enterable_call_leave (void * context) { static_cast(context)->v_leave(); } extern "C" inline void Enterable_call_callInto_v(void * context, uno_EnvCallee * pCallee, va_list * pParam) { static_cast(context)->v_callInto_v(pCallee, pParam); } extern "C" inline void Enterable_call_callOut_v (void * context, uno_EnvCallee * pCallee, va_list * pParam) { static_cast(context)->v_callOut_v(pCallee, pParam); } extern "C" inline int Enterable_call_isValid (void * context, rtl_uString ** pReason) {return static_cast(context)->v_isValid(reinterpret_cast(pReason));} Enterable::Enterable(void) { m_enter = Enterable_call_enter; m_leave = Enterable_call_leave; m_callInto_v = Enterable_call_callInto_v; m_callOut_v = Enterable_call_callOut_v; m_isValid = Enterable_call_isValid; } void Enterable::callInto(uno_EnvCallee * pCallee, ...) { va_list param; va_start(param, pCallee); callInto_v(pCallee, ¶m); va_end(param); } void Enterable::callOut(uno_EnvCallee * pCallee, ...) { va_list param; va_start(param, pCallee); callOut_v(pCallee, ¶m); va_end(param); } } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ .0'>distro/collabora/cp-5.0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
>2020-01-02
AgeCommit message (Collapse)Author
2019-06-30Breeze: Fix for tdf#126155, tdf#124127, tdf#89884,Rizal Muttaqin
- Syn color code with upstream - Add support for 32px Arabic and RTL icons - Add support for 32px non English /locale UI for bold, italic and underline - Add more missing menu item icons - Update connector to be thinner - etc Change-Id: I6809eaee40af8b2d277d966ba9a09c1d3c5a8e8e Reviewed-on: https://gerrit.libreoffice.org/74912 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2015-12-028 bit palettes are on the slow path for quartz/svp/gtk3Caolán McNamara
Change-Id: Id2ed21b397a3f56413c344dcf9211ab64a939286
2015-10-28Breeze Icons: optimize png files reduce file sizeandreas kainz
Change-Id: Id380b97a507377f77ef679962dce155d9fa777b9 Reviewed-on: https://gerrit.libreoffice.org/19566 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-10-05optipng icon themesChristian Lohmaier
Change-Id: Ie73b78af44443d8376e12f3e663ab45f5e9445f2
2015-08-18Breeze: StartCenter icon size fixed to 32px tdf#93064 tdf#92242andreask
Change-Id: I3501c917f5916b49b7cda35b89cafcc27987d828 Reviewed-on: https://gerrit.libreoffice.org/17820 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-06-09Breeze: StartCenter new icons according to tdf#90452andreas_ka
I also have done the extension and the help icon according to galaxy. Change-Id: I1f1dcce9c4a7aa1609d039381b4f85cf9a8b6f37 Reviewed-on: https://gerrit.libreoffice.org/16176 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-06-06Breeze: fix bug 91432 and add Calc InsertXBeforeAfter iconsandreas_ka
Change-Id: I2d350ffe117bdc6cc5a63429725fff36c4e760b8 Reviewed-on: https://gerrit.libreoffice.org/16114 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-05-09Breeze: update icon theme, and fix tdf#90387andreas_ka
Change-Id: I3f3c6dc6fbcc958323134f3c79e019d42c338151 Reviewed-on: https://gerrit.libreoffice.org/15681 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-03-19Optimize 'Breeze' icon themeAndrew
Lossless optimisation of png files in Breeze icon theme, using ImageOptim. Saved ~324KB out of 669KB. ~53% per file on average (up to 78%). Change-Id: Ifbd936473f75cb1e6698facf40e90433f002905c Signed-off-by: Andrew <dent.ace@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/14900 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2015-03-18tdf#87234 - Addition of many large and small breeze iconsYousuf Philips
Change-Id: I58488d3f2675ec6c74d8286079d75d32b38e2e05 Reviewed-on: https://gerrit.libreoffice.org/14891 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Sifr: Add more 32 px icons (Calc, Draw & Impress default toolbar)rizmut
Change-Id: If3a29995b93c0343d65335e6ac6bfaa6a2c3143e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86108 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id> Tested-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2019-10-20 tdf#127976, tdf#127977: Fix for navigator iconsRizal Muttaqin
- Add SVG chart - Add more 32px icons (Writer) - etc Change-Id: I5b03300b9996589aa4bafdfd5d6473c9093509fe Reviewed-on: https://gerrit.libreoffice.org/81149 Tested-by: Jenkins Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2019-04-29Icon Theme update open_more icon to have three dotsandreas kainz
Change-Id: If48a34c4cb2d5b8712ab5ed408155e1902014733 Reviewed-on: https://gerrit.libreoffice.org/71527 Tested-by: Jenkins Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2019-03-27Sifr icon theme update lc_andreas kainz
Change-Id: I4da2244b32e02acf3c0f911a2c16d4fad243e5c5 Reviewed-on: https://gerrit.libreoffice.org/69809 Tested-by: Jenkins Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2019-03-26Sifr icon theme update lc_andreas kainz
Change-Id: I79db97ab1e3486434a510eef783b1c7e8c035d82 Reviewed-on: https://gerrit.libreoffice.org/69719 Tested-by: Jenkins Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2017-06-04tdf#94632 Light sifr and breeze icon themes for dark OS themesMatthias Freund
I inverted the original sifr icon theme as is - finetuning will happen later. Change-Id: I35eaccc539542465010c89d1ef35b0b0a449d243 Reviewed-on: https://gerrit.libreoffice.org/38377 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>