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
4ce40e26
Kaydet (Commit)
4ce40e26
authored
Ock 14, 2014
tarafından
Sven Wehner
Kaydeden (comit)
Miklos Vajna
Ock 15, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Translate German comments to English
üst
a47a3537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
nameuno.cxx
sc/source/ui/unoobj/nameuno.cxx
+22
-22
No files found.
sc/source/ui/unoobj/nameuno.cxx
Dosyayı görüntüle @
4ce40e26
...
@@ -81,7 +81,7 @@ SC_SIMPLE_SERVICE_INFO( ScNamedRangesObj, "ScNamedRangesObj", "com.sun.star.shee
...
@@ -81,7 +81,7 @@ SC_SIMPLE_SERVICE_INFO( ScNamedRangesObj, "ScNamedRangesObj", "com.sun.star.shee
static
bool
lcl_UserVisibleName
(
const
ScRangeData
&
rData
)
static
bool
lcl_UserVisibleName
(
const
ScRangeData
&
rData
)
{
{
//! a
ls Methode an
ScRangeData
//! a
s method to
ScRangeData
return
!
rData
.
HasType
(
RT_DATABASE
);
return
!
rData
.
HasType
(
RT_DATABASE
);
}
}
...
@@ -103,13 +103,13 @@ ScNamedRangeObj::~ScNamedRangeObj()
...
@@ -103,13 +103,13 @@ ScNamedRangeObj::~ScNamedRangeObj()
void
ScNamedRangeObj
::
Notify
(
SfxBroadcaster
&
,
const
SfxHint
&
rHint
)
void
ScNamedRangeObj
::
Notify
(
SfxBroadcaster
&
,
const
SfxHint
&
rHint
)
{
{
//
Ref-Update interessiert nich
t
//
reference update is of no interes
t
if
(
rHint
.
ISA
(
SfxSimpleHint
)
&&
((
const
SfxSimpleHint
&
)
rHint
).
GetId
()
==
SFX_HINT_DYING
)
if
(
rHint
.
ISA
(
SfxSimpleHint
)
&&
((
const
SfxSimpleHint
&
)
rHint
).
GetId
()
==
SFX_HINT_DYING
)
pDocShell
=
NULL
;
//
ungueltig geworden
pDocShell
=
NULL
;
//
became invalid
}
}
// H
ilfsfuntionen
// H
elper functions
ScRangeData
*
ScNamedRangeObj
::
GetRangeData_Impl
()
ScRangeData
*
ScNamedRangeObj
::
GetRangeData_Impl
()
{
{
...
@@ -207,7 +207,7 @@ void ScNamedRangeObj::Modify_Impl( const OUString* pNewName, const ScTokenArray*
...
@@ -207,7 +207,7 @@ void ScNamedRangeObj::Modify_Impl( const OUString* pNewName, const ScTokenArray*
}
}
else
else
{
{
pNew
=
NULL
;
//! uno::Exception/
Fehler oder so
pNew
=
NULL
;
//! uno::Exception/
Error or something
delete
pNewRanges
;
delete
pNewRanges
;
}
}
}
}
...
@@ -223,7 +223,7 @@ void SAL_CALL ScNamedRangeObj::setName( const OUString& aNewName )
...
@@ -223,7 +223,7 @@ void SAL_CALL ScNamedRangeObj::setName( const OUString& aNewName )
throw
(
uno
::
RuntimeException
)
throw
(
uno
::
RuntimeException
)
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
//!
Formeln anpassen
?????
//!
adapt formulas
?????
OUString
aNewStr
(
aNewName
);
OUString
aNewStr
(
aNewName
);
// GRAM_PODF_A1 for API compatibility.
// GRAM_PODF_A1 for API compatibility.
...
@@ -358,7 +358,7 @@ uno::Reference<table::XCellRange> SAL_CALL ScNamedRangeObj::getReferredCells()
...
@@ -358,7 +358,7 @@ uno::Reference<table::XCellRange> SAL_CALL ScNamedRangeObj::getReferredCells()
ScRangeData
*
pData
=
GetRangeData_Impl
();
ScRangeData
*
pData
=
GetRangeData_Impl
();
if
(
pData
&&
pData
->
IsValidReference
(
aRange
)
)
if
(
pData
&&
pData
->
IsValidReference
(
aRange
)
)
{
{
//! static
Funktion um ScCellObj/ScCellRangeObj zu erzeugen am
ScCellRangeObj ???
//! static
function to create ScCellObj/ScCellRangeObj at
ScCellRangeObj ???
if
(
aRange
.
aStart
==
aRange
.
aEnd
)
if
(
aRange
.
aStart
==
aRange
.
aEnd
)
return
new
ScCellObj
(
pDocShell
,
aRange
.
aStart
);
return
new
ScCellObj
(
pDocShell
,
aRange
.
aStart
);
...
@@ -485,12 +485,12 @@ ScNamedRangesObj::~ScNamedRangesObj()
...
@@ -485,12 +485,12 @@ ScNamedRangesObj::~ScNamedRangesObj()
void
ScNamedRangesObj
::
Notify
(
SfxBroadcaster
&
,
const
SfxHint
&
rHint
)
void
ScNamedRangesObj
::
Notify
(
SfxBroadcaster
&
,
const
SfxHint
&
rHint
)
{
{
//
Referenz-Update interessiert hier nich
t
//
reference update is of no interes
t
if
(
rHint
.
ISA
(
SfxSimpleHint
)
&&
if
(
rHint
.
ISA
(
SfxSimpleHint
)
&&
((
const
SfxSimpleHint
&
)
rHint
).
GetId
()
==
SFX_HINT_DYING
)
((
const
SfxSimpleHint
&
)
rHint
).
GetId
()
==
SFX_HINT_DYING
)
{
{
pDocShell
=
NULL
;
//
ungueltig geworden
pDocShell
=
NULL
;
//
became invalid
}
}
}
}
...
@@ -546,7 +546,7 @@ void SAL_CALL ScNamedRangesObj::addNewFromTitles( const table::CellRangeAddress&
...
@@ -546,7 +546,7 @@ void SAL_CALL ScNamedRangesObj::addNewFromTitles( const table::CellRangeAddress&
sheet
::
Border
aBorder
)
throw
(
uno
::
RuntimeException
)
sheet
::
Border
aBorder
)
throw
(
uno
::
RuntimeException
)
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
//!
das darf kein enum sein, weil mehrere Bits gesetzt sein koennen
!!!
//!
this cannot be an enum, because multiple bits can be set
!!!
sal_Bool
bTop
=
(
aBorder
==
sheet
::
Border_TOP
);
sal_Bool
bTop
=
(
aBorder
==
sheet
::
Border_TOP
);
sal_Bool
bLeft
=
(
aBorder
==
sheet
::
Border_LEFT
);
sal_Bool
bLeft
=
(
aBorder
==
sheet
::
Border_LEFT
);
...
@@ -644,7 +644,7 @@ uno::Any SAL_CALL ScNamedRangesObj::getByIndex( sal_Int32 nIndex )
...
@@ -644,7 +644,7 @@ uno::Any SAL_CALL ScNamedRangesObj::getByIndex( sal_Int32 nIndex )
uno
::
Type
SAL_CALL
ScNamedRangesObj
::
getElementType
()
throw
(
uno
::
RuntimeException
)
uno
::
Type
SAL_CALL
ScNamedRangesObj
::
getElementType
()
throw
(
uno
::
RuntimeException
)
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
return
::
getCppuType
((
const
uno
::
Reference
<
sheet
::
XNamedRange
>*
)
0
);
// mus
s zu getByIndex passen
return
::
getCppuType
((
const
uno
::
Reference
<
sheet
::
XNamedRange
>*
)
0
);
// mus
t be suitable for getByIndex
}
}
sal_Bool
SAL_CALL
ScNamedRangesObj
::
hasElements
()
throw
(
uno
::
RuntimeException
)
sal_Bool
SAL_CALL
ScNamedRangesObj
::
hasElements
()
throw
(
uno
::
RuntimeException
)
...
@@ -709,7 +709,7 @@ uno::Sequence<OUString> SAL_CALL ScNamedRangesObj::getElementNames()
...
@@ -709,7 +709,7 @@ uno::Sequence<OUString> SAL_CALL ScNamedRangesObj::getElementNames()
ScRangeName
*
pNames
=
GetRangeName_Impl
();
ScRangeName
*
pNames
=
GetRangeName_Impl
();
if
(
pNames
)
if
(
pNames
)
{
{
long
nVisCount
=
getCount
();
//
Namen mit
lcl_UserVisibleName
long
nVisCount
=
getCount
();
//
names with
lcl_UserVisibleName
uno
::
Sequence
<
OUString
>
aSeq
(
nVisCount
);
uno
::
Sequence
<
OUString
>
aSeq
(
nVisCount
);
OUString
*
pAry
=
aSeq
.
getArray
();
OUString
*
pAry
=
aSeq
.
getArray
();
sal_uInt16
nVisPos
=
0
;
sal_uInt16
nVisPos
=
0
;
...
@@ -960,10 +960,10 @@ void ScLabelRangeObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
...
@@ -960,10 +960,10 @@ void ScLabelRangeObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
//! Ref-Update !!!
//! Ref-Update !!!
if
(
rHint
.
ISA
(
SfxSimpleHint
)
&&
((
const
SfxSimpleHint
&
)
rHint
).
GetId
()
==
SFX_HINT_DYING
)
if
(
rHint
.
ISA
(
SfxSimpleHint
)
&&
((
const
SfxSimpleHint
&
)
rHint
).
GetId
()
==
SFX_HINT_DYING
)
pDocShell
=
NULL
;
//
ungueltig geworden
pDocShell
=
NULL
;
//
became invalid
}
}
// H
ilfsfuntionen
// H
elper functions
ScRangePair
*
ScLabelRangeObj
::
GetData_Impl
()
ScRangePair
*
ScLabelRangeObj
::
GetData_Impl
()
{
{
...
@@ -990,7 +990,7 @@ void ScLabelRangeObj::Modify_Impl( const ScRange* pLabel, const ScRange* pData )
...
@@ -990,7 +990,7 @@ void ScLabelRangeObj::Modify_Impl( const ScRange* pLabel, const ScRange* pData )
ScRangePair
*
pEntry
=
xNewList
->
Find
(
aRange
);
ScRangePair
*
pEntry
=
xNewList
->
Find
(
aRange
);
if
(
pEntry
)
if
(
pEntry
)
{
{
xNewList
->
Remove
(
pEntry
);
//
nur aus der Liste entfernt, nicht geloescht
xNewList
->
Remove
(
pEntry
);
//
only removed from list, not deleted
if
(
pLabel
)
if
(
pLabel
)
pEntry
->
GetRange
(
0
)
=
*
pLabel
;
pEntry
->
GetRange
(
0
)
=
*
pLabel
;
...
@@ -1009,10 +1009,10 @@ void ScLabelRangeObj::Modify_Impl( const ScRange* pLabel, const ScRange* pData )
...
@@ -1009,10 +1009,10 @@ void ScLabelRangeObj::Modify_Impl( const ScRange* pLabel, const ScRange* pData )
pDocShell
->
PostPaint
(
0
,
0
,
0
,
MAXCOL
,
MAXROW
,
MAXTAB
,
PAINT_GRID
);
pDocShell
->
PostPaint
(
0
,
0
,
0
,
MAXCOL
,
MAXROW
,
MAXTAB
,
PAINT_GRID
);
pDocShell
->
SetDocumentModified
();
pDocShell
->
SetDocumentModified
();
//! Undo ?!?! (h
ier und aus D
ialog)
//! Undo ?!?! (h
ere and from d
ialog)
if
(
pLabel
)
if
(
pLabel
)
aRange
=
*
pLabel
;
//
Objekt anpassen, um Range wiederzufinde
n
aRange
=
*
pLabel
;
//
adapt object to find range agai
n
}
}
}
}
}
}
...
@@ -1077,12 +1077,12 @@ ScLabelRangesObj::~ScLabelRangesObj()
...
@@ -1077,12 +1077,12 @@ ScLabelRangesObj::~ScLabelRangesObj()
void
ScLabelRangesObj
::
Notify
(
SfxBroadcaster
&
,
const
SfxHint
&
rHint
)
void
ScLabelRangesObj
::
Notify
(
SfxBroadcaster
&
,
const
SfxHint
&
rHint
)
{
{
//
Referenz-Update interessiert hier nich
t
//
reference update is of no interes
t
if
(
rHint
.
ISA
(
SfxSimpleHint
)
&&
if
(
rHint
.
ISA
(
SfxSimpleHint
)
&&
((
const
SfxSimpleHint
&
)
rHint
).
GetId
()
==
SFX_HINT_DYING
)
((
const
SfxSimpleHint
&
)
rHint
).
GetId
()
==
SFX_HINT_DYING
)
{
{
pDocShell
=
NULL
;
//
ungueltig geworden
pDocShell
=
NULL
;
//
became invalid
}
}
}
}
...
@@ -1132,7 +1132,7 @@ void SAL_CALL ScLabelRangesObj::addNew( const table::CellRangeAddress& aLabelAre
...
@@ -1132,7 +1132,7 @@ void SAL_CALL ScLabelRangesObj::addNew( const table::CellRangeAddress& aLabelAre
pDocShell
->
PostPaint
(
0
,
0
,
0
,
MAXCOL
,
MAXROW
,
MAXTAB
,
PAINT_GRID
);
pDocShell
->
PostPaint
(
0
,
0
,
0
,
MAXCOL
,
MAXROW
,
MAXTAB
,
PAINT_GRID
);
pDocShell
->
SetDocumentModified
();
pDocShell
->
SetDocumentModified
();
//! Undo ?!?! (h
ier und aus D
ialog)
//! Undo ?!?! (h
ere and from d
ialog)
}
}
}
}
}
}
...
@@ -1167,7 +1167,7 @@ void SAL_CALL ScLabelRangesObj::removeByIndex( sal_Int32 nIndex )
...
@@ -1167,7 +1167,7 @@ void SAL_CALL ScLabelRangesObj::removeByIndex( sal_Int32 nIndex )
pDocShell
->
SetDocumentModified
();
pDocShell
->
SetDocumentModified
();
bDone
=
sal_True
;
bDone
=
sal_True
;
//! Undo ?!?! (h
ier und aus D
ialog)
//! Undo ?!?! (h
ere and from d
ialog)
}
}
}
}
}
}
...
@@ -1214,7 +1214,7 @@ uno::Any SAL_CALL ScLabelRangesObj::getByIndex( sal_Int32 nIndex )
...
@@ -1214,7 +1214,7 @@ uno::Any SAL_CALL ScLabelRangesObj::getByIndex( sal_Int32 nIndex )
uno
::
Type
SAL_CALL
ScLabelRangesObj
::
getElementType
()
throw
(
uno
::
RuntimeException
)
uno
::
Type
SAL_CALL
ScLabelRangesObj
::
getElementType
()
throw
(
uno
::
RuntimeException
)
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
return
::
getCppuType
((
const
uno
::
Reference
<
sheet
::
XLabelRange
>*
)
0
);
// mus
s zu getByIndex passen
return
::
getCppuType
((
const
uno
::
Reference
<
sheet
::
XLabelRange
>*
)
0
);
// mus
t be suitable for getByIndex
}
}
...
...
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