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
504ceee4
Kaydet (Commit)
504ceee4
authored
Eki 21, 2013
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Tiled rendering: VCL test app skeleton.
Change-Id: I465dcadf14935bce4f610376b41b9a66963e2cf8
üst
8dc05739
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
141 additions
and
0 deletions
+141
-0
Repository.mk
Repository.mk
+1
-0
Executable_tiledrendering.mk
sw/Executable_tiledrendering.mk
+38
-0
Module_sw.mk
sw/Module_sw.mk
+1
-0
tiledrendering.cxx
sw/qa/tiledrendering/tiledrendering.cxx
+101
-0
No files found.
Repository.mk
Dosyayı görüntüle @
504ceee4
...
...
@@ -99,6 +99,7 @@ $(eval $(call gb_Helper_register_executables,OOO, \
kdefilepicker \
) \
ui-previewer \
tiledrendering \
$(if $(filter DESKTOP,$(BUILD_TYPE)),unopkg_bin) \
xpdfimport \
$(if $(filter WNT,$(OS)), \
...
...
sw/Executable_tiledrendering.mk
0 → 100644
Dosyayı görüntüle @
504ceee4
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Executable_Executable,tiledrendering))
$(eval $(call gb_Executable_use_external,tiledrendering,boost_headers))
$(eval $(call gb_Executable_use_api,tiledrendering,\
offapi \
udkapi \
))
$(eval $(call gb_Executable_use_static_libraries,tiledrendering,\
vclmain \
))
$(eval $(call gb_Executable_use_libraries,tiledrendering,\
comphelper \
cppu \
cppuhelper \
sal \
tl \
ucbhelper \
vcl \
sw \
))
$(eval $(call gb_Executable_add_exception_objects,tiledrendering,\
sw/qa/tiledrendering/tiledrendering \
))
# vim: set noet sw=4 ts=4:
sw/Module_sw.mk
Dosyayı görüntüle @
504ceee4
...
...
@@ -21,6 +21,7 @@ $(eval $(call gb_Module_Module,sw))
$(eval $(call gb_Module_add_targets,sw,\
AllLangResTarget_sw \
Executable_tiledrendering \
Library_msword \
Library_sw \
Library_swd \
...
...
sw/qa/tiledrendering/tiledrendering.cxx
0 → 100644
Dosyayı görüntüle @
504ceee4
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/ucb/UniversalContentBroker.hpp>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/bootstrap.hxx>
#include <osl/file.hxx>
#include <vcl/builder.hxx>
#include <vcl/dialog.hxx>
#include <vcl/help.hxx>
#include <vcl/svapp.hxx>
#include <vcl/vclmain.hxx>
class
UIPreviewApp
:
public
Application
{
public
:
virtual
void
Init
();
virtual
int
Main
();
};
using
namespace
com
::
sun
::
star
;
void
UIPreviewApp
::
Init
()
{
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
cppu
::
defaultBootstrap_InitialComponentContext
();
uno
::
Reference
<
lang
::
XMultiComponentFactory
>
xFactory
=
xContext
->
getServiceManager
();
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xSFactory
=
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
(
xFactory
,
uno
::
UNO_QUERY_THROW
);
comphelper
::
setProcessServiceFactory
(
xSFactory
);
// Create UCB (for backwards compatibility, in case some code still uses
// plain createInstance w/o args directly to obtain an instance):
::
ucb
::
UniversalContentBroker
::
create
(
comphelper
::
getProcessComponentContext
()
);
}
int
UIPreviewApp
::
Main
()
{
std
::
vector
<
OUString
>
uifiles
;
for
(
sal_uInt16
i
=
0
;
i
<
GetCommandLineParamCount
();
++
i
)
{
OUString
aFileUrl
;
osl
::
File
::
getFileURLFromSystemPath
(
GetCommandLineParam
(
i
),
aFileUrl
);
uifiles
.
push_back
(
aFileUrl
);
}
if
(
uifiles
.
empty
())
{
fprintf
(
stderr
,
"Usage: ui-previewer file.ui
\n
"
);
return
EXIT_FAILURE
;
}
// turn on tooltips
Help
::
EnableQuickHelp
();
try
{
Dialog
*
pDialog
=
new
Dialog
(
DIALOG_NO_PARENT
,
WB_STDDIALOG
);
{
VclBuilder
aBuilder
(
pDialog
,
OUString
(),
uifiles
[
0
]);
Dialog
*
pRealDialog
=
dynamic_cast
<
Dialog
*>
(
aBuilder
.
get_widget_root
());
if
(
!
pRealDialog
)
pRealDialog
=
pDialog
;
if
(
pRealDialog
)
{
pRealDialog
->
SetText
(
OUString
(
"LibreOffice ui-previewer"
));
pRealDialog
->
SetStyle
(
pDialog
->
GetStyle
()
|
WB_CLOSEABLE
);
pRealDialog
->
Execute
();
}
}
delete
pDialog
;
}
catch
(
const
uno
::
Exception
&
e
)
{
fprintf
(
stderr
,
"fatal error: %s
\n
"
,
OUStringToOString
(
e
.
Message
,
osl_getThreadTextEncoding
()).
getStr
());
}
return
EXIT_SUCCESS
;
}
void
vclmain
::
createApplication
()
{
static
UIPreviewApp
aApp
;
}
/* 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