Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
12870341
Kaydet (Commit)
12870341
authored
Haz 19, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ByteString -> rtl::OStringBuffer
üst
347738ea
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
29 deletions
+19
-29
generic.hxx
framework/inc/macros/generic.hxx
+1
-13
persistentwindowstate.cxx
framework/source/helper/persistentwindowstate.cxx
+2
-2
window.hxx
framework/source/inc/pattern/window.hxx
+3
-3
layoutmanager.cxx
framework/source/layoutmanager/layoutmanager.cxx
+12
-10
loadenv.cxx
framework/source/loadenv/loadenv.cxx
+1
-1
No files found.
framework/inc/macros/generic.hxx
Dosyayı görüntüle @
12870341
...
...
@@ -53,11 +53,9 @@ ________________________________________________________________________________
/*_________________________________________________________________________________________________________________
U2B( SUNICODEVALUE )
B2U( SASCIIVALUE )
U2B_ENC( SUNICODEVALUE, AENCODING )
B2U_ENC( SASCIIVALUE, AENCODING )
Use it to convert unicode strings to ascii values and reverse ...
We use UTF8 as default textencoding.
If you will change this use U2B_ENC and B2U_ENC!
We use UTF8 as default textencoding.
_________________________________________________________________________________________________________________*/
#define U2B( SUNICODEVALUE ) \
...
...
@@ -66,16 +64,6 @@ ________________________________________________________________________________
#define B2U( SASCIIVALUE ) \
::rtl::OStringToOUString( SASCIIVALUE, RTL_TEXTENCODING_UTF8 )
#define U2B_ENC( SUNICODEVALUE, AENCODING ) \
::rtl::OUStringToOString( SUNICODEVALUE, AENCODING )
#define B2U_ENC( SASCIIVALUE, AENCODING ) \
::rtl::OStringToOUString( SASCIIVALUE, AENCODING )
//*****************************************************************************************************************
// end of file
//*****************************************************************************************************************
#endif // #ifndef __FRAMEWORK_MACROS_GENERIC_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
framework/source/helper/persistentwindowstate.cxx
Dosyayı görüntüle @
12870341
...
...
@@ -297,7 +297,7 @@ void PersistentWindowState::implst_setWindowStateOnConfig(const css::uno::Refere
{
sal_uLong
nMask
=
WINDOWSTATE_MASK_ALL
;
nMask
&=
~
(
WINDOWSTATE_MASK_MINIMIZED
);
sWindowState
=
B2U_ENC
(
sWindowState
=
rtl
::
OStringToOUString
(
((
SystemWindow
*
)
pWindow
)
->
GetWindowState
(
nMask
),
RTL_TEXTENCODING_UTF8
);
}
...
...
@@ -341,7 +341,7 @@ void PersistentWindowState::implst_setWindowStateOnWindow(const css::uno::Refere
::
rtl
::
OUString
sOldWindowState
=
::
rtl
::
OStringToOUString
(
pSystemWindow
->
GetWindowState
(),
RTL_TEXTENCODING_ASCII_US
);
if
(
sOldWindowState
!=
sWindowState
)
pSystemWindow
->
SetWindowState
(
U2B_ENC
(
sWindowState
,
RTL_TEXTENCODING_UTF8
));
pSystemWindow
->
SetWindowState
(
rtl
::
OUStringToOString
(
sWindowState
,
RTL_TEXTENCODING_UTF8
));
// <- SOLAR SAFE ------------------------
}
...
...
framework/source/inc/pattern/window.hxx
Dosyayı görüntüle @
12870341
...
...
@@ -72,7 +72,7 @@ static ::rtl::OUString getWindowState(const css::uno::Reference< css::awt::XWind
if
(
!
xWindow
.
is
())
return
::
rtl
::
OUString
();
Byte
String
sWindowState
;
rtl
::
O
String
sWindowState
;
// SOLAR SAFE -> ----------------------------
{
SolarMutexGuard
aSolarGuard
;
...
...
@@ -88,7 +88,7 @@ static ::rtl::OUString getWindowState(const css::uno::Reference< css::awt::XWind
}
// <- SOLAR SAFE ----------------------------
return
B2U_ENC
(
sWindowState
,
RTL_TEXTENCODING_UTF8
);
return
rtl
::
OStringToOUString
(
sWindowState
,
RTL_TEXTENCODING_UTF8
);
}
//-----------------------------------------------
...
...
@@ -116,7 +116,7 @@ static void setWindowState(const css::uno::Reference< css::awt::XWindow >& xWind
)
)
{
((
SystemWindow
*
)
pWindow
)
->
SetWindowState
(
U2B_ENC
(
sWindowState
,
RTL_TEXTENCODING_UTF8
));
((
SystemWindow
*
)
pWindow
)
->
SetWindowState
(
OUStringToOString
(
sWindowState
,
RTL_TEXTENCODING_UTF8
));
}
// <- SOLAR SAFE ----------------------------
...
...
framework/source/layoutmanager/layoutmanager.cxx
Dosyayı görüntüle @
12870341
...
...
@@ -93,6 +93,8 @@
#include <rtl/instance.hxx>
#include <unotools/cmdoptions.hxx>
#include <rtl/strbuf.hxx>
#include <algorithm>
#include <boost/bind.hpp>
...
...
@@ -2313,11 +2315,11 @@ throw (RuntimeException)
RTL_LOGFILE_TRACE1
(
"framework (cd100003) ::LayoutManager::lock lockCount=%d"
,
nLockCount
);
#ifdef DBG_UTIL
ByteString
aStr
(
"LayoutManager::lock "
);
aStr
+=
ByteString
::
CreateFromInt32
((
long
)
this
);
aStr
+=
" - "
;
aStr
+=
ByteString
::
CreateFromInt32
(
nLockCount
);
OSL_TRACE
(
aStr
.
GetBuffer
()
);
rtl
::
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
"LayoutManager::lock "
)
);
aStr
.
append
(
reinterpret_cast
<
sal_Int64
>
(
this
)
);
aStr
.
append
(
RTL_CONSTASCII_STRINGPARAM
(
" - "
))
;
aStr
.
append
(
nLockCount
);
OSL_TRACE
(
aStr
.
getStr
()
);
#endif
Any
a
(
nLockCount
);
...
...
@@ -2335,11 +2337,11 @@ throw (RuntimeException)
RTL_LOGFILE_TRACE1
(
"framework (cd100003) ::LayoutManager::unlock lockCount=%d"
,
nLockCount
);
#ifdef DBG_UTIL
ByteString
aStr
(
"LayoutManager::unlock "
);
aStr
+=
ByteString
::
CreateFromInt32
((
long
)
this
);
aStr
+=
" - "
;
aStr
+=
ByteString
::
CreateFromInt32
(
nLockCount
);
OSL_TRACE
(
aStr
.
GetBuffer
()
);
rtl
::
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
"LayoutManager::unlock "
)
);
aStr
.
append
(
reinterpret_cast
<
sal_Int64
>
(
this
)
);
aStr
.
append
(
RTL_CONSTASCII_STRINGPARAM
(
" - "
))
;
aStr
.
append
(
nLockCount
);
OSL_TRACE
(
aStr
.
getStr
()
);
#endif
// conform to documentation: unlock with lock count == 0 means force a layout
...
...
framework/source/loadenv/loadenv.cxx
Dosyayı görüntüle @
12870341
...
...
@@ -1794,7 +1794,7 @@ void LoadEnv::impl_applyPersistentWindowState(const css::uno::Reference< css::aw
return
;
SystemWindow
*
pSystemWindow
=
(
SystemWindow
*
)
pWindowCheck
;
pSystemWindow
->
SetWindowState
(
U2B_ENC
(
sWindowState
,
RTL_TEXTENCODING_UTF8
));
pSystemWindow
->
SetWindowState
(
rtl
::
OUStringToOString
(
sWindowState
,
RTL_TEXTENCODING_UTF8
));
// <- SOLAR SAFE
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment