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
d4ac7380
Kaydet (Commit)
d4ac7380
authored
Agu 31, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
some work on orcus conditional format import
Change-Id: I9ad88c0f7f935a247f0f21c7aa206312435ecafc
üst
ed22d360
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
5 deletions
+45
-5
orcusinterface.hxx
sc/source/filter/inc/orcusinterface.hxx
+7
-0
interface.cxx
sc/source/filter/orcus/interface.cxx
+38
-5
No files found.
sc/source/filter/inc/orcusinterface.hxx
Dosyayı görüntüle @
d4ac7380
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
#include "sharedformulagroups.hxx"
#include "sharedformulagroups.hxx"
#include "conditio.hxx"
#include <rtl/strbuf.hxx>
#include <rtl/strbuf.hxx>
#define __ORCUS_STATIC_LIB
#define __ORCUS_STATIC_LIB
...
@@ -135,6 +137,11 @@ private:
...
@@ -135,6 +137,11 @@ private:
SCTAB
mnTab
;
SCTAB
mnTab
;
ScDocument
&
mrDoc
;
ScDocument
&
mrDoc
;
std
::
unique_ptr
<
ScConditionalFormat
>
mpCurrentFormat
;
std
::
unique_ptr
<
ScFormatEntry
>
mpCurrentEntry
;
condformat
::
ScFormatEntryType
meEntryType
;
};
};
class
ScOrcusAutoFilter
:
public
orcus
::
spreadsheet
::
iface
::
import_auto_filter
class
ScOrcusAutoFilter
:
public
orcus
::
spreadsheet
::
iface
::
import_auto_filter
...
...
sc/source/filter/orcus/interface.cxx
Dosyayı görüntüle @
d4ac7380
...
@@ -283,10 +283,11 @@ void ScOrcusSheetProperties::set_merge_cell_range(const char* /*p_range*/, size_
...
@@ -283,10 +283,11 @@ void ScOrcusSheetProperties::set_merge_cell_range(const char* /*p_range*/, size_
ScOrcusConditionalFormat
::
ScOrcusConditionalFormat
(
SCTAB
nTab
,
ScDocument
&
rDoc
)
:
ScOrcusConditionalFormat
::
ScOrcusConditionalFormat
(
SCTAB
nTab
,
ScDocument
&
rDoc
)
:
mnTab
(
nTab
),
mnTab
(
nTab
),
mrDoc
(
rDoc
)
mrDoc
(
rDoc
),
mpCurrentFormat
(
new
ScConditionalFormat
(
0
,
&
mrDoc
)),
meEntryType
(
condformat
::
CONDITION
)
{
{
(
void
)
mnTab
;
(
void
)
mnTab
;
(
void
)
mrDoc
;
}
}
ScOrcusConditionalFormat
::~
ScOrcusConditionalFormat
()
ScOrcusConditionalFormat
::~
ScOrcusConditionalFormat
()
...
@@ -301,6 +302,7 @@ void ScOrcusConditionalFormat::set_color(os::color_elem_t /*alpha*/, os::color_e
...
@@ -301,6 +302,7 @@ void ScOrcusConditionalFormat::set_color(os::color_elem_t /*alpha*/, os::color_e
void
ScOrcusConditionalFormat
::
set_condition_type
(
os
::
condition_type_t
/*type*/
)
void
ScOrcusConditionalFormat
::
set_condition_type
(
os
::
condition_type_t
/*type*/
)
{
{
assert
(
meEntryType
==
condformat
::
CONDITION
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_condition_type"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_condition_type"
);
}
}
...
@@ -311,6 +313,7 @@ void ScOrcusConditionalFormat::set_formula(const char* /*p*/, size_t /*n*/)
...
@@ -311,6 +313,7 @@ void ScOrcusConditionalFormat::set_formula(const char* /*p*/, size_t /*n*/)
void
ScOrcusConditionalFormat
::
set_date
(
os
::
condition_date_t
/*date*/
)
void
ScOrcusConditionalFormat
::
set_date
(
os
::
condition_date_t
/*date*/
)
{
{
assert
(
meEntryType
==
condformat
::
DATE
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_date"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_date"
);
}
}
...
@@ -321,38 +324,45 @@ void ScOrcusConditionalFormat::commit_condition()
...
@@ -321,38 +324,45 @@ void ScOrcusConditionalFormat::commit_condition()
void
ScOrcusConditionalFormat
::
set_icon_name
(
const
char
*
/*p*/
,
size_t
/*n*/
)
void
ScOrcusConditionalFormat
::
set_icon_name
(
const
char
*
/*p*/
,
size_t
/*n*/
)
{
{
assert
(
meEntryType
==
condformat
::
ICONSET
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_icon_name"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_icon_name"
);
}
}
void
ScOrcusConditionalFormat
::
set_databar_gradient
(
bool
/*gradient*/
)
void
ScOrcusConditionalFormat
::
set_databar_gradient
(
bool
/*gradient*/
)
{
{
assert
(
meEntryType
==
condformat
::
DATABAR
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_databar_gradient"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_databar_gradient"
);
}
}
void
ScOrcusConditionalFormat
::
set_databar_axis
(
os
::
databar_axis_t
/*axis*/
)
void
ScOrcusConditionalFormat
::
set_databar_axis
(
os
::
databar_axis_t
/*axis*/
)
{
{
assert
(
meEntryType
==
condformat
::
DATABAR
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_databar_axis"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_databar_axis"
);
}
}
void
ScOrcusConditionalFormat
::
set_databar_color_positive
(
os
::
color_elem_t
/*alpha*/
,
os
::
color_elem_t
/*red*/
,
void
ScOrcusConditionalFormat
::
set_databar_color_positive
(
os
::
color_elem_t
/*alpha*/
,
os
::
color_elem_t
/*red*/
,
os
::
color_elem_t
/*green*/
,
os
::
color_elem_t
/*blue*/
)
os
::
color_elem_t
/*green*/
,
os
::
color_elem_t
/*blue*/
)
{
{
assert
(
meEntryType
==
condformat
::
DATABAR
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_databar_color_positive"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_databar_color_positive"
);
}
}
void
ScOrcusConditionalFormat
::
set_databar_color_negative
(
os
::
color_elem_t
/*alpha*/
,
os
::
color_elem_t
/*red*/
,
void
ScOrcusConditionalFormat
::
set_databar_color_negative
(
os
::
color_elem_t
/*alpha*/
,
os
::
color_elem_t
/*red*/
,
os
::
color_elem_t
/*green*/
,
os
::
color_elem_t
/*blue*/
)
os
::
color_elem_t
/*green*/
,
os
::
color_elem_t
/*blue*/
)
{
{
assert
(
meEntryType
==
condformat
::
DATABAR
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_databar_color_negative"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_databar_color_negative"
);
}
}
void
ScOrcusConditionalFormat
::
set_min_databar_length
(
double
/*length*/
)
void
ScOrcusConditionalFormat
::
set_min_databar_length
(
double
/*length*/
)
{
{
assert
(
meEntryType
==
condformat
::
DATABAR
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_min_databar_length"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_min_databar_length"
);
}
}
void
ScOrcusConditionalFormat
::
set_max_databar_length
(
double
/*length*/
)
void
ScOrcusConditionalFormat
::
set_max_databar_length
(
double
/*length*/
)
{
{
assert
(
meEntryType
==
condformat
::
DATABAR
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_max_databar_length"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_max_databar_length"
);
}
}
...
@@ -363,6 +373,7 @@ void ScOrcusConditionalFormat::set_show_value(bool /*show*/)
...
@@ -363,6 +373,7 @@ void ScOrcusConditionalFormat::set_show_value(bool /*show*/)
void
ScOrcusConditionalFormat
::
set_iconset_reverse
(
bool
/*reverse*/
)
void
ScOrcusConditionalFormat
::
set_iconset_reverse
(
bool
/*reverse*/
)
{
{
assert
(
meEntryType
==
condformat
::
ICONSET
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_iconset_reverse"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_iconset_reverse"
);
}
}
...
@@ -376,8 +387,27 @@ void ScOrcusConditionalFormat::set_operator(os::condition_operator_t /*condition
...
@@ -376,8 +387,27 @@ void ScOrcusConditionalFormat::set_operator(os::condition_operator_t /*condition
SAL_INFO
(
"sc.orcus.condformat"
,
"set_operator"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_operator"
);
}
}
void
ScOrcusConditionalFormat
::
set_type
(
os
::
conditional_format_t
/*type*/
)
void
ScOrcusConditionalFormat
::
set_type
(
os
::
conditional_format_t
type
)
{
{
switch
(
type
)
{
case
os
:
:
conditional_format_condition
:
case
os
:
:
conditional_format_formula
:
meEntryType
=
condformat
::
CONDITION
;
// mpCurrentEntry.reset(new ScCondFormatEntry());
break
;
case
os
:
:
conditional_format_date
:
break
;
case
os
:
:
conditional_format_colorscale
:
break
;
case
os
:
:
conditional_format_databar
:
break
;
case
os
:
:
conditional_format_iconset
:
break
;
default
:
SAL_INFO
(
"sc.orcus.condformat"
,
"unknown conditional_format_t value"
);
break
;
}
SAL_INFO
(
"sc.orcus.condformat"
,
"set_type"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_type"
);
}
}
...
@@ -391,15 +421,18 @@ void ScOrcusConditionalFormat::set_range(const char* /*p*/, size_t /*n*/)
...
@@ -391,15 +421,18 @@ void ScOrcusConditionalFormat::set_range(const char* /*p*/, size_t /*n*/)
SAL_INFO
(
"sc.orcus.condformat"
,
"set_range"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_range"
);
}
}
void
ScOrcusConditionalFormat
::
set_range
(
os
::
row_t
/*row_start*/
,
os
::
col_t
/*col_start*/
,
void
ScOrcusConditionalFormat
::
set_range
(
os
::
row_t
row_start
,
os
::
col_t
col_start
,
os
::
row_t
/*row_end*/
,
os
::
col_t
/*col_end*/
)
os
::
row_t
row_end
,
os
::
col_t
col_end
)
{
{
SAL_INFO
(
"sc.orcus.condformat"
,
"set_range"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"set_range"
);
ScRange
aRange
(
col_start
,
row_start
,
mnTab
,
col_end
,
row_end
,
mnTab
);
mpCurrentFormat
->
SetRange
(
aRange
);
}
}
void
ScOrcusConditionalFormat
::
commit_format
()
void
ScOrcusConditionalFormat
::
commit_format
()
{
{
SAL_INFO
(
"sc.orcus.condformat"
,
"commit_format"
);
SAL_INFO
(
"sc.orcus.condformat"
,
"commit_format"
);
mpCurrentFormat
.
reset
(
new
ScConditionalFormat
(
0
,
&
mrDoc
));
}
}
ScOrcusSheet
::
ScOrcusSheet
(
ScDocumentImport
&
rDoc
,
SCTAB
nTab
,
ScOrcusFactory
&
rFactory
)
:
ScOrcusSheet
::
ScOrcusSheet
(
ScDocumentImport
&
rDoc
,
SCTAB
nTab
,
ScOrcusFactory
&
rFactory
)
:
...
...
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