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
654170d0
Kaydet (Commit)
654170d0
authored
Eki 07, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwXStyleFamilies
Change-Id: I073d3c741ea055b673d7720508b4729d28f7e49c
üst
2f2a1880
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
38 deletions
+38
-38
unostyle.hxx
sw/inc/unostyle.hxx
+6
-6
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+32
-32
No files found.
sw/inc/unostyle.hxx
Dosyayı görüntüle @
654170d0
...
...
@@ -60,13 +60,13 @@ class SwXStyleFamilies : public cppu::WeakImplHelper
>
,
public
SwUnoCollection
{
SwDocShell
*
pDocShell
;
SwDocShell
*
m_
pDocShell
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
pxCharStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
pxParaStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
pxFrameStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
pxPageStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
pxNumberingStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
m_
pxCharStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
m_
pxParaStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
m_
pxFrameStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
m_
pxPageStyles
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameContainer
>
*
m_
pxNumberingStyles
;
protected
:
virtual
~
SwXStyleFamilies
();
public
:
...
...
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
654170d0
...
...
@@ -166,23 +166,23 @@ uno::Sequence< OUString > SwXStyleFamilies::getSupportedServiceNames() throw( un
SwXStyleFamilies
::
SwXStyleFamilies
(
SwDocShell
&
rDocShell
)
:
SwUnoCollection
(
rDocShell
.
GetDoc
()),
pDocShell
(
&
rDocShell
),
pxCharStyles
(
0
),
pxParaStyles
(
0
),
pxFrameStyles
(
0
),
pxPageStyles
(
0
),
pxNumberingStyles
(
0
)
m_
pDocShell
(
&
rDocShell
),
m_
pxCharStyles
(
0
),
m_
pxParaStyles
(
0
),
m_
pxFrameStyles
(
0
),
m_
pxPageStyles
(
0
),
m_
pxNumberingStyles
(
0
)
{
}
SwXStyleFamilies
::~
SwXStyleFamilies
()
{
delete
pxCharStyles
;
delete
pxParaStyles
;
delete
pxFrameStyles
;
delete
pxPageStyles
;
delete
pxNumberingStyles
;
delete
m_
pxCharStyles
;
delete
m_
pxParaStyles
;
delete
m_
pxFrameStyles
;
delete
m_
pxPageStyles
;
delete
m_
pxNumberingStyles
;
}
uno
::
Any
SAL_CALL
SwXStyleFamilies
::
getByName
(
const
OUString
&
Name
)
...
...
@@ -255,52 +255,52 @@ uno::Any SwXStyleFamilies::getByIndex(sal_Int32 nIndex)
{
case
SFX_STYLE_FAMILY_CHAR
:
{
if
(
!
pxCharStyles
)
if
(
!
m_
pxCharStyles
)
{
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
pxCharStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
pxCharStyles
=
new
SwXStyleFamily
(
pDocShell
,
nType
);
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
m_
pxCharStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
m_pxCharStyles
=
new
SwXStyleFamily
(
m_
pDocShell
,
nType
);
}
aRef
=
*
pxCharStyles
;
aRef
=
*
m_
pxCharStyles
;
}
break
;
case
SFX_STYLE_FAMILY_PARA
:
{
if
(
!
pxParaStyles
)
if
(
!
m_
pxParaStyles
)
{
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
pxParaStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
pxParaStyles
=
new
SwXStyleFamily
(
pDocShell
,
nType
);
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
m_
pxParaStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
m_pxParaStyles
=
new
SwXStyleFamily
(
m_
pDocShell
,
nType
);
}
aRef
=
*
pxParaStyles
;
aRef
=
*
m_
pxParaStyles
;
}
break
;
case
SFX_STYLE_FAMILY_PAGE
:
{
if
(
!
pxPageStyles
)
if
(
!
m_
pxPageStyles
)
{
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
pxPageStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
pxPageStyles
=
new
SwXStyleFamily
(
pDocShell
,
nType
);
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
m_
pxPageStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
m_pxPageStyles
=
new
SwXStyleFamily
(
m_
pDocShell
,
nType
);
}
aRef
=
*
pxPageStyles
;
aRef
=
*
m_
pxPageStyles
;
}
break
;
case
SFX_STYLE_FAMILY_FRAME
:
{
if
(
!
pxFrameStyles
)
if
(
!
m_
pxFrameStyles
)
{
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
pxFrameStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
pxFrameStyles
=
new
SwXStyleFamily
(
pDocShell
,
nType
);
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
m_
pxFrameStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
m_pxFrameStyles
=
new
SwXStyleFamily
(
m_
pDocShell
,
nType
);
}
aRef
=
*
pxFrameStyles
;
aRef
=
*
m_
pxFrameStyles
;
}
break
;
case
SFX_STYLE_FAMILY_PSEUDO
:
{
if
(
!
pxNumberingStyles
)
if
(
!
m_
pxNumberingStyles
)
{
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
pxNumberingStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
pxNumberingStyles
=
new
SwXStyleFamily
(
pDocShell
,
nType
);
static_cast
<
SwXStyleFamilies
*>
(
this
)
->
m_
pxNumberingStyles
=
new
uno
::
Reference
<
container
::
XNameContainer
>
();
*
m_pxNumberingStyles
=
new
SwXStyleFamily
(
m_
pDocShell
,
nType
);
}
aRef
=
*
pxNumberingStyles
;
aRef
=
*
m_
pxNumberingStyles
;
}
break
;
}
...
...
@@ -366,7 +366,7 @@ void SwXStyleFamilies::loadStylesFromURL(const OUString& rURL,
aOpt
.
SetNumRules
(
bLoadStyleNumbering
);
aOpt
.
SetMerge
(
!
bLoadStyleOverwrite
);
sal_uLong
nErr
=
pDocShell
->
LoadStylesFromFile
(
rURL
,
aOpt
,
true
);
sal_uLong
nErr
=
m_
pDocShell
->
LoadStylesFromFile
(
rURL
,
aOpt
,
true
);
if
(
nErr
)
throw
io
::
IOException
();
}
...
...
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