/* -*- 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_SVX_IMAPDLG_HXX #define INCLUDED_SVX_IMAPDLG_HXX #include #include #include #include #include #include #include #include #include #include #include class ImageMap; /************************************************************************* |* |* Derivation from SfxChildWindow as "container" for float |* \************************************************************************/ class Graphic; typedef ::std::vector< OUString > TargetList; class SVX_DLLPUBLIC SvxIMapDlgChildWindow : public SfxChildWindow { public: SvxIMapDlgChildWindow( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); SFX_DECL_CHILDWINDOW_WITHID( SvxIMapDlgChildWindow ); static void UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* pImageMap = NULL, const TargetList* pTargetList = NULL, void* pEditingObj = NULL ); }; class SvxIMapDlg; class SvxIMapDlgItem : public SfxControllerItem { SvxIMapDlg& rIMap; protected: virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE; public: SvxIMapDlgItem( sal_uInt16 nId, SvxIMapDlg& rIMapDlg, SfxBindings& rBindings ); }; class IMapOwnData; class IMapWindow; class SVX_DLLPUBLIC SvxIMapDlg : public SfxModelessDialog // SfxFloatingWindow { friend class IMapOwnData; friend class IMapWindow; ToolBox *m_pTbxIMapDlg1; FixedText *m_pFtURL; SvtURLBox *m_pURLBox; FixedText *m_pFtText; Edit *m_pEdtText; FixedText *m_pFtTarget; ComboBox *m_pCbbTarget; StatusBar *m_pStbStatus; sal_uInt16 mnApplyId; sal_uInt16 mnOpenId; sal_uInt16 mnSaveAsId; sal_uInt16 mnSelectId; sal_uInt16 mnRectId; sal_uInt16 mnCircleId; sal_uInt16 mnPolyId; sal_uInt16 mnFreePolyId; sal_uInt16 mnPolyEditId; sal_uInt16 mnPolyMoveId; sal_uInt16 mnPolyInsertId; sal_uInt16 mnPolyDeleteId; sal_uInt16 mnUndoId; sal_uInt16 mnRedoId; sal_uInt16 mnActiveId; sal_uInt16 mnMacroId; sal_uInt16 mnPropertyId; Size aLastSize; IMapWindow* pIMapWnd; IMapOwnData* pOwnData; void* pCheckObj; SvxIMapDlgItem aIMapItem; virtual bool Close() SAL_OVERRIDE; DECL_LINK( TbxClickHdl, ToolBox* ); DECL_LINK( InfoHdl, IMapWindow* ); DECL_LINK( MousePosHdl, IMapWindow* ); DECL_LINK( GraphSizeHdl, IMapWindow* ); DECL_LINK( URLModifyHdl, void* ); DECL_LINK( URLLoseFocusHdl, void* ); DECL_LINK(UpdateHdl, void *); DECL_LINK( TbxUpdateHdl, Timer* ); DECL_LINK( StateHdl, IMapWindow* ); DECL_LINK( MiscHdl, void* ); void DoOpen(); bool DoSave(); public: SvxIMapDlg( SfxBindings *pBindings, SfxChildWindow *pCW, vcl::Window* pParent ); virtual ~SvxIMapDlg(); void SetExecState( bool bEnable ); void SetGraphic( const Graphic& rGraphic ); void SetEditingObject( void* pObj ) { pCheckObj = pObj; } const void* GetEditingObject() const { return pCheckObj; } void SetImageMap( const ImageMap& rImageMap ); const ImageMap& GetImageMap() const; void SetTargetList( const TargetList& rTargetList ); void UpdateLink( const Graphic& rGraphic, const ImageMap* pImageMap = NULL, const TargetList* pTargetList = NULL, void* pEditingObj = NULL ); virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE; }; /************************************************************************* |* |* Defines |* \************************************************************************/ #define SVXIMAPDLG() ( (SvxIMapDlg*) ( SfxViewFrame::Current()->GetChildWindow( \ SvxIMapDlgChildWindow::GetChildWindowId() )-> \ GetWindow() ) ) #endif // INCLUDED_SVX_IMAPDLG_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 5.0'>distro/collabora/lov-5.0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2014-09-23fdo#82577: Handle WindowNoel Grandin
2014-08-17Customproperties: Correctly size DateThomas Arnhold
2014-08-17Customproperties: Position DateTime correctlyThomas Arnhold
2014-07-22Related: fdo#81457 quadratic time required when setting a11y nameCaolán McNamara
2014-06-17improve the inlinesimplememberfunctions clang pluginNoel Grandin
2014-06-11Change SfxTabPage ctor SfxItemSet param from ref to pointerStephan Bergmann
2014-06-11Change SfxTabPage::Reset param from ref to pointerStephan Bergmann
2014-06-10Change SfxTabPage::FillItemSet param from ref to pointerStephan Bergmann
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin
2014-05-14Find places where uno::Sequence is passed by value.Noel Grandin
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann
2014-03-27sfx2: sal_Bool->boolNoel Grandin
2014-03-26Split TYPEINFO into plain and TYPEINFO_OVERRIDEStephan Bergmann
2014-03-14sfx2: sal_Bool->boolNoel Grandin
2014-03-13sfx2,svl: prefer passing OUString and OString by referenceNoel Grandin
2014-02-21vcl: sal_Bool -> boolStephan Bergmann
2014-01-10SfxPoolItem::operator ==, != should return boolStephan Bergmann
2013-11-09fdo#65108 inter-module includes <> include/sfx2Norbert Thiebaud
2013-10-23fixincludeguards.sh: include/s*Thomas Arnhold
2013-09-02CMIS properties: make multiple valuesCao Cuong Ngo
2013-09-02CMIS properties: fix update issueCao Cuong Ngo
2013-09-02Convert CMIS properties dialog to .uiCao Cuong Ngo
2013-09-02CMIS properties: Add type to the UNO APICao Cuong Ngo
2013-09-02CMIS properties dialogCao Cuong Ngo
2013-09-02CMIS properties dialogCao Cuong Ngo
2013-09-02CMIS properties dialogCao Cuong Ngo
2013-09-02Cmis update propertiesCao Cuong Ngo
2013-09-02CMIS properties dialog: update propertiesCao Cuong Ngo
2013-09-02CMIS properties dialog: Fixed the "*" location bugCao Cuong Ngo
2013-09-02Cmis PropertyCao Cuong Ngo
2013-09-02CMIS properties dialogCao Cuong Ngo
2013-09-02CMIS propertiesCao Cuong Ngo
2013-09-02CMIS properties dialogCao Cuong Ngo
2013-09-02CMIS properties dialogCao Cuong Ngo
2013-09-02CMIS properties dialog: load CMIS properties into the dialogCao Cuong Ngo
2013-09-02CMIS properties dialog initializeCao Cuong Ngo
2013-08-29convert include/sfx2/dinfdlg.hxx from String to OUStringNoel Grandin
2013-07-15i#108348: support DateTimeWithTimezone in user defined Document PropertiesMichael Stahl
2013-04-23execute move of global headersBjoern Michaelsen