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
988e2a75
Kaydet (Commit)
988e2a75
authored
Nis 12, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove that unused old code
Change-Id: I576f6be6d229e29d0ae35ffb00d118bfd44b5544
üst
087162b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
37 deletions
+0
-37
sofficemain.cxx
desktop/source/app/sofficemain.cxx
+0
-28
AppDelegate.m
...erimental/TiledLibreOffice/TiledLibreOffice/AppDelegate.m
+0
-4
TiledView.m
...xperimental/TiledLibreOffice/TiledLibreOffice/TiledView.m
+0
-5
No files found.
desktop/source/app/sofficemain.cxx
Dosyayı görüntüle @
988e2a75
...
@@ -142,32 +142,4 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main()
...
@@ -142,32 +142,4 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main()
#endif
#endif
}
}
#if defined(ANDROID) || defined(IOS)
extern
"C"
void
PtylTestEncryptionAndExport
(
const
char
*
pathname
)
{
OUString
sUri
(
pathname
,
strlen
(
pathname
),
RTL_TEXTENCODING_UTF8
);
sUri
=
"file://"
+
sUri
;
css
::
uno
::
Reference
<
css
::
frame
::
XComponentLoader
>
loader
(
css
::
frame
::
Desktop
::
create
(
cppu
::
defaultBootstrap_InitialComponentContext
()),
css
::
uno
::
UNO_QUERY
);
css
::
uno
::
Reference
<
css
::
lang
::
XComponent
>
component
;
component
.
set
(
loader
->
loadComponentFromURL
(
sUri
,
"_default"
,
0
,
{}));
utl
::
MediaDescriptor
media
;
media
[
utl
::
MediaDescriptor
::
PROP_FILTERNAME
()]
<<=
OUString
(
"MS Word 2007 XML"
);
OUString
password
(
"myPassword"
);
css
::
uno
::
Sequence
<
css
::
beans
::
NamedValue
>
encryptionData
{
{
"OOXPassword"
,
css
::
uno
::
makeAny
(
password
)
}
};
media
[
utl
::
MediaDescriptor
::
PROP_ENCRYPTIONDATA
()]
<<=
encryptionData
;
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>
model
(
component
,
css
::
uno
::
UNO_QUERY
);
css
::
uno
::
Reference
<
css
::
frame
::
XStorable2
>
storable2
(
model
,
css
::
uno
::
UNO_QUERY
);
OUString
saveAsUri
(
sUri
+
".new.docx"
);
SAL_INFO
(
"desktop.app"
,
"Trying to store as "
<<
saveAsUri
);
OUString
testPathName
;
osl
::
File
::
getSystemPathFromFileURL
(
saveAsUri
+
".txt"
,
testPathName
);
storable2
->
storeToURL
(
saveAsUri
,
media
.
getAsConstPropertyValueList
());
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ios/experimental/TiledLibreOffice/TiledLibreOffice/AppDelegate.m
Dosyayı görüntüle @
988e2a75
...
@@ -65,15 +65,11 @@ static LibreOfficeKitDocument* document;
...
@@ -65,15 +65,11 @@ static LibreOfficeKitDocument* document;
return
YES
;
return
YES
;
}
}
const
char
*
ptyl_test_encryption_pathname
;
-
(
void
)
startDisplaying
:(
NSString
*
)
documentPath
;
-
(
void
)
startDisplaying
:(
NSString
*
)
documentPath
;
{
{
ViewController
*
vc
=
[[
ViewController
alloc
]
init
];
ViewController
*
vc
=
[[
ViewController
alloc
]
init
];
self
.
window
.
rootViewController
=
vc
;
self
.
window
.
rootViewController
=
vc
;
ptyl_test_encryption_pathname
=
[
documentPath
UTF8String
];
// kit = lok_init([[[NSBundle mainBundle] bundlePath] UTF8String]);
// kit = lok_init([[[NSBundle mainBundle] bundlePath] UTF8String]);
kit
=
lok_init
(
NULL
);
kit
=
lok_init
(
NULL
);
document
=
kit
->
pClass
->
documentLoad
(
kit
,
[
documentPath
UTF8String
]);
document
=
kit
->
pClass
->
documentLoad
(
kit
,
[
documentPath
UTF8String
]);
...
...
ios/experimental/TiledLibreOffice/TiledLibreOffice/TiledView.m
Dosyayı görüntüle @
988e2a75
...
@@ -136,9 +136,6 @@ static bool tileMatches(const char *spec, CGRect bb)
...
@@ -136,9 +136,6 @@ static bool tileMatches(const char *spec, CGRect bb)
y
==
(
int
)
(
bb
.
origin
.
y
/
bb
.
size
.
height
));
y
==
(
int
)
(
bb
.
origin
.
y
/
bb
.
size
.
height
));
}
}
extern
void
PtylTestEncryptionAndExport
(
const
char
*
pathname
);
extern
const
char
*
ptyl_test_encryption_pathname
;
-
(
void
)
drawLayer
:
(
CALayer
*
)
layer
inContext
:
(
CGContextRef
)
ctx
-
(
void
)
drawLayer
:
(
CALayer
*
)
layer
inContext
:
(
CGContextRef
)
ctx
{
{
// Even if I set the CATL's tileSize to 512x512 above, this is
// Even if I set the CATL's tileSize to 512x512 above, this is
...
@@ -148,8 +145,6 @@ extern const char *ptyl_test_encryption_pathname;
...
@@ -148,8 +145,6 @@ extern const char *ptyl_test_encryption_pathname;
static
bool
once
=
false
;
static
bool
once
=
false
;
if
(
!
once
)
{
if
(
!
once
)
{
once
=
true
;
once
=
true
;
if
(
getenv
(
"PTYL_TEST_ENCRYPTION_AND_EXPORT"
))
PtylTestEncryptionAndExport
(
ptyl_test_encryption_pathname
);
}
}
CGRect
bb
=
CGContextGetClipBoundingBox
(
ctx
);
CGRect
bb
=
CGContextGetClipBoundingBox
(
ctx
);
...
...
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