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
3b64f7cc
Kaydet (Commit)
3b64f7cc
authored
Ara 09, 2000
tarafından
Oliver Specht
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
saving of column data corrected
üst
12c7faed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
41 deletions
+11
-41
dbinsdlg.cxx
sw/source/ui/dbui/dbinsdlg.cxx
+11
-41
No files found.
sw/source/ui/dbui/dbinsdlg.cxx
Dosyayı görüntüle @
3b64f7cc
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: dbinsdlg.cxx,v $
* $RCSfile: dbinsdlg.cxx,v $
*
*
* $Revision: 1.1
0
$
* $Revision: 1.1
1
$
*
*
* last change: $Author: os $ $Date: 2000-12-0
8 10:18:59
$
* last change: $Author: os $ $Date: 2000-12-0
9 13:03:26
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -1871,11 +1871,13 @@ void SwInsertDBColAutoPilot::Commit()
...
@@ -1871,11 +1871,13 @@ void SwInsertDBColAutoPilot::Commit()
SvNumberFormatter
&
rNFmtr
=
*
pView
->
GetWrtShell
().
GetNumberFormatter
();
SvNumberFormatter
&
rNFmtr
=
*
pView
->
GetWrtShell
().
GetNumberFormatter
();
for
(
USHORT
nCol
=
0
;
nCol
<
aDBColumns
.
Count
();
nCol
++
)
for
(
USHORT
nCol
=
0
;
nCol
<
aDBColumns
.
Count
();
nCol
++
)
{
{
OUString
sColumnNode
=
sNewNode
;
sColumnNode
+=
C2U
(
"/ColumnSet"
);
SwInsDBColumn
*
pColumn
=
aDBColumns
[
nCol
];
SwInsDBColumn
*
pColumn
=
aDBColumns
[
nCol
];
OUString
s
SubNodeName
=
sNewNode
;
OUString
s
ColumnInsertNode
(
sColumnNode
)
;
s
SubNodeName
+=
C2U
(
"/
_"
);
s
ColumnInsertNode
+=
C2U
(
"/_
_"
);
s
SubNodeNam
e
+=
OUString
::
valueOf
(
sal_Int32
(
nCol
));
s
ColumnInsertNod
e
+=
OUString
::
valueOf
(
sal_Int32
(
nCol
));
Sequence
<
OUString
>
aSubNodeNames
=
lcl_CreateSubNames
(
s
SubNodeNam
e
);
Sequence
<
OUString
>
aSubNodeNames
=
lcl_CreateSubNames
(
s
ColumnInsertNod
e
);
Sequence
<
PropertyValue
>
aSubValues
(
aSubNodeNames
.
getLength
());
Sequence
<
PropertyValue
>
aSubValues
(
aSubNodeNames
.
getLength
());
PropertyValue
*
pSubValues
=
aSubValues
.
getArray
();
PropertyValue
*
pSubValues
=
aSubValues
.
getArray
();
const
OUString
*
pSubNodeNames
=
aSubNodeNames
.
getConstArray
();
const
OUString
*
pSubNodeNames
=
aSubNodeNames
.
getConstArray
();
...
@@ -1908,41 +1910,8 @@ void SwInsertDBColAutoPilot::Commit()
...
@@ -1908,41 +1910,8 @@ void SwInsertDBColAutoPilot::Commit()
sLang
+=
C2U
(
"-"
);
sLang
+=
C2U
(
"-"
);
sLang
+=
aLocale
.
Language
;
sLang
+=
aLocale
.
Language
;
pSubValues
[
5
].
Value
<<=
sLang
;
pSubValues
[
5
].
Value
<<=
sLang
;
SetSetProperties
(
s
New
Node
,
aSubValues
);
SetSetProperties
(
s
Column
Node
,
aSubValues
);
}
}
#if 0
rtl::OUString sColumn, sUsrNumFmt;
sal_Int32 nDBNumFmt;
ULONG nUsrNumFmt;
LanguageType eUsrNumFmtLng;
USHORT nCol;
BOOL bHasFmt : 1;
BOOL bIsDBFmt : 1;
// jetzt noch die benutzerdefinierten Numberformatstrings erfragen,
// denn nur diese lassen sich "unabhaengig" speichern!
SvNumberFormatter& rNFmtr = *pView->GetWrtShell().GetNumberFormatter();
GetDocPoolNm( RES_POOLCOLL_STANDARD, sTmp );
for( n = 0; n < pNewData->aDBColumns.Count(); ++n )
{
SwInsDBColumn& rSet = *pNewData->aDBColumns[ n ];
if( rSet.bHasFmt && !rSet.bIsDBFmt )
{
const SvNumberformat* pNF = rNFmtr.GetEntry( rSet.nUsrNumFmt );
if( pNF )
{
rSet.sUsrNumFmt = pNF->GetFormatstring();
rSet.eUsrNumFmtLng = pNF->GetLanguage();
}
else
{
rSet.sUsrNumFmt = sTmp;
rSet.eUsrNumFmtLng = LANGUAGE_SYSTEM;
}
}
}
#endif
}
}
/* -----------------------------05.12.00 15:00--------------------------------
/* -----------------------------05.12.00 15:00--------------------------------
...
@@ -2068,11 +2037,12 @@ void SwInsertDBColAutoPilot::Load()
...
@@ -2068,11 +2037,12 @@ void SwInsertDBColAutoPilot::Load()
aCbTableHeadon
.
Check
(
pNewData
->
bIsHeadlineOn
);
aCbTableHeadon
.
Check
(
pNewData
->
bIsHeadlineOn
);
aRbHeadlColnms
.
Check
(
!
pNewData
->
bIsEmptyHeadln
);
aRbHeadlColnms
.
Check
(
!
pNewData
->
bIsEmptyHeadln
);
aRbHeadlEmpty
.
Check
(
pNewData
->
bIsEmptyHeadln
);
aRbHeadlEmpty
.
Check
(
pNewData
->
bIsEmptyHeadln
);
HeaderHdl
(
&
aCbTableHeadon
);
// jetzt noch die benutzerdefinierten Numberformat Strings in die
// jetzt noch die benutzerdefinierten Numberformat Strings in die
// Shell kopieren. Nur diese sind dann als ID verfuegbar
// Shell kopieren. Nur diese sind dann als ID verfuegbar
SvNumberFormatter
&
rNFmtr
=
*
pView
->
GetWrtShell
().
GetNumberFormatter
();
SvNumberFormatter
&
rNFmtr
=
*
pView
->
GetWrtShell
().
GetNumberFormatter
();
for
(
n
=
0
;
n
<
aDBColumns
.
Count
();
++
n
)
for
(
n
=
0
;
n
<
pNewData
->
aDBColumns
.
Count
()
&&
n
<
pNewData
->
aDBColumns
.
Count
();
++
n
)
{
{
SwInsDBColumn
&
rSet
=
*
aDBColumns
[
n
];
SwInsDBColumn
&
rSet
=
*
aDBColumns
[
n
];
const
SwInsDBColumn
&
rGet
=
*
pNewData
->
aDBColumns
[
n
];
const
SwInsDBColumn
&
rGet
=
*
pNewData
->
aDBColumns
[
n
];
...
...
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