13334a7e6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 33334a7e6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 43334a7e6SAndrew Rist * or more contributor license agreements. See the NOTICE file 53334a7e6SAndrew Rist * distributed with this work for additional information 63334a7e6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 73334a7e6SAndrew Rist * to you under the Apache License, Version 2.0 (the 83334a7e6SAndrew Rist * "License"); you may not use this file except in compliance 93334a7e6SAndrew Rist * with the License. You may obtain a copy of the License at 103334a7e6SAndrew Rist * 113334a7e6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 123334a7e6SAndrew Rist * 133334a7e6SAndrew Rist * Unless required by applicable law or agreed to in writing, 143334a7e6SAndrew Rist * software distributed under the License is distributed on an 153334a7e6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 163334a7e6SAndrew Rist * KIND, either express or implied. See the License for the 173334a7e6SAndrew Rist * specific language governing permissions and limitations 183334a7e6SAndrew Rist * under the License. 193334a7e6SAndrew Rist * 203334a7e6SAndrew Rist *************************************************************/ 213334a7e6SAndrew Rist 223334a7e6SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir 25cdf0e10cSrcweir #ifndef _SVX_FONTWORK_GALLERY_DIALOG_HXX 26cdf0e10cSrcweir #define _SVX_FONTWORK_GALLERY_DIALOG_HXX 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include "svx/svxdllapi.h" 29cdf0e10cSrcweir 30cdf0e10cSrcweir #include <vcl/fixed.hxx> 31cdf0e10cSrcweir #include <vcl/button.hxx> 32cdf0e10cSrcweir #include <vcl/dialog.hxx> 33cdf0e10cSrcweir #include <vcl/field.hxx> 34cdf0e10cSrcweir 35cdf0e10cSrcweir #include <svtools/valueset.hxx> 36cdf0e10cSrcweir 37cdf0e10cSrcweir #include <sfx2/tbxctrl.hxx> 38cdf0e10cSrcweir 39cdf0e10cSrcweir #include <vector> 40cdf0e10cSrcweir 41cdf0e10cSrcweir class FmFormModel; 42cdf0e10cSrcweir class SdrView; 43cdf0e10cSrcweir class Window; 44cdf0e10cSrcweir class SdrTextObj; 45cdf0e10cSrcweir class SdrObject; 46cdf0e10cSrcweir class SdrModel; 47cdf0e10cSrcweir 48cdf0e10cSrcweir class SfxBindings; 49cdf0e10cSrcweir class SfxStatusForwarder; 50cdf0e10cSrcweir 51cdf0e10cSrcweir //------------------------------------------------------------------------ 52cdf0e10cSrcweir 53cdf0e10cSrcweir namespace svx 54cdf0e10cSrcweir { 55cdf0e10cSrcweir 56cdf0e10cSrcweir class SVX_DLLPUBLIC FontWorkShapeTypeControl : public SfxToolBoxControl 57cdf0e10cSrcweir { 58cdf0e10cSrcweir using SfxToolBoxControl::Select; 59cdf0e10cSrcweir 60cdf0e10cSrcweir public: 61cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 62cdf0e10cSrcweir FontWorkShapeTypeControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ); 63cdf0e10cSrcweir ~FontWorkShapeTypeControl(); 64cdf0e10cSrcweir 65cdf0e10cSrcweir virtual void Select( sal_Bool bMod1 = sal_False ); 66cdf0e10cSrcweir virtual SfxPopupWindowType GetPopupWindowType() const; 67cdf0e10cSrcweir virtual SfxPopupWindow* CreatePopupWindow(); 68cdf0e10cSrcweir }; 69cdf0e10cSrcweir 70cdf0e10cSrcweir //------------------------------------------------------------------------ 71cdf0e10cSrcweir 72cdf0e10cSrcweir class FontworkCharacterSpacingDialog : public ModalDialog 73cdf0e10cSrcweir { 74cdf0e10cSrcweir FixedText maFLScale; 75cdf0e10cSrcweir MetricField maMtrScale; 76cdf0e10cSrcweir OKButton maOKButton; 77cdf0e10cSrcweir CancelButton maCancelButton; 78cdf0e10cSrcweir HelpButton maHelpButton; 79cdf0e10cSrcweir 80cdf0e10cSrcweir public: 81cdf0e10cSrcweir FontworkCharacterSpacingDialog( Window* pParent, sal_Int32 nScale ); 82cdf0e10cSrcweir ~FontworkCharacterSpacingDialog(); 83cdf0e10cSrcweir 84cdf0e10cSrcweir sal_Int32 getScale() const; 85cdf0e10cSrcweir }; 86cdf0e10cSrcweir 87cdf0e10cSrcweir 88cdf0e10cSrcweir class SVX_DLLPUBLIC FontWorkGalleryDialog : public ModalDialog 89cdf0e10cSrcweir { 90cdf0e10cSrcweir FixedLine maFLFavorites; 91cdf0e10cSrcweir ValueSet maCtlFavorites; 92cdf0e10cSrcweir OKButton maOKButton; 93cdf0e10cSrcweir CancelButton maCancelButton; 94cdf0e10cSrcweir HelpButton maHelpButton; 95cdf0e10cSrcweir 96cdf0e10cSrcweir sal_uInt16 mnThemeId; 97cdf0e10cSrcweir 98cdf0e10cSrcweir SdrView* mpSdrView; 99cdf0e10cSrcweir FmFormModel* mpModel; 100cdf0e10cSrcweir 101cdf0e10cSrcweir String maStrClickToAddText; 102cdf0e10cSrcweir 103cdf0e10cSrcweir DECL_LINK( DoubleClickFavoriteHdl, void * ); 104cdf0e10cSrcweir DECL_LINK( ClickOKHdl, void * ); 105cdf0e10cSrcweir DECL_LINK( ClickTextDirectionHdl, ImageButton * ); 106cdf0e10cSrcweir 107cdf0e10cSrcweir SdrObject** mppSdrObject; 108cdf0e10cSrcweir SdrModel* mpDestModel; 109cdf0e10cSrcweir 110*6dd94783SArmin Le Grand void initFavorites(sal_uInt16 nThemeId); 111cdf0e10cSrcweir void insertSelectedFontwork(); 112cdf0e10cSrcweir void changeText( SdrTextObj* pObj ); 113*6dd94783SArmin Le Grand void fillFavorites(sal_uInt16 nThemeId); 114cdf0e10cSrcweir 115*6dd94783SArmin Le Grand std::vector< BitmapEx> maFavoritesHorizontal; 116cdf0e10cSrcweir 117cdf0e10cSrcweir public: 118cdf0e10cSrcweir FontWorkGalleryDialog( SdrView* pView, Window* pParent, sal_uInt16 nSID ); 119cdf0e10cSrcweir ~FontWorkGalleryDialog(); 120cdf0e10cSrcweir 121cdf0e10cSrcweir // SJ: if the SdrObject** is set, the SdrObject is not inserted into the page when executing the dialog 122cdf0e10cSrcweir void SetSdrObjectRef( SdrObject**, SdrModel* pModel ); 123cdf0e10cSrcweir }; 124cdf0e10cSrcweir 125cdf0e10cSrcweir } 126cdf0e10cSrcweir 127cdf0e10cSrcweir #endif 128