svdotxtr.cxx (c0739476) | svdotxtr.cxx (26734c99) |
---|---|
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 --- 66 unchanged lines hidden (view full) --- 75 long nTHgt0=aRect.GetHeight()-1-nVDist; if (nTHgt0<0) nTHgt0=0; 76 long nTWdt1=rRect.GetWidth ()-1-nHDist; if (nTWdt1<0) nTWdt1=0; 77 long nTHgt1=rRect.GetHeight()-1-nVDist; if (nTHgt1<0) nTHgt1=0; 78 aRect=rRect; 79 ImpJustifyRect(aRect); 80 if (bTextFrame && (pModel==NULL || !pModel->IsPasteResize())) { // #51139# 81 if (nTWdt0!=nTWdt1 && IsAutoGrowWidth() ) NbcSetMinTextFrameWidth(nTWdt1); 82 if (nTHgt0!=nTHgt1 && IsAutoGrowHeight()) NbcSetMinTextFrameHeight(nTHgt1); | 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 --- 66 unchanged lines hidden (view full) --- 75 long nTHgt0=aRect.GetHeight()-1-nVDist; if (nTHgt0<0) nTHgt0=0; 76 long nTWdt1=rRect.GetWidth ()-1-nHDist; if (nTWdt1<0) nTWdt1=0; 77 long nTHgt1=rRect.GetHeight()-1-nVDist; if (nTHgt1<0) nTHgt1=0; 78 aRect=rRect; 79 ImpJustifyRect(aRect); 80 if (bTextFrame && (pModel==NULL || !pModel->IsPasteResize())) { // #51139# 81 if (nTWdt0!=nTWdt1 && IsAutoGrowWidth() ) NbcSetMinTextFrameWidth(nTWdt1); 82 if (nTHgt0!=nTHgt1 && IsAutoGrowHeight()) NbcSetMinTextFrameHeight(nTHgt1); |
83 if (GetFitToSize()) 84 { | 83 if (GetFitToSize()==SDRTEXTFIT_RESIZEATTR) { |
85 NbcResizeTextAttributes(Fraction(nTWdt1,nTWdt0),Fraction(nTHgt1,nTHgt0)); 86 } 87 NbcAdjustTextFrameWidthAndHeight(); 88 } 89 ImpCheckShear(); 90 SetRectsDirty(); 91 } 92} --- 11 unchanged lines hidden (view full) --- 104 long nTHgt0=aRect.GetHeight()-1-nVDist; if (nTHgt0<0) nTHgt0=0; 105 long nTWdt1=rRect.GetWidth ()-1-nHDist; if (nTWdt1<0) nTWdt1=0; 106 long nTHgt1=rRect.GetHeight()-1-nVDist; if (nTHgt1<0) nTHgt1=0; 107 aRect=rRect; 108 ImpJustifyRect(aRect); 109 if (bTextFrame) { 110 if (nTWdt0!=nTWdt1 && IsAutoGrowWidth() ) NbcSetMinTextFrameWidth(nTWdt1); 111 if (nTHgt0!=nTHgt1 && IsAutoGrowHeight()) NbcSetMinTextFrameHeight(nTHgt1); | 84 NbcResizeTextAttributes(Fraction(nTWdt1,nTWdt0),Fraction(nTHgt1,nTHgt0)); 85 } 86 NbcAdjustTextFrameWidthAndHeight(); 87 } 88 ImpCheckShear(); 89 SetRectsDirty(); 90 } 91} --- 11 unchanged lines hidden (view full) --- 103 long nTHgt0=aRect.GetHeight()-1-nVDist; if (nTHgt0<0) nTHgt0=0; 104 long nTWdt1=rRect.GetWidth ()-1-nHDist; if (nTWdt1<0) nTWdt1=0; 105 long nTHgt1=rRect.GetHeight()-1-nVDist; if (nTHgt1<0) nTHgt1=0; 106 aRect=rRect; 107 ImpJustifyRect(aRect); 108 if (bTextFrame) { 109 if (nTWdt0!=nTWdt1 && IsAutoGrowWidth() ) NbcSetMinTextFrameWidth(nTWdt1); 110 if (nTHgt0!=nTHgt1 && IsAutoGrowHeight()) NbcSetMinTextFrameHeight(nTHgt1); |
112 if (GetFitToSize()) 113 { | 111 if (GetFitToSize()==SDRTEXTFIT_RESIZEATTR) { |
114 NbcResizeTextAttributes(Fraction(nTWdt1,nTWdt0),Fraction(nTHgt1,nTHgt0)); 115 } 116 NbcAdjustTextFrameWidthAndHeight(); 117 } 118 SetRectsDirty(); 119} 120 121long SdrTextObj::GetRotateAngle() const --- 99 unchanged lines hidden (view full) --- 221 } 222 223 ImpJustifyRect(aRect); 224 long nTWdt1=aRect.GetWidth ()-1-nHDist; if (nTWdt1<0) nTWdt1=0; 225 long nTHgt1=aRect.GetHeight()-1-nVDist; if (nTHgt1<0) nTHgt1=0; 226 if (bTextFrame && (pModel==NULL || !pModel->IsPasteResize())) { // #51139# 227 if (nTWdt0!=nTWdt1 && IsAutoGrowWidth() ) NbcSetMinTextFrameWidth(nTWdt1); 228 if (nTHgt0!=nTHgt1 && IsAutoGrowHeight()) NbcSetMinTextFrameHeight(nTHgt1); | 112 NbcResizeTextAttributes(Fraction(nTWdt1,nTWdt0),Fraction(nTHgt1,nTHgt0)); 113 } 114 NbcAdjustTextFrameWidthAndHeight(); 115 } 116 SetRectsDirty(); 117} 118 119long SdrTextObj::GetRotateAngle() const --- 99 unchanged lines hidden (view full) --- 219 } 220 221 ImpJustifyRect(aRect); 222 long nTWdt1=aRect.GetWidth ()-1-nHDist; if (nTWdt1<0) nTWdt1=0; 223 long nTHgt1=aRect.GetHeight()-1-nVDist; if (nTHgt1<0) nTHgt1=0; 224 if (bTextFrame && (pModel==NULL || !pModel->IsPasteResize())) { // #51139# 225 if (nTWdt0!=nTWdt1 && IsAutoGrowWidth() ) NbcSetMinTextFrameWidth(nTWdt1); 226 if (nTHgt0!=nTHgt1 && IsAutoGrowHeight()) NbcSetMinTextFrameHeight(nTHgt1); |
229 if (GetFitToSize()) 230 { | 227 if (GetFitToSize()==SDRTEXTFIT_RESIZEATTR) { |
231 NbcResizeTextAttributes(Fraction(nTWdt1,nTWdt0),Fraction(nTHgt1,nTHgt0)); 232 } 233 NbcAdjustTextFrameWidthAndHeight(); 234 } 235 ImpCheckShear(); 236 SetRectsDirty(); 237} 238 --- 324 unchanged lines hidden --- | 228 NbcResizeTextAttributes(Fraction(nTWdt1,nTWdt0),Fraction(nTHgt1,nTHgt0)); 229 } 230 NbcAdjustTextFrameWidthAndHeight(); 231 } 232 ImpCheckShear(); 233 SetRectsDirty(); 234} 235 --- 324 unchanged lines hidden --- |