secmacrowarnings.cxx (859212d1) secmacrowarnings.cxx (7950f2af)
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

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

245 long nDelta = Max( nTxtW - nBtnW, nOffset/3 );
246 Size aNewSize = maViewSignsBtn.GetSizePixel();
247 aNewSize.Width() += nDelta;
248 maViewSignsBtn.SetSizePixel( aNewSize );
249 // and give it a new position
250 Point aNewPos = maViewSignsBtn.GetPosPixel();
251 aNewPos.X() -= nDelta;
252 maViewSignsBtn.SetPosPixel( aNewPos );
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

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

245 long nDelta = Max( nTxtW - nBtnW, nOffset/3 );
246 Size aNewSize = maViewSignsBtn.GetSizePixel();
247 aNewSize.Width() += nDelta;
248 maViewSignsBtn.SetSizePixel( aNewSize );
249 // and give it a new position
250 Point aNewPos = maViewSignsBtn.GetPosPixel();
251 aNewPos.X() -= nDelta;
252 maViewSignsBtn.SetPosPixel( aNewPos );
253 // the the left fixedtext must be smaller
253 // the left fixedtext must be smaller
254 aNewSize = maSignsFI.GetSizePixel();
255 aNewSize.Width() -= nDelta;
256 maSignsFI.SetSizePixel( aNewSize );
257 }
258 // if the button text (we compare with the longest of both) is too wide, then broaden the buttons
259 String sText1 = maEnableBtn.GetText();
260 long nTxtW1 = maEnableBtn.GetTextWidth( sText1 );
261 if ( sText1.Search( '~' ) == STRING_NOTFOUND )

--- 113 unchanged lines hidden ---
254 aNewSize = maSignsFI.GetSizePixel();
255 aNewSize.Width() -= nDelta;
256 maSignsFI.SetSizePixel( aNewSize );
257 }
258 // if the button text (we compare with the longest of both) is too wide, then broaden the buttons
259 String sText1 = maEnableBtn.GetText();
260 long nTxtW1 = maEnableBtn.GetTextWidth( sText1 );
261 if ( sText1.Search( '~' ) == STRING_NOTFOUND )

--- 113 unchanged lines hidden ---