SvxColorValueSet.cxx (c7be74b1) | SvxColorValueSet.cxx (86e1cf34) |
---|---|
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 --- 104 unchanged lines hidden (view full) --- 113 if(!nEntryCount) 114 { 115 nEntryCount++; 116 } 117 118 const Size aItemSize(getEntryEdgeLength(), getEntryEdgeLength()); 119 const WinBits aWinBits(GetStyle() & ~WB_VSCROLL); 120 | 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 --- 104 unchanged lines hidden (view full) --- 113 if(!nEntryCount) 114 { 115 nEntryCount++; 116 } 117 118 const Size aItemSize(getEntryEdgeLength(), getEntryEdgeLength()); 119 const WinBits aWinBits(GetStyle() & ~WB_VSCROLL); 120 |
121 // get size whith all fields disabled | 121 // get size with all fields disabled |
122 const WinBits aWinBitsNoScrollNoFields(GetStyle() & ~(WB_VSCROLL|WB_NAMEFIELD|WB_NONEFIELD)); 123 SetStyle(aWinBitsNoScrollNoFields); 124 const Size aSizeNoScrollNoFields(CalcWindowSizePixel(aItemSize, getColumnCount())); 125 126 // get size with all needed fields 127 SetStyle(aWinBits); 128 Size aNewSize(CalcWindowSizePixel(aItemSize, getColumnCount())); 129 --- 30 unchanged lines hidden --- | 122 const WinBits aWinBitsNoScrollNoFields(GetStyle() & ~(WB_VSCROLL|WB_NAMEFIELD|WB_NONEFIELD)); 123 SetStyle(aWinBitsNoScrollNoFields); 124 const Size aSizeNoScrollNoFields(CalcWindowSizePixel(aItemSize, getColumnCount())); 125 126 // get size with all needed fields 127 SetStyle(aWinBits); 128 Size aNewSize(CalcWindowSizePixel(aItemSize, getColumnCount())); 129 --- 30 unchanged lines hidden --- |