Overblog Suivre ce blog
Editer l'article Administration Créer mon blog

Présentation

  • : Romagny13 - Du .NET,du pur .NET
  • Romagny13 - Du .NET,du pur .NET
  • : Cycle de progression Faire (quelque chose qui marche) -> comprendre ce que l’on fait/comment cela marche -> pousser plus loin les notions
  • Contact

Recherche

Articles Récents

12 novembre 2007 1 12 /11 /novembre /2007 14:22
[OpenXML] – Quelques content controls

Ceux-ci sont placés dans document.xml (/word/document.xml)
-          w:sdt
o   w:sdtPr
o   w:sdtContent
 
1 - Rich text content control
   <w:sdt>
      <w:sdtPr>
        <w:rPr>
          <w:lang w:val="en-US" />
        </w:rPr>
        <w:id w:val="4361111" />
        <w:placeholder>
          <w:docPart w:val="DefaultPlaceholder_22675703" />
        </w:placeholder>
        <w:showingPlcHdr />
      </w:sdtPr>
      <w:sdtContent>
        <w:p w:rsidR="000472A5" w:rsidRDefault="000472A5">
          <w:pPr>
            <w:rPr>
              <w:lang w:val="en-US" />
            </w:rPr>
          </w:pPr>
          <w:r w:rsidRPr="000472A5">
            <w:rPr>
              <w:rStyle w:val="PlaceholderText" />
              <w:lang w:val="en-US" />
            </w:rPr>
            <w:t>Click here to enter text.</w:t>
          </w:r>
        </w:p>
      </w:sdtContent>
    </w:sdt>
 
2 – Text content control
    <w:sdt>
      <w:sdtPr>
        <w:rPr>
          <w:lang w:val="en-US" />
        </w:rPr>
        <w:id w:val="4361114" />
        <w:placeholder>
          <w:docPart w:val="DefaultPlaceholder_22675703" />
        </w:placeholder>
        <w:showingPlcHdr />
        <w:text />
      </w:sdtPr>
      <w:sdtContent>
        <w:p w:rsidR="000472A5" w:rsidRDefault="000472A5">
          <w:pPr>
            <w:rPr>
              <w:lang w:val="en-US" />
            </w:rPr>
          </w:pPr>
          <w:r w:rsidRPr="000472A5">
            <w:rPr>
              <w:rStyle w:val="PlaceholderText" />
              <w:lang w:val="en-US" />
            </w:rPr>
            <w:t>Click here to enter text.</w:t>
          </w:r>
        </w:p>
      </w:sdtContent>
    </w:sdt>
 
3 – Picture content control
   <w:sdt>
      <w:sdtPr>
        <w:rPr>
          <w:lang w:val="en-US" />
        </w:rPr>
        <w:id w:val="4361103" />
        <w:picture />
      </w:sdtPr>
      <w:sdtContent>
        <w:p w:rsidR="000472A5" w:rsidRDefault="000472A5">
          <w:pPr>
            <w:rPr>
              <w:lang w:val="en-US" />
            </w:rPr>
          </w:pPr>
          <w:r>
            <w:rPr>
              <w:noProof />
              <w:lang w:eastAsia="fr-FR" />
            </w:rPr>
            <w:drawing>
              <wp:inline distT="0" distB="0" distL="0" distR="0">
                <wp:extent cx="1905000" cy="1271221" />
                <wp:effectExtent l="19050" t="0" r="0" b="0" />
                <wp:docPr id="1" name="Picture 1" />
                <wp:cNvGraphicFramePr>
                  <a:graphicFrameLocks noChangeAspect="1" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" />
                </wp:cNvGraphicFramePr>
                <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
                  <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
                    <pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
                      <pic:nvPicPr>
                        <pic:cNvPr id="0"name="Picture 1" />
                        <pic:cNvPicPr>
                          <a:picLocks noChangeAspect="1" noChangeArrowheads="1" />
                        </pic:cNvPicPr>
                      </pic:nvPicPr>
                      <pic:blipFill>
                        <a:blip r:embed="rId4" />
                        <a:stretch>
                          <a:fillRect />
                        </a:stretch>
                      </pic:blipFill>
                      <pic:spPr bwMode="auto">
                        <a:xfrm>
                          <a:off x="0" y="0" />
                          <a:ext cx="1905000" cy="1271221" />
                        </a:xfrm>
                        <a:prstGeom prst="rect">
                          <a:avLst />
                        </a:prstGeom>
                        <a:noFill />
                        <a:ln w="9525">
                          <a:noFill />
                          <a:miter lim="800000" />
                          <a:headEnd />
                          <a:tailEnd />
                        </a:ln>
                      </pic:spPr>
                    </pic:pic>
                  </a:graphicData>
                </a:graphic>
              </wp:inline>
            </w:drawing>
          </w:r>
        </w:p>
      </w:sdtContent>
    </w:sdt>

Partager cet article

Repost 0
Published by Romagny13 - dans Office
commenter cet article

commentaires