frmpage.cxx (4d7c9de0) frmpage.cxx (32698fcc)
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

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

906 aHeightED.SetBaseValue( aHeightED.Normalize(aGrfSize.Height()), FUNIT_TWIP );
907 //the available space is not yet known so the RefValue has to be calculated from size and relative size values
908 //this is needed only if relative values are already set
909
910 const SwFmtFrmSize& rFrmSize = (const SwFmtFrmSize&)rSet.Get(RES_FRM_SIZE);
911
912 if (rFrmSize.GetWidthPercent() != 0xff && rFrmSize.GetWidthPercent() != 0)
913 {
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

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

906 aHeightED.SetBaseValue( aHeightED.Normalize(aGrfSize.Height()), FUNIT_TWIP );
907 //the available space is not yet known so the RefValue has to be calculated from size and relative size values
908 //this is needed only if relative values are already set
909
910 const SwFmtFrmSize& rFrmSize = (const SwFmtFrmSize&)rSet.Get(RES_FRM_SIZE);
911
912 if (rFrmSize.GetWidthPercent() != 0xff && rFrmSize.GetWidthPercent() != 0)
913 {
914 //calculate the rerference value from the with and relative width values
914 //calculate the reference value from the width and relative width values
915 sal_Int32 nSpace = rFrmSize.GetWidth() * 100 / rFrmSize.GetWidthPercent();
916 aWidthED. SetRefValue( nSpace );
917 }
918
919 if (rFrmSize.GetHeightPercent() != 0xff && rFrmSize.GetHeightPercent() != 0)
920 {
915 sal_Int32 nSpace = rFrmSize.GetWidth() * 100 / rFrmSize.GetWidthPercent();
916 aWidthED. SetRefValue( nSpace );
917 }
918
919 if (rFrmSize.GetHeightPercent() != 0xff && rFrmSize.GetHeightPercent() != 0)
920 {
921 //calculate the rerference value from the with and relative width values
921 //calculate the reference value from the width and relative width values
922 sal_Int32 nSpace = rFrmSize.GetHeight() * 100 / rFrmSize.GetHeightPercent();
923 aHeightED.SetRefValue( nSpace );
924 }
925
926 // Allgemeiner Initialisierungteil
927 switch(rAnchor.GetAnchorId())
928 {
929 case FLY_AT_PAGE: aAnchorAtPageRB.Check(); break;

--- 2418 unchanged lines hidden ---
922 sal_Int32 nSpace = rFrmSize.GetHeight() * 100 / rFrmSize.GetHeightPercent();
923 aHeightED.SetRefValue( nSpace );
924 }
925
926 // Allgemeiner Initialisierungteil
927 switch(rAnchor.GetAnchorId())
928 {
929 case FLY_AT_PAGE: aAnchorAtPageRB.Check(); break;

--- 2418 unchanged lines hidden ---