diff options
Diffstat (limited to 'sw/source/ui/envelp')
-rw-r--r-- | sw/source/ui/envelp/envfmt.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/envelp/envlop1.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/envelp/labfmt.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx index a15de6dcc864..733b42cd1718 100644 --- a/sw/source/ui/envelp/envfmt.cxx +++ b/sw/source/ui/envelp/envfmt.cxx @@ -235,7 +235,7 @@ IMPL_LINK( SwEnvFormatPage, ModifyHdl, SpinField&, rEdit, void ) long nRotatedWidth = lHeight; long nRotatedHeight = lWidth; Paper ePaper = SvxPaperInfo::GetSvxPaper( - Size(nRotatedWidth, nRotatedHeight), MAP_TWIP, true); + Size(nRotatedWidth, nRotatedHeight), MapUnit::MapTwip, true); for (size_t i = 0; i < aIDs.size(); ++i) if (aIDs[i] == (sal_uInt16)ePaper) m_pSizeFormatBox->SelectEntryPos(static_cast<sal_Int32>(i)); @@ -517,7 +517,7 @@ void SwEnvFormatPage::Reset(const SfxItemSet* rSet) Paper ePaper = SvxPaperInfo::GetSvxPaper( Size( std::min(rItem.lWidth, rItem.lHeight), - std::max(rItem.lWidth, rItem.lHeight)), MAP_TWIP, true); + std::max(rItem.lWidth, rItem.lHeight)), MapUnit::MapTwip, true); for (size_t i = 0; i < aIDs.size(); ++i) if (aIDs[i] == (sal_uInt16)ePaper) m_pSizeFormatBox->SelectEntryPos(static_cast<sal_Int32>(i)); diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx index d027f0270f2a..c73699fbde24 100644 --- a/sw/source/ui/envelp/envlop1.cxx +++ b/sw/source/ui/envelp/envlop1.cxx @@ -49,12 +49,12 @@ using namespace ::com::sun::star; SwEnvPreview::SwEnvPreview(vcl::Window* pParent, WinBits nStyle) : Window(pParent, nStyle) { - SetMapMode(MapMode(MAP_PIXEL)); + SetMapMode(MapMode(MapUnit::MapPixel)); } Size SwEnvPreview::GetOptimalSize() const { - return LogicToPixel(Size(84 , 63), MAP_APPFONT); + return LogicToPixel(Size(84 , 63), MapUnit::MapAppFont); } VCL_BUILDER_FACTORY_ARGS(SwEnvPreview, 0) diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx index cc9b92391201..75ee218a6bc3 100644 --- a/sw/source/ui/envelp/labfmt.cxx +++ b/sw/source/ui/envelp/labfmt.cxx @@ -112,7 +112,7 @@ SwLabPreview::SwLabPreview(vcl::Window* pParent) , m_aPWidthStr(SW_RESSTR(STR_PWIDTH)) , m_aPHeightStr(SW_RESSTR(STR_PHEIGHT)) { - SetMapMode(MAP_PIXEL); + SetMapMode(MapUnit::MapPixel); // FIXME RenderContext @@ -139,7 +139,7 @@ SwLabPreview::SwLabPreview(vcl::Window* pParent) Size SwLabPreview::GetOptimalSize() const { - return LogicToPixel(Size(146 , 161), MapMode(MAP_APPFONT)); + return LogicToPixel(Size(146 , 161), MapMode(MapUnit::MapAppFont)); } VCL_BUILDER_FACTORY(SwLabPreview) |