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
b5664488
Kaydet (Commit)
b5664488
authored
Kas 11, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOC export: allow saving as a template
Change-Id: I26894edd3962c2b2856d2bfa4a4aa4e6f4e65c9e
üst
e52779d2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
MS_Word_97_Vorlage.xcu
...er/source/config/fragments/filters/MS_Word_97_Vorlage.xcu
+1
-1
wrtww8.cxx
sw/source/filter/ww8/wrtww8.cxx
+5
-3
wrtww8.hxx
sw/source/filter/ww8/wrtww8.hxx
+2
-1
ww8scan.cxx
sw/source/filter/ww8/ww8scan.cxx
+2
-1
ww8scan.hxx
sw/source/filter/ww8/ww8scan.hxx
+1
-1
No files found.
filter/source/config/fragments/filters/MS_Word_97_Vorlage.xcu
Dosyayı görüntüle @
b5664488
...
...
@@ -16,7 +16,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<node oor:name="MS Word 97 Vorlage" oor:op="replace">
<prop oor:name="Flags"><value>IMPORT TEMPLATE TEMPLATEPATH ALIEN ENCRYPTION PASSWORDTOMODIFY</value></prop>
<prop oor:name="Flags"><value>IMPORT
EXPORT
TEMPLATE TEMPLATEPATH ALIEN ENCRYPTION PASSWORDTOMODIFY</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="FilterService"/>
<prop oor:name="UserData"><value>CWW8</value></prop>
...
...
sw/source/filter/ww8/wrtww8.cxx
Dosyayı görüntüle @
b5664488
...
...
@@ -3071,7 +3071,7 @@ void WW8Export::ExportDocument_Impl()
{
PrepareStorage
();
pFib
=
new
WW8Fib
(
bWrtWW8
?
8
:
6
);
pFib
=
new
WW8Fib
(
bWrtWW8
?
8
:
6
,
m_bDot
);
SvStorageStreamRef
xWwStrm
(
GetWriter
().
GetStorage
().
OpenSotStream
(
aMainStg
)
);
SvStorageStreamRef
xTableStrm
(
xWwStrm
),
xDataStrm
(
xWwStrm
);
...
...
@@ -3377,7 +3377,8 @@ sal_uLong SwWW8Writer::WriteStorage()
// Do the actual export
{
WW8Export
aExport
(
this
,
pDoc
,
pCurPam
,
pOrigPam
,
m_bWrtWW8
);
bool
bDot
=
mpMedium
->
GetFilter
()
->
GetName
().
endsWith
(
"Vorlage"
);
WW8Export
aExport
(
this
,
pDoc
,
pCurPam
,
pOrigPam
,
m_bWrtWW8
,
bDot
);
m_pExport
=
&
aExport
;
aExport
.
ExportDocument
(
bWriteAll
);
m_pExport
=
NULL
;
...
...
@@ -3425,11 +3426,12 @@ MSWordExportBase::~MSWordExportBase()
WW8Export
::
WW8Export
(
SwWW8Writer
*
pWriter
,
SwDoc
*
pDocument
,
SwPaM
*
pCurrentPam
,
SwPaM
*
pOriginalPam
,
bool
bIsWW8
)
bool
bIsWW8
,
bool
bDot
)
:
MSWordExportBase
(
pDocument
,
pCurrentPam
,
pOriginalPam
),
pO
(
NULL
),
pSepx
(
NULL
),
bWrtWW8
(
bIsWW8
),
m_bDot
(
bDot
),
m_pWriter
(
pWriter
),
m_pAttrOutput
(
new
WW8AttributeOutput
(
*
this
)
)
{
...
...
sw/source/filter/ww8/wrtww8.hxx
Dosyayı görüntüle @
b5664488
...
...
@@ -921,6 +921,7 @@ public:
WW8_WrPlcSepx
*
pSepx
;
///< Sections/headers/footers
sal_uInt8
bWrtWW8
:
1
;
///< Write WW95 (false) or WW97 (true) file format
bool
m_bDot
;
///< Template or document.
protected
:
SwWW8Writer
*
m_pWriter
;
///< Pointer to the writer
...
...
@@ -1095,7 +1096,7 @@ public:
/// Setup the exporter.
WW8Export
(
SwWW8Writer
*
pWriter
,
SwDoc
*
pDocument
,
SwPaM
*
pCurrentPam
,
SwPaM
*
pOriginalPam
,
bool
bIsWW8
);
bool
bIsWW8
,
bool
bDot
);
virtual
~
WW8Export
();
virtual
void
DoComboBox
(
const
OUString
&
rName
,
...
...
sw/source/filter/ww8/ww8scan.cxx
Dosyayı görüntüle @
b5664488
...
...
@@ -5509,7 +5509,7 @@ WW8Fib::WW8Fib(SvStream& rSt, sal_uInt8 nWantedVersion, sal_uInt32 nOffset)
}
WW8Fib
::
WW8Fib
(
sal_uInt8
nVer
)
WW8Fib
::
WW8Fib
(
sal_uInt8
nVer
,
bool
bDot
)
{
memset
(
this
,
0
,
sizeof
(
*
this
));
nVersion
=
nVer
;
...
...
@@ -5520,6 +5520,7 @@ WW8Fib::WW8Fib(sal_uInt8 nVer)
nFib
=
0x0101
;
nFibBack
=
0xbf
;
nProduct
=
0x204D
;
fDot
=
bDot
;
csw
=
0x0e
;
// muss das sein ???
cfclcb
=
0x88
;
// -""-
...
...
sw/source/filter/ww8/ww8scan.hxx
Dosyayı görüntüle @
b5664488
...
...
@@ -1410,7 +1410,7 @@ public:
WW8Fib
(
SvStream
&
rStrm
,
sal_uInt8
nWantedVersion
,
sal_uInt32
nOffset
=
0
);
/* leider falsch, man braucht auch noch einen fuer den Export */
WW8Fib
(
sal_uInt8
nVersion
=
6
);
WW8Fib
(
sal_uInt8
nVersion
=
6
,
bool
bDot
=
false
);
bool
WriteHeader
(
SvStream
&
rStrm
);
bool
Write
(
SvStream
&
rStrm
);
static
rtl_TextEncoding
GetFIBCharset
(
sal_uInt16
chs
);
...
...
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