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
d21eb6bc
Kaydet (Commit)
d21eb6bc
authored
Eki 26, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add hook to block use of markup in .ui files
Change-Id: Ia7eed5e9e1f8fba9876730e909461dabc167deb9
üst
fe347327
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
pre-commit
.git-hooks/pre-commit
+6
-2
builder.cxx
vcl/source/window/builder.cxx
+0
-2
window2.cxx
vcl/source/window/window2.cxx
+5
-0
No files found.
.git-hooks/pre-commit
Dosyayı görüntüle @
d21eb6bc
...
...
@@ -14,8 +14,8 @@ $ENV{LC_ALL} = "C";
sub
check_whitespaces
($)
{
my
(
$h
)
=
@_
;
my
$src_limited
=
"c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|MK|pmk|pl|pm|sdi|sh|src|tab|xcu|xml"
;
my
$src_full
=
"c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|xcu|xml"
;
my
$src_limited
=
"c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|MK|pmk|pl|pm|sdi|sh|src|tab|
ui|
xcu|xml"
;
my
$src_full
=
"c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|
ui|
xcu|xml"
;
my
$found_bad
=
0
;
my
$filename
;
...
...
@@ -80,6 +80,10 @@ sub check_whitespaces($)
{
bad_line
(
"temporary debug in commit"
,
$_
,
$src_limited
);
}
if
(
/<property name="use_markup">True<\/property>/
)
{
bad_line
(
"use font attributes instead of use-markup"
,
$_
,
$src_limited
);
}
}
}
if
(
$found_bad
)
...
...
vcl/source/window/builder.cxx
Dosyayı görüntüle @
d21eb6bc
...
...
@@ -1503,8 +1503,6 @@ void VclBuilder::collectProperty(xmlreader::XmlReader &reader, const OString &rI
if
(
!
sProperty
.
isEmpty
())
{
sProperty
=
sProperty
.
replace
(
'_'
,
'-'
);
//https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages
SAL_WARN_IF
(
sProperty
==
"use-markup"
,
"vcl.layout"
,
"Use pango attributes instead of mark-up"
);
rMap
[
sProperty
]
=
sValue
;
}
}
...
...
vcl/source/window/window2.cxx
Dosyayı görüntüle @
d21eb6bc
...
...
@@ -2127,6 +2127,11 @@ bool Window::set_property(const OString &rKey, const OString &rValue)
nBits
|=
WB_AUTOVSCROLL
;
SetStyle
(
nBits
);
}
else
if
(
rKey
.
equalsL
(
RTL_CONSTASCII_STRINGPARAM
(
"use-markup"
)))
{
//https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages
SAL_WARN_IF
(
toBool
(
rValue
),
"vcl.layout"
,
"Use pango attributes instead of mark-up"
);
}
else
{
SAL_INFO
(
"vcl.layout"
,
"unhandled property: "
<<
rKey
.
getStr
());
...
...
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