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
f323d36f
Kaydet (Commit)
f323d36f
authored
Eki 26, 2011
tarafından
August Sodora
Kaydeden (comit)
Noel Power
Eki 28, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add vba support for assigning names to cell ranges
üst
ea95d600
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
XRange.idl
oovbaapi/ooo/vba/excel/XRange.idl
+1
-1
vbarange.cxx
sc/source/ui/vba/vbarange.cxx
+23
-0
vbarange.hxx
sc/source/ui/vba/vbarange.hxx
+1
-0
No files found.
oovbaapi/ooo/vba/excel/XRange.idl
Dosyayı görüntüle @
f323d36f
...
...
@@ -64,7 +64,7 @@ interface XRange
interface
::
ooo
::
vba
::
excel
::
XFormat
;
//
interface
::
ooo
::
vba
::
XHelperInterface
;
[
attribute
,
readonly
]
any
Name
;
[
attribute
]
any
Name
;
[
attribute
]
any
Value
;
[
attribute
]
any
Formula
;
[
attribute
]
any
FormulaArray
;
...
...
sc/source/ui/vba/vbarange.cxx
Dosyayı görüntüle @
f323d36f
...
...
@@ -1569,6 +1569,29 @@ uno::Any SAL_CALL ScVbaRange::getName() throw (uno::RuntimeException)
return
uno
::
makeAny
(
xName
);
}
void
ScVbaRange
::
setName
(
const
uno
::
Any
&
aName
)
throw
(
uno
::
RuntimeException
)
{
uno
::
Reference
<
excel
::
XName
>
xName
;
ScDocShell
*
pDocShell
=
getScDocShell
();
uno
::
Reference
<
frame
::
XModel
>
xModel
=
pDocShell
?
pDocShell
->
GetModel
()
:
NULL
;
if
(
!
xModel
.
is
()
)
{
throw
uno
::
RuntimeException
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Invalid document"
)),
uno
::
Reference
<
uno
::
XInterface
>
()
);
}
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
xModel
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
sheet
::
XNamedRanges
>
xNamedRanges
(
xPropertySet
->
getPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"NamedRanges"
)))
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
excel
::
XNames
>
xNames
(
new
ScVbaNames
(
uno
::
Reference
<
XHelperInterface
>
(),
mxContext
,
xNamedRanges
,
xModel
)
);
uno
::
Any
aDummy
;
//uno::Any aRefersTo;
// aRefersTo <<= uno::Reference< excel::XRange >(this, uno::UNO_QUERY);
xNames
->
Add
(
aName
,
getCellRange
(),
aDummy
,
aDummy
,
aDummy
,
aDummy
,
aDummy
,
aDummy
,
aDummy
,
aDummy
,
aDummy
);
}
uno
::
Any
ScVbaRange
::
getValue
(
ValueGetter
&
valueGetter
)
throw
(
uno
::
RuntimeException
)
{
...
...
sc/source/ui/vba/vbarange.hxx
Dosyayı görüntüle @
f323d36f
...
...
@@ -167,6 +167,7 @@ public:
// Attributes
virtual
css
::
uno
::
Any
SAL_CALL
getName
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setName
(
const
css
::
uno
::
Any
&
aName
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
getValue
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setValue
(
const
css
::
uno
::
Any
&
aValue
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Any
SAL_CALL
getFormula
()
throw
(
css
::
uno
::
RuntimeException
);
...
...
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