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
0466c0dc
Kaydet (Commit)
0466c0dc
authored
Haz 13, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Set mxStyleSheetPool before using it
Change-Id: Id5ce3555c487aa7abcf97855a036663c91dd28b1
üst
9665fbad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
drawdoc.cxx
sd/source/core/drawdoc.cxx
+2
-1
drawdoc4.cxx
sd/source/core/drawdoc4.cxx
+4
-0
No files found.
sd/source/core/drawdoc.cxx
Dosyayı görüntüle @
0466c0dc
...
...
@@ -204,11 +204,12 @@ SdDrawDocument::SdDrawDocument(DocumentType eType, SfxObjectShell* pDrDocSh)
pItemPool
->
SetDefaultMetric
(
SFX_MAPUNIT_100TH_MM
);
pItemPool
->
FreezeIdRanges
();
SetTextDefaults
();
// DrawingEngine has to know where it is...
FmFormModel
::
SetStyleSheetPool
(
new
SdStyleSheetPool
(
GetPool
(),
this
)
);
SetTextDefaults
();
// requires the StyleSheetPool set above
// Set StyleSheetPool for DrawOutliner, so text objects can be read correctly.
// The link to the StyleRequest handler of the document is set later, in
// NewOrLoadCompleted, because only then do all the templates exist.
...
...
sd/source/core/drawdoc4.cxx
Dosyayı görüntüle @
0466c0dc
...
...
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/config.h>
#include <cassert>
#include <com/sun/star/style/XStyle.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
...
...
@@ -1206,6 +1209,7 @@ void SdDrawDocument::SetTextDefaults() const
{
// BulletItem and BulletFont for Titel and Outline
SvxBulletItem
aBulletItem
(
EE_PARA_BULLET
);
assert
(
mxStyleSheetPool
.
is
());
Font
aBulletFont
(
static_cast
<
SdStyleSheetPool
*>
(
mxStyleSheetPool
.
get
())
->
GetBulletFont
()
);
aBulletFont
.
SetSize
(
Size
(
0
,
846
));
// 24 pt
aBulletItem
.
SetFont
(
aBulletFont
);
...
...
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