viewcontactofmasterpagedescriptor.cxx (f6e50924) viewcontactofmasterpagedescriptor.cxx (64b14621)
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

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

70 {
71 // direct model data is the page size, get and use it
72 const SdrPage& rOwnerPage = GetMasterPageDescriptor().GetOwnerPage();
73 const basegfx::B2DRange aInnerRange(
74 rOwnerPage.GetLftBorder(), rOwnerPage.GetUppBorder(),
75 rOwnerPage.GetWdt() - rOwnerPage.GetRgtBorder(),
76 rOwnerPage.GetHgt() - rOwnerPage.GetLwrBorder());
77 const basegfx::B2DPolygon aInnerPolgon(basegfx::tools::createPolygonFromRect(aInnerRange));
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

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

70 {
71 // direct model data is the page size, get and use it
72 const SdrPage& rOwnerPage = GetMasterPageDescriptor().GetOwnerPage();
73 const basegfx::B2DRange aInnerRange(
74 rOwnerPage.GetLftBorder(), rOwnerPage.GetUppBorder(),
75 rOwnerPage.GetWdt() - rOwnerPage.GetRgtBorder(),
76 rOwnerPage.GetHgt() - rOwnerPage.GetLwrBorder());
77 const basegfx::B2DPolygon aInnerPolgon(basegfx::tools::createPolygonFromRect(aInnerRange));
78 const basegfx::B2DHomMatrix aEmptyTransform;
79 const drawinglayer::primitive2d::Primitive2DReference xReference(
80 drawinglayer::primitive2d::createPolyPolygonFillPrimitive(
81 basegfx::B2DPolyPolygon(aInnerPolgon),
78 const drawinglayer::primitive2d::Primitive2DReference xReference(
79 drawinglayer::primitive2d::createPolyPolygonFillPrimitive(
80 basegfx::B2DPolyPolygon(aInnerPolgon),
82 aEmptyTransform,
83 aFill,
84 drawinglayer::attribute::FillGradientAttribute()));
85
86 xRetval = drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1);
87 }
88
89 return xRetval;
90 }

--- 32 unchanged lines hidden ---
81 aFill,
82 drawinglayer::attribute::FillGradientAttribute()));
83
84 xRetval = drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1);
85 }
86
87 return xRetval;
88 }

--- 32 unchanged lines hidden ---