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
17757784
Kaydet (Commit)
17757784
authored
Mar 31, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwDrawModel
Change-Id: Ica69a3c94e674c12619ec0f5c849b8e82dff6090
üst
d1e63af0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
14 deletions
+17
-14
drawdoc.hxx
sw/inc/drawdoc.hxx
+5
-3
drawdoc.cxx
sw/source/core/draw/drawdoc.cxx
+12
-11
No files found.
sw/inc/drawdoc.hxx
Dosyayı görüntüle @
17757784
...
@@ -26,13 +26,15 @@ class SwDocShell;
...
@@ -26,13 +26,15 @@ class SwDocShell;
class
SwDrawModel
:
public
FmFormModel
class
SwDrawModel
:
public
FmFormModel
{
{
SwDoc
*
pDoc
;
private
:
SwDoc
*
m_pDoc
;
public
:
public
:
SwDrawModel
(
SwDoc
*
pDoc
);
SwDrawModel
(
SwDoc
*
pDoc
);
virtual
~
SwDrawModel
();
virtual
~
SwDrawModel
();
const
SwDoc
&
GetDoc
()
const
{
return
*
pDoc
;
}
const
SwDoc
&
GetDoc
()
const
{
return
*
m_
pDoc
;
}
SwDoc
&
GetDoc
()
{
return
*
pDoc
;
}
SwDoc
&
GetDoc
()
{
return
*
m_
pDoc
;
}
virtual
SdrPage
*
AllocPage
(
bool
bMasterPage
)
SAL_OVERRIDE
;
virtual
SdrPage
*
AllocPage
(
bool
bMasterPage
)
SAL_OVERRIDE
;
...
...
sw/source/core/draw/drawdoc.cxx
Dosyayı görüntüle @
17757784
...
@@ -49,20 +49,20 @@ const OUString GetPalettePath()
...
@@ -49,20 +49,20 @@ const OUString GetPalettePath()
return
aPathOpt
.
GetPalettePath
();
return
aPathOpt
.
GetPalettePath
();
}
}
SwDrawModel
::
SwDrawModel
(
SwDoc
*
pD
)
:
SwDrawModel
::
SwDrawModel
(
SwDoc
*
const
pDoc
)
FmFormModel
(
::
GetPalettePath
(),
&
pD
->
GetAttrPool
(),
:
FmFormModel
(
::
GetPalettePath
(),
&
pDoc
->
GetAttrPool
(),
pD
->
GetDocShell
(),
true
),
pDoc
->
GetDocShell
(),
true
)
pDoc
(
pD
)
,
m_pDoc
(
pDoc
)
{
{
SetScaleUnit
(
MAP_TWIP
);
SetScaleUnit
(
MAP_TWIP
);
SetSwapGraphics
(
true
);
SetSwapGraphics
(
true
);
// use common InitDrawModelAndDocShell which will set the associations as needed,
// use common InitDrawModelAndDocShell which will set the associations as needed,
// including SvxColorTableItem with WhichID SID_COLOR_TABLE
// including SvxColorTableItem with WhichID SID_COLOR_TABLE
InitDrawModelAndDocShell
(
pDoc
?
pDoc
->
GetDocShell
()
:
0
,
this
);
InitDrawModelAndDocShell
(
m_pDoc
?
m_
pDoc
->
GetDocShell
()
:
0
,
this
);
// copy all the default values to the SdrModel
// copy all the default values to the SdrModel
SfxItemPool
*
pSdrPool
=
pD
->
GetAttrPool
().
GetSecondaryPool
();
SfxItemPool
*
pSdrPool
=
pD
oc
->
GetAttrPool
().
GetSecondaryPool
();
if
(
pSdrPool
)
if
(
pSdrPool
)
{
{
const
sal_uInt16
aWhichRanges
[]
=
const
sal_uInt16
aWhichRanges
[]
=
...
@@ -72,7 +72,7 @@ SwDrawModel::SwDrawModel( SwDoc* pD ) :
...
@@ -72,7 +72,7 @@ SwDrawModel::SwDrawModel( SwDoc* pD ) :
0
0
};
};
SfxItemPool
&
rDocPool
=
pD
->
GetAttrPool
();
SfxItemPool
&
rDocPool
=
pD
oc
->
GetAttrPool
();
sal_uInt16
nEdtWhich
,
nSlotId
;
sal_uInt16
nEdtWhich
,
nSlotId
;
const
SfxPoolItem
*
pItem
;
const
SfxPoolItem
*
pItem
;
for
(
const
sal_uInt16
*
pRangeArr
=
aWhichRanges
;
for
(
const
sal_uInt16
*
pRangeArr
=
aWhichRanges
;
...
@@ -92,9 +92,10 @@ SwDrawModel::SwDrawModel( SwDoc* pD ) :
...
@@ -92,9 +92,10 @@ SwDrawModel::SwDrawModel( SwDoc* pD ) :
}
}
}
}
SetForbiddenCharsTable
(
pD
->
GetDocumentSettingManager
().
getForbiddenCharacterTable
()
);
SetForbiddenCharsTable
(
pD
oc
->
GetDocumentSettingManager
().
getForbiddenCharacterTable
()
);
// Implementation for asian compression
// Implementation for asian compression
SetCharCompressType
(
static_cast
<
sal_uInt16
>
(
pD
->
GetDocumentSettingManager
().
getCharacterCompressionType
()
));
SetCharCompressType
(
static_cast
<
sal_uInt16
>
(
pDoc
->
GetDocumentSettingManager
().
getCharacterCompressionType
()));
}
}
// Destructor
// Destructor
...
@@ -122,13 +123,13 @@ SdrPage* SwDrawModel::AllocPage(bool bMasterPage)
...
@@ -122,13 +123,13 @@ SdrPage* SwDrawModel::AllocPage(bool bMasterPage)
uno
::
Reference
<
embed
::
XStorage
>
SwDrawModel
::
GetDocumentStorage
()
const
uno
::
Reference
<
embed
::
XStorage
>
SwDrawModel
::
GetDocumentStorage
()
const
{
{
return
pDoc
->
GetDocStorage
();
return
m_
pDoc
->
GetDocStorage
();
}
}
SdrLayerID
SwDrawModel
::
GetControlExportLayerId
(
const
SdrObject
&
)
const
SdrLayerID
SwDrawModel
::
GetControlExportLayerId
(
const
SdrObject
&
)
const
{
{
//for versions < 5.0, there was only Hell and Heaven
//for versions < 5.0, there was only Hell and Heaven
return
(
SdrLayerID
)
pDoc
->
getIDocumentDrawModelAccess
().
GetHeavenId
(
);
return
static_cast
<
SdrLayerID
>
(
m_pDoc
->
getIDocumentDrawModelAccess
().
GetHeavenId
()
);
}
}
uno
::
Reference
<
uno
::
XInterface
>
SwDrawModel
::
createUnoModel
()
uno
::
Reference
<
uno
::
XInterface
>
SwDrawModel
::
createUnoModel
()
...
...
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