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
347bb132
Kaydet (Commit)
347bb132
authored
Ock 16, 2012
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: tweak headless, expand docs, and start custom android backend
üst
d3f17ac9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
142 additions
and
14 deletions
+142
-14
Library_vcl.mk
vcl/Library_vcl.mk
+1
-1
androidinst.cxx
vcl/android/androidinst.cxx
+82
-0
svpdummies.cxx
vcl/headless/svpdummies.cxx
+4
-4
androidinst.hxx
vcl/inc/android/androidinst.hxx
+46
-0
gendata.hxx
vcl/inc/generic/gendata.hxx
+2
-1
svpdummies.hxx
vcl/inc/headless/svpdummies.hxx
+7
-8
No files found.
vcl/Library_vcl.mk
Dosyayı görüntüle @
347bb132
...
...
@@ -458,7 +458,7 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/generic/fontmanager/fontmanager \
vcl/generic/fontmanager/helper \
vcl/generic/fontmanager/parseAFM \
vcl/
unx/generic/plugadapt/salplug
\
vcl/
android/androidinst
\
vcl/unx/generic/printer/jobdata \
vcl/unx/generic/printer/ppdparser \
vcl/null/printerinfomanager \
...
...
vcl/android/androidinst.cxx
0 → 100644
Dosyayı görüntüle @
347bb132
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2012 Novell, Inc.
* Michael Meeks <michael.meeks@suse.com> (initial developer)
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 3 or later (the "GPLv3+"), or
* the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
* in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
* instead of those above.
*/
#include <android/androidinst.hxx>
#include <headless/svpdummies.hxx>
#include <generic/gendata.hxx>
#include <android/log.h>
AndroidSalInstance
::
AndroidSalInstance
(
SalYieldMutex
*
pMutex
)
:
SvpSalInstance
(
pMutex
)
{
fprintf
(
stderr
,
"created Android Sal Instance
\n
"
);
}
AndroidSalInstance
::~
AndroidSalInstance
()
{
fprintf
(
stderr
,
"destroyed Android Sal Instance
\n
"
);
}
class
AndroidSalSystem
:
public
SvpSalSystem
{
public
:
AndroidSalSystem
()
:
SvpSalSystem
()
{}
virtual
~
AndroidSalSystem
()
{}
virtual
int
ShowNativeDialog
(
const
rtl
::
OUString
&
rTitle
,
const
rtl
::
OUString
&
rMessage
,
const
std
::
list
<
rtl
::
OUString
>&
rButtons
,
int
nDefButton
)
{
(
void
)
rButtons
;
(
void
)
nDefButton
;
__android_log_print
(
ANDROID_LOG_INFO
,
"LibreOffice - dialog '%s': '%s'"
,
rtl
::
OUStringToOString
(
rTitle
,
RTL_TEXTENCODING_ASCII_US
).
getStr
(),
rtl
::
OUStringToOString
(
rMessage
,
RTL_TEXTENCODING_ASCII_US
).
getStr
());
return
0
;
}
};
SalSystem
*
AndroidSalInstance
::
CreateSalSystem
()
{
return
new
AndroidSalSystem
();
}
class
AndroidSalData
:
public
SalGenericData
{
public
:
AndroidSalData
(
SalInstance
*
pInstance
)
:
SalGenericData
(
SAL_DATA_ANDROID
,
pInstance
)
{}
virtual
void
ErrorTrapPush
()
{}
virtual
bool
ErrorTrapPop
(
bool
)
{
return
false
;
}
};
SalInstance
*
CreateSalInstance
()
{
SvpSalInstance
*
pInstance
=
new
SvpSalInstance
(
new
SalYieldMutex
()
);
new
AndroidSalData
(
pInstance
);
return
pInstance
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/headless/svpdummies.cxx
Dosyayı görüntüle @
347bb132
...
...
@@ -91,10 +91,10 @@ rtl::OUString SvpSalSystem::GetDisplayScreenName( unsigned int nScreen )
return
aBuf
.
makeStringAndClear
();
}
int
SvpSalSystem
::
ShowNative
MessageBox
(
const
rtl
::
OUString
&
,
const
rtl
::
OUString
&
,
int
,
int
)
int
SvpSalSystem
::
ShowNative
Dialog
(
const
rtl
::
OUString
&
rTitle
,
const
rtl
::
OUString
&
rMessage
,
const
std
::
list
<
rtl
::
OUString
>&
rButtons
,
int
nDefButton
)
{
return
0
;
}
...
...
vcl/inc/android/androidinst.hxx
0 → 100644
Dosyayı görüntüle @
347bb132
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2012 Novell, Inc.
* Michael Meeks <michael.meeks@suse.com> (initial developer)
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 3 or later (the "GPLv3+"), or
* the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
* in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
* instead of those above.
*/
#ifndef ANDROID_SALINST_H
#define ANDROID_SALINST_H
#include <headless/svpinst.hxx>
class
AndroidSalInstance
:
public
SvpSalInstance
{
public
:
AndroidSalInstance
(
SalYieldMutex
*
pMutex
);
virtual
~
AndroidSalInstance
();
virtual
SalSystem
*
CreateSalSystem
();
};
#endif // ANDROID_SALINST_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/inc/generic/gendata.hxx
Dosyayı görüntüle @
347bb132
...
...
@@ -39,7 +39,8 @@ class SalDisplay;
class
GtkSalDisplay
;
enum
SalGenericDataType
{
SAL_DATA_GTK
,
SAL_DATA_GTK3
,
SAL_DATA_KDE3
,
SAL_DATA_KDE4
,
SAL_DATA_UNX
,
SAL_DATA_SVP
};
SAL_DATA_UNX
,
SAL_DATA_SVP
,
SAL_DATA_ANDROID
,
SAL_DATA_IOS
};
class
VCL_DLLPUBLIC
SalGenericData
:
public
SalData
{
...
...
vcl/inc/headless/svpdummies.hxx
Dosyayı görüntüle @
347bb132
...
...
@@ -29,7 +29,7 @@
#ifndef _SVP_SVPDUMMIES_HXX
#include <vcl/sysdata.hxx>
#include <generic/gensys.h>
#include <salobj.hxx>
#include <salimestatus.hxx>
#include <salsys.hxx>
...
...
@@ -74,9 +74,9 @@ class SvpImeStatus : public SalI18NImeStatus
virtual
void
toggle
();
};
class
SvpSalSystem
:
public
SalSystem
class
SvpSalSystem
:
public
Sal
Generic
System
{
public
:
public
:
SvpSalSystem
()
{}
virtual
~
SvpSalSystem
();
// get info about the display
...
...
@@ -85,11 +85,10 @@ class SvpSalSystem : public SalSystem
virtual
Rectangle
GetDisplayScreenWorkAreaPosSizePixel
(
unsigned
int
nScreen
);
virtual
rtl
::
OUString
GetDisplayScreenName
(
unsigned
int
nScreen
);
virtual
int
ShowNativeMessageBox
(
const
rtl
::
OUString
&
rTitle
,
const
rtl
::
OUString
&
rMessage
,
int
nButtonCombination
,
int
nDefaultButton
);
virtual
int
ShowNativeDialog
(
const
rtl
::
OUString
&
rTitle
,
const
rtl
::
OUString
&
rMessage
,
const
std
::
list
<
rtl
::
OUString
>&
rButtons
,
int
nDefButton
);
};
...
...
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