tabtempl.cxx (79aad27f) | tabtempl.cxx (c7be74b1) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 55 unchanged lines hidden (view full) --- 64SdTabTemplateDlg::SdTabTemplateDlg( Window* pParent, 65 const SfxObjectShell* pDocShell, 66 SfxStyleSheetBase& rStyleBase, 67 SdrModel* pModel, 68 SdrView* pView ) : 69 SfxStyleDialog ( pParent, SdResId( TAB_TEMPLATE ), rStyleBase, sal_False ), 70 rDocShell ( *pDocShell ), 71 pSdrView ( pView ), | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 55 unchanged lines hidden (view full) --- 64SdTabTemplateDlg::SdTabTemplateDlg( Window* pParent, 65 const SfxObjectShell* pDocShell, 66 SfxStyleSheetBase& rStyleBase, 67 SdrModel* pModel, 68 SdrView* pView ) : 69 SfxStyleDialog ( pParent, SdResId( TAB_TEMPLATE ), rStyleBase, sal_False ), 70 rDocShell ( *pDocShell ), 71 pSdrView ( pView ), |
72 pColorTab ( pModel->GetColorTable() ), 73 pGradientList ( pModel->GetGradientList() ), 74 pHatchingList ( pModel->GetHatchList() ), 75 pBitmapList ( pModel->GetBitmapList() ), 76 pDashList ( pModel->GetDashList() ), 77 pLineEndList ( pModel->GetLineEndList() ) | 72 maColorTab ( pModel->GetColorTableFromSdrModel() ), 73 maGradientList ( pModel->GetGradientListFromSdrModel() ), 74 maHatchingList ( pModel->GetHatchListFromSdrModel() ), 75 maBitmapList ( pModel->GetBitmapListFromSdrModel() ), 76 maDashList ( pModel->GetDashListFromSdrModel() ), 77 maLineEndList ( pModel->GetLineEndListFromSdrModel() ) |
78{ 79 FreeResource(); 80 81 // Listbox fuellen und Select-Handler ueberladen 82 83 AddTabPage( RID_SVXPAGE_LINE); 84 AddTabPage( RID_SVXPAGE_AREA); 85 AddTabPage( RID_SVXPAGE_SHADOW); --- 32 unchanged lines hidden (view full) --- 118// ----------------------------------------------------------------------- 119 120void SdTabTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) 121{ 122 SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool())); 123 switch( nId ) 124 { 125 case RID_SVXPAGE_LINE: | 78{ 79 FreeResource(); 80 81 // Listbox fuellen und Select-Handler ueberladen 82 83 AddTabPage( RID_SVXPAGE_LINE); 84 AddTabPage( RID_SVXPAGE_AREA); 85 AddTabPage( RID_SVXPAGE_SHADOW); --- 32 unchanged lines hidden (view full) --- 118// ----------------------------------------------------------------------- 119 120void SdTabTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) 121{ 122 SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool())); 123 switch( nId ) 124 { 125 case RID_SVXPAGE_LINE: |
126 aSet.Put (SvxColorTableItem(pColorTab,SID_COLOR_TABLE)); 127 aSet.Put (SvxDashListItem(pDashList,SID_DASH_LIST)); 128 aSet.Put (SvxLineEndListItem(pLineEndList,SID_LINEEND_LIST)); | 126 aSet.Put (SvxColorTableItem(maColorTab,SID_COLOR_TABLE)); 127 aSet.Put (SvxDashListItem(maDashList,SID_DASH_LIST)); 128 aSet.Put (SvxLineEndListItem(maLineEndList,SID_LINEEND_LIST)); |
129 aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType)); 130 rPage.PageCreated(aSet); 131 break; 132 133 case RID_SVXPAGE_AREA: | 129 aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType)); 130 rPage.PageCreated(aSet); 131 break; 132 133 case RID_SVXPAGE_AREA: |
134 aSet.Put (SvxColorTableItem(pColorTab,SID_COLOR_TABLE)); 135 aSet.Put (SvxGradientListItem(pGradientList,SID_GRADIENT_LIST)); 136 aSet.Put (SvxHatchListItem(pHatchingList,SID_HATCH_LIST)); 137 aSet.Put (SvxBitmapListItem(pBitmapList,SID_BITMAP_LIST)); | 134 aSet.Put (SvxColorTableItem(maColorTab,SID_COLOR_TABLE)); 135 aSet.Put (SvxGradientListItem(maGradientList,SID_GRADIENT_LIST)); 136 aSet.Put (SvxHatchListItem(maHatchingList,SID_HATCH_LIST)); 137 aSet.Put (SvxBitmapListItem(maBitmapList,SID_BITMAP_LIST)); |
138 aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType)); 139 aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType)); 140 aSet.Put (SfxUInt16Item(SID_TABPAGE_POS,nPos)); 141 rPage.PageCreated(aSet); 142 143 144 break; 145 146 case RID_SVXPAGE_SHADOW: | 138 aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType)); 139 aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType)); 140 aSet.Put (SfxUInt16Item(SID_TABPAGE_POS,nPos)); 141 rPage.PageCreated(aSet); 142 143 144 break; 145 146 case RID_SVXPAGE_SHADOW: |
147 aSet.Put (SvxColorTableItem(pColorTab,SID_COLOR_TABLE)); //add CHINA001 | 147 aSet.Put (SvxColorTableItem(maColorTab,SID_COLOR_TABLE)); //add CHINA001 |
148 aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType)); 149 aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType)); 150 rPage.PageCreated(aSet); 151 break; 152 153 case RID_SVXPAGE_TRANSPARENCE: 154 aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType)); 155 aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType)); --- 64 unchanged lines hidden --- | 148 aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType)); 149 aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType)); 150 rPage.PageCreated(aSet); 151 break; 152 153 case RID_SVXPAGE_TRANSPARENCE: 154 aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType)); 155 aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType)); --- 64 unchanged lines hidden --- |