diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-11 16:02:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-15 12:25:44 +0200 |
commit | e49bff52853c88635b5ce6d140b78933aca5fc33 (patch) | |
tree | 2b2cddb508f176e9b1ce8c4e7e853da46e7082fe /sw/source/ui/sidebar | |
parent | fa800f4e7390902e6b3008586308b06313ac8b4a (diff) |
covnert sw/source/ui/sidebar/*.cxx from String to OUString
Change-Id: I60c8e0b806a61cc85334c3cefed7a41707f0d2cc
Diffstat (limited to 'sw/source/ui/sidebar')
-rw-r--r-- | sw/source/ui/sidebar/PageMarginControl.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/ui/sidebar/PageMarginControl.cxx b/sw/source/ui/sidebar/PageMarginControl.cxx index 0f16791d40b2..4155edbf6402 100644 --- a/sw/source/ui/sidebar/PageMarginControl.cxx +++ b/sw/source/ui/sidebar/PageMarginControl.cxx @@ -25,11 +25,11 @@ #include <svx/sidebar/ValueSetWithTextControl.hxx> -#define SWPAGE_LEFT_GVALUE String("Sw_Page_Left", 12, RTL_TEXTENCODING_ASCII_US) -#define SWPAGE_RIGHT_GVALUE String("Sw_Page_Right", 13, RTL_TEXTENCODING_ASCII_US) -#define SWPAGE_TOP_GVALUE String("Sw_Page_Top", 11, RTL_TEXTENCODING_ASCII_US) -#define SWPAGE_DOWN_GVALUE String("Sw_Page_Down", 12, RTL_TEXTENCODING_ASCII_US) -#define SWPAGE_MIRROR_GVALUE String("Sw_Page_Mirrored", 16, RTL_TEXTENCODING_ASCII_US) +#define SWPAGE_LEFT_GVALUE "Sw_Page_Left" +#define SWPAGE_RIGHT_GVALUE "Sw_Page_Right" +#define SWPAGE_TOP_GVALUE "Sw_Page_Top" +#define SWPAGE_DOWN_GVALUE "Sw_Page_Down" +#define SWPAGE_MIRROR_GVALUE "Sw_Page_Mirrored" namespace sw { namespace sidebar { @@ -425,8 +425,8 @@ bool PageMarginControl::GetUserCustomValues() ::rtl::OUString aTmp; if ( aSeq.getLength()) aSeq[0].Value >>= aTmp; - String aWinData( aTmp ); - mnUserCustomPageLeftMargin = aWinData.ToInt32(); + OUString aWinData( aTmp ); + mnUserCustomPageLeftMargin = aWinData.toInt32(); bUserCustomValuesAvailable = true; } @@ -437,8 +437,8 @@ bool PageMarginControl::GetUserCustomValues() ::rtl::OUString aTmp; if ( aSeq.getLength()) aSeq[0].Value >>= aTmp; - String aWinData( aTmp ); - mnUserCustomPageRightMargin = aWinData.ToInt32(); + OUString aWinData( aTmp ); + mnUserCustomPageRightMargin = aWinData.toInt32(); bUserCustomValuesAvailable = true; } @@ -449,8 +449,8 @@ bool PageMarginControl::GetUserCustomValues() ::rtl::OUString aTmp; if ( aSeq.getLength()) aSeq[0].Value >>= aTmp; - String aWinData( aTmp ); - mnUserCustomPageTopMargin = aWinData.ToInt32(); + OUString aWinData( aTmp ); + mnUserCustomPageTopMargin = aWinData.toInt32(); bUserCustomValuesAvailable = true; } @@ -461,8 +461,8 @@ bool PageMarginControl::GetUserCustomValues() ::rtl::OUString aTmp; if ( aSeq.getLength()) aSeq[0].Value >>= aTmp; - String aWinData( aTmp ); - mnUserCustomPageBottomMargin = aWinData.ToInt32(); + OUString aWinData( aTmp ); + mnUserCustomPageBottomMargin = aWinData.toInt32(); bUserCustomValuesAvailable = true; } @@ -473,8 +473,8 @@ bool PageMarginControl::GetUserCustomValues() ::rtl::OUString aTmp; if ( aSeq.getLength()) aSeq[0].Value >>= aTmp; - String aWinData( aTmp ); - mbUserCustomMirrored = aWinData.ToInt32() == 0 ? false : true; + OUString aWinData( aTmp ); + mbUserCustomMirrored = aWinData.toInt32() == 0 ? false : true; bUserCustomValuesAvailable = true; } |