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
c2d14df7
Kaydet (Commit)
c2d14df7
authored
Şub 01, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move implementation class to a non-public header
Change-Id: I61731f472405e46828204ffb1cacf1c9e6a9b5bf
üst
36e6f222
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
110 additions
and
82 deletions
+110
-82
XMLFontStylesContext.hxx
xmloff/inc/xmloff/XMLFontStylesContext.hxx
+0
-82
XMLFontStylesContext.cxx
xmloff/source/style/XMLFontStylesContext.cxx
+1
-0
XMLFontStylesContext_impl.hxx
xmloff/source/style/XMLFontStylesContext_impl.hxx
+109
-0
No files found.
xmloff/inc/xmloff/XMLFontStylesContext.hxx
Dosyayı görüntüle @
c2d14df7
...
...
@@ -84,88 +84,6 @@ public:
};
/// Handles <style:font-face>
class
XMLFontStyleContextFontFace
:
public
SvXMLStyleContext
{
::
com
::
sun
::
star
::
uno
::
Any
aFamilyName
;
::
com
::
sun
::
star
::
uno
::
Any
aStyleName
;
::
com
::
sun
::
star
::
uno
::
Any
aFamily
;
::
com
::
sun
::
star
::
uno
::
Any
aPitch
;
::
com
::
sun
::
star
::
uno
::
Any
aEnc
;
SvXMLImportContextRef
xStyles
;
XMLFontStylesContext
*
GetStyles
()
{
return
((
XMLFontStylesContext
*
)
&
xStyles
);
}
public
:
TYPEINFO
();
XMLFontStyleContextFontFace
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
::
rtl
::
OUString
&
rLName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
&
xAttrList
,
XMLFontStylesContext
&
rStyles
);
virtual
~
XMLFontStyleContextFontFace
();
void
SetAttribute
(
sal_uInt16
nPrefixKey
,
const
OUString
&
rLocalName
,
const
OUString
&
rValue
);
void
FillProperties
(
::
std
::
vector
<
XMLPropertyState
>
&
rProps
,
sal_Int32
nFamilyNameIdx
,
sal_Int32
nStyleNameIdx
,
sal_Int32
nFamilyIdx
,
sal_Int32
nPitchIdx
,
sal_Int32
nCharsetIdx
)
const
;
OUString
familyName
()
const
;
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
::
rtl
::
OUString
&
rLocalName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
&
xAttrList
);
};
/// Handles <style:font-face-src>
class
XMLFontStyleContextFontFaceSrc
:
public
SvXMLImportContext
{
const
XMLFontStyleContextFontFace
&
font
;
public
:
TYPEINFO
();
XMLFontStyleContextFontFaceSrc
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
::
rtl
::
OUString
&
rLName
,
const
XMLFontStyleContextFontFace
&
font
);
virtual
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
::
rtl
::
OUString
&
rLocalName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
&
xAttrList
);
};
/// Handles <style:font-face-uri>
class
XMLFontStyleContextFontFaceUri
:
public
SvXMLStyleContext
{
const
XMLFontStyleContextFontFace
&
font
;
void
handleEmbeddedFont
(
const
OUString
&
url
);
public
:
TYPEINFO
();
XMLFontStyleContextFontFaceUri
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
::
rtl
::
OUString
&
rLName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
&
xAttrList
,
const
XMLFontStyleContextFontFace
&
font
);
virtual
void
SetAttribute
(
sal_uInt16
nPrefixKey
,
const
OUString
&
rLocalName
,
const
OUString
&
rValue
);
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
xmloff/source/style/XMLFontStylesContext.cxx
Dosyayı görüntüle @
c2d14df7
...
...
@@ -18,6 +18,7 @@
*/
#include <xmloff/XMLFontStylesContext.hxx>
#include "XMLFontStylesContext_impl.hxx"
#include <com/sun/star/awt/FontFamily.hpp>
#include <com/sun/star/awt/FontPitch.hpp>
...
...
xmloff/source/style/XMLFontStylesContext_impl.hxx
0 → 100644
Dosyayı görüntüle @
c2d14df7
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _XMLOFF_XMLFONTSTYLESCONTEXT_IMPL_HXX_
#define _XMLOFF_XMLFONTSTYLESCONTEXT_IMPL_HXX_
#include <xmloff/xmlstyle.hxx>
/// Handles <style:font-face>
class
XMLFontStyleContextFontFace
:
public
SvXMLStyleContext
{
::
com
::
sun
::
star
::
uno
::
Any
aFamilyName
;
::
com
::
sun
::
star
::
uno
::
Any
aStyleName
;
::
com
::
sun
::
star
::
uno
::
Any
aFamily
;
::
com
::
sun
::
star
::
uno
::
Any
aPitch
;
::
com
::
sun
::
star
::
uno
::
Any
aEnc
;
SvXMLImportContextRef
xStyles
;
XMLFontStylesContext
*
GetStyles
()
{
return
((
XMLFontStylesContext
*
)
&
xStyles
);
}
public
:
TYPEINFO
();
XMLFontStyleContextFontFace
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
::
rtl
::
OUString
&
rLName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
&
xAttrList
,
XMLFontStylesContext
&
rStyles
);
virtual
~
XMLFontStyleContextFontFace
();
void
SetAttribute
(
sal_uInt16
nPrefixKey
,
const
OUString
&
rLocalName
,
const
OUString
&
rValue
);
void
FillProperties
(
::
std
::
vector
<
XMLPropertyState
>
&
rProps
,
sal_Int32
nFamilyNameIdx
,
sal_Int32
nStyleNameIdx
,
sal_Int32
nFamilyIdx
,
sal_Int32
nPitchIdx
,
sal_Int32
nCharsetIdx
)
const
;
OUString
familyName
()
const
;
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
::
rtl
::
OUString
&
rLocalName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
&
xAttrList
);
};
/// Handles <style:font-face-src>
class
XMLFontStyleContextFontFaceSrc
:
public
SvXMLImportContext
{
const
XMLFontStyleContextFontFace
&
font
;
public
:
TYPEINFO
();
XMLFontStyleContextFontFaceSrc
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
::
rtl
::
OUString
&
rLName
,
const
XMLFontStyleContextFontFace
&
font
);
virtual
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
::
rtl
::
OUString
&
rLocalName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
&
xAttrList
);
};
/// Handles <style:font-face-uri>
class
XMLFontStyleContextFontFaceUri
:
public
SvXMLStyleContext
{
const
XMLFontStyleContextFontFace
&
font
;
void
handleEmbeddedFont
(
const
OUString
&
url
);
public
:
TYPEINFO
();
XMLFontStyleContextFontFaceUri
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
::
rtl
::
OUString
&
rLName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
&
xAttrList
,
const
XMLFontStyleContextFontFace
&
font
);
virtual
void
SetAttribute
(
sal_uInt16
nPrefixKey
,
const
OUString
&
rLocalName
,
const
OUString
&
rValue
);
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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