1c4eee24dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3c4eee24dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4c4eee24dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5c4eee24dSAndrew Rist * distributed with this work for additional information 6c4eee24dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7c4eee24dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8c4eee24dSAndrew Rist * "License"); you may not use this file except in compliance 9c4eee24dSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11c4eee24dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13c4eee24dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14c4eee24dSAndrew Rist * software distributed under the License is distributed on an 15c4eee24dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16c4eee24dSAndrew Rist * KIND, either express or implied. See the License for the 17c4eee24dSAndrew Rist * specific language governing permissions and limitations 18c4eee24dSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20c4eee24dSAndrew Rist *************************************************************/ 21c4eee24dSAndrew Rist 22cdf0e10cSrcweir #ifndef _CUI_TAB_AREA_HXX 23cdf0e10cSrcweir #define _CUI_TAB_AREA_HXX 24cdf0e10cSrcweir 25cdf0e10cSrcweir // include --------------------------------------------------------------- 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <svx/tabarea.hxx> 2828bcfa49SArmin Le Grand #include <svx/SvxColorValueSet.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir /************************************************************************* 31*883ba44fSmseidel |* Flächen-Tab-Dialog 32cdf0e10cSrcweir \************************************************************************/ 33cdf0e10cSrcweir 34cdf0e10cSrcweir class SvxAreaTabDialog : public SfxTabDialog 35cdf0e10cSrcweir { 36cdf0e10cSrcweir private: 37cdf0e10cSrcweir SdrModel* mpDrawModel; 38cdf0e10cSrcweir // const SdrView* mpView; 39cdf0e10cSrcweir 40c7be74b1SArmin Le Grand XColorListSharedPtr maColorTab; 41c7be74b1SArmin Le Grand XColorListSharedPtr maNewColorTab; 42c7be74b1SArmin Le Grand XGradientListSharedPtr maGradientList; 43c7be74b1SArmin Le Grand XGradientListSharedPtr maNewGradientList; 44c7be74b1SArmin Le Grand XHatchListSharedPtr maHatchingList; 45c7be74b1SArmin Le Grand XHatchListSharedPtr maNewHatchingList; 46c7be74b1SArmin Le Grand XBitmapListSharedPtr maBitmapList; 47c7be74b1SArmin Le Grand XBitmapListSharedPtr maNewBitmapList; 48cdf0e10cSrcweir 49cdf0e10cSrcweir const SfxItemSet& mrOutAttrs; 50cdf0e10cSrcweir 51cdf0e10cSrcweir ChangeType mnColorTableState; 52cdf0e10cSrcweir ChangeType mnBitmapListState; 53cdf0e10cSrcweir ChangeType mnGradientListState; 54cdf0e10cSrcweir ChangeType mnHatchingListState; 55cdf0e10cSrcweir 56cdf0e10cSrcweir sal_uInt16 mnPageType; 57cdf0e10cSrcweir sal_uInt16 mnDlgType; 58cdf0e10cSrcweir sal_uInt16 mnPos; 59cdf0e10cSrcweir sal_Bool mbAreaTP; 60cdf0e10cSrcweir 61cdf0e10cSrcweir virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); 62cdf0e10cSrcweir 63cdf0e10cSrcweir protected: 64cdf0e10cSrcweir virtual short Ok(); 65cdf0e10cSrcweir #ifdef _SVX_TABAREA_CXX 66cdf0e10cSrcweir DECL_LINK( CancelHdlImpl, void * ); 67cdf0e10cSrcweir void SavePalettes(); 68cdf0e10cSrcweir #endif 69cdf0e10cSrcweir 70cdf0e10cSrcweir public: 7164b14621SArmin Le Grand SvxAreaTabDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, bool bShadow ); 72cdf0e10cSrcweir ~SvxAreaTabDialog(); 73cdf0e10cSrcweir SetNewColorTable(XColorListSharedPtr aColTab)74c7be74b1SArmin Le Grand void SetNewColorTable( XColorListSharedPtr aColTab ) { maNewColorTab = aColTab; } GetNewColorTable() const75c7be74b1SArmin Le Grand XColorListSharedPtr GetNewColorTable() const { return maNewColorTab; } GetColorTable() const76c7be74b1SArmin Le Grand const XColorListSharedPtr GetColorTable() const { return maColorTab; } 77cdf0e10cSrcweir SetNewGradientList(XGradientListSharedPtr aGrdLst)78c7be74b1SArmin Le Grand void SetNewGradientList( XGradientListSharedPtr aGrdLst) { maNewGradientList = aGrdLst; } GetNewGradientList() const79c7be74b1SArmin Le Grand XGradientListSharedPtr GetNewGradientList() const { return maNewGradientList; } GetGradientList() const80c7be74b1SArmin Le Grand const XGradientListSharedPtr GetGradientList() const { return maGradientList; } 81cdf0e10cSrcweir SetNewHatchingList(XHatchListSharedPtr aHtchLst)82c7be74b1SArmin Le Grand void SetNewHatchingList( XHatchListSharedPtr aHtchLst) { maNewHatchingList = aHtchLst; } GetNewHatchingList() const83c7be74b1SArmin Le Grand XHatchListSharedPtr GetNewHatchingList() const { return maNewHatchingList; } GetHatchingList() const84c7be74b1SArmin Le Grand const XHatchListSharedPtr GetHatchingList() const { return maHatchingList; } 85cdf0e10cSrcweir SetNewBitmapList(XBitmapListSharedPtr aBmpLst)86c7be74b1SArmin Le Grand void SetNewBitmapList( XBitmapListSharedPtr aBmpLst) { maNewBitmapList = aBmpLst; } GetNewBitmapList() const87c7be74b1SArmin Le Grand XBitmapListSharedPtr GetNewBitmapList() const { return maNewBitmapList; } GetBitmapList() const88c7be74b1SArmin Le Grand const XBitmapListSharedPtr GetBitmapList() const { return maBitmapList; } 89cdf0e10cSrcweir }; 90cdf0e10cSrcweir 91cdf0e10cSrcweir /************************************************************************* 92cdf0e10cSrcweir |* Transparence-Tab-Page 93cdf0e10cSrcweir \************************************************************************/ 94cdf0e10cSrcweir 95cdf0e10cSrcweir class SvxTransparenceTabPage : public SvxTabPage 96cdf0e10cSrcweir { 97cdf0e10cSrcweir using TabPage::ActivatePage; 98cdf0e10cSrcweir using TabPage::DeactivatePage; 99cdf0e10cSrcweir 100cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 101cdf0e10cSrcweir RECT_POINT eRP; 102cdf0e10cSrcweir 103b164f441SArmin Le Grand sal_uInt16 nPageType; 104b164f441SArmin Le Grand sal_uInt16 nDlgType; 105cdf0e10cSrcweir 106cdf0e10cSrcweir // main selection 107cdf0e10cSrcweir FixedLine aFlProp; 108cdf0e10cSrcweir RadioButton aRbtTransOff; 109cdf0e10cSrcweir RadioButton aRbtTransLinear; 110cdf0e10cSrcweir RadioButton aRbtTransGradient; 111cdf0e10cSrcweir 112cdf0e10cSrcweir // linear transparency 113cdf0e10cSrcweir MetricField aMtrTransparent; 114cdf0e10cSrcweir 115cdf0e10cSrcweir // gradient transparency 116cdf0e10cSrcweir FixedText aFtTrgrType; 117cdf0e10cSrcweir ListBox aLbTrgrGradientType; 118cdf0e10cSrcweir FixedText aFtTrgrCenterX; 119cdf0e10cSrcweir MetricField aMtrTrgrCenterX; 120cdf0e10cSrcweir FixedText aFtTrgrCenterY; 121cdf0e10cSrcweir MetricField aMtrTrgrCenterY; 122cdf0e10cSrcweir FixedText aFtTrgrAngle; 123cdf0e10cSrcweir MetricField aMtrTrgrAngle; 124cdf0e10cSrcweir FixedText aFtTrgrBorder; 125cdf0e10cSrcweir MetricField aMtrTrgrBorder; 126cdf0e10cSrcweir FixedText aFtTrgrStartValue; 127cdf0e10cSrcweir MetricField aMtrTrgrStartValue; 128cdf0e10cSrcweir FixedText aFtTrgrEndValue; 129cdf0e10cSrcweir MetricField aMtrTrgrEndValue; 130cdf0e10cSrcweir 131cdf0e10cSrcweir // preview 132cdf0e10cSrcweir SvxXRectPreview aCtlBitmapPreview; 133cdf0e10cSrcweir SvxXRectPreview aCtlXRectPreview; 134cdf0e10cSrcweir sal_Bool bBitmap; 135cdf0e10cSrcweir 136cdf0e10cSrcweir XOutdevItemPool* pXPool; 137cdf0e10cSrcweir XFillAttrSetItem aXFillAttr; 138cdf0e10cSrcweir SfxItemSet& rXFSet; 139cdf0e10cSrcweir 140cdf0e10cSrcweir #ifdef _SVX_TPAREA_CXX 141cdf0e10cSrcweir DECL_LINK(ClickTransOffHdl_Impl, void * ); 142cdf0e10cSrcweir DECL_LINK(ClickTransLinearHdl_Impl, void * ); 143cdf0e10cSrcweir DECL_LINK(ClickTransGradientHdl_Impl, void * ); 144cdf0e10cSrcweir DECL_LINK(ModifyTransparentHdl_Impl, void*); 145cdf0e10cSrcweir DECL_LINK(ChangeTrgrTypeHdl_Impl, void*); 146cdf0e10cSrcweir DECL_LINK(ModifiedTrgrHdl_Impl, void*); 147cdf0e10cSrcweir #endif 148cdf0e10cSrcweir 149cdf0e10cSrcweir void ActivateLinear(sal_Bool bActivate); 150cdf0e10cSrcweir void ActivateGradient(sal_Bool bActivate); 151cdf0e10cSrcweir void SetControlState_Impl(XGradientStyle eXGS); 152cdf0e10cSrcweir 153cdf0e10cSrcweir sal_Bool InitPreview ( const SfxItemSet& rSet ); 154cdf0e10cSrcweir void InvalidatePreview (sal_Bool bEnable = sal_True ); 155cdf0e10cSrcweir 156cdf0e10cSrcweir public: 157cdf0e10cSrcweir SvxTransparenceTabPage(Window* pParent, const SfxItemSet& rInAttrs); 158cdf0e10cSrcweir void Construct(); 159cdf0e10cSrcweir 160cdf0e10cSrcweir static SfxTabPage* Create(Window*, const SfxItemSet&); 161cdf0e10cSrcweir static sal_uInt16* GetRanges(); 162cdf0e10cSrcweir 163cdf0e10cSrcweir virtual sal_Bool FillItemSet(SfxItemSet&); 164cdf0e10cSrcweir virtual void Reset(const SfxItemSet&); 165cdf0e10cSrcweir virtual void ActivatePage(const SfxItemSet& rSet); 166cdf0e10cSrcweir virtual int DeactivatePage(SfxItemSet* pSet); 167cdf0e10cSrcweir virtual void PointChanged(Window* pWindow, RECT_POINT eRP); 168cdf0e10cSrcweir 169cdf0e10cSrcweir //CHINA001 void SetPageType(sal_uInt16 *pInType) { pPageType = pInType; } 170cdf0e10cSrcweir //CHINA001 void SetDlgType(sal_uInt16* pInType) { pDlgType = pInType; } SetPageType(sal_uInt16 nInType)171cdf0e10cSrcweir void SetPageType(sal_uInt16 nInType) { nPageType = nInType; } //add CHINA001 SetDlgType(sal_uInt16 nInType)172cdf0e10cSrcweir void SetDlgType(sal_uInt16 nInType) { nDlgType = nInType; }//add CHINA001 173cdf0e10cSrcweir virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001 174cdf0e10cSrcweir }; 175cdf0e10cSrcweir 176cdf0e10cSrcweir /************************************************************************* 177*883ba44fSmseidel |* Flächen-Tab-Page 178cdf0e10cSrcweir \************************************************************************/ 179cdf0e10cSrcweir 180cdf0e10cSrcweir class SvxAreaTabPage : public SvxTabPage 181cdf0e10cSrcweir { 182cdf0e10cSrcweir using TabPage::ActivatePage; 183cdf0e10cSrcweir using TabPage::DeactivatePage; 184cdf0e10cSrcweir 185cdf0e10cSrcweir private: 186cdf0e10cSrcweir FixedLine aFlProp; 187cdf0e10cSrcweir ListBox aTypeLB; 188cdf0e10cSrcweir 189cdf0e10cSrcweir ColorLB aLbColor; 190cdf0e10cSrcweir GradientLB aLbGradient; 191cdf0e10cSrcweir HatchingLB aLbHatching; 192cdf0e10cSrcweir BitmapLB aLbBitmap; 193cdf0e10cSrcweir SvxXRectPreview aCtlBitmapPreview; 194cdf0e10cSrcweir 195cdf0e10cSrcweir TriStateBox aTsbStepCount; 196cdf0e10cSrcweir FixedLine aFlStepCount; 197cdf0e10cSrcweir NumericField aNumFldStepCount; 198cdf0e10cSrcweir 199cdf0e10cSrcweir CheckBox aCbxHatchBckgrd; 200cdf0e10cSrcweir ColorLB aLbHatchBckgrdColor; 201cdf0e10cSrcweir 202cdf0e10cSrcweir FixedLine aFlSize; 203cdf0e10cSrcweir TriStateBox aTsbOriginal; 204cdf0e10cSrcweir TriStateBox aTsbScale; 205cdf0e10cSrcweir FixedText aFtXSize; 206cdf0e10cSrcweir MetricField aMtrFldXSize; 207cdf0e10cSrcweir FixedText aFtYSize; 208cdf0e10cSrcweir MetricField aMtrFldYSize; 209cdf0e10cSrcweir FixedLine aFlPosition; 210cdf0e10cSrcweir SvxRectCtl aCtlPosition; 211cdf0e10cSrcweir FixedText aFtXOffset; 212cdf0e10cSrcweir MetricField aMtrFldXOffset; 213cdf0e10cSrcweir FixedText aFtYOffset; 214cdf0e10cSrcweir MetricField aMtrFldYOffset; 215cdf0e10cSrcweir TriStateBox aTsbTile; 216cdf0e10cSrcweir TriStateBox aTsbStretch; 217cdf0e10cSrcweir FixedLine aFlOffset; 218cdf0e10cSrcweir RadioButton aRbtRow; 219cdf0e10cSrcweir RadioButton aRbtColumn; 220cdf0e10cSrcweir MetricField aMtrFldOffset; 221cdf0e10cSrcweir 222cdf0e10cSrcweir SvxXRectPreview aCtlXRectPreview; 223cdf0e10cSrcweir 224cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 225cdf0e10cSrcweir RECT_POINT eRP; 226cdf0e10cSrcweir 227c7be74b1SArmin Le Grand XColorListSharedPtr maColorTab; 228c7be74b1SArmin Le Grand XGradientListSharedPtr maGradientList; 229c7be74b1SArmin Le Grand XHatchListSharedPtr maHatchingList; 230c7be74b1SArmin Le Grand XBitmapListSharedPtr maBitmapList; 231cdf0e10cSrcweir 232b164f441SArmin Le Grand // Placeholders for pointer-based entries; these will be inited 233b164f441SArmin Le Grand // to point to these so that the page is usable without that 234b164f441SArmin Le Grand // SvxAreaTabDialog has to call the setter methods (e.g. SetColorChgd). 235b164f441SArmin Le Grand // Without that the pages used in SvxAreaTabDialog are not usable 236b164f441SArmin Le Grand ChangeType maFixed_ChangeType; 237b164f441SArmin Le Grand sal_Bool maFixed_sal_Bool; 238b164f441SArmin Le Grand 239cdf0e10cSrcweir ChangeType* pnColorTableState; 240cdf0e10cSrcweir ChangeType* pnBitmapListState; 241cdf0e10cSrcweir ChangeType* pnGradientListState; 242cdf0e10cSrcweir ChangeType* pnHatchingListState; 243cdf0e10cSrcweir 244b164f441SArmin Le Grand sal_uInt16 nPageType; 245b164f441SArmin Le Grand sal_uInt16 nDlgType; 246b164f441SArmin Le Grand sal_uInt16 nPos; 247cdf0e10cSrcweir 248cdf0e10cSrcweir sal_Bool* pbAreaTP; 249cdf0e10cSrcweir 250cdf0e10cSrcweir XOutdevItemPool* pXPool; 251cdf0e10cSrcweir XFillAttrSetItem aXFillAttr; 252cdf0e10cSrcweir SfxItemSet& rXFSet; 253cdf0e10cSrcweir 254cdf0e10cSrcweir SfxMapUnit ePoolUnit; 255cdf0e10cSrcweir FieldUnit eFUnit; 256cdf0e10cSrcweir 257b164f441SArmin Le Grand //UUUU 258b164f441SArmin Le Grand bool mbOfferImportButton; 259b164f441SArmin Le Grand bool mbPositionsAdapted; 260b164f441SArmin Le Grand bool mbDirectGraphicSet; 261b164f441SArmin Le Grand Graphic maDirectGraphic; 262b164f441SArmin Le Grand String maDirectName; 263b164f441SArmin Le Grand PushButton maBtnImport; 264b164f441SArmin Le Grand 265cdf0e10cSrcweir #ifdef _SVX_TPAREA_CXX 266cdf0e10cSrcweir DECL_LINK( SelectDialogTypeHdl_Impl, ListBox * ); 267cdf0e10cSrcweir DECL_LINK( ClickInvisibleHdl_Impl, void * ); 268cdf0e10cSrcweir DECL_LINK( ClickColorHdl_Impl, void * ); 269cdf0e10cSrcweir DECL_LINK( ModifyColorHdl_Impl, void * ); 270cdf0e10cSrcweir DECL_LINK( ModifyHatchBckgrdColorHdl_Impl, void * ); 271cdf0e10cSrcweir DECL_LINK( ClickGradientHdl_Impl, void * ); 272cdf0e10cSrcweir DECL_LINK( ModifyGradientHdl_Impl, void * ); 273cdf0e10cSrcweir DECL_LINK( ClickHatchingHdl_Impl, void * ); 274cdf0e10cSrcweir DECL_LINK( ModifyHatchingHdl_Impl, void * ); 275cdf0e10cSrcweir DECL_LINK( ToggleHatchBckgrdColorHdl_Impl, void * ); 276cdf0e10cSrcweir DECL_LINK( ClickBitmapHdl_Impl, void * ); 277cdf0e10cSrcweir DECL_LINK( ModifyBitmapHdl_Impl, void * ); 278cdf0e10cSrcweir // DECL_LINK( ModifyTransparentHdl_Impl, void * ); 279cdf0e10cSrcweir DECL_LINK( ModifyStepCountHdl_Impl, void * ); 280b164f441SArmin Le Grand 281b164f441SArmin Le Grand //UUUU 282b164f441SArmin Le Grand DECL_LINK( ClickImportHdl_Impl, void * ); 283b164f441SArmin Le Grand 284cdf0e10cSrcweir DECL_LINK( ModifyTileHdl_Impl, void * ); 285cdf0e10cSrcweir DECL_LINK( ClickScaleHdl_Impl, void * ); 286cdf0e10cSrcweir #endif 287cdf0e10cSrcweir 288cdf0e10cSrcweir public: 289cdf0e10cSrcweir SvxAreaTabPage( Window* pParent, const SfxItemSet& rInAttrs ); 290cdf0e10cSrcweir 291cdf0e10cSrcweir void Construct(); 292cdf0e10cSrcweir 293cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 294cdf0e10cSrcweir static sal_uInt16* GetRanges(); 295cdf0e10cSrcweir 296cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 297cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 298cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 299cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet ); 300cdf0e10cSrcweir virtual void PointChanged( Window* pWindow, RECT_POINT eRP ); 301cdf0e10cSrcweir SetColorTable(XColorListSharedPtr aColTab)302c7be74b1SArmin Le Grand void SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; } SetGradientList(XGradientListSharedPtr aGrdLst)303c7be74b1SArmin Le Grand void SetGradientList( XGradientListSharedPtr aGrdLst) { maGradientList = aGrdLst; } SetHatchingList(XHatchListSharedPtr aHtchLst)304c7be74b1SArmin Le Grand void SetHatchingList( XHatchListSharedPtr aHtchLst) { maHatchingList = aHtchLst; } SetBitmapList(XBitmapListSharedPtr aBmpLst)305c7be74b1SArmin Le Grand void SetBitmapList( XBitmapListSharedPtr aBmpLst) { maBitmapList = aBmpLst; } 306cdf0e10cSrcweir 307cdf0e10cSrcweir //CHINA001 void SetPageType( sal_uInt16* pInType ) { pPageType = pInType; } SetPageType(sal_uInt16 nInType)308cdf0e10cSrcweir void SetPageType( sal_uInt16 nInType ) { nPageType = nInType; } //add CHINA001 309cdf0e10cSrcweir //CHINA001 void SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; } SetDlgType(sal_uInt16 nInType)310cdf0e10cSrcweir void SetDlgType( sal_uInt16 nInType ) { nDlgType = nInType; }//add CHINA001 311cdf0e10cSrcweir //CHINA001 void SetPos( sal_uInt16* pInPos ) { pPos = pInPos; } SetPos(sal_uInt16 nInPos)312cdf0e10cSrcweir void SetPos( sal_uInt16 nInPos ) { nPos = nInPos; }//add CHINA001 SetAreaTP(sal_Bool * pIn)313cdf0e10cSrcweir void SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; } 314cdf0e10cSrcweir virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001 SetColorChgd(ChangeType * pIn)315cdf0e10cSrcweir void SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; } SetGrdChgd(ChangeType * pIn)316cdf0e10cSrcweir void SetGrdChgd( ChangeType* pIn ) { pnGradientListState = pIn; } SetHtchChgd(ChangeType * pIn)317cdf0e10cSrcweir void SetHtchChgd( ChangeType* pIn ) { pnHatchingListState = pIn; } SetBmpChgd(ChangeType * pIn)318cdf0e10cSrcweir void SetBmpChgd( ChangeType* pIn ) { pnBitmapListState = pIn; } 319cdf0e10cSrcweir }; 320cdf0e10cSrcweir 321cdf0e10cSrcweir /************************************************************************* 322cdf0e10cSrcweir |* Schatten-Tab-Page 323cdf0e10cSrcweir \************************************************************************/ 324cdf0e10cSrcweir 325cdf0e10cSrcweir class SvxShadowTabPage : public SvxTabPage 326cdf0e10cSrcweir { 327cdf0e10cSrcweir using TabPage::ActivatePage; 328cdf0e10cSrcweir using TabPage::DeactivatePage; 329cdf0e10cSrcweir 330cdf0e10cSrcweir private: 331cdf0e10cSrcweir FixedLine aFlProp; 332cdf0e10cSrcweir TriStateBox aTsbShowShadow; 333cdf0e10cSrcweir FixedText aFtPosition; 334cdf0e10cSrcweir SvxRectCtl aCtlPosition; 335cdf0e10cSrcweir FixedText aFtDistance; 336cdf0e10cSrcweir MetricField aMtrDistance; 337cdf0e10cSrcweir FixedText aFtShadowColor; 338cdf0e10cSrcweir ColorLB aLbShadowColor; 339cdf0e10cSrcweir FixedText aFtTransparent; 340cdf0e10cSrcweir MetricField aMtrTransparent; 341cdf0e10cSrcweir SvxXShadowPreview aCtlXRectPreview; 342cdf0e10cSrcweir 343cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 344cdf0e10cSrcweir RECT_POINT eRP; 345cdf0e10cSrcweir 346c7be74b1SArmin Le Grand XColorListSharedPtr maColorTab; 347cdf0e10cSrcweir ChangeType* pnColorTableState; 348cdf0e10cSrcweir sal_uInt16 nPageType; // add CHINA001 349cdf0e10cSrcweir sal_uInt16 nDlgType; // add CHINA001 350cdf0e10cSrcweir sal_uInt16* pPos; 351cdf0e10cSrcweir sal_Bool* pbAreaTP; 352cdf0e10cSrcweir 353cdf0e10cSrcweir sal_Bool bDisable; 354cdf0e10cSrcweir 355cdf0e10cSrcweir XOutdevItemPool* pXPool; 356cdf0e10cSrcweir XFillAttrSetItem aXFillAttr; 357cdf0e10cSrcweir SfxItemSet& rXFSet; 358cdf0e10cSrcweir SfxMapUnit ePoolUnit; 359cdf0e10cSrcweir 360cdf0e10cSrcweir #ifdef _SVX_TPSHADOW_CXX 361cdf0e10cSrcweir DECL_LINK( ClickShadowHdl_Impl, void * ); 362cdf0e10cSrcweir DECL_LINK( ModifyShadowHdl_Impl, void * ); 363cdf0e10cSrcweir #endif 364cdf0e10cSrcweir 365cdf0e10cSrcweir public: 366cdf0e10cSrcweir SvxShadowTabPage( Window* pParent, const SfxItemSet& rInAttrs ); 367cdf0e10cSrcweir 368cdf0e10cSrcweir void Construct(); 369cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 370cdf0e10cSrcweir static sal_uInt16* GetRanges(); 371cdf0e10cSrcweir 372cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 373cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 374cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 375cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet ); 376cdf0e10cSrcweir virtual void PointChanged( Window* pWindow, RECT_POINT eRP ); 377cdf0e10cSrcweir SetColorTable(XColorListSharedPtr aColTab)378c7be74b1SArmin Le Grand void SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; } 379cdf0e10cSrcweir //CHINA001 void SetPageType( sal_uInt16* pInType ) { pPageType = pInType; } 380cdf0e10cSrcweir //CHINA001 void SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; } SetPageType(sal_uInt16 nInType)381cdf0e10cSrcweir void SetPageType( sal_uInt16 nInType ) { nPageType = nInType; } //add CHINA001 SetDlgType(sal_uInt16 nInType)382cdf0e10cSrcweir void SetDlgType( sal_uInt16 nInType ) { nDlgType = nInType; } //add CHINA001 SetAreaTP(sal_Bool * pIn)383cdf0e10cSrcweir void SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; } SetColorChgd(ChangeType * pIn)384cdf0e10cSrcweir void SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; } 385cdf0e10cSrcweir virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001 DisablePage(sal_Bool bIn)386cdf0e10cSrcweir void DisablePage( sal_Bool bIn ) { bDisable = bIn; } 387cdf0e10cSrcweir }; 388cdf0e10cSrcweir 389cdf0e10cSrcweir /************************************************************************* 390cdf0e10cSrcweir |* Farbverlauf-Tab-Page 391cdf0e10cSrcweir \************************************************************************/ 392cdf0e10cSrcweir 393cdf0e10cSrcweir class SvxGradientTabPage : public SfxTabPage 394cdf0e10cSrcweir { 395cdf0e10cSrcweir using TabPage::ActivatePage; 396cdf0e10cSrcweir using TabPage::DeactivatePage; 397cdf0e10cSrcweir 398cdf0e10cSrcweir private: 399cdf0e10cSrcweir FixedLine aFlProp; 400cdf0e10cSrcweir FixedText aFtType; 401cdf0e10cSrcweir ListBox aLbGradientType; 402cdf0e10cSrcweir FixedText aFtCenterX; 403cdf0e10cSrcweir MetricField aMtrCenterX; 404cdf0e10cSrcweir FixedText aFtCenterY; 405cdf0e10cSrcweir MetricField aMtrCenterY; 406cdf0e10cSrcweir FixedText aFtAngle; 407cdf0e10cSrcweir MetricField aMtrAngle; 408cdf0e10cSrcweir FixedText aFtBorder; 409cdf0e10cSrcweir MetricField aMtrBorder; 410cdf0e10cSrcweir FixedText aFtColorFrom; 411cdf0e10cSrcweir ColorLB aLbColorFrom; 412cdf0e10cSrcweir MetricField aMtrColorFrom; 413cdf0e10cSrcweir FixedText aFtColorTo; 414cdf0e10cSrcweir ColorLB aLbColorTo; 415cdf0e10cSrcweir MetricField aMtrColorTo; 416cdf0e10cSrcweir GradientLB aLbGradients; 417cdf0e10cSrcweir SvxXRectPreview aCtlPreview; 418cdf0e10cSrcweir PushButton aBtnAdd; 419cdf0e10cSrcweir PushButton aBtnModify; 420cdf0e10cSrcweir PushButton aBtnDelete; 421cdf0e10cSrcweir ImageButton aBtnLoad; 422cdf0e10cSrcweir ImageButton aBtnSave; 423cdf0e10cSrcweir 424cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 425cdf0e10cSrcweir 426c7be74b1SArmin Le Grand XColorListSharedPtr maColorTab; 427c7be74b1SArmin Le Grand XGradientListSharedPtr maGradientList; 428cdf0e10cSrcweir 429cdf0e10cSrcweir ChangeType* pnGradientListState; 430cdf0e10cSrcweir ChangeType* pnColorTableState; 431cdf0e10cSrcweir sal_uInt16* pPageType; 432cdf0e10cSrcweir sal_uInt16* pDlgType; 433cdf0e10cSrcweir sal_uInt16* pPos; 434cdf0e10cSrcweir sal_Bool* pbAreaTP; 435cdf0e10cSrcweir 436cdf0e10cSrcweir XOutdevItemPool* pXPool; 437cdf0e10cSrcweir XFillStyleItem aXFStyleItem; 438cdf0e10cSrcweir XFillGradientItem aXGradientItem; 439cdf0e10cSrcweir XFillAttrSetItem aXFillAttr; 440cdf0e10cSrcweir SfxItemSet& rXFSet; 441cdf0e10cSrcweir 442cdf0e10cSrcweir #ifdef _SVX_TPGRADNT_CXX 443cdf0e10cSrcweir DECL_LINK( ClickAddHdl_Impl, void * ); 444cdf0e10cSrcweir DECL_LINK( ClickModifyHdl_Impl, void * ); 445cdf0e10cSrcweir DECL_LINK( ClickDeleteHdl_Impl, void * ); 446cdf0e10cSrcweir DECL_LINK( ChangeGradientHdl_Impl, void * ); 447cdf0e10cSrcweir DECL_LINK( ModifiedHdl_Impl, void * ); 448cdf0e10cSrcweir DECL_LINK( ClickLoadHdl_Impl, void * ); 449cdf0e10cSrcweir DECL_LINK( ClickSaveHdl_Impl, void * ); 450cdf0e10cSrcweir 451cdf0e10cSrcweir long CheckChanges_Impl(); 452cdf0e10cSrcweir void SetControlState_Impl( XGradientStyle eXGS ); 453cdf0e10cSrcweir #endif 454cdf0e10cSrcweir 455cdf0e10cSrcweir public: 456cdf0e10cSrcweir SvxGradientTabPage( Window* pParent, const SfxItemSet& rInAttrs ); 457cdf0e10cSrcweir 458cdf0e10cSrcweir void Construct(); 459cdf0e10cSrcweir 460cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 461cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 462cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 463cdf0e10cSrcweir 464cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 465cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet ); 466cdf0e10cSrcweir SetColorTable(XColorListSharedPtr aColTab)467c7be74b1SArmin Le Grand void SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; } SetGradientList(XGradientListSharedPtr aGrdLst)468c7be74b1SArmin Le Grand void SetGradientList( XGradientListSharedPtr aGrdLst) { maGradientList = aGrdLst; } 469cdf0e10cSrcweir SetPageType(sal_uInt16 * pInType)470cdf0e10cSrcweir void SetPageType( sal_uInt16* pInType ) { pPageType = pInType; } SetDlgType(sal_uInt16 * pInType)471cdf0e10cSrcweir void SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; } SetPos(sal_uInt16 * pInPos)472cdf0e10cSrcweir void SetPos( sal_uInt16* pInPos ) { pPos = pInPos; } SetAreaTP(sal_Bool * pIn)473cdf0e10cSrcweir void SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; } 474cdf0e10cSrcweir SetGrdChgd(ChangeType * pIn)475cdf0e10cSrcweir void SetGrdChgd( ChangeType* pIn ) { pnGradientListState = pIn; } SetColorChgd(ChangeType * pIn)476cdf0e10cSrcweir void SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; } 477cdf0e10cSrcweir }; 478cdf0e10cSrcweir 479cdf0e10cSrcweir /************************************************************************* 480cdf0e10cSrcweir |* Schraffuren-Tab-Page 481cdf0e10cSrcweir \************************************************************************/ 482cdf0e10cSrcweir 483cdf0e10cSrcweir class SvxHatchTabPage : public SvxTabPage 484cdf0e10cSrcweir { 485cdf0e10cSrcweir using TabPage::ActivatePage; 486cdf0e10cSrcweir using TabPage::DeactivatePage; 487cdf0e10cSrcweir 488cdf0e10cSrcweir private: 489cdf0e10cSrcweir FixedText aFtDistance; 490cdf0e10cSrcweir MetricField aMtrDistance; 491cdf0e10cSrcweir FixedText aFtAngle; 492cdf0e10cSrcweir MetricField aMtrAngle; 493cdf0e10cSrcweir SvxRectCtl aCtlAngle; 494cdf0e10cSrcweir FixedLine aFlProp; 495cdf0e10cSrcweir FixedText aFtLineType; 496cdf0e10cSrcweir ListBox aLbLineType; 497cdf0e10cSrcweir FixedText aFtLineColor; 498cdf0e10cSrcweir ColorLB aLbLineColor; 499cdf0e10cSrcweir HatchingLB aLbHatchings; 500cdf0e10cSrcweir SvxXRectPreview aCtlPreview; 501cdf0e10cSrcweir PushButton aBtnAdd; 502cdf0e10cSrcweir PushButton aBtnModify; 503cdf0e10cSrcweir PushButton aBtnDelete; 504cdf0e10cSrcweir ImageButton aBtnLoad; 505cdf0e10cSrcweir ImageButton aBtnSave; 506cdf0e10cSrcweir 507cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 508cdf0e10cSrcweir RECT_POINT eRP; 509cdf0e10cSrcweir 510c7be74b1SArmin Le Grand XColorListSharedPtr maColorTab; 511c7be74b1SArmin Le Grand XHatchListSharedPtr maHatchingList; 512cdf0e10cSrcweir 513cdf0e10cSrcweir ChangeType* pnHatchingListState; 514cdf0e10cSrcweir ChangeType* pnColorTableState; 515cdf0e10cSrcweir sal_uInt16* pPageType; 516cdf0e10cSrcweir sal_uInt16* pDlgType; 517cdf0e10cSrcweir sal_uInt16* pPos; 518cdf0e10cSrcweir sal_Bool* pbAreaTP; 519cdf0e10cSrcweir 520cdf0e10cSrcweir XOutdevItemPool* pXPool; 521cdf0e10cSrcweir XFillStyleItem aXFStyleItem; 522cdf0e10cSrcweir XFillHatchItem aXHatchItem; 523cdf0e10cSrcweir XFillAttrSetItem aXFillAttr; 524cdf0e10cSrcweir SfxItemSet& rXFSet; 525cdf0e10cSrcweir 526cdf0e10cSrcweir SfxMapUnit ePoolUnit; 527cdf0e10cSrcweir 528cdf0e10cSrcweir #ifdef _SVX_TPHATCH_CXX 529cdf0e10cSrcweir DECL_LINK( ChangeHatchHdl_Impl, void * ); 530cdf0e10cSrcweir DECL_LINK( ModifiedHdl_Impl, void * ); 531cdf0e10cSrcweir DECL_LINK( ClickAddHdl_Impl, void * ); 532cdf0e10cSrcweir DECL_LINK( ClickModifyHdl_Impl, void * ); 533cdf0e10cSrcweir DECL_LINK( ClickDeleteHdl_Impl, void * ); 534cdf0e10cSrcweir DECL_LINK( ClickLoadHdl_Impl, void * ); 535cdf0e10cSrcweir DECL_LINK( ClickSaveHdl_Impl, void * ); 536cdf0e10cSrcweir 537cdf0e10cSrcweir long CheckChanges_Impl(); 538cdf0e10cSrcweir #endif 539cdf0e10cSrcweir 540cdf0e10cSrcweir public: 541cdf0e10cSrcweir SvxHatchTabPage( Window* pParent, const SfxItemSet& rInAttrs ); 542cdf0e10cSrcweir 543cdf0e10cSrcweir void Construct(); 544cdf0e10cSrcweir 545cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 546cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 547cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 548cdf0e10cSrcweir 549cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 550cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet ); 551cdf0e10cSrcweir 552cdf0e10cSrcweir virtual void PointChanged( Window* pWindow, RECT_POINT eRP ); 553cdf0e10cSrcweir SetColorTable(XColorListSharedPtr aColTab)554c7be74b1SArmin Le Grand void SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; } SetHatchingList(XHatchListSharedPtr aHtchLst)555c7be74b1SArmin Le Grand void SetHatchingList( XHatchListSharedPtr aHtchLst) { maHatchingList = aHtchLst; } 556cdf0e10cSrcweir SetPageType(sal_uInt16 * pInType)557cdf0e10cSrcweir void SetPageType( sal_uInt16* pInType ) { pPageType = pInType; } SetDlgType(sal_uInt16 * pInType)558cdf0e10cSrcweir void SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; } SetPos(sal_uInt16 * pInPos)559cdf0e10cSrcweir void SetPos( sal_uInt16* pInPos ) { pPos = pInPos; } SetAreaTP(sal_Bool * pIn)560cdf0e10cSrcweir void SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; } 561cdf0e10cSrcweir SetHtchChgd(ChangeType * pIn)562cdf0e10cSrcweir void SetHtchChgd( ChangeType* pIn ) { pnHatchingListState = pIn; } SetColorChgd(ChangeType * pIn)563cdf0e10cSrcweir void SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; } 564cdf0e10cSrcweir 565cdf0e10cSrcweir virtual void DataChanged( const DataChangedEvent& rDCEvt ); 566cdf0e10cSrcweir }; 567cdf0e10cSrcweir 568cdf0e10cSrcweir /************************************************************************* 569cdf0e10cSrcweir |* Bitmap-Tab-Page 570cdf0e10cSrcweir \************************************************************************/ 571cdf0e10cSrcweir 572cdf0e10cSrcweir class SvxBitmapTabPage : public SvxTabPage 573cdf0e10cSrcweir { 574cdf0e10cSrcweir using TabPage::ActivatePage; 575cdf0e10cSrcweir using TabPage::DeactivatePage; 576cdf0e10cSrcweir 577cdf0e10cSrcweir private: 578cdf0e10cSrcweir SvxPixelCtl aCtlPixel; 579cdf0e10cSrcweir FixedText aFtPixelEdit; 580cdf0e10cSrcweir FixedText aFtColor; 581cdf0e10cSrcweir ColorLB aLbColor; 582cdf0e10cSrcweir FixedText aFtBackgroundColor; 583cdf0e10cSrcweir ColorLB aLbBackgroundColor; 584cdf0e10cSrcweir FixedText aLbBitmapsHidden; 585cdf0e10cSrcweir BitmapLB aLbBitmaps; 586cdf0e10cSrcweir FixedLine aFlProp; 587cdf0e10cSrcweir SvxXRectPreview aCtlPreview; 588cdf0e10cSrcweir PushButton aBtnAdd; 589cdf0e10cSrcweir PushButton aBtnModify; 590cdf0e10cSrcweir PushButton aBtnImport; 591cdf0e10cSrcweir PushButton aBtnDelete; 592cdf0e10cSrcweir ImageButton aBtnLoad; 593cdf0e10cSrcweir ImageButton aBtnSave; 594cdf0e10cSrcweir 595cdf0e10cSrcweir SvxBitmapCtl aBitmapCtl; 596cdf0e10cSrcweir 597cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 598cdf0e10cSrcweir 599c7be74b1SArmin Le Grand XColorListSharedPtr maColorTab; 600c7be74b1SArmin Le Grand XBitmapListSharedPtr maBitmapList; 601cdf0e10cSrcweir 602cdf0e10cSrcweir ChangeType* pnBitmapListState; 603cdf0e10cSrcweir ChangeType* pnColorTableState; 604cdf0e10cSrcweir sal_uInt16* pPageType; 605cdf0e10cSrcweir sal_uInt16* pDlgType; 606cdf0e10cSrcweir sal_uInt16* pPos; 607cdf0e10cSrcweir sal_Bool* pbAreaTP; 608cdf0e10cSrcweir 609cdf0e10cSrcweir sal_Bool bBmpChanged; 610cdf0e10cSrcweir 611cdf0e10cSrcweir XOutdevItemPool* pXPool; 612cdf0e10cSrcweir XFillStyleItem aXFStyleItem; 613cdf0e10cSrcweir XFillBitmapItem aXBitmapItem; 614cdf0e10cSrcweir XFillAttrSetItem aXFillAttr; 615cdf0e10cSrcweir SfxItemSet& rXFSet; 616cdf0e10cSrcweir 617cdf0e10cSrcweir #ifdef _SVX_TPBITMAP_CXX 618cdf0e10cSrcweir DECL_LINK( ClickAddHdl_Impl, void * ); 619cdf0e10cSrcweir DECL_LINK( ClickImportHdl_Impl, void * ); 620cdf0e10cSrcweir DECL_LINK( ClickModifyHdl_Impl, void * ); 621cdf0e10cSrcweir DECL_LINK( ClickDeleteHdl_Impl, void * ); 622cdf0e10cSrcweir DECL_LINK( ChangeBitmapHdl_Impl, void * ); 623cdf0e10cSrcweir DECL_LINK( ChangePixelColorHdl_Impl, void * ); 624cdf0e10cSrcweir DECL_LINK( ChangeBackgrndColorHdl_Impl, void * ); 625cdf0e10cSrcweir DECL_LINK( ClickLoadHdl_Impl, void * ); 626cdf0e10cSrcweir DECL_LINK( ClickSaveHdl_Impl, void * ); 627cdf0e10cSrcweir 628cdf0e10cSrcweir long CheckChanges_Impl(); 629cdf0e10cSrcweir #endif 630cdf0e10cSrcweir 631cdf0e10cSrcweir public: 632cdf0e10cSrcweir SvxBitmapTabPage( Window* pParent, const SfxItemSet& rInAttrs ); 633cdf0e10cSrcweir 634cdf0e10cSrcweir void Construct(); 635cdf0e10cSrcweir 636cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 637cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 638cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 639cdf0e10cSrcweir 640cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 641cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet ); 642cdf0e10cSrcweir 643cdf0e10cSrcweir virtual void PointChanged( Window* pWindow, RECT_POINT eRP ); 644cdf0e10cSrcweir SetColorTable(XColorListSharedPtr aColTab)645c7be74b1SArmin Le Grand void SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; } SetBitmapList(XBitmapListSharedPtr aBmpLst)646c7be74b1SArmin Le Grand void SetBitmapList( XBitmapListSharedPtr aBmpLst) { maBitmapList = aBmpLst; } 647cdf0e10cSrcweir SetPageType(sal_uInt16 * pInType)648cdf0e10cSrcweir void SetPageType( sal_uInt16* pInType ) { pPageType = pInType; } SetDlgType(sal_uInt16 * pInType)649cdf0e10cSrcweir void SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; } SetPos(sal_uInt16 * pInPos)650cdf0e10cSrcweir void SetPos( sal_uInt16* pInPos ) { pPos = pInPos; } SetAreaTP(sal_Bool * pIn)651cdf0e10cSrcweir void SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; } 652cdf0e10cSrcweir SetBmpChgd(ChangeType * pIn)653cdf0e10cSrcweir void SetBmpChgd( ChangeType* pIn ) { pnBitmapListState = pIn; } SetColorChgd(ChangeType * pIn)654cdf0e10cSrcweir void SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; } 655cdf0e10cSrcweir 656cdf0e10cSrcweir /** Return a label that is associated with the given control. This 657cdf0e10cSrcweir label is used to the determine the name for the control. 658cdf0e10cSrcweir @param pLabeled 659cdf0e10cSrcweir The control for which to return a label. 660cdf0e10cSrcweir @return 661cdf0e10cSrcweir Return a label control that provides a name for the specified 662cdf0e10cSrcweir control. 663cdf0e10cSrcweir */ 664cdf0e10cSrcweir virtual Window* GetParentLabeledBy( const Window* pLabeled ) const; 665cdf0e10cSrcweir }; 666cdf0e10cSrcweir 667cdf0e10cSrcweir /************************************************************************* 668cdf0e10cSrcweir |* Farben-Tab-Page 669cdf0e10cSrcweir \************************************************************************/ 670cdf0e10cSrcweir 671cdf0e10cSrcweir class SvxColorTabPage : public SfxTabPage 672cdf0e10cSrcweir { 673cdf0e10cSrcweir using TabPage::ActivatePage; 674cdf0e10cSrcweir using TabPage::DeactivatePage; 675cdf0e10cSrcweir 676cdf0e10cSrcweir private: 677cdf0e10cSrcweir FixedLine aFlProp; 678cdf0e10cSrcweir FixedText aFtName; 679cdf0e10cSrcweir Edit aEdtName; 680cdf0e10cSrcweir FixedText aFtColor; 681cdf0e10cSrcweir ColorLB aLbColor; 682cdf0e10cSrcweir 683cdf0e10cSrcweir FixedText aTableNameFT; 68428bcfa49SArmin Le Grand SvxColorValueSet aValSetColorTable; 685cdf0e10cSrcweir 686cdf0e10cSrcweir SvxXRectPreview aCtlPreviewOld; 687cdf0e10cSrcweir SvxXRectPreview aCtlPreviewNew; 688cdf0e10cSrcweir 689cdf0e10cSrcweir ListBox aLbColorModel; 690cdf0e10cSrcweir FixedText aFtColorModel1; 691cdf0e10cSrcweir MetricField aMtrFldColorModel1; 692cdf0e10cSrcweir FixedText aFtColorModel2; 693cdf0e10cSrcweir MetricField aMtrFldColorModel2; 694cdf0e10cSrcweir FixedText aFtColorModel3; 695cdf0e10cSrcweir MetricField aMtrFldColorModel3; 696cdf0e10cSrcweir 697cdf0e10cSrcweir FixedText aFtColorModel4; 698cdf0e10cSrcweir MetricField aMtrFldColorModel4; 699cdf0e10cSrcweir 700cdf0e10cSrcweir PushButton aBtnAdd; 701cdf0e10cSrcweir PushButton aBtnModify; 702cdf0e10cSrcweir PushButton aBtnWorkOn; 703cdf0e10cSrcweir PushButton aBtnDelete; 704cdf0e10cSrcweir ImageButton aBtnLoad; 705cdf0e10cSrcweir ImageButton aBtnSave; 706cdf0e10cSrcweir 707cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 708cdf0e10cSrcweir 709c7be74b1SArmin Le Grand XColorListSharedPtr maColorTab; 710cdf0e10cSrcweir 711cdf0e10cSrcweir ChangeType* pnColorTableState; 712cdf0e10cSrcweir sal_uInt16* pPageType; 713cdf0e10cSrcweir sal_uInt16* pDlgType; 714cdf0e10cSrcweir sal_uInt16* pPos; 715cdf0e10cSrcweir sal_Bool* pbAreaTP; 716cdf0e10cSrcweir 717cdf0e10cSrcweir XOutdevItemPool* pXPool; 718cdf0e10cSrcweir XFillStyleItem aXFStyleItem; 719cdf0e10cSrcweir XFillColorItem aXFillColorItem; 720cdf0e10cSrcweir XFillAttrSetItem aXFillAttr; 721cdf0e10cSrcweir SfxItemSet& rXFSet; 722cdf0e10cSrcweir 723cdf0e10cSrcweir ColorModel eCM; 724cdf0e10cSrcweir 725cdf0e10cSrcweir Color aAktuellColor; 726cdf0e10cSrcweir 727cdf0e10cSrcweir #ifdef _SVX_TPCOLOR_CXX 728cdf0e10cSrcweir void ConvertColorValues (Color& rColor, ColorModel eModell); 729cdf0e10cSrcweir void RgbToCmyk_Impl( Color& rColor, sal_uInt16& rK ); 730cdf0e10cSrcweir void CmykToRgb_Impl( Color& rColor, const sal_uInt16 nKey ); 731cdf0e10cSrcweir sal_uInt16 ColorToPercent_Impl( sal_uInt16 nColor ); 732cdf0e10cSrcweir sal_uInt16 PercentToColor_Impl( sal_uInt16 nPercent ); 733cdf0e10cSrcweir 73428bcfa49SArmin Le Grand void ImpColorCountChanged(); 73528bcfa49SArmin Le Grand 736cdf0e10cSrcweir //----------------------------------------------------------------------------------------------------- 737*883ba44fSmseidel DECL_LINK( ClickAddHdl_Impl, void * ); // Button 'Hinzufügen' 738*883ba44fSmseidel DECL_LINK( ClickModifyHdl_Impl, void * ); // Button 'Ändern' 739*883ba44fSmseidel DECL_LINK( ClickDeleteHdl_Impl, void * ); // Button 'löschen' 740cdf0e10cSrcweir DECL_LINK( ClickWorkOnHdl_Impl, void * ); // Button 'Bearbeiten' 741cdf0e10cSrcweir 742*883ba44fSmseidel DECL_LINK( SelectColorLBHdl_Impl, void * ); // Farbe aus Listbox auswählen 743*883ba44fSmseidel DECL_LINK( SelectValSetHdl_Impl, void * ); // Farbe aus Farbpalette (links) auswählen 744cdf0e10cSrcweir DECL_LINK( SelectColorModelHdl_Impl, void * ); // Auswahl Listbox 'Farbmodell' 745cdf0e10cSrcweir long ChangeColorHdl_Impl( void* p ); 746*883ba44fSmseidel DECL_LINK( ModifiedHdl_Impl, void * ); // Inhalt der Farbwerte-Felder wurde verändert 747cdf0e10cSrcweir DECL_LINK( ClickLoadHdl_Impl, void * ); // Button 'Farbtabelle laden' 748cdf0e10cSrcweir DECL_LINK( ClickSaveHdl_Impl, void * ); // Button 'Farbtabelle sichern' 749cdf0e10cSrcweir 750cdf0e10cSrcweir long CheckChanges_Impl(); 751cdf0e10cSrcweir #endif 752cdf0e10cSrcweir 753cdf0e10cSrcweir public: 754cdf0e10cSrcweir SvxColorTabPage( Window* pParent, const SfxItemSet& rInAttrs ); 755cdf0e10cSrcweir 756cdf0e10cSrcweir void Construct(); 757cdf0e10cSrcweir 758cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 759cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 760cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 761cdf0e10cSrcweir 762cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 763cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet ); 764cdf0e10cSrcweir SetColorTable(XColorListSharedPtr aColTab)765c7be74b1SArmin Le Grand void SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; } 766cdf0e10cSrcweir SetPageType(sal_uInt16 * pInType)767cdf0e10cSrcweir void SetPageType( sal_uInt16* pInType ) { pPageType = pInType; } SetDlgType(sal_uInt16 * pInType)768cdf0e10cSrcweir void SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; } SetPos(sal_uInt16 * pInPos)769cdf0e10cSrcweir void SetPos( sal_uInt16* pInPos ) { pPos = pInPos; } SetAreaTP(sal_Bool * pIn)770cdf0e10cSrcweir void SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; } 771cdf0e10cSrcweir SetColorChgd(ChangeType * pIn)772cdf0e10cSrcweir void SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; } 773cdf0e10cSrcweir 774cdf0e10cSrcweir virtual void FillUserData(); 775cdf0e10cSrcweir }; 776cdf0e10cSrcweir 777cdf0e10cSrcweir 778cdf0e10cSrcweir #endif // _CUI_TAB_AREA_HXX 779*883ba44fSmseidel 780*883ba44fSmseidel /* vim: set noet sw=4 ts=4: */ 781