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
c4113906
Kaydet (Commit)
c4113906
authored
Eyl 12, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WIP: add cppumaker -U to directly read from .idl files
Change-Id: I420847515b6b691ae81a249a8820cf9a3d132372
üst
5c2ba4aa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
10 deletions
+37
-10
typemanager.cxx
codemaker/source/codemaker/typemanager.cxx
+6
-2
cppumaker.cxx
codemaker/source/cppumaker/cppumaker.cxx
+4
-2
cppuoptions.cxx
codemaker/source/cppumaker/cppuoptions.cxx
+23
-2
javamaker.cxx
codemaker/source/javamaker/javamaker.cxx
+2
-2
typemanager.hxx
include/codemaker/typemanager.hxx
+1
-1
skeletonmaker.cxx
unodevtools/source/skeletonmaker/skeletonmaker.cxx
+1
-1
No files found.
codemaker/source/codemaker/typemanager.cxx
Dosyayı görüntüle @
c4113906
...
...
@@ -27,15 +27,19 @@
#include "codemaker/typemanager.hxx"
#include "rtl/ref.hxx"
#include "rtl/ustring.hxx"
#include "unoidl/sourceprovider.hxx"
#include "unoidl/unoidl.hxx"
TypeManager
::
TypeManager
()
:
manager_
(
new
unoidl
::
Manager
)
{}
TypeManager
::~
TypeManager
()
{}
void
TypeManager
::
loadProvider
(
OUString
const
&
uri
,
bool
primary
)
{
void
TypeManager
::
loadProvider
(
OUString
const
&
uri
,
bool
source
,
bool
primary
)
{
rtl
::
Reference
<
unoidl
::
Provider
>
prov
(
unoidl
::
loadProvider
(
manager_
,
uri
));
source
?
new
unoidl
::
SourceProvider
(
manager_
,
uri
)
:
unoidl
::
loadProvider
(
manager_
,
uri
));
manager_
->
addProvider
(
prov
);
if
(
primary
)
{
primaryProviders_
.
push_back
(
prov
);
...
...
codemaker/source/cppumaker/cppumaker.cxx
Dosyayı görüntüle @
c4113906
...
...
@@ -52,13 +52,15 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
options
.
getExtraInputFiles
().
begin
());
i
!=
options
.
getExtraInputFiles
().
end
();
++
i
)
{
typeMgr
->
loadProvider
(
convertToFileUrl
(
*
i
),
false
);
typeMgr
->
loadProvider
(
convertToFileUrl
(
*
i
),
options
.
isValid
(
"-U"
),
false
);
}
for
(
std
::
vector
<
OString
>::
const_iterator
i
(
options
.
getInputFiles
().
begin
());
i
!=
options
.
getInputFiles
().
end
();
++
i
)
{
typeMgr
->
loadProvider
(
convertToFileUrl
(
*
i
),
true
);
typeMgr
->
loadProvider
(
convertToFileUrl
(
*
i
),
options
.
isValid
(
"-U"
),
true
);
}
codemaker
::
GeneratedTypeSet
generated
;
if
(
options
.
isValid
(
"-T"
))
{
...
...
codemaker/source/cppumaker/cppuoptions.cxx
Dosyayı görüntüle @
c4113906
...
...
@@ -139,6 +139,19 @@ sal_Bool CppuOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
m_options
[
"-T"
]
=
OString
(
s
);
}
break
;
case
'U'
:
if
(
av
[
i
][
2
]
!=
'\0'
)
{
OString
tmp
(
"'-U', please check"
);
if
(
i
<=
ac
-
1
)
{
tmp
+=
" your input '"
+
OString
(
av
[
i
])
+
"'"
;
}
throw
IllegalArgument
(
tmp
);
}
m_options
[
"-U"
]
=
""
;
break
;
case
'L'
:
if
(
av
[
i
][
2
]
!=
'\0'
)
{
...
...
@@ -321,9 +334,17 @@ OString CppuOptions::prepareHelp()
help
+=
" -O<path> = path describes the root directory for the generated output.
\n
"
;
help
+=
" The output directory tree is generated under this directory.
\n
"
;
help
+=
" -T<name> = name specifies a type or a list of types. The output for this
\n
"
;
help
+=
" [t1;...] type
is generated. If no '-T' option is specified,
\n
"
;
help
+=
" then output for all types is generated.
\n
"
;
help
+=
" [t1;...] type
and all dependent types are generated. If no '-T' option is
\n
"
;
help
+=
"
specified,
then output for all types is generated.
\n
"
;
help
+=
" Example: 'com.sun.star.uno.XInterface' is a valid type.
\n
"
;
help
+=
" -U = instead of interpreting file_1 ... file_n as type rdb files,
\n
"
;
help
+=
" interpret them as (directories of) UNOIDL source files. If no
\n
"
;
help
+=
" '-T' option is given, each file_i must denote a UNOIDL file, and
\n
"
;
help
+=
" headers are generated for all entities defined in those files."
;
help
+=
" Otherwise, each file_i must denote a directory, and an entity
\n
"
;
help
+=
" com.sun.star.uno.XInterface specified with '-T' would be searched
\n
"
;
help
+=
" for as com/sun/star/uno/XInterface.idl under each of those
\n
"
;
help
+=
" directories in turn."
;
help
+=
" -L = UNO type functions are generated lightweight, that means only
\n
"
;
help
+=
" the name and typeclass are given and everything else is retrieved
\n
"
;
help
+=
" from the type library dynamically. The default is that UNO type
\n
"
;
...
...
codemaker/source/javamaker/javamaker.cxx
Dosyayı görüntüle @
c4113906
...
...
@@ -52,13 +52,13 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
options
.
getExtraInputFiles
().
begin
());
i
!=
options
.
getExtraInputFiles
().
end
();
++
i
)
{
typeMgr
->
loadProvider
(
convertToFileUrl
(
*
i
),
false
);
typeMgr
->
loadProvider
(
convertToFileUrl
(
*
i
),
false
,
false
);
}
for
(
std
::
vector
<
rtl
::
OString
>::
const_iterator
i
(
options
.
getInputFiles
().
begin
());
i
!=
options
.
getInputFiles
().
end
();
++
i
)
{
typeMgr
->
loadProvider
(
convertToFileUrl
(
*
i
),
true
);
typeMgr
->
loadProvider
(
convertToFileUrl
(
*
i
),
false
,
true
);
}
codemaker
::
GeneratedTypeSet
generated
;
if
(
options
.
isValid
(
"-T"
))
{
...
...
include/codemaker/typemanager.hxx
Dosyayı görüntüle @
c4113906
...
...
@@ -42,7 +42,7 @@ class TypeManager: public salhelper::SimpleReferenceObject {
public
:
TypeManager
();
void
loadProvider
(
OUString
const
&
uri
,
bool
primary
);
void
loadProvider
(
OUString
const
&
uri
,
bool
source
,
bool
primary
);
bool
foundAtPrimaryProvider
(
OUString
const
&
name
)
const
;
...
...
unodevtools/source/skeletonmaker/skeletonmaker.cxx
Dosyayı görüntüle @
c4113906
...
...
@@ -268,7 +268,7 @@ SAL_IMPLEMENT_MAIN()
for
(
std
::
vector
<
OString
>::
const_iterator
i
(
registries
.
begin
());
i
!=
registries
.
end
();
++
i
)
{
manager
->
loadProvider
(
convertToFileUrl
(
*
i
),
true
);
manager
->
loadProvider
(
convertToFileUrl
(
*
i
),
false
,
true
);
}
if
(
options
.
dump
)
{
...
...
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