dialog.cxx (79aad27f) | dialog.cxx (7ea7a1cc) |
---|---|
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 --- 851 unchanged lines hidden (view full) --- 860 pMF->Show(bActive); 861 pMF->Enable(bActive); 862 863 // setzen von Masseinheit und Anzahl der Nachkommastellen 864 FieldUnit eUnit; 865 sal_uInt16 nDigits; 866 if (nCategory < 9) 867 { | 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 --- 851 unchanged lines hidden (view full) --- 860 pMF->Show(bActive); 861 pMF->Enable(bActive); 862 863 // setzen von Masseinheit und Anzahl der Nachkommastellen 864 FieldUnit eUnit; 865 sal_uInt16 nDigits; 866 if (nCategory < 9) 867 { |
868 eUnit = FUNIT_CUSTOM; | 868 eUnit = FUNIT_PERCENT; |
869 nDigits = 0; | 869 nDigits = 0; |
870 pMF->SetCustomUnitText( '%' ); | |
871 } 872 else 873 { 874 eUnit = FUNIT_100TH_MM; 875 nDigits = 2; 876 } 877 pMF->SetUnit(eUnit); //! veraendert den Wert 878 pMF->SetDecimalDigits(nDigits); --- 1590 unchanged lines hidden --- | 870 } 871 else 872 { 873 eUnit = FUNIT_100TH_MM; 874 nDigits = 2; 875 } 876 pMF->SetUnit(eUnit); //! veraendert den Wert 877 pMF->SetDecimalDigits(nDigits); --- 1590 unchanged lines hidden --- |