tpgradnt.cxx (c7be74b1) | tpgradnt.cxx (3e407bd8) |
---|---|
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 --- 499 unchanged lines hidden (view full) --- 508 (sal_uInt16) aMtrCenterY.GetValue(), 509 (sal_uInt16) aMtrBorder.GetValue(), 510 (sal_uInt16) aMtrColorFrom.GetValue(), 511 (sal_uInt16) aMtrColorTo.GetValue() ); 512 XGradientEntry* pEntry = new XGradientEntry( aXGradient, aName ); 513 514 maGradientList->Insert( pEntry, nCount ); 515 | 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 --- 499 unchanged lines hidden (view full) --- 508 (sal_uInt16) aMtrCenterY.GetValue(), 509 (sal_uInt16) aMtrBorder.GetValue(), 510 (sal_uInt16) aMtrColorFrom.GetValue(), 511 (sal_uInt16) aMtrColorTo.GetValue() ); 512 XGradientEntry* pEntry = new XGradientEntry( aXGradient, aName ); 513 514 maGradientList->Insert( pEntry, nCount ); 515 |
516 aLbGradients.Append( pEntry ); | 516 aLbGradients.Append( *pEntry, maGradientList->GetUiBitmap( nCount ) ); |
517 518 aLbGradients.SelectEntryPos( aLbGradients.GetEntryCount() - 1 ); 519 520#ifdef WNT 521 // hack: #31355# W.P. 522 Rectangle aRect( aLbGradients.GetPosPixel(), aLbGradients.GetSizePixel() ); 523 if( sal_True ) { // ??? overlapped with pDlg 524 // and srolling --- 65 unchanged lines hidden (view full) --- 590 (sal_uInt16) aMtrBorder.GetValue(), 591 (sal_uInt16) aMtrColorFrom.GetValue(), 592 (sal_uInt16) aMtrColorTo.GetValue() ); 593 594 XGradientEntry* pEntry = new XGradientEntry( aXGradient, aName ); 595 596 delete maGradientList->Replace( pEntry, nPos ); 597 | 517 518 aLbGradients.SelectEntryPos( aLbGradients.GetEntryCount() - 1 ); 519 520#ifdef WNT 521 // hack: #31355# W.P. 522 Rectangle aRect( aLbGradients.GetPosPixel(), aLbGradients.GetSizePixel() ); 523 if( sal_True ) { // ??? overlapped with pDlg 524 // and srolling --- 65 unchanged lines hidden (view full) --- 590 (sal_uInt16) aMtrBorder.GetValue(), 591 (sal_uInt16) aMtrColorFrom.GetValue(), 592 (sal_uInt16) aMtrColorTo.GetValue() ); 593 594 XGradientEntry* pEntry = new XGradientEntry( aXGradient, aName ); 595 596 delete maGradientList->Replace( pEntry, nPos ); 597 |
598 aLbGradients.Modify( pEntry, nPos ); | 598 aLbGradients.Modify( *pEntry, nPos, maGradientList->GetUiBitmap( nPos ) ); |
599 600 aLbGradients.SelectEntryPos( nPos ); 601 602 // Flag fuer modifiziert setzen 603 *pnGradientListState |= CT_MODIFIED; 604 } 605 else 606 { --- 329 unchanged lines hidden --- | 599 600 aLbGradients.SelectEntryPos( nPos ); 601 602 // Flag fuer modifiziert setzen 603 *pnGradientListState |= CT_MODIFIED; 604 } 605 else 606 { --- 329 unchanged lines hidden --- |