drviews9.cxx (79aad27f) drviews9.cxx (b97e4aeb)
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

--- 372 unchanged lines hidden (view full) ---

381 pAttr->ClearItem (XATTR_FILLSTYLE);
382
383 for ( i = 0; i < nCounts; i ++)
384 {
385 XGradientEntry *pEntry = pGradientList->GetGradient (i);
386
387 if (pEntry->GetName () == pName->GetValue ())
388 {
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

--- 372 unchanged lines hidden (view full) ---

381 pAttr->ClearItem (XATTR_FILLSTYLE);
382
383 for ( i = 0; i < nCounts; i ++)
384 {
385 XGradientEntry *pEntry = pGradientList->GetGradient (i);
386
387 if (pEntry->GetName () == pName->GetValue ())
388 {
389 XGradient &rGradient = pEntry->GetGradient ();
389 XGradient aGradient(pEntry->GetGradient());
390
390
391 if (rReq.GetSlot () == SID_SETGRADSTARTCOLOR) rGradient.SetStartColor (aColor);
392 else rGradient.SetEndColor (aColor);
391 if (rReq.GetSlot () == SID_SETGRADSTARTCOLOR) aGradient.SetStartColor (aColor);
392 else aGradient.SetEndColor (aColor);
393
394 pAttr->Put (XFillStyleItem (XFILL_GRADIENT), XATTR_FILLSTYLE);
393
394 pAttr->Put (XFillStyleItem (XFILL_GRADIENT), XATTR_FILLSTYLE);
395 pAttr->Put (XFillGradientItem (pName->GetValue (), rGradient), XATTR_FILLGRADIENT);
395 pAttr->Put (XFillGradientItem (pName->GetValue (), aGradient), XATTR_FILLGRADIENT);
396 break;
397 }
398 }
399
400 if (i >= nCounts)
401 {
402 Color aBlack (0, 0, 0);
403 XGradient aGradient ((rReq.GetSlot () == SID_SETGRADSTARTCOLOR)

--- 37 unchanged lines hidden (view full) ---

441 pAttr->ClearItem (XATTR_FILLSTYLE);
442
443 for ( i = 0; i < nCounts; i ++)
444 {
445 XHatchEntry *pEntry = pHatchList->GetHatch (i);
446
447 if (pEntry->GetName () == pName->GetValue ())
448 {
396 break;
397 }
398 }
399
400 if (i >= nCounts)
401 {
402 Color aBlack (0, 0, 0);
403 XGradient aGradient ((rReq.GetSlot () == SID_SETGRADSTARTCOLOR)

--- 37 unchanged lines hidden (view full) ---

441 pAttr->ClearItem (XATTR_FILLSTYLE);
442
443 for ( i = 0; i < nCounts; i ++)
444 {
445 XHatchEntry *pEntry = pHatchList->GetHatch (i);
446
447 if (pEntry->GetName () == pName->GetValue ())
448 {
449 XHatch &rHatch = pEntry->GetHatch ();
449 XHatch aHatch(pEntry->GetHatch());
450
450
451 rHatch.SetColor (aColor);
451 aHatch.SetColor (aColor);
452
453 pAttr->Put (XFillStyleItem (XFILL_HATCH), XATTR_FILLSTYLE);
452
453 pAttr->Put (XFillStyleItem (XFILL_HATCH), XATTR_FILLSTYLE);
454 pAttr->Put (XFillHatchItem (pName->GetValue (), rHatch), XATTR_FILLHATCH);
454 pAttr->Put (XFillHatchItem (pName->GetValue (), aHatch), XATTR_FILLHATCH);
455 break;
456 }
457 }
458
459 if (i >= nCounts)
460 {
461 XHatch aHatch (aColor);
462

--- 89 unchanged lines hidden (view full) ---

552 long i;
553
554 for ( i = 0; i < nCounts; i++ )
555 {
556 XGradientEntry *pEntry = pGradientList->GetGradient (i);
557
558 if (pEntry->GetName () == pName->GetValue ())
559 {
455 break;
456 }
457 }
458
459 if (i >= nCounts)
460 {
461 XHatch aHatch (aColor);
462

--- 89 unchanged lines hidden (view full) ---

552 long i;
553
554 for ( i = 0; i < nCounts; i++ )
555 {
556 XGradientEntry *pEntry = pGradientList->GetGradient (i);
557
558 if (pEntry->GetName () == pName->GetValue ())
559 {
560 XGradient &rGradient = pEntry->GetGradient ();
560 XGradient aGradient(pEntry->GetGradient());
561
561
562 rGradient.SetGradientStyle ((XGradientStyle) pStyle->GetValue ());
563 rGradient.SetAngle (pAngle->GetValue () * 10);
564 rGradient.SetBorder ((short) pBorder->GetValue ());
565 rGradient.SetXOffset ((short) pCenterX->GetValue ());
566 rGradient.SetYOffset ((short) pCenterY->GetValue ());
567 rGradient.SetStartIntens ((short) pStart->GetValue ());
568 rGradient.SetEndIntens ((short) pEnd->GetValue ());
562 aGradient.SetGradientStyle ((XGradientStyle) pStyle->GetValue ());
563 aGradient.SetAngle (pAngle->GetValue () * 10);
564 aGradient.SetBorder ((short) pBorder->GetValue ());
565 aGradient.SetXOffset ((short) pCenterX->GetValue ());
566 aGradient.SetYOffset ((short) pCenterY->GetValue ());
567 aGradient.SetStartIntens ((short) pStart->GetValue ());
568 aGradient.SetEndIntens ((short) pEnd->GetValue ());
569
570 pAttr->Put (XFillStyleItem (XFILL_GRADIENT), XATTR_FILLSTYLE);
569
570 pAttr->Put (XFillStyleItem (XFILL_GRADIENT), XATTR_FILLSTYLE);
571 pAttr->Put (XFillGradientItem (pName->GetValue (), rGradient), XATTR_FILLGRADIENT);
571 pAttr->Put (XFillGradientItem (pName->GetValue (), aGradient), XATTR_FILLGRADIENT);
572 break;
573 }
574 }
575
576 if (i >= nCounts)
577 {
578 Color aBlack (0, 0, 0);
579 XGradient aGradient (aBlack, aBlack, (XGradientStyle) pStyle->GetValue (),

--- 38 unchanged lines hidden (view full) ---

618 long i;
619
620 for ( i = 0; i < nCounts; i++ )
621 {
622 XHatchEntry *pEntry = pHatchList->GetHatch (i);
623
624 if (pEntry->GetName () == pName->GetValue ())
625 {
572 break;
573 }
574 }
575
576 if (i >= nCounts)
577 {
578 Color aBlack (0, 0, 0);
579 XGradient aGradient (aBlack, aBlack, (XGradientStyle) pStyle->GetValue (),

--- 38 unchanged lines hidden (view full) ---

618 long i;
619
620 for ( i = 0; i < nCounts; i++ )
621 {
622 XHatchEntry *pEntry = pHatchList->GetHatch (i);
623
624 if (pEntry->GetName () == pName->GetValue ())
625 {
626 XHatch &rHatch = pEntry->GetHatch ();
626 XHatch aHatch(pEntry->GetHatch());
627
627
628 rHatch.SetHatchStyle ((XHatchStyle) pStyle->GetValue ());
629 rHatch.SetDistance (pDistance->GetValue ());
630 rHatch.SetAngle (pAngle->GetValue () * 10);
628 aHatch.SetHatchStyle ((XHatchStyle) pStyle->GetValue ());
629 aHatch.SetDistance (pDistance->GetValue ());
630 aHatch.SetAngle (pAngle->GetValue () * 10);
631
632 pAttr->Put (XFillStyleItem (XFILL_HATCH), XATTR_FILLSTYLE);
631
632 pAttr->Put (XFillStyleItem (XFILL_HATCH), XATTR_FILLSTYLE);
633 pAttr->Put (XFillHatchItem (pName->GetValue (), rHatch), XATTR_FILLHATCH);
633 pAttr->Put (XFillHatchItem (pName->GetValue (), aHatch), XATTR_FILLHATCH);
634 break;
635 }
636 }
637
638 if (i >= nCounts)
639 {
640 Color aBlack (0, 0, 0);
641 XHatch aHatch (aBlack, (XHatchStyle) pStyle->GetValue (), pDistance->GetValue (),

--- 236 unchanged lines hidden ---
634 break;
635 }
636 }
637
638 if (i >= nCounts)
639 {
640 Color aBlack (0, 0, 0);
641 XHatch aHatch (aBlack, (XHatchStyle) pStyle->GetValue (), pDistance->GetValue (),

--- 236 unchanged lines hidden ---