opredlin.cxx (97e8a929) | opredlin.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 --- 157 unchanged lines hidden (view full) --- 166 167/*----------------------------------------------------------------------- 168 Beschreibung: 169 -----------------------------------------------------------------------*/ 170 171void __EXPORT ScRedlineOptionsTabPage::Reset( const SfxItemSet& /* rSet */ ) 172{ 173 | 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 --- 157 unchanged lines hidden (view full) --- 166 167/*----------------------------------------------------------------------- 168 Beschreibung: 169 -----------------------------------------------------------------------*/ 170 171void __EXPORT ScRedlineOptionsTabPage::Reset( const SfxItemSet& /* rSet */ ) 172{ 173 |
174 XColorList* pColorTbl = XColorList::GetStdColorList(); | 174 XColorListSharedPtr aColorTbl = XColorList::GetStdColorList(); |
175 aContentColorLB.InsertEntry(aAuthorStr); 176 aMoveColorLB.InsertEntry(aAuthorStr); 177 aInsertColorLB.InsertEntry(aAuthorStr); 178 aRemoveColorLB.InsertEntry(aAuthorStr); 179 180 aContentColorLB.SetUpdateMode( sal_False); 181 aMoveColorLB.SetUpdateMode( sal_False); 182 aInsertColorLB.SetUpdateMode( sal_False); 183 aRemoveColorLB.SetUpdateMode( sal_False); 184 | 175 aContentColorLB.InsertEntry(aAuthorStr); 176 aMoveColorLB.InsertEntry(aAuthorStr); 177 aInsertColorLB.InsertEntry(aAuthorStr); 178 aRemoveColorLB.InsertEntry(aAuthorStr); 179 180 aContentColorLB.SetUpdateMode( sal_False); 181 aMoveColorLB.SetUpdateMode( sal_False); 182 aInsertColorLB.SetUpdateMode( sal_False); 183 aRemoveColorLB.SetUpdateMode( sal_False); 184 |
185 for( sal_uInt16 i = 0; i < pColorTbl->Count(); ++i ) | 185 for( sal_uInt16 i = 0; i < aColorTbl->Count(); ++i ) |
186 { | 186 { |
187 XColorEntry* pEntry = pColorTbl->GetColor( i ); | 187 XColorEntry* pEntry = aColorTbl->GetColor( i ); |
188 Color aColor = pEntry->GetColor(); 189 String sName = pEntry->GetName(); 190 191 aContentColorLB.InsertEntry( aColor, sName ); 192 aMoveColorLB.InsertEntry( aColor, sName ); 193 aInsertColorLB.InsertEntry( aColor, sName ); 194 aRemoveColorLB.InsertEntry( aColor, sName ); 195 } --- 90 unchanged lines hidden --- | 188 Color aColor = pEntry->GetColor(); 189 String sName = pEntry->GetName(); 190 191 aContentColorLB.InsertEntry( aColor, sName ); 192 aMoveColorLB.InsertEntry( aColor, sName ); 193 aInsertColorLB.InsertEntry( aColor, sName ); 194 aRemoveColorLB.InsertEntry( aColor, sName ); 195 } --- 90 unchanged lines hidden --- |