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
03bb5d52
Kaydet (Commit)
03bb5d52
authored
Eki 20, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: initial png export
Change-Id: Iae0e89646eab794879529274f09839ad34aa4696
üst
fd612a14
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
0 deletions
+44
-0
test_desktop_lib.cxx
desktop/qa/desktop_lib/test_desktop_lib.cxx
+10
-0
init.cxx
desktop/source/lib/init.cxx
+1
-0
Configuration_filter.mk
filter/Configuration_filter.mk
+9
-0
calc_png_Export.xcu
filter/source/config/fragments/filters/calc_png_Export.xcu
+20
-0
CustomTarget_registry.mk
postprocess/CustomTarget_registry.mk
+2
-0
DocumentToGraphicRenderer.cxx
svtools/source/filter/DocumentToGraphicRenderer.cxx
+2
-0
No files found.
desktop/qa/desktop_lib/test_desktop_lib.cxx
Dosyayı görüntüle @
03bb5d52
...
@@ -64,6 +64,7 @@ public:
...
@@ -64,6 +64,7 @@ public:
void
testSearchCalc
();
void
testSearchCalc
();
void
testPaintTile
();
void
testPaintTile
();
void
testSaveAs
();
void
testSaveAs
();
void
testSaveAsCalc
();
CPPUNIT_TEST_SUITE
(
DesktopLOKTest
);
CPPUNIT_TEST_SUITE
(
DesktopLOKTest
);
CPPUNIT_TEST
(
testGetStyles
);
CPPUNIT_TEST
(
testGetStyles
);
...
@@ -74,6 +75,7 @@ public:
...
@@ -74,6 +75,7 @@ public:
CPPUNIT_TEST
(
testSearchCalc
);
CPPUNIT_TEST
(
testSearchCalc
);
CPPUNIT_TEST
(
testPaintTile
);
CPPUNIT_TEST
(
testPaintTile
);
CPPUNIT_TEST
(
testSaveAs
);
CPPUNIT_TEST
(
testSaveAs
);
CPPUNIT_TEST
(
testSaveAsCalc
);
CPPUNIT_TEST_SUITE_END
();
CPPUNIT_TEST_SUITE_END
();
uno
::
Reference
<
lang
::
XComponent
>
mxComponent
;
uno
::
Reference
<
lang
::
XComponent
>
mxComponent
;
...
@@ -320,6 +322,14 @@ void DesktopLOKTest::testSaveAs()
...
@@ -320,6 +322,14 @@ void DesktopLOKTest::testSaveAs()
CPPUNIT_ASSERT
(
pDocument
->
pClass
->
saveAs
(
pDocument
,
aTempFile
.
GetURL
().
toUtf8
().
getStr
(),
"png"
,
0
));
CPPUNIT_ASSERT
(
pDocument
->
pClass
->
saveAs
(
pDocument
,
aTempFile
.
GetURL
().
toUtf8
().
getStr
(),
"png"
,
0
));
}
}
void
DesktopLOKTest
::
testSaveAsCalc
()
{
LibLODocument_Impl
*
pDocument
=
loadDoc
(
"search.ods"
);
utl
::
TempFile
aTempFile
;
aTempFile
.
EnableKillingFile
();
CPPUNIT_ASSERT
(
pDocument
->
pClass
->
saveAs
(
pDocument
,
aTempFile
.
GetURL
().
toUtf8
().
getStr
(),
"png"
,
0
));
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
DesktopLOKTest
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
DesktopLOKTest
);
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
desktop/source/lib/init.cxx
Dosyayı görüntüle @
03bb5d52
...
@@ -132,6 +132,7 @@ static const ExtensionMap aCalcExtensionMap[] =
...
@@ -132,6 +132,7 @@ static const ExtensionMap aCalcExtensionMap[] =
{
"xhtml"
,
"XHTML Calc File"
},
{
"xhtml"
,
"XHTML Calc File"
},
{
"xls"
,
"MS Excel 97"
},
{
"xls"
,
"MS Excel 97"
},
{
"xlsx"
,
"Calc MS Excel 2007 XML"
},
{
"xlsx"
,
"Calc MS Excel 2007 XML"
},
{
"png"
,
"calc_png_Export"
},
{
NULL
,
NULL
}
{
NULL
,
NULL
}
};
};
...
...
filter/Configuration_filter.mk
Dosyayı görüntüle @
03bb5d52
...
@@ -843,6 +843,15 @@ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_writergraphics
...
@@ -843,6 +843,15 @@ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_writergraphics
writer_png_Export \
writer_png_Export \
))
))
# fcfg_calcgraphics
$(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_calcgraphics_types.xcu,filter/source/config/fragments/types,\
png_Portable_Network_Graphic \
))
$(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_calcgraphics_filters.xcu,filter/source/config/fragments/filters,\
calc_png_Export \
))
# fcfg_internalgraphics
# fcfg_internalgraphics
$(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_internalgraphics_types.xcu,filter/source/config/fragments/types,\
$(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_internalgraphics_types.xcu,filter/source/config/fragments/types,\
bmp_MS_Windows \
bmp_MS_Windows \
...
...
filter/source/config/fragments/filters/calc_png_Export.xcu
0 → 100644
Dosyayı görüntüle @
03bb5d52
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<node oor:name="calc_png_Export" oor:op="replace">
<prop oor:name="Flags"><value>EXPORT ALIEN 3RDPARTYFILTER</value></prop>
<prop oor:name="UIComponent"><value>com.sun.star.comp.GraphicExportDialog</value></prop>
<prop oor:name="FilterService"><value>com.sun.star.comp.GraphicExportFilter</value></prop>
<prop oor:name="UserData"><value></value></prop>
<prop oor:name="UIName">
<value xml:lang="en-US">PNG - Portable Network Graphic</value>
</prop>
<prop oor:name="FileFormatVersion"><value>0</value></prop>
<prop oor:name="Type"><value>png_Portable_Network_Graphic</value></prop>
<prop oor:name="TemplateName"/>
<prop oor:name="DocumentService"><value>com.sun.star.sheet.SpreadsheetDocument</value></prop>
</node>
postprocess/CustomTarget_registry.mk
Dosyayı görüntüle @
03bb5d52
...
@@ -87,6 +87,8 @@ postprocess_FILES_graphicfilter := \
...
@@ -87,6 +87,8 @@ postprocess_FILES_graphicfilter := \
$(call gb_XcuFilterTypesTarget_get_target,fcfg_drawgraphics_types.xcu) \
$(call gb_XcuFilterTypesTarget_get_target,fcfg_drawgraphics_types.xcu) \
$(call gb_XcuFilterFiltersTarget_get_target,fcfg_impressgraphics_filters.xcu) \
$(call gb_XcuFilterFiltersTarget_get_target,fcfg_impressgraphics_filters.xcu) \
$(call gb_XcuFilterTypesTarget_get_target,fcfg_impressgraphics_types.xcu) \
$(call gb_XcuFilterTypesTarget_get_target,fcfg_impressgraphics_types.xcu) \
$(call gb_XcuFilterFiltersTarget_get_target,fcfg_calcgraphics_filters.xcu) \
$(call gb_XcuFilterTypesTarget_get_target,fcfg_calcgraphics_types.xcu) \
$(call gb_XcuFilterFiltersTarget_get_target,fcfg_writergraphics_filters.xcu) \
$(call gb_XcuFilterFiltersTarget_get_target,fcfg_writergraphics_filters.xcu) \
$(call gb_XcuFilterTypesTarget_get_target,fcfg_writergraphics_types.xcu)
$(call gb_XcuFilterTypesTarget_get_target,fcfg_writergraphics_types.xcu)
...
...
svtools/source/filter/DocumentToGraphicRenderer.cxx
Dosyayı görüntüle @
03bb5d52
...
@@ -148,6 +148,8 @@ Graphic DocumentToGraphicRenderer::renderToGraphic(
...
@@ -148,6 +148,8 @@ Graphic DocumentToGraphicRenderer::renderToGraphic(
sal_Int32
DocumentToGraphicRenderer
::
getCurrentPageWriter
()
sal_Int32
DocumentToGraphicRenderer
::
getCurrentPageWriter
()
{
{
Reference
<
text
::
XTextViewCursorSupplier
>
xTextViewCursorSupplier
(
mxModel
->
getCurrentController
(),
UNO_QUERY
);
Reference
<
text
::
XTextViewCursorSupplier
>
xTextViewCursorSupplier
(
mxModel
->
getCurrentController
(),
UNO_QUERY
);
if
(
!
xTextViewCursorSupplier
.
is
())
return
1
;
Reference
<
text
::
XPageCursor
>
xCursor
(
xTextViewCursorSupplier
->
getViewCursor
(),
UNO_QUERY
);
Reference
<
text
::
XPageCursor
>
xCursor
(
xTextViewCursorSupplier
->
getViewCursor
(),
UNO_QUERY
);
return
xCursor
->
getPage
();
return
xCursor
->
getPage
();
}
}
...
...
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