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
d28f0bfd
Kaydet (Commit)
d28f0bfd
authored
Ock 23, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move class definition to a header file
Change-Id: Id41200667089d4f42f7999060fd97545bb069788
üst
32e3ede9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
40 deletions
+44
-40
XMLFontStylesContext.hxx
xmloff/inc/xmloff/XMLFontStylesContext.hxx
+43
-0
XMLFontStylesContext.cxx
xmloff/source/style/XMLFontStylesContext.cxx
+1
-40
No files found.
xmloff/inc/xmloff/XMLFontStylesContext.hxx
Dosyayı görüntüle @
d28f0bfd
...
...
@@ -84,6 +84,49 @@ public:
};
/// Handles <style:font-face>
class
XMLFontStyleContext_Impl
:
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
();
XMLFontStyleContext_Impl
(
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
~
XMLFontStyleContext_Impl
();
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
;
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
::
rtl
::
OUString
&
rLocalName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
&
xAttrList
);
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
xmloff/source/style/XMLFontStylesContext.cxx
Dosyayı görüntüle @
d28f0bfd
...
...
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <xmloff/XMLFontStylesContext.hxx>
#include <com/sun/star/awt/FontFamily.hpp>
#include <com/sun/star/awt/FontPitch.hpp>
...
...
@@ -29,8 +30,6 @@
#include "fonthdl.hxx"
#include <xmloff/xmlimp.hxx>
#include <xmloff/maptype.hxx>
#include <xmloff/XMLFontStylesContext.hxx>
using
::
rtl
::
OUString
;
using
::
rtl
::
OUStringBuffer
;
...
...
@@ -78,44 +77,6 @@ static const SvXMLTokenMapEntry* lcl_getFontStyleAttrTokenMap()
return
aFontStyleAttrTokenMap
;
}
class
XMLFontStyleContext_Impl
:
public
SvXMLStyleContext
{
Any
aFamilyName
;
Any
aStyleName
;
Any
aFamily
;
Any
aPitch
;
Any
aEnc
;
SvXMLImportContextRef
xStyles
;
XMLFontStylesContext
*
GetStyles
()
{
return
((
XMLFontStylesContext
*
)
&
xStyles
);
}
public
:
TYPEINFO
();
XMLFontStyleContext_Impl
(
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
~
XMLFontStyleContext_Impl
();
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
;
};
TYPEINIT1
(
XMLFontStyleContext_Impl
,
SvXMLStyleContext
);
XMLFontStyleContext_Impl
::
XMLFontStyleContext_Impl
(
SvXMLImport
&
rImport
,
...
...
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