https://bugs.documentfoundation.org/show_bug.cgi?id=161646
--- Comment #4 from Justin L <[email protected]> --- The code of course is in sw/source/uibase/shells/textfld.cxx. The existing page margin is easy to get: aNewDesc.GetMaster().GetULSpace() with .GetUpper() or .GetLower() "FooterBodyDistance" (Spacing) is forced here already. constTwips_5mm "FooterHeight" (Height) is left at zero, but in the UI it shows up as 0.10cm which is the minimum allowed in the UI. When set (SID_ATTR_PAGE_SIZE), this includes the FooterBodyDistance. The problem of course is going to be determining the height taken up by the Footer paragraph font size... If you look at the page header/footer UI when they are off, both "Spacing" and "Height" are set to 0.5 cm because DEF_DIST_WRITER is 500 tools::Long nDefaultDist = bIsCalc ? DEF_DIST_CALC : DEF_DIST_WRITER; SetMetricValue( *m_xDistEdit, nDefaultDist, MapUnit::Map100thMM ); SetMetricValue( *m_xHeightEdit, 500, MapUnit::Map100thMM ); -- You are receiving this mail because: You are the assignee for the bug.
