/* -*- 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_SW_INC_FMTURL_HXX #define INCLUDED_SW_INC_FMTURL_HXX #include #include "swdllapi.h" #include #include class ImageMap; class IntlWrapper; // URL, ServerMap und ClientMap class SW_DLLPUBLIC SwFormatURL: public SfxPoolItem { OUString sTargetFrameName; ///< Target frame for URL. OUString sURL; ///< Simple URL. OUString sName; ///< Name of the anchor. ImageMap *pMap; ///< ClientSide images. bool bIsServerMap; ///< A ServerSideImageMap with the URL. SwFormatURL& operator=( const SwFormatURL& ) SAL_DELETED_FUNCTION; public: SwFormatURL(); /// @@@ copy construction allowed, but assigment is not? @@@ SwFormatURL( const SwFormatURL& ); virtual ~SwFormatURL(); /// "Pure virtual methods" of SfxPoolItem. virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE; virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper* pIntl = 0 ) const SAL_OVERRIDE; virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE; void SetTargetFrameName( const OUString& rStr ) { sTargetFrameName = rStr; } void SetURL(const OUString &rURL, bool bServerMap); void SetMap( const ImageMap *pM ); ///< Pointer will be copied. OUString GetTargetFrameName()const { return sTargetFrameName; } OUString GetURL() const { return sURL; } bool IsServerMap() const { return bIsServerMap; } const ImageMap *GetMap() const { return pMap; } ImageMap *GetMap() { return pMap; } OUString GetName() const { return sName; } void SetName( const OUString& rNm ) { sName = rNm; } }; inline const SwFormatURL &SwAttrSet::GetURL(bool bInP) const { return static_cast(Get( RES_URL,bInP)); } inline const SwFormatURL &SwFormat::GetURL(bool bInP) const { return m_aSet.GetURL(bInP); } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ion value='distro/collabora/co-24.04.9'>distro/collabora/co-24.04.9 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-09vcl: more rtl::Reference cleanupMichael Meeks
Change-Id: Idef6b4259d784120a06d2a6c51b77029566da59f
2015-03-27vcl: tests for Bitmap, check for symmetry when scaling bitmapsTomaž Vajngerl
Change-Id: I53d6e70018477abb9f98140a52697c1de0f90934
2015-03-20The 'svp' "plug-in" library is empty so don't build it at allTor Lillqvist
Its code is in the vcl library nowadays. Change-Id: Idb659e541226724004660102f6641c38a2312c27
2015-03-02if you link vclplug_svp to desktop you end up with duplicate font cachesCaolán McNamara
so how about we just move all of the svp "headless" stuff into vcl proper Change-Id: Ibf4ab0b0698ef031ffeeb05ef9bbcf3b89144010 Reviewed-on: https://gerrit.libreoffice.org/14714 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-02-07Fixup --without-x buildRiccardo Magliocchetti
Accept gl linkage in hope of future offscreen mesa support. Avoid linking with GLX though. Change-Id: I4e666f60e74fe34075a8da9eeba95807cf8fe38c Signed-off-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/13452 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-12-09vcl: add new metafile viewer demo - mainly for fdo#80503Chris Sherlock
This is going to be very helpful troubleshooting problems with metafiles that just won't display. Change-Id: I661dd40e04434a9c64a0f59d9310d36444601989
2014-12-02vcl: initial outdev unit test - for VirtualDevices.Michael Meeks
Change-Id: Ia2bb1f8110c738cfbf6ff84293af115b32abeb93
2014-11-21make glxtest available in salmainMarkus Mohrhard
Change-Id: Ic8bc3f2d5d96506590d35138089ead2eac984314
2014-11-10Build vcldemo on Windows too.Jan Holesovsky
Change-Id: Ia6f7cfb819983a3a75ac78015a8eec1da539bead
2014-11-10outedevgrind: add missing makefile.Michael Meeks
Change-Id: I29d67c9ccbc4c684beb5561f74e5e69c0f0d7548
2014-11-10remove outdevgrind from build until makefile is addedMarkus Mohrhard
Change-Id: Ie339541fa57a237048470b21fd28bd4411592433
2014-11-10vcl: outdevgrind compile it by default, and fix it up.Michael Meeks
Change-Id: I4bdad4a0eb65991cd9faa9452485c64120b8b6dc
2014-11-10extract shaders from source codeMarkus Mohrhard
Conflicts: vcl/opengl/gdiimpl.cxx Change-Id: Ifbb55e58e0854cc491703b8ca8d8e582741a9bd9
2014-11-10merge vcllo and vclopenglloMarkus Mohrhard
Change-Id: I419ca67dc1f87dd9ac751aa5a094fecf58136edb
2014-10-10Build icontest for OS X, too. Does not work at all, thoughTor Lillqvist
Change-Id: Id1c82638f12514f55f297ec5e4a07444849175ce
2014-10-10Build icontest for Windows, tooTor Lillqvist
Change-Id: I7c23d9a41c9b517bf8dcdd3e1de2ab24a8a1d0d0
2014-10-08Add a start on a "temporary" test prog for traditional vcl vs. OpenGLTor Lillqvist
Does nothing useful so far. Change-Id: I9d288a8b8ab92e01a28c92bb41162af4410e0163
2014-10-06vcl: FontCharMap to use intrusive_ptr ImplFontCharMapChris Sherlock
ImplFontCharMap was using it's own reference counting mechanism, however we can use intrusive_ptr more effectively. Added a unit test around FontCharMap. Change-Id: Ifab6ce002fd1df8feb7e017dea3012ff9ea7f18a Reviewed-on: https://gerrit.libreoffice.org/11804 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-09-25fdo#84000 - unit test timers / main-loop bits.Michael Meeks
At least test Unix platforms. Change-Id: I960343cb9622474fe48687a5e458e1c6dbe55358
2014-05-18vcl: don't build demos for windows at the momentThomas Arnhold
as they are broken, see red tinderboxes Change-Id: I09fed7b4c4dec0bebd9e8f85c6266688cf0d68ea
2014-05-18vcl: fix svpclientChris Sherlock
I have converted the UNO stuff to the more modern variety (i.e. the stuff that actually works now...), use GraphicFilter to get the bitmap and fixed the string copy typo. Change-Id: I6a3c1af54d222ef70814d2bb581cc2f3c058bb2f
2014-05-18vcl: fix svptestChris Sherlock
Change-Id: Ibaec6e027aa9fd61824ff6b4f1f71b69d217dfdc
2014-05-18vcl: make vcldemo workChris Sherlock
Change-Id: Icef2d988c37fb7b25245ad9f3f3856fa86f76a77
2014-05-17Don't build svdemo for Android and iOS.Andrzej Hunt
f89296db5959cf009668f8aad85cfd860b9252ee adds building of svdemo, this however uses SAL_IMPLEMENT_MAIN from include/sal/main.h -- which specifically can't be built on Android and iOS, hence we shouldn't build svdemo for those platforms. Change-Id: I6ce851ece90837112279c89467326b82f7a2070b Reviewed-on: https://gerrit.libreoffice.org/9391 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-05-17vcl: fixup svdemoChris Sherlock
Change-Id: Ifb7cc12da349fcbcd1d3dc25b64cd2bf3fd7e819 Reviewed-on: https://gerrit.libreoffice.org/9378 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-05-15wmf: test that non-placeable WMF uses correct sizesTomaž Vajngerl
Change-Id: I546d654726483b40ce4d981bc66377c8a3df6194
2014-04-15Build the vclopengl lib for Android, too, i.e. for all our platformsTor Lillqvist
Change-Id: I244eb4877801ceb0ff22e8591dccd6b801d00d68
2014-04-08Make libvclopengl build for iOSTor Lillqvist
Change-Id: Id338d1fb8a1334fb4e984aff9494bab7f3c35dc1
2014-03-21Fold psprint_config into vclKhaled Hosny
The files are only used by the psprint stuff in vcl, so move them closer to it. We should kill all of this anyway, but that is for another day. Change-Id: Ie3b893c92d556333c9d8b041859d5e97604ace10 Reviewed-on: https://gerrit.libreoffice.org/8694 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-17Revert "Move OpenGLRender to vcl"Markus Mohrhard
This reverts commit 04b70c682e2cdc52b144961a83d05fd203de6884. The OpenGLRender is not abstract enough for vcl. Leave it in chart2. Conflicts: chart2/source/view/inc/DummyXShape.hxx chart2/source/view/main/OpenGLRender.hxx vcl/Library_vclopengl.mk Change-Id: I5392c8ee34462ff49059126ca2284d8ebe1eb379
2014-03-14Move OpenGLRender to vclZolnai Tamás
Change-Id: I6383ae3f94fc18aec92596b9d857d3fde5869dd6
2014-02-21Bug #63962 Dynamically scan the config directory for icon themesTobias Lippert
The hard-coded icon themes have been replaced by a dynamic list which is filled by scanning the config directory Conflicts: include/vcl/settings.hxx vcl/source/app/settings.cxx vcl/source/window/window.cxx Change-Id: Ie3680ffe27d06e375acf22753e036cb6ddabc4ed Reviewed-on: https://gerrit.libreoffice.org/7935 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>