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
e9b84827
Kaydet (Commit)
e9b84827
authored
Kas 06, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwFmt: add getter / setter for InteropGrabBag
Change-Id: I3f97c23077f8c2af69873e9cef244265378f44f7
üst
db1118a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
format.hxx
sw/inc/format.hxx
+6
-0
format.cxx
sw/source/core/attr/format.cxx
+23
-0
No files found.
sw/inc/format.hxx
Dosyayı görüntüle @
e9b84827
...
...
@@ -24,6 +24,7 @@
#include <swatrset.hxx>
#include <calbck.hxx>
#include <hintids.hxx>
#include <boost/shared_ptr.hpp>
class
IDocumentSettingAccess
;
class
IDocumentDrawModelAccess
;
...
...
@@ -32,6 +33,7 @@ class IDocumentTimerAccess;
class
IDocumentFieldsAccess
;
class
IDocumentChartDataProviderAccess
;
class
SwDoc
;
class
SfxGrabBagItem
;
/// Base class for various Writer styles.
class
SW_DLLPUBLIC
SwFmt
:
public
SwModify
...
...
@@ -52,6 +54,7 @@ class SW_DLLPUBLIC SwFmt : public SwModify
sal_Bool
bAutoUpdateFmt
:
1
;
/**< TRUE: Set attributes of a whole paragraph
at format (UI-side!). */
bool
bHidden
:
1
;
boost
::
shared_ptr
<
SfxGrabBagItem
>
m_pGrabBagItem
;
///< Style InteropGrabBag.
protected
:
SwFmt
(
SwAttrPool
&
rPool
,
const
sal_Char
*
pFmtNm
,
...
...
@@ -158,6 +161,9 @@ public:
bool
IsHidden
()
const
{
return
bHidden
;
}
void
SetHidden
(
bool
bValue
=
false
)
{
bHidden
=
bValue
;
}
void
GetGrabBagItem
(
com
::
sun
::
star
::
uno
::
Any
&
rVal
)
const
;
void
SetGrabBagItem
(
const
com
::
sun
::
star
::
uno
::
Any
&
rVal
);
/// Query / set bAutoUpdateFmt-flag.
sal_Bool
IsAutoUpdateFmt
()
const
{
return
bAutoUpdateFmt
;
}
void
SetAutoUpdateFmt
(
sal_Bool
bNew
=
sal_True
)
{
bAutoUpdateFmt
=
bNew
;
}
...
...
sw/source/core/attr/format.cxx
Dosyayı görüntüle @
e9b84827
...
...
@@ -25,6 +25,10 @@
#include <hints.hxx>
#include <paratr.hxx>
#include <swcache.hxx>
#include <svl/grabbagitem.hxx>
#include <com/sun/star/beans/PropertyValues.hpp>
using
namespace
com
::
sun
::
star
;
TYPEINIT1
(
SwFmt
,
SwClient
);
...
...
@@ -603,4 +607,23 @@ IDocumentTimerAccess* SwFmt::getIDocumentTimerAccess() { return GetDoc(); }
IDocumentFieldsAccess
*
SwFmt
::
getIDocumentFieldsAccess
()
{
return
GetDoc
();
}
IDocumentChartDataProviderAccess
*
SwFmt
::
getIDocumentChartDataProviderAccess
()
{
return
GetDoc
();
}
void
SwFmt
::
GetGrabBagItem
(
uno
::
Any
&
rVal
)
const
{
if
(
m_pGrabBagItem
.
get
())
m_pGrabBagItem
->
QueryValue
(
rVal
);
else
{
uno
::
Sequence
<
beans
::
PropertyValue
>
aValue
(
0
);
rVal
=
uno
::
makeAny
(
aValue
);
}
}
void
SwFmt
::
SetGrabBagItem
(
const
uno
::
Any
&
rVal
)
{
if
(
!
m_pGrabBagItem
.
get
())
m_pGrabBagItem
.
reset
(
new
SfxGrabBagItem
);
m_pGrabBagItem
->
PutValue
(
rVal
);
}
/* 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