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
c7a73904
Kaydet (Commit)
c7a73904
authored
Eki 22, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwXAutoStyleFamily
Change-Id: Ic2865ff81a79b0d96b950b310723262959d080b5
üst
6e3c3625
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
unostyle.hxx
sw/inc/unostyle.hxx
+2
-2
unostyle.cxx
sw/source/core/unocore/unostyle.cxx
+14
-14
No files found.
sw/inc/unostyle.hxx
Dosyayı görüntüle @
c7a73904
...
...
@@ -355,8 +355,8 @@ public:
class
SwXAutoStyleFamily
:
public
cppu
::
WeakImplHelper
<
com
::
sun
::
star
::
style
::
XAutoStyleFamily
>
,
public
SwClient
{
SwDocShell
*
pDocShell
;
IStyleAccess
::
SwAutoStyleFamily
eFamily
;
SwDocShell
*
m_
pDocShell
;
IStyleAccess
::
SwAutoStyleFamily
m_
eFamily
;
protected
:
virtual
void
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
override
;
...
...
sw/source/core/unocore/unostyle.cxx
Dosyayı görüntüle @
c7a73904
...
...
@@ -4140,7 +4140,7 @@ sal_Bool SwXAutoStyles::hasByName(const OUString& Name)
}
SwXAutoStyleFamily
::
SwXAutoStyleFamily
(
SwDocShell
*
pDocSh
,
IStyleAccess
::
SwAutoStyleFamily
nFamily
)
:
pDocShell
(
pDocSh
),
eFamily
(
nFamily
)
m_pDocShell
(
pDocSh
),
m_
eFamily
(
nFamily
)
{
// Register ourselves as a listener to the document (via the page descriptor)
pDocSh
->
GetDoc
()
->
getIDocumentStylePoolAccess
().
GetPageDescFromPool
(
RES_POOLPAGE_STANDARD
)
->
Add
(
this
);
...
...
@@ -4154,21 +4154,21 @@ void SwXAutoStyleFamily::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNe
{
ClientModify
(
this
,
pOld
,
pNew
);
if
(
!
GetRegisteredIn
())
pDocShell
=
0
;
m_
pDocShell
=
0
;
}
uno
::
Reference
<
style
::
XAutoStyle
>
SwXAutoStyleFamily
::
insertStyle
(
const
uno
::
Sequence
<
beans
::
PropertyValue
>&
Values
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
if
(
!
pDocShell
)
if
(
!
m_
pDocShell
)
{
throw
uno
::
RuntimeException
();
}
const
sal_uInt16
*
pRange
=
0
;
const
SfxItemPropertySet
*
pPropSet
=
0
;
switch
(
eFamily
)
switch
(
m_
eFamily
)
{
case
IStyleAccess
:
:
AUTO_STYLE_CHAR
:
{
...
...
@@ -4194,10 +4194,10 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
if
(
!
pPropSet
)
throw
uno
::
RuntimeException
();
SwAttrSet
aSet
(
pDocShell
->
GetDoc
()
->
GetAttrPool
(),
pRange
);
SwAttrSet
aSet
(
m_
pDocShell
->
GetDoc
()
->
GetAttrPool
(),
pRange
);
const
beans
::
PropertyValue
*
pSeq
=
Values
.
getConstArray
();
sal_Int32
nLen
=
Values
.
getLength
();
const
bool
bTakeCareOfDrawingLayerFillStyle
(
IStyleAccess
::
AUTO_STYLE_PARA
==
eFamily
);
const
bool
bTakeCareOfDrawingLayerFillStyle
(
IStyleAccess
::
AUTO_STYLE_PARA
==
m_
eFamily
);
if
(
!
bTakeCareOfDrawingLayerFillStyle
)
{
...
...
@@ -4222,7 +4222,7 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
//UUUU set parent to ItemSet to ensure XFILL_NONE as XFillStyleItem
// to make cases in RES_BACKGROUND work correct; target *is* a style
// where this is the case
aSet
.
SetParent
(
&
pDocShell
->
GetDoc
()
->
GetDfltTextFormatColl
()
->
GetAttrSet
());
aSet
.
SetParent
(
&
m_
pDocShell
->
GetDoc
()
->
GetDfltTextFormatColl
()
->
GetAttrSet
());
//UUUU here the used DrawingLayer FillStyles are imported when family is
// equal to IStyleAccess::AUTO_STYLE_PARA, thus we will need to serve the
...
...
@@ -4263,7 +4263,7 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
if
(
bDoIt
)
{
const
SfxItemPool
&
rPool
=
pDocShell
->
GetDoc
()
->
GetAttrPool
();
const
SfxItemPool
&
rPool
=
m_
pDocShell
->
GetDoc
()
->
GetAttrPool
();
const
SfxMapUnit
eMapUnit
(
rPool
.
GetMetric
(
pEntry
->
nWID
));
if
(
eMapUnit
!=
SFX_MAPUNIT_100TH_MM
)
...
...
@@ -4316,7 +4316,7 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
case
RES_BACKGROUND
:
{
//UUUU
const
SvxBrushItem
aOriginalBrushItem
(
getSvxBrushItemFromSourceSet
(
aSet
,
RES_BACKGROUND
,
true
,
pDocShell
->
GetDoc
()
->
IsInXMLImport
()));
const
SvxBrushItem
aOriginalBrushItem
(
getSvxBrushItemFromSourceSet
(
aSet
,
RES_BACKGROUND
,
true
,
m_
pDocShell
->
GetDoc
()
->
IsInXMLImport
()));
SvxBrushItem
aChangedBrushItem
(
aOriginalBrushItem
);
aChangedBrushItem
.
PutValue
(
aValue
,
nMemberId
);
...
...
@@ -4380,11 +4380,11 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
// currently in principle only needed when bTakeCareOfDrawingLayerFillStyle,
// but does not hurt and is easily forgotten later eventually, so keep it
// as common case
pDocShell
->
GetDoc
()
->
CheckForUniqueItemForLineFillNameOrIndex
(
aSet
);
m_
pDocShell
->
GetDoc
()
->
CheckForUniqueItemForLineFillNameOrIndex
(
aSet
);
// AutomaticStyle creation
SfxItemSet_Pointer_t
pSet
=
pDocShell
->
GetDoc
()
->
GetIStyleAccess
().
cacheAutomaticStyle
(
aSet
,
eFamily
);
uno
::
Reference
<
style
::
XAutoStyle
>
xRet
=
new
SwXAutoStyle
(
pDocShell
->
GetDoc
(),
pSet
,
eFamily
);
SfxItemSet_Pointer_t
pSet
=
m_pDocShell
->
GetDoc
()
->
GetIStyleAccess
().
cacheAutomaticStyle
(
aSet
,
m_
eFamily
);
uno
::
Reference
<
style
::
XAutoStyle
>
xRet
=
new
SwXAutoStyle
(
m_pDocShell
->
GetDoc
(),
pSet
,
m_
eFamily
);
return
xRet
;
}
...
...
@@ -4392,10 +4392,10 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
uno
::
Reference
<
container
::
XEnumeration
>
SwXAutoStyleFamily
::
createEnumeration
(
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
if
(
!
pDocShell
)
if
(
!
m_
pDocShell
)
throw
uno
::
RuntimeException
();
return
uno
::
Reference
<
container
::
XEnumeration
>
(
new
SwXAutoStylesEnumerator
(
pDocShell
->
GetDoc
(),
eFamily
));
(
new
SwXAutoStylesEnumerator
(
m_pDocShell
->
GetDoc
(),
m_
eFamily
));
}
uno
::
Type
SwXAutoStyleFamily
::
getElementType
(
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
...
...
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