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
efe842ab
Kaydet (Commit)
efe842ab
authored
Nis 06, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add operator<< for CGRect for SAL_INFO goodness
Change-Id: I144c93d0bdd8758dcdf490f29051c8dcaea500d8
üst
bc6295e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
utils.h
vcl/inc/quartz/utils.h
+5
-1
utils.cxx
vcl/quartz/utils.cxx
+13
-0
No files found.
vcl/inc/quartz/utils.h
Dosyayı görüntüle @
efe842ab
...
...
@@ -20,18 +20,22 @@
#ifndef INCLUDED_QUARTZ_UTILS_HXX
#define INCLUDED_QUARTZ_UTILS_HXX
#include <
rtl/ustring.hxx
>
#include <
iostream
>
#include <premac.h>
#include <CoreFoundation/CoreFoundation.h>
#include <Foundation/Foundation.h>
#include <postmac.h>
#include <rtl/ustring.hxx>
rtl
::
OUString
GetOUString
(
CFStringRef
);
rtl
::
OUString
GetOUString
(
NSString
*
);
CFStringRef
CreateCFString
(
const
rtl
::
OUString
&
);
NSString
*
CreateNSString
(
const
rtl
::
OUString
&
);
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
CGRect
&
rRect
);
#endif // INCLUDED_QUARTZ_UTILS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/quartz/utils.cxx
Dosyayı görüntüle @
efe842ab
...
...
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <iostream>
#include <iomanip>
#include <rtl/alloc.h>
#include <rtl/ustrbuf.hxx>
...
...
@@ -64,4 +67,14 @@ NSString* CreateNSString( const rtl::OUString& rStr )
return
[[
NSString
alloc
]
initWithCharacters
:
rStr
.
getStr
()
length
:
rStr
.
getLength
()];
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
CGRect
&
rRect
)
{
#ifndef SAL_LOG_INFO
(
void
)
rRect
;
#else
s
<<
(
int
)
rRect
.
size
.
width
<<
"x"
<<
(
int
)
rRect
.
size
.
height
<<
"@("
<<
(
int
)
rRect
.
origin
.
x
<<
","
<<
(
int
)
rRect
.
origin
.
y
<<
")"
;
#endif
return
s
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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